/* ==========================================================================
   EASY MY TAXES - SPECIALIZED COMPONENTS & ADVANCED MODULES (2026 EDITION)
   ========================================================================== */

/* ==========================================================================
   1. SERVICE SECTION & SERVICE CARDS
   ========================================================================== */

.services-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3.25rem;
}

.filter-btn {
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-700);
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  transition: all var(--trans-base);
}

.filter-btn:hover {
  background-color: var(--surface-100);
  border-color: var(--surface-300);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #0b1528, #172a4d);
  color: #ffffff;
  border-color: #0b1528;
  box-shadow: 0 4px 12px rgba(11, 21, 40, 0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.85rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--trans-smooth);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-xl);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-500), #2563eb);
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald-50), #eff6ff);
  color: var(--emerald-600);
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
  font-size: 1.65rem;
  border: 1px solid var(--emerald-100);
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.service-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.service-highlights {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-850);
}

.highlight-item svg {
  color: var(--emerald-500);
  flex-shrink: 0;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.35rem;
  border-top: 1px solid var(--surface-100);
}

.service-price {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.service-price strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-950);
}

.service-action-btn {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--trans-fast);
}

.service-action-btn:hover {
  gap: 0.65rem;
  color: var(--emerald-700);
}

/* ==========================================================================
   2. INTERACTIVE TAX CALCULATORS (AY 2026-27 UPDATED)
   ========================================================================== */

.calc-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.calc-tab-nav {
  display: inline-flex;
  background-color: var(--surface-200);
  padding: 0.4rem;
  border-radius: var(--radius-full);
  flex-wrap: wrap;
  gap: 0.25rem;
}

.calc-tab-btn {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary-700);
  transition: all var(--trans-fast);
}

.calc-tab-btn.active {
  background-color: var(--surface-0);
  color: var(--primary-950);
  box-shadow: var(--shadow-sm);
}

.calc-pane {
  display: none;
}

.calc-pane.active {
  display: block;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
  .calc-grid {
    grid-template-columns: 1.2fr 1fr;
    padding: 3.25rem;
  }
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-850);
}

.calc-help {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.calc-field {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-200);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-950);
  background-color: var(--surface-50);
  transition: all var(--trans-fast);
}

.calc-field:focus {
  outline: none;
  border-color: var(--emerald-500);
  background-color: var(--surface-0);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.calc-results-col {
  background-color: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.regime-comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.regime-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  padding: 1.35rem 1rem;
  text-align: center;
  position: relative;
  transition: all var(--trans-base);
}

.regime-card.winner {
  border-color: var(--emerald-500);
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.16);
}

.regime-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.regime-name {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.regime-tax-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-950);
}

.regime-card.winner .regime-tax-val {
  color: var(--emerald-600);
}

.recommendation-banner {
  background: linear-gradient(135deg, #0b1528, #172a4d);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.recommendation-banner h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--emerald-400);
}

.recommendation-banner p {
  font-size: 0.8125rem;
  color: var(--surface-200);
}

.breakdown-table {
  width: 100%;
  font-size: 0.8125rem;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.breakdown-table tr {
  border-bottom: 1px solid var(--surface-200);
}

.breakdown-table td {
  padding: 0.65rem 0;
  color: var(--text-muted);
}

.breakdown-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--primary-950);
}

/* ==========================================================================
   3. NOTICE SCANNER & RISK DIAGNOSTIC TOOL
   ========================================================================== */

.notice-scanner-box {
  background: linear-gradient(135deg, #ffffff, var(--surface-50));
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  margin-top: 3rem;
}

.notice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .notice-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.risk-meter-display {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.risk-gauge-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  display: grid;
  place-items: center;
  font-size: 2.25rem;
  border: 4px solid var(--amber-500);
  background: var(--amber-50);
  color: var(--amber-600);
  transition: all var(--trans-base);
}

.risk-gauge-circle.high {
  border-color: var(--danger-500);
  background: var(--danger-50);
  color: var(--danger-600);
}

.risk-gauge-circle.low {
  border-color: var(--emerald-500);
  background: var(--emerald-50);
  color: var(--emerald-600);
}

/* ==========================================================================
   4. STATUTORY DUE DATES CALENDAR (2026–2027)
   ========================================================================== */

.calendar-wrapper {
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.calendar-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--surface-200);
}

.closest-deadline-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--amber-50), #ffffff);
  border: 1px solid var(--amber-100);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-lg);
}

.closest-deadline-box svg {
  color: var(--amber-600);
}

.closest-deadline-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--amber-600);
}

.closest-deadline-name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--primary-950);
}

.calendar-category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cal-pill {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  background-color: var(--surface-100);
  color: var(--primary-700);
  border: 1px solid transparent;
  transition: all var(--trans-fast);
}

.cal-pill.active {
  background: var(--primary-900);
  color: #fff;
}

.cal-table-responsive {
  overflow-x: auto;
}

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compliance-table th {
  background-color: var(--surface-50);
  padding: 1.1rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--surface-200);
}

.compliance-table td {
  padding: 1.25rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--surface-200);
  vertical-align: middle;
}

.compliance-table tr:hover td {
  background-color: var(--surface-50);
}

