@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --secondary: #0ea5e9;
  --dark: #0f172a;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  --text-muted: #64748b;
  --danger-accent: #ef4444;
}

body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Header & Ultra-Responsive CSS Logo */
.header {
  padding: 1.25rem 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}
.css-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  white-space: nowrap; /* Prevents text fragmentation */
}
.logo-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  position: relative;
  flex-shrink: 0; /* Keeps icon from squishing */
}
.logo-icon::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  top: 6px;
  right: 6px;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.logo-subtitle {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.advertorial-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

/* Breadcrumbs */
#breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}
#breadcrumbs li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
#breadcrumbs li a:hover {
  color: var(--primary);
}
#breadcrumbs li.child::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border-color);
}
#breadcrumbs li h2 {
  font-size: inherit;
  margin: 0;
  display: inline;
}

/* Typography & Main Content */
.main-heading {
  font-family: 'Lora', serif;
  font-weight: 600;
  color: var(--dark);
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.meta-info {
  font-size: 0.875rem;
  color: var(--text-muted);
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}
.warning-box {
  background: linear-gradient(90deg, #fef2f2 0%, #fff5f5 100%);
  border-left: 4px solid var(--danger-accent);
  padding: 1.25rem;
  border-radius: 4px;
  color: #991b1b;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.05);
}
p {
  margin-bottom: 1.25rem;
}
p strong {
  color: var(--dark);
}

/* Vibrant Province Selector Module */
.province-container {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.province-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
  text-align: center;
}
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
a.statebutton {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff !important;
  border: none;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.08);
}
a.statebutton:hover, a.statebutton:focus {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

a.statebutton[href*="click"]:nth-child(2n) {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}
a.statebutton[href*="click"]:nth-child(2n):hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Lists and Media */
.styled-list {
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}
.styled-list li {
  margin-bottom: 0.65rem;
  font-weight: 500;
  color: var(--dark);
}
.img-rounded {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Comparison Bill Feature */
.billtable h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Call to Action Module */
.trigger {
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #f0fdf4 0%, #f0fdf4 100%);
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}
.trigger h4 {
  color: #14532d;
  font-weight: 700;
  margin-top: 0;
  font-size: 1.4rem;
}
.trigger a {
  color: var(--primary-dark);
  text-decoration: underline;
  font-weight: 700;
}

/* Map Section */
.map-link-wrapper {
  transition: transform 0.25s ease;
  display: inline-block;
}
.map-link-wrapper:hover {
  transform: scale(1.02);
}

/* Footer styling */
.footer {
  margin-top: 6rem;
  padding: 4rem 0;
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer p {
  margin-bottom: 0.75rem;
}
.links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsiveness tweaks & Screen Fixes */
@media (max-width: 768px) {
  .main-heading {
    font-size: 1.95rem;
  }
  .button-grid {
    grid-template-columns: 1fr;
  }
  .trigger {
    padding: 1.5rem;
  }
  .province-container {
    padding: 1.25rem;
  }
}

/* Specific Logo and Layout fix for small mobile viewports */
@media (max-width: 420px) {
  .header .row {
    flex-wrap: nowrap; /* Forces layout to stay side-by-side */
  }
  .header .col-7 {
    width: auto;
    flex-grow: 1;
  }
  .header .col-5 {
    width: auto;
    flex-shrink: 0;
  }
  .logo-title {
    font-size: 0.95rem; /* Downscales dynamically to prevent line breaks */
  }
  .logo-subtitle {
    font-size: 0.65rem;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .logo-icon::after {
    width: 6px;
    height: 6px;
    top: 4px;
    right: 4px;
  }
  .advertorial-tag {
    font-size: 0.65rem;
  }
}
