/* ==========================================================================
   MEPCO Bill Portal - Master Stylesheet
   Theme: Professional Navy & Royal Blue with Gold Accents
   Speed Optimized: Zero Framework Dependencies, Pure Modern CSS
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --primary-dark: #0a192f;
  --primary-navy: #0f2b48;
  --primary-blue: #1e40af;
  --primary-light: #2563eb;
  --accent-cyan: #06b6d4;
  
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-gold-border: #f59e0b;
  
  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-danger: #ef4444;
  
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-blue: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-blue);
}

ul, ol {
  list-style-position: inside;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Notification / Notice Bar */
.top-notice-bar {
  background: linear-gradient(90deg, #0f172a, #1e3a8a);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-notice-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.notice-badge {
  background: var(--accent-gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.725rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notice-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-links {
  display: flex;
  gap: 1.25rem;
}

.notice-links a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.8rem;
}

.notice-links a:hover {
  color: #ffffff;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text-box {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-title span {
  color: var(--primary-light);
}

.logo-subtitle {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-medium);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-light);
  border-radius: 3px 3px 0 0;
}

.header-cta-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
  color: var(--text-white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  color: #fff;
}

/* Mobile Header Hamburger Toggle */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary-dark);
}

.mobile-toggle-btn svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* Mobile Slide Nav Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--bg-card);
  z-index: 2001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}

.mobile-nav-overlay.active .mobile-nav-drawer {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.drawer-close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  background: var(--bg-subtle);
  color: var(--primary-light);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 60%, #1e3a8a 100%);
  color: var(--text-white);
  padding: 3.5rem 0 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text-box h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-text-box h1 .highlight-gold {
  color: #fbbf24;
  position: relative;
  display: inline-block;
}

.hero-text-box p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-feature-item svg {
  color: #10b981;
  width: 18px;
  height: 18px;
}

/* Bill Checker Card */
.bill-checker-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.checker-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.checker-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.checker-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.checker-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  position: relative;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.input-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.ref-guide-btn {
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.ref-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ref-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.ref-input {
  width: 100%;
  height: 54px;
  padding: 0.75rem 1rem 0.75rem 3rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  color: var(--primary-dark);
  background: #f8fafc;
}

.ref-input:focus {
  border-color: var(--primary-light);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.digit-counter {
  position: absolute;
  right: 1rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.digit-counter.valid {
  color: var(--status-success);
  background: #d1fae5;
}

.btn-submit-bill {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-blue);
  transition: var(--transition);
}

.btn-submit-bill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.4);
}

.recent-searches-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.recent-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recent-chip {
  background: var(--bg-subtle);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.recent-chip:hover {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold-border);
  color: var(--accent-gold);
}

/* Quick Tools & Widget Highlights Grid */
.widgets-section {
  padding: 3rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.widget-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.widget-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.widget-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bg-blue-light { background: #dbeafe; color: var(--primary-blue); }
.bg-gold-light { background: #fef3c7; color: var(--accent-gold); }
.bg-green-light { background: #d1fae5; color: var(--status-success); }

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

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

/* Live Peak Hours Card */
.peak-hours-widget {
  border-left: 5px solid var(--accent-gold);
}

.peak-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.status-off-peak {
  background: #d1fae5;
  color: #065f46;
}

.status-peak {
  background: #fee2e2;
  color: #991b1b;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.peak-times-list {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.peak-time-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--border-color);
}

/* Calculator Interactive Section */
.calculator-section {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  color: var(--primary-light);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--bg-main);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.calc-inputs-col h3, .calc-results-col h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  background: #ffffff;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.calc-breakdown-table {
  width: 100%;
  border-collapse: collapse;
}

.calc-breakdown-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

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

.total-row td {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: var(--primary-blue) !important;
  border-bottom: none !important;
  padding-top: 1rem !important;
}

/* Custom Step Cards & Timeline Component */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-gold);
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.step-num-badge {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.step-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

.step-card-desc {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.55;
}

/* Content Image Box Styling */
.content-image-box {
  margin: 2.25rem 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.responsive-content-img {
  width: 100%;
  max-width: 780px;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto;
  border: 1px solid #cbd5e1;
  transition: var(--transition);
}

.responsive-content-img:hover {
  box-shadow: var(--shadow-lg);
}

.img-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Reference Number Finder Modal / Section */
.ref-finder-section {
  padding: 4rem 0;
}

.ref-finder-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.bill-mockup-graphic {
  background: #f8fafc;
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.mockup-header {
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.mockup-ref-highlight {
  background: #fef08a;
  border: 2px solid #eab308;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-weight: 800;
  font-size: 1.1rem;
  color: #854d0e;
  text-align: center;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

/* Content SEO Article Area (2500+ Words Styling) */
.seo-article-section {
  padding: 4rem 0;
  background: var(--bg-main);
}

.article-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.article-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-subtle);
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 1.75rem 0 0.75rem 0;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.info-callout-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary-light);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
}

.info-callout-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: #1e3a8a;
}

/* FAQ Accordion Styling */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  background: #ffffff;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  background: var(--bg-subtle);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-medium);
  display: none;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.25s ease;
}

/* Footer Section */
.site-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 4rem 0 1.5rem 0;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.825rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* AdSense Slot Placeholder */
.adsense-unit {
  background: var(--bg-subtle);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 2rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .calc-grid, .ref-finder-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Notice Bar Fix */
  .notice-links { 
    display: none !important; 
  }
  .top-notice-content {
    justify-content: center;
    text-align: center;
  }
  .notice-text {
    white-space: normal;
    text-align: center;
    font-size: 0.775rem;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .notice-badge {
    font-size: 0.675rem;
  }

  /* Header & Navigation */
  .desktop-nav, .header-cta-btn { display: none !important; }
  .mobile-toggle-btn { display: block !important; }
  
  .logo-title {
    font-size: 1.15rem;
  }
  .logo-subtitle {
    font-size: 0.65rem;
  }
  .logo-img {
    width: 38px;
    height: 38px;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 2rem 0 3rem 0;
  }
  .hero-text-box {
    text-align: center;
  }
  .hero-text-box h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }
  .hero-text-box p {
    font-size: 0.975rem;
  }
  .hero-features-list {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .hero-feature-item {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
  }
  
  /* Bill Checker Card */
  .bill-checker-card {
    padding: 1.25rem 1rem;
  }
  .checker-title {
    font-size: 1.2rem;
  }
  .ref-input {
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem 0.75rem 2.5rem;
    letter-spacing: 0.5px;
  }
  .ref-input-icon {
    left: 0.65rem;
    width: 18px;
    height: 18px;
  }
  .digit-counter {
    font-size: 0.7rem;
    right: 0.5rem;
    padding: 0.15rem 0.35rem;
  }

  /* Calculator & Tables */
  .calc-breakdown-table td {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
  .total-row td {
    font-size: 1.05rem !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .article-container {
    padding: 1.5rem 1rem;
  }
  .article-content h1 {
    font-size: 1.6rem;
  }
  .article-content h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .ref-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .ref-input {
    padding-right: 1rem;
  }
  .digit-counter {
    position: static;
    margin-top: 0.4rem;
    align-self: flex-end;
    display: inline-block;
  }
}