.due-date-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--primary-950);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.urgent {
  background-color: var(--danger-50);
  color: var(--danger-600);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-badge.upcoming {
  background-color: var(--amber-50);
  color: var(--amber-600);
  border: 1px solid var(--amber-100);
}

.status-badge.scheduled {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.cal-sync-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-600);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  transition: all var(--trans-fast);
}

.cal-sync-btn:hover {
  background: var(--emerald-600);
  color: #fff;
}

/* ==========================================================================
   5. DOCUMENT CHECKLIST HELPER
   ========================================================================== */

.checklist-builder {
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.checklist-selector-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.checklist-btn {
  padding: 1.1rem;
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-800);
  background-color: var(--surface-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--trans-fast);
}

.checklist-btn:hover {
  background-color: var(--surface-100);
  border-color: var(--surface-300);
}

.checklist-btn.active {
  background-color: var(--emerald-50);
  border-color: var(--emerald-500);
  color: var(--emerald-700);
  box-shadow: var(--shadow-xs);
}

.checklist-results-card {
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  background-color: var(--surface-50);
}

.checklist-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .checklist-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checklist-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background-color: var(--surface-0);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-200);
  transition: border-color var(--trans-fast);
}

.checklist-doc-item:hover {
  border-color: var(--emerald-400);
}

.doc-checkbox {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--emerald-600);
}

.doc-info h5 {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.2rem;
}

.doc-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. PRICING SECTION
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--trans-smooth);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-lg);
}

.featured-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-tier {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.5rem;
}

.pricing-for {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  min-height: 2.5rem;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.5rem 0;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-950);
}

.price-amount {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--primary-950);
}

.price-frequency {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.25rem;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-feature-item svg {
  color: var(--emerald-500);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ==========================================================================
   7. LEAD CA PROFILE (CA PRADEEP KUMAR AGRAWAL)
   ========================================================================== */

.ca-profile-card {
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ca-profile-card {
    grid-template-columns: 380px 1fr;
    padding: 3.75rem;
  }
}

.ca-photo-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: var(--primary-900);
}

.ca-photo-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.ca-experience-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(11, 21, 40, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ca-exp-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--emerald-400);
  line-height: 1;
}

.ca-exp-text {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.3;
}

.ca-profile-info h3 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-950);
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.ca-designation {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--emerald-600);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ca-qualification-tag {
  background: var(--surface-100);
  color: var(--primary-850);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-200);
}

.ca-bio-text {
  font-size: 1.03rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.ca-expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .ca-expertise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ca-expertise-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-850);
  background-color: var(--surface-50);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-200);
}

.ca-expertise-item svg {
  color: var(--emerald-600);
  flex-shrink: 0;
}

.ca-quote-box {
  background-color: var(--emerald-50);
  border-left: 4px solid var(--emerald-500);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--primary-950);
}

/* ==========================================================================
   8. TESTIMONIALS & REVIEWS
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.85rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--amber-500);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--primary-850);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9375rem;
}

.author-meta h5 {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--primary-950);
}

.author-meta p {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   9. FAQS ACCORDION
   ========================================================================== */

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--trans-fast);
}

.faq-item.open {
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 1.35rem 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--primary-950);
}

.faq-toggle-icon {
  font-size: 1.35rem;
  color: var(--text-subtle);
  transition: transform var(--trans-base);
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--emerald-600);
}

.faq-body {
  padding: 0 1.65rem 1.35rem 1.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-body {
  display: block;
}

/* ==========================================================================
   10. MODALS & SERVICE DETAIL DRAWER
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 21, 40, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5000; /* Must sit securely above sticky header (1000) and drawer (2000) */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.25rem, 4vh, 2.5rem) 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-base), visibility var(--trans-base);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--surface-0);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  padding: 2.5rem;
  position: relative;
  margin: auto; /* Ensures vertical centering when short, top-aligned when tall */
  transform: translateY(20px);
  transition: transform var(--trans-base);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface-100);
  border: 1px solid var(--surface-300);
  color: var(--primary-900);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--trans-fast);
}

.modal-close-btn:hover {
  background-color: var(--surface-200);
  color: var(--primary-950);
  transform: scale(1.05);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.5rem;
  padding-right: 3.5rem; /* Dedicated clearance for close (X) button */
  line-height: 1.25;
}

.modal-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
  padding-right: 2rem;
  line-height: 1.55;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.service-modal-section {
  margin-bottom: 1.5rem;
}

.service-modal-section h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.75rem;
}

.service-modal-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-modal-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.service-modal-bullets li svg {
  color: var(--emerald-500);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Toast Message */
.toast-notice {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #0b1528, #172a4d);
  color: #fff;
  padding: 0.95rem 1.65rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  transition: transform var(--trans-smooth);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   11. LIVE STATUTORY COUNTDOWN TICKER (AY 2026-27)
   ========================================================================== */

.countdown-banner {
  background: linear-gradient(135deg, #091224, #132442);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.countdown-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.countdown-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.countdown-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--danger-500);
  box-shadow: 0 0 10px var(--danger-500);
  animation: pulseAlarm 1.5s infinite;
}

@keyframes pulseAlarm {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--danger-500); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.countdown-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.countdown-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
}

.countdown-timer-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  text-align: center;
  min-width: 48px;
}

.countdown-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--amber-400);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown-unit {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  font-weight: 600;
}

.countdown-sep {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.countdown-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--trans-fast);
}

