/* ============================================================
   KARNATAKA PAYROLL GUIDE PAGE — STYLES
   Depends on: header.css (design tokens already loaded)
============================================================ */

/* ============================================================
   HERO
============================================================ */
.hrb-guide-hero {
  background: linear-gradient(135deg, #0A7075 0%, #064E52 40%, #0F172A 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hrb-guide-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hrb-guide-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hrb-guide-hero__label {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); border-radius: var(--radius-full);
  padding: 5px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px;
}
.hrb-guide-hero__label::before {
  content: ''; width: 7px; height: 7px;
  background: #4ADE80; border-radius: 50%;
}
.hrb-guide-hero h1 {
  color: white; font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 20px; line-height: 1.15;
}
.hrb-guide-hero__sub {
  font-size: 17px; color: rgba(255,255,255,0.75);
  line-height: 1.65; margin-bottom: 32px; max-width: 680px;
}
.hrb-guide-hero__meta {
  font-size: 13px; color: rgba(255,255,255,0.5);
  margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap;
}
.hrb-guide-hero__meta span { display: flex; align-items: center; gap: 5px; }
.hrb-guide-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   TWO-COLUMN LAYOUT
============================================================ */
.hrb-guide-body { padding: 72px 0 96px; }
.hrb-guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .hrb-guide-layout { grid-template-columns: 1fr 300px; }
}

/* ============================================================
   CONTENT AREA
============================================================ */
.hrb-guide-content h2 {
  font-size: 26px; font-weight: 700; color: var(--dark);
  margin: 48px 0 16px; padding-top: 8px;
  border-top: 2px solid var(--border);
}
.hrb-guide-content h2:first-child { border-top: none; margin-top: 0; }
.hrb-guide-content p {
  font-size: 16px; color: var(--text); line-height: 1.8; margin-bottom: 16px;
}
.hrb-guide-content p:last-child { margin-bottom: 0; }
.hrb-guide-content ul,
.hrb-guide-content ol {
  margin: 16px 0; padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.hrb-guide-content ul li,
.hrb-guide-content ol li {
  font-size: 16px; color: var(--text); line-height: 1.7;
  padding-left: 24px; position: relative;
}
.hrb-guide-content ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
}
.hrb-guide-content ol { counter-reset: guide-counter; }
.hrb-guide-content ol li { counter-increment: guide-counter; }
.hrb-guide-content ol li::before {
  content: counter(guide-counter) '.';
  position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--primary); font-size: 14px;
}
.hrb-guide-content strong { color: var(--dark); font-weight: 600; }
.hrb-guide-content a {
  color: var(--primary); text-decoration: underline;
  text-decoration-color: rgba(13,148,136,0.3);
}
.hrb-guide-content a:hover { text-decoration-color: var(--primary); }

/* Highlight / info box */
.hrb-guide-highlight {
  background: var(--bg-teal); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; margin: 24px 0;
}
.hrb-guide-highlight p { font-size: 15px; color: var(--text); margin-bottom: 0 !important; }

/* Warning / penalty box */
.hrb-guide-warning {
  background: #FFF7ED; border-left: 4px solid #F59E0B;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; margin: 24px 0;
}
.hrb-guide-warning p { font-size: 15px; color: #92400E; margin-bottom: 0 !important; }
.hrb-guide-warning strong { color: #78350F; }

/* ============================================================
   DATA TABLES
============================================================ */
.hrb-guide-table-wrap {
  overflow-x: auto; margin: 24px 0;
  border-radius: var(--radius-md); border: 1px solid var(--border);
}
.hrb-guide-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
.hrb-guide-table th {
  background: var(--dark); color: white; font-weight: 600;
  padding: 12px 16px; text-align: left; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.hrb-guide-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text);
}
.hrb-guide-table tr:last-child td { border-bottom: none; }
.hrb-guide-table tr:nth-child(even) td { background: var(--bg-alt); }
.hrb-guide-table td strong { color: var(--primary); }
.hrb-guide-table td.hrb-nil { color: var(--text-muted); font-style: italic; }

/* ============================================================
   FAQ ACCORDION
============================================================ */
.hrb-guide-faq { margin-top: 48px; }
.hrb-guide-faq h2 { font-size: 26px; }
.hrb-faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.hrb-faq-item:last-child { border-bottom: none; }
.hrb-faq-q {
  font-size: 17px; font-weight: 700; color: var(--dark);
  margin-bottom: 0; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.hrb-faq-q::after {
  content: '+'; font-size: 22px; font-weight: 400; color: var(--primary);
  flex-shrink: 0; line-height: 1.2;
}
.hrb-faq-item--open .hrb-faq-q::after { content: '\2212'; }
.hrb-faq-a {
  font-size: 15px; color: var(--text); line-height: 1.75;
  display: none; padding-top: 12px;
}
.hrb-faq-item--open .hrb-faq-a { display: block; }

/* ============================================================
   SIDEBAR
============================================================ */
.hrb-guide-sidebar { position: sticky; top: 96px; }
.hrb-guide-toc {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 20px;
}
.hrb-guide-toc__heading {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--primary); margin-bottom: 14px;
}
.hrb-guide-toc__list {
  display: flex; flex-direction: column; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
.hrb-guide-toc__list a {
  font-size: 13px; color: var(--text); text-decoration: none;
  padding: 5px 0; display: flex; align-items: flex-start; gap: 8px;
  transition: color 0.15s; line-height: 1.4;
}
.hrb-guide-toc__list a:hover { color: var(--primary); }
.hrb-guide-toc__list a::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 5px;
}
.hrb-guide-toc__list a.hrb-toc-active { color: var(--primary); font-weight: 600; }

.hrb-guide-sidebar-cta {
  background: linear-gradient(135deg, #0A7075 0%, #064E52 100%);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.hrb-guide-sidebar-cta p {
  font-size: 14px; color: rgba(255,255,255,0.75);
  margin-bottom: 16px; line-height: 1.6;
}
.hrb-guide-sidebar-cta strong {
  color: white; display: block; font-size: 16px; margin-bottom: 8px;
}

/* ============================================================
   BOTTOM CTA
============================================================ */
.hrb-guide-cta {
  background: linear-gradient(135deg, #0A7075 0%, #064E52 50%, #0F172A 100%);
  padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.hrb-guide-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,107,43,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(20,170,175,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hrb-guide-cta__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hrb-guide-cta__eyebrow {
  display: inline-block; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 14px; border-radius: var(--radius-full); margin-bottom: 20px;
}
.hrb-guide-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: white;
  margin-bottom: 12px; line-height: 1.25;
}
.hrb-guide-cta p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.hrb-guide-cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 767px) {
  .hrb-guide-hero { padding: 110px 0 56px; }
  .hrb-guide-hero h1 { font-size: 1.9rem; }
  .hrb-guide-hero__sub { font-size: 15px; }
  .hrb-guide-body { padding: 48px 0 72px; }
  .hrb-guide-content h2 { font-size: 22px; }
  .hrb-guide-sidebar { position: static; }
  .hrb-guide-cta { padding: 56px 24px; }
}
