:root {
  /* Color Palette */
  --bg-dark: #0a0f1e;
  --bg-darker: #060913;
  --bg-card: #111827;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-gold: #ddb049;
  --accent-gold-hover: #b89033;
  --border-color: #1f2937;
  --bg-navbar: rgba(10, 15, 30, 0.95);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition: all 0.3s ease;

  /* Responsive Spacing */
  --container-padding: 4rem;
}

@media (max-width: 1024px) {
  :root {
    --container-padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.5rem;
  }
}

[data-theme="light"] {
  --bg-dark: #f0f0f4;
  --bg-darker: #ffffff;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #334155;
  --border-color: #cbd5e1;
  --bg-navbar: rgba(244, 244, 245, 0.95);
}

/* Force hero section to stay dark in light mode */
[data-theme="light"] .hero {
  --bg-darker: #060913;
  --bg-card: #111827;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #1f2937;
}

/* Force navbar to stay dark in light mode */
[data-theme="light"] .navbar {
  --bg-navbar: rgba(10, 15, 30, 0.95);
  --border-color: #1f2937;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, .section-title, .hero-title {
  font-family: Georgia, serif;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2, .section-title { font-size: clamp(2rem, 5vw, 2.5rem); }

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

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-gold); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #060913;
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--text-main);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: var(--bg-darker);
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--bg-darker);
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}
.announcement-bar a {
  color: var(--accent-gold);
  font-weight: 500;
}
.announcement-bar a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-navbar);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: clamp(50px, 10vw, 90px);
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: left center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--accent-gold);
}

/* Hero Section */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0;
  background-color: var(--bg-darker);
  color: var(--text-main);
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 30px 30px;
  overflow: hidden;
  min-height: auto;
}

.hero-content {
  position: relative;
  z-index: 10;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero-content {
    text-align: left;
  }
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-info-card table {
  width: 100%;
  border-collapse: collapse;
}

.hero-info-card th, .hero-info-card td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.hero-info-card th {
  color: var(--text-muted);
  font-weight: 500;
}

.lighter-theme-card {
  background-color: #f8f9fa !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
  color: #0f172a !important;
}

.coverage-list {
  display: flex;
  flex-direction: column;
}

.coverage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.coverage-row:last-child {
  border-bottom: none;
}

.coverage-row .country {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  width: 40%;
}

.coverage-row .regulator {
  font-size: 0.875rem;
  color: #64748b;
  width: 40%;
  text-align: left;
}

.coverage-row .lead-time {
  background-color: #fef3c7;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-title {
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Stats Bar */
.stats-bar {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.1);
}

/* Regulators Logo Strip */
.regulators-strip {
  padding: 3rem 0;
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.marquee-container {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-container:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.regulators-logos {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  opacity: 0.6;
}
.regulators-logos span {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Footer */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-dark);
  color: var(--text-main);
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Map Container */
#map {
  width: 100%;
  height: clamp(350px, 60vh, 650px);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  z-index: 1; /* Keep below sticky navbar */
}

/* Leaflet Customizations for Dark Theme */
.leaflet-container {
  background-color: var(--bg-dark) !important;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}
.leaflet-popup-content {
  margin: 14px 19px !important;
}

.glowing-marker {
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold), 0 0 20px var(--accent-gold);
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family: var(--font-sans);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Badges / Tags */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(245, 197, 24, 0.1);
  color: var(--accent-gold);
}

/* EEAT & Authority Components */
.executive-summary {
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 3rem;
}

.executive-summary h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--accent-gold);
}