.countdown-cta:hover {
  background: var(--emerald-500);
  color: #fff;
  border-color: var(--emerald-500);
}

/* ==========================================================================
   12. PERSISTENT MOBILE BOTTOM ACTION BAR
   ========================================================================== */

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11, 21, 40, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 450;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
  }
  
  body {
    padding-bottom: 64px;
  }

  .floating-whatsapp {
    bottom: 76px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--text-light);
  font-size: 0.6875rem;
  font-weight: 700;
  height: 100%;
  transition: all var(--trans-fast);
  text-decoration: none;
}

.mobile-bar-btn svg {
  color: inherit;
}

.mobile-bar-btn:active, .mobile-bar-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-bar-btn.highlight-green {
  color: var(--emerald-400);
}

.mobile-bar-btn.primary-cta {
  background: linear-gradient(135deg, var(--emerald-600), #047857);
  color: #ffffff;
  font-weight: 800;
}

/* ==========================================================================
   13. "HUMAN CA VS DIY BOT PORTALS" COMPARISON MATRIX
   ========================================================================== */

.comparison-wrapper {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th {
  padding: 1.35rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 800;
}

.comparison-table th.col-feature {
  background: var(--surface-100);
  color: var(--primary-950);
  width: 40%;
}

.comparison-table th.col-ca {
  background: linear-gradient(135deg, #0b1528, #172a4d);
  color: #ffffff;
  width: 32%;
  position: relative;
}

.comparison-table th.col-diy {
  background: var(--surface-50);
  color: var(--text-muted);
  width: 28%;
}

.comp-badge-pro {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--emerald-500);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}

.comparison-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--surface-200);
  font-size: 0.875rem;
}

.comparison-table tr:hover td {
  background-color: var(--surface-50);
}

.comparison-table td.col-ca-cell {
  background-color: rgba(16, 185, 129, 0.04);
  font-weight: 700;
  color: var(--primary-900);
  border-left: 2px solid var(--emerald-500);
}

.comparison-table td.col-diy-cell {
  color: var(--text-muted);
}

.comp-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--emerald-600);
}

.comp-cross {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--danger-500);
}

@media (max-width: 768px) {
  .comparison-wrapper {
    overflow-x: auto;
  }
  .comparison-table {
    min-width: 620px;
  }
}

/* ==========================================================================
   14. INTERACTIVE 4-STEP CLIENT PROCESS ("HOW WE WORK")
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  position: relative;
  transition: all var(--trans-smooth);
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-lg);
}

.process-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.process-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--emerald-600);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.process-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--surface-100), var(--surface-200));
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.process-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.5rem;
}

.process-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   15. SALARY PRESET CHIPS & ADVANCE TAX CALCULATOR ADDITIONS
   ========================================================================== */

.salary-presets-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
  margin-bottom: 1rem;
}

.preset-chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-800);
  background-color: var(--surface-100);
  border: 1px solid var(--surface-200);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.preset-chip:hover {
  background-color: var(--surface-200);
  border-color: var(--surface-300);
  color: var(--primary-950);
}

.preset-chip.active {
  background: var(--primary-900);
  color: #fff;
  border-color: var(--primary-900);
}

.whatsapp-export-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(16, 185, 129, 0.12));
  border: 1px dashed var(--emerald-400);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.adv-tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.adv-tax-box {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.adv-tax-quarter {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

.adv-tax-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.25rem;
}

.adv-tax-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emerald-700);
}

/* ==========================================================================
   16. ENHANCED NOTICE DIAGNOSTIC & RESOLUTION ROADMAP
   ========================================================================== */

.resolution-roadmap-box {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .roadmap-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.roadmap-item {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

.roadmap-num {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary-900);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.roadmap-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.35rem;
}

.roadmap-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   17. FILTERABLE CASE STUDIES / TESTIMONIALS & OUTCOME BADGES
   ========================================================================== */

.testimonial-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.test-filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-700);
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  transition: all var(--trans-fast);
}

.test-filter-btn:hover {
  background-color: var(--surface-100);
}

.test-filter-btn.active {
  background: var(--primary-900);
  color: #ffffff;
  border-color: var(--primary-900);
}

.test-outcome-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--emerald-800);
  background-color: var(--emerald-100);
  border: 1px solid var(--emerald-300);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   18. LIVE SEARCH BAR IN PRACTICE AREAS & COMPLIANCE CALENDAR
   ========================================================================== */

.search-bar-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 2.25rem auto;
}

.search-input-field {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 2.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-300);
  background-color: var(--surface-0);
  font-size: 0.9375rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-base);
}

.search-input-field:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-icon-prefix {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

/* CA Leadership Spotlight Hub */
.ca-spotlight-box {
  background: linear-gradient(135deg, #050b14 0%, #0b1528 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
}

.ca-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 960px) {
  .ca-hub-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 3.5rem;
  }
}

.ca-spotlight-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  max-width: 100%;
}

.ca-spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  width: fit-content;
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--emerald-400);
}

.ca-spotlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  display: inline-block;
  flex-shrink: 0;
}

.ca-spotlight-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.ca-spotlight-desc {
  font-size: 1.0625rem;
  color: var(--surface-300);
  line-height: 1.7;
  max-width: 650px;
  overflow-wrap: break-word;
}

.ca-spotlight-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.ca-spotlight-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.ca-spotlight-stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-sizing: border-box;
  min-width: 0;
}

.ca-spotlight-stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--emerald-400);
  line-height: 1.1;
}

.ca-spotlight-stat-lbl {
  font-size: 0.875rem;
  color: var(--surface-300);
  font-weight: 600;
  margin-top: 0.35rem;
  overflow-wrap: break-word;
}




/* ==========================================================================
   SMART CALCULATOR TEASER HUB (HOME PAGE SHOWCASE)
   ========================================================================== */

.smart-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .smart-calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .smart-calc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.smart-calc-card {
  background-color: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-fast);
  position: relative;
  overflow: hidden;
}

.smart-calc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald-300);
}

.smart-calc-card.featured {
  border-color: var(--emerald-400);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.smart-calc-card.cta-card {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-950) 100%);
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.3);
}

.smart-calc-card.cta-card .smart-calc-title {
  color: #ffffff;
}

.smart-calc-card.cta-card .smart-calc-desc {
  color: var(--surface-300);
}

.smart-calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.smart-calc-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  background-color: var(--emerald-50);
  color: var(--emerald-700);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border: 1px solid var(--emerald-100);
}

.smart-calc-card.cta-card .smart-calc-icon {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.smart-calc-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.smart-calc-badge.gold {
  background-color: #fef3c7;
  color: #92400e;
}

.smart-calc-badge.blue {
  background-color: #e0f2fe;
  color: #0369a1;
}

.smart-calc-badge.emerald {
  background-color: #d1fae5;
  color: #065f46;
}

.smart-calc-badge.purple {
  background-color: #ede9fe;
  color: #5b21b6;
}

.smart-calc-badge.amber {
  background-color: #ffedd5;
  color: #9a3412;
}

.smart-calc-badge.green {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.smart-calc-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-950);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.smart-calc-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.smart-calc-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.metric-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--surface-100);
  color: var(--primary-900);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-200);
}

.smart-calc-card.cta-card .metric-tag {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.smart-calc-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-100);
}

.smart-calc-card.cta-card .smart-calc-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.calc-hub-banner {
  background: linear-gradient(135deg, var(--surface-0) 0%, #f8fafc 100%);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 1024px) {
  .calc-hub-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.calc-hub-banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.calc-hub-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: var(--emerald-50);
  color: var(--emerald-700);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 1px solid var(--emerald-200);
}

.calc-hub-banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.35rem;
}

.calc-hub-banner-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.calc-hub-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}



/* ==========================================================================
   REGISTERKARO-STYLE MEGA MENU & DEDICATED SERVICE PAGES
   ========================================================================== */

.nav-item.has-mega-menu {
  position: static;
}

@media (min-width: 1080px) {
  .site-header .nav-container {
    position: relative;
  }
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 150;
  overflow: hidden;
}

.nav-item.has-mega-menu:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  display: flex;
  min-height: 400px;
}

/* Left Sidebar */
.mega-sidebar {
  width: 250px;
  background: var(--surface-50);
  border-right: 1px solid var(--surface-200);
  padding: 1rem 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-side-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-900);
  cursor: pointer;
  transition: all var(--trans-fast);
  border-left: 3px solid transparent;
}

.mega-side-item:hover, .mega-side-item.active {
  background: #ea580c; /* RegisterKaro orange highlight */
  color: #ffffff;
  border-left-color: #c2410c;
}

.mega-side-icon {
  font-size: 1.15rem;
}

/* Right Content Area */
.mega-content {
  flex-grow: 1;
  padding: 1.75rem 2rem;
  background: var(--surface-0);
}

.mega-pane {
  display: none;
}

.mega-pane.active {
  display: block;
}

.mega-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.mega-col-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface-100);
  margin-bottom: 0.75rem;
}

.mega-link {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--trans-fast);
  margin-bottom: 0.25rem;
}

.mega-link:hover {
  background: var(--surface-100);
  transform: translateX(4px);
}

.mega-link.featured-link {
  background: #fffbeb;
  border: 1px solid #fef3c7;
}

.mega-link.featured-link:hover {
  background: #fef3c7;
}

.mega-link-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-950);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-link:hover .mega-link-title {
  color: #ea580c;
}

.mega-link-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.badge-pill {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-pill.gold {
  background: #f59e0b;
  color: #ffffff;
}

/* Service Detail Page Layout Components */
.service-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .service-hero-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
  }
}

.service-quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.spec-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--surface-300);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.spec-val {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 800;
}

.hero-assurance-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-2xl);
  backdrop-filter: blur(8px);
}

.assurance-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--surface-200);
}

.assurance-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Service Benefits Grid */
.service-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .service-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-benefit-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-fast);
}

.service-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald-300);
}

.benefit-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--emerald-200);
  margin-bottom: 1.25rem;
}

.benefit-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.65rem;
}

.benefit-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Documents Checklist */
.doc-checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .doc-checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doc-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.doc-check-item:hover {
  background: #f0fdf4;
  border-color: var(--emerald-300);
}

.doc-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald-600);
  margin-top: 0.15rem;
  cursor: pointer;
}

.doc-check-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-900);
  line-height: 1.4;
}