.author-box {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar {
    width: 64px;
    height: 64px;
    background-color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.trust-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-note i {
    color: var(--accent-gold);
}

.methodology-step {
    padding: 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
}

.methodology-step:hover {
    border-color: var(--accent-gold);
}

.step-count {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--accent-gold);
    color: var(--bg-darker);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.specialization-badge {
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.specialization-badge i {
    color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-info-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2.5rem;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 1050;
    border-bottom: none;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: Georgia, serif;
  }
  .nav-links .btn { 
    display: inline-block; 
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
  }
  .hero-title { 
    font-size: 2.5rem; 
    line-height: 1.1;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  .hero-buttons { 
    flex-direction: column; 
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  .hero-grid {
    gap: 2rem;
  }
  .hero-info-card {
    padding: 1.25rem;
  }
  .footer-grid { 
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .grid-3 { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  
    .card {
        padding: 1.5rem;
    }
}

/* Process Section */
.process-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .process-section {
    grid-template-columns: 1fr 1fr;
  }
}

.process-circle-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.process-circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
}

.process-ring {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  border: 2px dashed var(--border-color);
  border-radius: 50%;
  z-index: 1;
}

.process-node { width: 120px !important; height: 120px !important; 
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 5;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.process-node i {
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.process-card-icon {
  background: var(--bg-dark);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.process-card-content h3,
.process-card-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.process-card-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.step-num {
  color: var(--accent-gold);
  font-family: serif;
  font-style: italic;
  font-weight: 700;
}

/* Animations added in Phase 3 */
@keyframes spin {
  100% { transform: rotate(360deg); }
}

.process-ring {
  animation: spin 30s linear infinite;
}

@media (max-width: 768px) {
  .process-ring {
    animation-duration: 60s;
  }
}

.process-node:hover {
  box-shadow: 0 8px 25px rgba(221, 176, 73, 0.3);
  transform: translate(-50%, -50%) scale(1.1);
}

.process-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 25px rgba(245, 197, 24, 0.1);
}

[data-theme="light"] .card, [data-theme="light"] .process-card, [data-theme="light"] .hero-info-card {
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
[data-theme="light"] .process-circle-center {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* --- UAE Page Styles --- */
.hero-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-gold);
  border-radius: 2rem;
  color: var(--accent-gold);
  font-size: 0.875rem;
  font-weight: 600;
  background-color: rgba(221, 176, 73, 0.05);
}

.rounded-img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.shadow-lg {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .shadow-lg {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }

@media (max-width: 1200px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-6 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }
}

.icon-gold {
  color: var(--accent-gold);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(221, 176, 73, 0.15);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 992px) {
  .overview-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.overview-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.icon-circle {
  width: 60px;
  height: 60px;
  background-color: rgba(221, 176, 73, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.service-card:hover .icon-circle {
  background-color: var(--accent-gold);
  color: var(--bg-darker);
}

.framework-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.framework-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease;
}
.framework-block:hover {
  border-color: var(--accent-gold);
  transform: translateX(10px);
}
.step-badge {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color: var(--accent-gold);
  color: var(--bg-darker);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: Georgia, serif;
}

.req-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.req-block {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}
.req-block:hover {
  background-color: rgba(255, 255, 255, 0.03);
}
[data-theme="light"] .req-block:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
.bullet-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
.bullet-list li {
  margin-bottom: 0.5rem;
}

.customs-box {
  background-color: rgba(221, 176, 73, 0.9);
  border-radius: 0.5rem;
  padding: 3rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(221, 176, 73, 0.2);
}
.customs-icon {
  font-size: 4rem;
  color: #4a3600;
}
@media (max-width: 768px) {
  .customs-box { flex-direction: column; text-align: center; }
}

.scope-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.scope-item {
  flex: 0 1 140px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}
.scope-item i {
  font-size: 2rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.scope-item:hover {
  transform: scale(1.05);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.scope-item:hover i {
  color: var(--accent-gold);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.accordion-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}
.accordion-header:hover {
  color: var(--accent-gold);
}
.accordion-header i {
  transition: transform 0.3s ease;
}
.accordion-header.active i {
  transform: rotate(180deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: var(--bg-darker);
}
.accordion-content p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
}

.final-cta-section {
  background: linear-gradient(135deg, var(--bg-darker) 0%, #0c1a2e 100%);
  border-top: 2px solid var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  position: relative;
  overflow: hidden;
}
.final-cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(221,176,73,0.05) 0%, transparent 50%);
  animation: pulse-glow 8s infinite alternate;
  pointer-events: none;
}
@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 1; }
}
.cta-subtitle {
  color: #cbd5e1;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}
.btn-outline-light {
  border: 1px solid #f8fafc;
  color: #f8fafc;
  background: transparent;
}
.btn-outline-light:hover {
  background: #f8fafc;
  color: var(--bg-darker);
}

/* --- UAE Page Restructure Styles --- */

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.breadcrumbs span {
  margin: 0 0.5rem;
}

.hero-badge-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  text-align: left;
  line-height: 1.3;
}
.hero-badge-pill i {
  background-color: rgba(221, 176, 73, 0.1);
  color: var(--accent-gold);
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.25rem;
}
.hero-badge-pill span.small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}
.hero-badges-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.overview-eyebrow {
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.service-card-left {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}
.service-card-left:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(221, 176, 73, 0.1);
}
.service-card-left .icon {
  background-color: var(--bg-dark);
  color: var(--text-main);
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
}

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 992px) {
  .layout-2col { grid-template-columns: 1fr; gap: 3rem; }
}

.framework-badge-square {
  background-color: var(--text-main);
  color: var(--bg-card);
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.req-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .req-grid-2col { grid-template-columns: 1fr; }
}

.req-card-mini {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.req-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}
.req-card-header i {
  color: var(--accent-gold);
  background-color: rgba(221, 176, 73, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.1rem;
}

.faq-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 992px) {
  .faq-grid-2col { grid-template-columns: 1fr; }
}

.faq-icon-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.faq-icon-header i.icon-left {
  color: var(--accent-gold);
  font-size: 1.25rem;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.cta-row-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.cta-row-icon {
  background-color: rgba(221, 176, 73, 0.2);
  color: var(--accent-gold);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.cta-row-buttons {
  display: flex;
  gap: 1rem;
}
@media (max-width: 992px) {
  .cta-row { flex-direction: column; text-align: center; gap: 2rem; }
  .cta-row-left { flex-direction: column; }
  .cta-row-buttons { justify-content: center; }
}
.process-node:hover {
  box-shadow: 0 8px 20px rgba(245, 197, 24, 0.2);
}

.process-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 25px rgba(245, 197, 24, 0.1);
}

/* Global Animations */
.animate-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible, .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.float-anim {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* --- Countries Page Styles --- */
.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
}

.filter-select {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  cursor: pointer;
}
.search-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1200px) {
  .country-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .country-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .country-grid { grid-template-columns: 1fr; }
}

.country-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.country-card:hover, .country-card.active-hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 25px rgba(221, 176, 73, 0.15);
}

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

.card-flag {
  font-size: 2rem;
  line-height: 1;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.card-detail {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.card-detail-label {
  color: var(--text-muted);
}

.badge-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.75rem;
}

.badge-orange {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.75rem;
}

.glowing-marker {
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold), 0 0 20px var(--accent-gold);
  transition: all 0.3s ease;
}

.glowing-marker.active-marker {
  background-color: #fff;
  box-shadow: 0 0 15px #fff, 0 0 30px var(--accent-gold);
  transform: scale(1.5) !important;
  z-index: 1000 !important;
}

/* Tooltip overriding for map */
.leaflet-tooltip {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}
.leaflet-tooltip-top:before {
  border-top-color: var(--border-color) !important;
}

[data-theme="light"] .badge-green {
  color: #047857;
  background-color: rgba(4, 120, 87, 0.1);
}

[data-theme="light"] .badge-orange {
  color: #b45309;
  background-color: rgba(180, 83, 9, 0.1);
}

.hero-image {
  position: relative;
  display: inline-block;
}

.hero-authority-logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 80px;
  height: auto;
  z-index: 10;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

/* === Custom Updates === */

/* Process Section Tweaks */
.process-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
}
@media (max-width: 768px) {
    .process-list {
        grid-template-columns: 1fr !important;
    }
}
.process-card {
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: flex-start !important;
}
.process-card-icon {
    background-color: #0B1F3B !important;
    color: #ffffff !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}
.process-card-icon i {
    color: #ffffff !important;
}
.process-node {
    background-color: var(--bg-card);
    border: 2px solid var(--accent-gold);
}
.process-node i {
    color: var(--accent-gold) !important;
}
.process-circle-center {
    background-color: #0B1F3B !important;
    color: #ffffff !important;
}

/* Light Theme Icons Contrasting */
[data-theme="light"] .section .text-accent.ph, 
[data-theme="light"] .section .text-accent.ph-fill, 
[data-theme="light"] .section .text-accent.ph-bold {
    color: #0B1F3B !important;
}

[data-theme="light"] .process-node i {
    color: var(--accent-gold) !important;
}
[data-theme="light"] .process-node {
    color: #0B1F3B !important;
}

/* Hero Info Card Golden Glow (Dark Theme) */
[data-theme="dark"] .hero-info-card {
    box-shadow: 0 0 30px rgba(223, 177, 74, 0.15), 0 0 80px rgba(223, 177, 74, 0.1);
    background-color: var(--bg-darker);
    border: 1px solid rgba(223, 177, 74, 0.3);
}

/* Override Hero Info Card to permanent light theme */
.hero-info-card {
    background-color: #f8fafc !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}
.hero-info-card h2, .hero-info-card h3, .hero-info-card p {
    color: #0f172a !important;
}
.hero-info-card a {
    color: #0f172a !important;
}
.coverage-row {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0.75rem 0 !important;
}
.coverage-row:last-child {
    border-bottom: none !important;
}
.coverage-row .country {
    color: #0f172a !important;
    font-weight: 500 !important;
}
.coverage-row .regulator {
    color: #64748b !important;
}
.coverage-row .lead-time {
    background-color: #fef3c7 !important;
    color: #0f172a !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}
/* Overhaul About Page Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
[data-theme="dark"] .hover-lift:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.about-hero {
    background-color: #0B1F3B;
    color: #ffffff;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.stats-bar {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.about-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.about-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) {
    .about-grid-4, .about-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .about-grid-4, .about-grid-5 {
        grid-template-columns: 1fr;
    }
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}
.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}
.process-step-icon {
    width: 50px;
    height: 50px;
    background-color: #0B1F3B;
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
    border: 4px solid var(--bg-main);
}
/* ================================================
   MOBILE RESPONSIVE OVERRIDES
   ================================================ */

/* Generic 2-col inline grids → stack on mobile */
@media (max-width: 768px) {
    /* Force all inline grid containers to single column */
    .container > [style*="grid-template-columns: 1fr 1fr"],
    .container > [style*="grid-template-columns: 1.2fr 0.8fr"],
    .container[style*="grid-template-columns: 1fr 1fr"],
    .container[style*="grid-template-columns: 1.2fr 0.8fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* 4-col and 5-col grids → 2 cols on tablet, 1 on phone */
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns: repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* 3-col grids → 1 col */
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    .about-grid-4, .about-grid-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hero section */
    .hero-title { font-size: 1.75rem !important; }
    .hero-subtitle { font-size: 0.95rem !important; }

    /* Section spacing */
    .section { padding: 3rem 0 !important; }

    /* Section titles */
    .section-title { font-size: 1.5rem !important; }

    /* Container padding */
    .container { padding: 0 1.25rem !important; }

    /* Hero content grid (index.html hero has 2-col layout) */
    .hero .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Stats bar */
    .stats-grid,
    [style*="grid-template-columns: repeat(4, 1fr)"][style*="text-align: center"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Cards */
    .card { padding: 1.5rem !important; }

    /* Hero badges/pills row */
    [style*="display: flex"][style*="gap: 2.5rem"] {
        gap: 1.25rem !important;
    }

    /* Form 2-col grids */
    [style*="grid-template-columns: 1fr 1fr"][style*="gap: 1rem"] {
        grid-template-columns: 1fr !important;
    }

    /* Process circle container */
    .process-circle-container {
        max-width: 300px !important;
    }

    /* Navbar mobile menu fix */
    .navbar .container {
        flex-wrap: wrap;
    }
    .nav-links {
        text-align: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Coverage card in hero */
    .hero-info-card {
        margin-top: 2rem;
    }

    /* CTA section 2-col → stack */
    .section > .container > [style*="grid-template-columns: 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    /* Marquee sizing */
    .marquee-container {
        padding: 0.75rem 0 !important;
    }

    /* Process timeline */
    .process-timeline::before {
        left: 20px !important;
    }

    /* Services detail sections (services.html) */
    .section > .container > [style*="border-bottom"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Hide "grid-column: 2" centering on mobile */
    [style*="grid-column: 2"] {
        grid-column: auto !important;
    }
}

@media (max-width: 480px) {
    /* 4-col and 5-col → single column on small phones */
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns: repeat(5"],
    .about-grid-4, .about-grid-5 {
        grid-template-columns: 1fr !important;
    }

    .hero-title { font-size: 1.5rem !important; }

    /* Stat badges row → wrap */
    [style*="display: flex"][style*="gap: 2.5rem"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    /* Buttons stack */
    [style*="display: flex"][style*="gap: 1rem"][style*="justify-content: center"] {
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Section titles smaller */
    .section-title { font-size: 1.35rem !important; }

    /* Font size overrides for large intro text */
    [style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }
    [style*="font-size: 2.25rem"] {
        font-size: 1.4rem !important;
    }
    [style*="font-size: 3.5rem"] {
        font-size: 2rem !important;
    }
    [style*="font-size: 3rem"] {
        font-size: 1.75rem !important;
    }
}

/* Hero Authority Logo Overlays (Stamps) */
.hero-image {
  position: relative;
}

.hero-authority-logo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 5;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.rounded-img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
}

/* Fix for mobile authority logo */
@media (max-width: 768px) {
  .hero-authority-logo {
    width: 80px;
    bottom: 15px;
    right: 15px;
    padding: 8px;
  }
}

/* --- GEO & AI-Snippet Optimization Styles --- */

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--bg-darker);
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.snippet-block {
    background-color: var(--bg-darker);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
}

.snippet-block::before {
    content: 'QUICK ANSWER';
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: var(--accent-gold);
    color: var(--bg-darker);
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.snippet-block h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-family: Georgia, serif;
}

.snippet-block p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.at-a-glance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.glance-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.glance-card i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.glance-card h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.glance-card p {
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.conversational-query {
    margin-bottom: 2.5rem;
}

.conversational-query h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.conversational-query h3::before {
    content: '?';
    width: 32px;
    height: 32px;
    background-color: rgba(221, 176, 73, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .at-a-glance-grid {
        grid-template-columns: 1fr;
    }
}