/* Deliverables Grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .deliverables-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.deliverable-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
}

.deliverable-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-700);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.deliverable-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-950);
}

/* Service Consultation Box */
.service-consult-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: 3rem;
}

@media (min-width: 1024px) {
  .service-consult-box {
    grid-template-columns: 1.2fr 1fr;
  }
}

.consult-box-form {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

/* Mobile Accordions */
.mobile-accordion-item {
  border-bottom: 1px solid var(--surface-200);
}

.mobile-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-950);
  cursor: pointer;
  text-align: left;
}

.mobile-accordion-body {
  display: none;
  padding: 0.5rem 1.25rem 1rem 1.5rem;
  background: var(--surface-50);
  flex-direction: column;
  gap: 0.35rem;
  max-height: 52vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-accordion-item.open .mobile-accordion-body {
  display: flex;
}

.mobile-accordion-item.open .mobile-accordion-header svg {
  transform: rotate(180deg);
}

.mobile-sublink {
  font-size: 0.875rem;
  color: var(--primary-800);
  text-decoration: none;
  padding: 0.4rem 0.25rem;
  min-height: 38px;
  display: flex;
  align-items: center;
  transition: color var(--trans-fast);
}

.mobile-sublink:hover, .mobile-sublink:active {
  color: #ea580c;
  font-weight: 700;
}


/* ==========================================================================
   CATEGORY DIRECTORY HUB & SIBLING SHOWCASE
   ========================================================================== */
.category-hub-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem 0;
  width: 100%;
}
.category-hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--surface-200);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--trans-fast);
}
@media (max-width: 580px) {
  .category-hub-tab {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }
}
.category-hub-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.category-hub-tab.active {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #ffffff;
  border-color: var(--emerald-400);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.category-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem 0;
}
.cat-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--surface-200);
  font-weight: 600;
}

.category-filter-bar {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.category-search-input-wrap {
  position: relative;
  flex: 1 1 300px;
}
.category-search-input-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1px solid var(--surface-300);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--primary-950);
  outline: none;
  transition: border-color var(--trans-fast);
}
.category-search-input-wrap input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.category-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--trans-base);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-xl);
}
.cat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.cat-card-icon {
  font-size: 2.25rem;
  line-height: 1;
}
.cat-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.cat-badge-fastrack {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
}
.cat-badge-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cat-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.cat-card-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.cat-card-inclusions {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cat-card-inclusions li {
  font-size: 0.8125rem;
  color: var(--primary-900);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.4;
}
.cat-card-inclusions li svg {
  flex-shrink: 0;
  color: var(--emerald-600);
  margin-top: 2px;
}

.cat-card-footer {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-100);
}
.btn-cat-details {
  flex: 1;
  text-align: center;
  background: var(--primary-900);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--trans-fast);
}
.btn-cat-details:hover {
  background: var(--emerald-600);
  color: #ffffff;
}
.btn-cat-wa {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-700);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--trans-fast);
  flex-shrink: 0;
}
.btn-cat-wa:hover {
  background: var(--emerald-600);
  color: #ffffff;
  border-color: var(--emerald-600);
}

.sibling-section {
  padding: 4.5rem 0;
  background: var(--surface-50);
  border-top: 1px solid var(--surface-200);
}

/* ==========================================================================
   ENHANCED SUBSECTION DETAIL COMPONENTS (RegisterKaro-Style Clarity)
   ========================================================================== */

/* 1. Deep Dive Overview Section */
.deep-dive-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  color: var(--primary-900);
  margin-bottom: 2rem;
}
.deep-dive-card p {
  font-size: 1.025rem;
  margin-bottom: 1.15rem;
  color: var(--text-muted);
}
.deep-dive-card strong {
  color: var(--primary-950);
}

/* 2. Who Should Choose This Grid */
.who-for-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .who-for-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .who-for-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.who-for-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--trans-fast);
}
.who-for-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-md);
}
.who-for-icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}
.who-for-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-950);
  margin: 0;
}
.who-for-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 3. Minimum Eligibility Grid */
.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .eligibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .eligibility-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.eligibility-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--surface-50) 100%);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.eligibility-card::before {
  content: \'\';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-400));
}
.eligibility-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.eligibility-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}
.eligibility-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.35rem;
}
.eligibility-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 4. Mandatory Post-Registration Compliances */
.post-compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .post-compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .post-compliance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.post-compliance-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-fast);
}
.post-compliance-card:hover {
  border-color: #f59e0b;
  box-shadow: var(--shadow-md);
}
.post-comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.post-comp-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.post-comp-timeline {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.post-comp-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.4rem;
}
.post-comp-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 5. Entity Comparison Table */
.comparison-table-wrap {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-2xl);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}
.comparison-table th {
  background: var(--surface-100);
  color: var(--primary-950);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 1.1rem 1.25rem;
  border-bottom: 2px solid var(--surface-200);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--surface-200);
  font-size: 0.875rem;
  color: var(--primary-900);
}
.comparison-table tr:hover td {
  background: var(--surface-50);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table .highlight-col {
  background: rgba(16, 185, 129, 0.05);
  font-weight: 700;
  color: var(--emerald-900);
}

/* ==========================================================================
   HOMEPAGE 4-PILLAR SERVICES GATEWAY (Smart & High-Converting)
   ========================================================================== */
.services-gateway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) {
  .services-gateway-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-gateway-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gateway-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-2xl);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gateway-card:hover {
  transform: translateY(-6px);
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-xl);
}
.gateway-card::before {
  content: \'\';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-500), #3b82f6);
}
.gateway-card-icon {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}
.gateway-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.gateway-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.gateway-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}
.gateway-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface-100);
  color: var(--primary-900);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}
.gateway-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-900);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--trans-fast);
}
.gateway-btn:hover {
  background: var(--emerald-600);
  color: #ffffff;
}


/* All Services 4-Pillar Overview Cards */
.pillar-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  transition: all var(--trans-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-400));
  opacity: 0;
  transition: opacity var(--trans-fast);
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-lg);
}
.pillar-card:hover::before {
  opacity: 1;
}

.breadcrumb-link {
  color: var(--emerald-400);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--trans-fast);
}
.breadcrumb-link:hover {
  color: #ffffff;
  text-decoration: underline;
}



/* ==========================================================================
   SMART TESTIMONIALS SIDE SCROLLER (DRAG-TO-SCROLL, FLOATING ARROWS & PEEK)
   ========================================================================== */

.testimonials-slider-wrapper {
  position: relative;
  width: 100%;
}

.testimonials-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.75rem 0.5rem 1.5rem 0.5rem;
  cursor: grab;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonials-slider.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
  scroll-behavior: auto;
}

/* Card sizing: 3.2 cards visible on desktop so the 4th card peeks out */
.testimonials-slider .testimonial-card {
  flex: 0 0 calc(31.5% - 0.75rem);
  scroll-snap-align: start;
  min-width: 310px;
  box-sizing: border-box;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

@media (max-width: 1150px) {
  .testimonials-slider .testimonial-card {
    flex: 0 0 calc(47% - 0.75rem);
    min-width: 290px;
  }
}

@media (max-width: 640px) {
  .testimonials-slider .testimonial-card {
    flex: 0 0 85%;
    min-width: 260px;
  }
}

/* Floating Side Navigation Arrows */
.slider-side-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--surface-300);
  color: var(--primary-950);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.slider-side-nav:hover {
  background: var(--primary-900);
  color: #ffffff;
  border-color: var(--primary-900);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.slider-side-nav.prev {
  left: -22px;
}

.slider-side-nav.next {
  right: -22px;
}

@media (max-width: 768px) {
  .slider-side-nav {
    display: none;
  }
}

/* Pagination Dots */
.slider-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--surface-300);
  cursor: pointer;
  transition: all var(--trans-base);
  border: none;
  padding: 0;
}

.slider-dot:hover {
  background: var(--surface-400);
}

.slider-dot.active {
  width: 28px;
  background: var(--emerald-500);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   SMART SERVICES EXPLORER (LEFT NAVIGATION + HOVER SUBSECTIONS)
   ========================================================================== */

.services-explorer-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.25rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 1024px) {
  .services-explorer-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.explorer-sidebar {
  position: sticky;
  top: calc(var(--header-height, 82px) + 55px);
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .explorer-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 1.25rem 0.75rem 0.75rem;
    gap: 0.5rem;
    scrollbar-width: none;
  }
  .explorer-sidebar::-webkit-scrollbar {
    display: none;
  }
  .explorer-sidebar-advisory {
    display: none !important;
  }
}

.explorer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid transparent;
  background: var(--surface-50);
  cursor: pointer;
  transition: all var(--trans-fast);
  text-decoration: none;
  user-select: none;
}

@media (max-width: 1024px) {
  .explorer-nav-item {
    flex-shrink: 0;
    padding: 0.85rem 1.15rem;
  }
}

.explorer-nav-item:hover {
  background: var(--surface-100);
  border-color: var(--surface-300);
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .explorer-nav-item:hover {
    transform: none;
  }
}

.explorer-nav-item.active {
  background: linear-gradient(135deg, #0b1528 0%, #162442 100%);
  border-color: #0b1528;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(11, 21, 40, 0.22);
}

.explorer-nav-item .nav-item-icon {
  font-size: 1.75rem;
  margin-right: 0.85rem;
  flex-shrink: 0;
}

.explorer-nav-item .nav-item-info {
  flex-grow: 1;
  min-width: 0;
}

.explorer-nav-item .nav-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.explorer-nav-item.active .nav-item-title {
  color: #ffffff;
}

.explorer-nav-item .nav-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-nav-item.active .nav-item-desc {
  color: var(--surface-300);
}

.explorer-nav-item .nav-item-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
  white-space: nowrap;
  margin-left: 0.5rem;
}

.explorer-nav-item.active .nav-item-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
  border-color: rgba(16, 185, 129, 0.4);
}

.explorer-nav-item .nav-item-arrow {
  font-size: 1.25rem;
  color: var(--text-subtle);
  margin-left: 0.5rem;
  transition: transform var(--trans-fast);
}

.explorer-nav-item.active .nav-item-arrow {
  color: var(--emerald-400);
  transform: translateX(3px);
}

/* Explorer Right Content Area */
.explorer-content-pane {
  background: transparent;
  min-height: 400px;
}

.explorer-pane-header {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-2xl);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.explorer-pane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  animation: explorerFadeIn 0.22s ease-out;
}

@keyframes explorerFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   ADVANCED ATTRACTIVE CALCULATOR STYLES (AY 2026-27 FINTECH SUITE)
   ========================================================================== */

/* 1. Range Sliders */
.calc-range-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.6rem;
}
.calc-range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--surface-300);
  outline: none;
  cursor: pointer;
  transition: background var(--trans-fast);
}
.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-500);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45);
  cursor: grab;
  transition: transform var(--trans-fast);
}
.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.calc-range-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
}
.calc-range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* 2. Visual Comparison Bars */
.tax-visual-bars {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.tax-bar-row {
  margin-bottom: 0.75rem;
}
.tax-bar-row:last-child {
  margin-bottom: 0;
}
.tax-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-950);
  margin-bottom: 0.35rem;
}
.tax-bar-track {
  height: 9px;
  background: var(--surface-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.tax-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease-in-out;
}
.tax-bar-fill.new-regime {
  background: linear-gradient(90deg, var(--emerald-500), #34d399);
}
.tax-bar-fill.old-regime {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* 3. Take-Home Monthly Salary Card */
.take-home-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.08));
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.take-home-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emerald-800);
}
.take-home-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--emerald-700);
}

/* 4. Slab Breakdown Accordion */
.slab-accordion-toggle {
  background: var(--surface-0);
  border: 1px dashed var(--surface-300);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  width: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  transition: all var(--trans-fast);
}
.slab-accordion-toggle:hover {
  background: var(--surface-100);
  border-color: var(--emerald-400);
}
.slab-accordion-body {
  display: none;
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}
.slab-accordion-body.open {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

/* 5. Advance Tax Milestones Grid */
.adv-milestones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .adv-milestones-grid {
    grid-template-columns: 1fr;
  }
}
.adv-milestone-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  position: relative;
  transition: all var(--trans-fast);
}
.adv-milestone-card:hover {
  border-color: var(--emerald-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.adv-pct-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE OPTIMIZATION SUITE (ALL SCREENS & TOUCH TARGETS)
   ========================================================================== */

/* Calculator Input Pair Grid */
.calc-input-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 580px) {
  .calc-input-pair {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Compliance Calendar Responsive Table */
.cal-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compliance-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

/* Mobile Screens Adjustments (<= 768px) */
@media (max-width: 768px) {
  .calendar-wrapper {
    padding: 1.25rem 1rem;
  }
  
  .ca-profile-card {
    padding: 1.5rem 1rem;
    gap: 1.75rem;
  }

  .ca-experience-floating-badge {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 0.75rem 1rem;
  }

  .modal-card {
    padding: 1.75rem 1.25rem;
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }

  .service-quick-specs {
    gap: 0.75rem;
  }

  .spec-card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 130px;
  }

  .category-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .category-search-input-wrap {
    max-width: 100%;
    width: 100%;
  }

  .calendar-top-strip {
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .spec-card {
    flex: 1 1 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    text-align: center;
  }

  /* Prevent iOS Safari auto-zoom on form focus */
  input, select, textarea, .form-control {
    font-size: 16px !important;
  }
}




/* ==========================================================================
   ADVANCED MOBILE RESPONSIVE ENGINE (CROSS-DEVICE VIEWPORT OPTIMIZATION)
   ========================================================================== */

/* 1. Global Overflow & Container Normalization */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* 2. Fluid Typography Auto-Scaling */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(1.65rem, 5vw, 2.25rem) !important;
    line-height: 1.25 !important;
  }
  .section-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .section-header {
    margin-bottom: 2rem !important;
  }
  .section-py {
    padding: 3rem 0 !important;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.85rem) !important;
    line-height: 1.18 !important;
  }
}

@media (max-width: 480px) {
  .section-py {
    padding: 2.25rem 0 !important;
  }
  .section-title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem) !important;
  }
  .hero-title {
    font-size: clamp(1.7rem, 6.5vw, 2.25rem) !important;
  }
  .hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
}

/* 3. Header & Navigation Mobile Ergonomics */
@media (max-width: 480px) {
  .site-header {
    --header-height: 64px;
  }
  .brand-link img {
    height: 34px !important;
    max-width: 135px !important;
  }
  .header-actions {
    gap: 0.4rem !important;
  }
  .header-actions .btn-sm {
    padding: 0.42rem 0.65rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }
  .mobile-toggle {
    width: 36px !important;
    height: 36px !important;
    padding: 5px !important;
  }
}

@media (max-width: 360px) {
  .site-header {
    --header-height: 60px;
  }
  .brand-link img {
    height: 28px !important;
    max-width: 110px !important;
  }
  .header-actions .btn-sm {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
}

/* 4. Mobile Drawer Transform GPU Acceleration (Zero Layout Bleed) */
.mobile-drawer {
  right: 0 !important;
  transform: translateX(100%) !important;
  transition: transform var(--trans-smooth) !important;
}
.mobile-drawer.active {
  transform: translateX(0) !important;
}

/* 5. 2-Column Form Responsive Breakdown */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 580px) {
  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

/* 6. Swipeable Horizontal Filter Tracks (Calculators, Hubs, Due Dates, Reviews) */
@media (max-width: 768px) {
  .calc-tabs-wrapper {
    justify-content: flex-start !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
  }
  .calc-tab-nav {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    scrollbar-width: none !important;
    padding: 0.35rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .calc-tab-nav::-webkit-scrollbar {
    display: none !important;
  }
  .calc-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.8125rem !important;
  }

  .category-hub-tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    padding: 0.25rem 0.5rem !important;
  }
  .category-hub-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .category-hub-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  .calendar-category-filters {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.5rem !important;
    justify-content: flex-start !important;
  }
  .calendar-category-filters::-webkit-scrollbar {
    display: none !important;
  }
  .cal-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .testimonial-filter-nav {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.5rem !important;
    justify-content: flex-start !important;
  }
  .testimonial-filter-nav::-webkit-scrollbar {
    display: none !important;
  }
  .test-filter-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

/* 7. Tables & Scrollable Data Wrappers */
.comparison-table-wrap,
.cal-table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: var(--radius-lg) !important;
}

/* 8. Card Padding Optimization on Small Screens */
@media (max-width: 640px) {
  .hero-card {
    padding: 1.5rem 1rem !important;
  }
  .service-card {
    padding: 1.5rem 1.15rem !important;
  }
  .calc-grid {
    padding: 1.25rem 0.95rem !important;
    gap: 1.5rem !important;
  }
  .service-consult-box {
    padding: 1.5rem 1rem !important;
    grid-template-columns: 1fr !important;
  }
  .consult-box-form {
    padding: 1.35rem 1rem !important;
  }
  .hero-assurance-card {
    padding: 1.35rem 1rem !important;
  }
  .ca-profile-card {
    padding: 1.5rem 1rem !important;
  }
  .ca-photo-img {
    height: 320px !important;
  }
  .ca-profile-info h2 {
    font-size: 1.65rem !important;
  }
  div[style*="max-width: 860px"],
  div[style*="max-width: 880px"] {
    padding: 1.5rem 1rem !important;
    border-radius: var(--radius-lg) !important;
  }
}

/* 9. Universal Form Control Sizing (Prevents iOS Safari Auto-Zoom) */
input, select, textarea, .form-control {
  font-size: 16px !important;
}

/* 10. Mobile Safe-Area Ergonomics */
.mobile-bottom-bar {
  height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}
@media (max-width: 768px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .floating-whatsapp {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }

  /* Universal button anti-overflow & multi-line text wrapping */
  .btn {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    line-height: 1.35 !important;
  }
  .btn-lg {
    padding: 0.85rem 1.15rem !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-md) !important;
  }

  /* Stack button pairs into full-width tap targets on mobile */
  .hero-cta-group,
  .hero-action-buttons,
  .calc-hub-cta-buttons,
  .due-dates-cta-buttons,
  .ca-hero-actions,
  .ca-spotlight-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
  }
  .hero-cta-group .btn,
  .hero-action-buttons .btn,
  .calc-hub-cta-buttons .btn,
  .due-dates-cta-buttons .btn,
  .ca-hero-actions .btn,
  .ca-spotlight-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* CA Spotlight Mobile Optimization */
  .ca-spotlight-box {
    padding: 1.5rem 1.15rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .ca-spotlight-title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem) !important;
    line-height: 1.25 !important;
  }
  .ca-spotlight-desc {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
  }
  .ca-spotlight-stats {
    gap: 0.65rem !important;
  }
  .ca-spotlight-stat-item {
    padding: 1rem 0.65rem !important;
    border-radius: var(--radius-md) !important;
  }
  .ca-spotlight-stat-num {
    font-size: 1.65rem !important;
  }
  .ca-spotlight-stat-lbl {
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
  }

  /* CA Experience Floating Badge Mobile Ergonomics */
  .ca-experience-floating-badge {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 0.65rem 0.85rem !important;
  }
  .ca-exp-num {
    font-size: 1.35rem !important;
  }
  .ca-exp-text {
    font-size: 0.7rem !important;
  }

  /* Modal Close Button & Title Clearance */
  .modal-title {
    font-size: 1.35rem !important;
    padding-right: 3.25rem !important;
    line-height: 1.25 !important;
  }
  .modal-close-btn {
    top: 1.15rem !important;
    right: 1.15rem !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1.15rem !important;
  }
}

@media (max-width: 480px) {
  .ca-spotlight-box {
    padding: 1.25rem 0.85rem !important;
  }
  .ca-spotlight-stat-item {
    padding: 0.85rem 0.4rem !important;
  }
  .ca-spotlight-stat-num {
    font-size: 1.4rem !important;
  }
  .ca-spotlight-stat-lbl {
    font-size: 0.72rem !important;
  }
  .btn-lg {
    font-size: 0.9rem !important;
    padding: 0.8rem 1rem !important;
  }

  .modal-card {
    padding: 1.5rem 1rem !important;
    margin: auto !important;
  }
  .modal-title {
    font-size: 1.22rem !important;
    padding-right: 3.25rem !important;
    line-height: 1.3 !important;
  }
  .modal-close-btn {
    top: 0.85rem !important;
    right: 0.85rem !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 1.25rem !important;
    z-index: 25 !important;
    background-color: var(--surface-100) !important;
    border: 1px solid var(--surface-300) !important;
    color: var(--primary-950) !important;
  }
}

@media (max-width: 380px) {
  .spec-card {
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }
  .ca-photo-img {
    height: 290px !important;
  }
  .modal-title {
    font-size: 1.15rem !important;
    padding-right: 2.6rem !important;
  }
}
