/* ==========================================================================
   STRICT BRAND OVERRIDES & STRUCTURE
   Palette: Navy (Primary), Black/White (Base), Gold & Red (Accents)
   ========================================================================== */

:root {
  /* --- CORE PALETTE --- */
  --wg-navy:    #0a1f44;  /* Deep German Navy - Headings */
  --wg-navy-light: #162d5a; /* Lighter Navy for hover */
  --wg-black:   #1a1a1a;  /* Body Text */
  --wg-grey:    #444444;  /* Subtitles / Secondary text */
  --wg-white:   #ffffff;  /* Backgrounds */
  --wg-light:   #f4f7f9;  /* Off-white background alt */
  
  /* --- ACCENTS --- */
  --wg-gold:    #ffcc00;  /* German Flag Yellow - Graphics/Icons */
  --wg-gold-dark: #e6b800; /* Darker Gold for Text Readability */
  --wg-red:     #dd0000;  /* German Flag Red - CTAs ONLY */
  --wg-red-dark: #b30000; /* Darker Red for hover */

  /* --- REASSIGN TEMPLATE VARIABLES --- */
  --heading-color: var(--wg-navy);
  --default-color: var(--wg-black);
  --accent-color:  var(--wg-gold);
  --nav-color:     var(--wg-navy);
  --nav-hover-color: var(--wg-red);
}

/* ==========================================================================
   GLOBAL RESETS & IMAGE HANDLING
   ========================================================================== */

body {
  font-family: "Inter", sans-serif;
  color: var(--wg-black);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, .sitename {
  font-family: "Nunito", sans-serif;
  color: var(--wg-navy);
  font-weight: 800;
}

/* IMAGE FIXES: No more stretching or bad corners */
img {
  max-width: 100%;
  height: auto;
}

.img-fluid, .image-wrapper img, .card-img-top {
  border-radius: 16px !important;
  object-fit: cover !important; /* Prevents stretching */
}

/* CONSISTENT SECTION HERO IMAGES */
/* Forces images in Macro View (Index) and Economy (Starter) to match sizes */
.section-hero-img {
  width: 100%;
  height: 400px !important; /* Fixed height for symmetry */
  object-fit: cover !important;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.image-wrapper {
  border-radius: 16px;
}

/* ==========================================================================
   BOOTSTRAP UTILITY OVERRIDES (CRITICAL)
   ========================================================================== */

/* Text Colors */
.text-primary { color: var(--wg-navy) !important; }
.text-secondary { color: var(--wg-grey) !important; }
.text-warning { color: var(--wg-gold-dark) !important; } 
.text-danger { color: var(--wg-red) !important; }
.text-dark { color: var(--wg-black) !important; }
.text-muted { color: #6c757d !important; }

/* Backgrounds */
.bg-primary { background-color: var(--wg-navy) !important; }
.bg-warning { background-color: var(--wg-gold) !important; }
.bg-danger { background-color: var(--wg-red) !important; }
.light-background { background-color: var(--wg-light) !important; }

/* Remove unwanted white borders */
.border-light, .border-white {
  border-color: transparent !important;
}

/* Links */
a { color: var(--wg-navy); transition: 0.3s; text-decoration: none; }
a:hover { color: var(--wg-red); }

/* KICKER: The small text above headlines */
.kicker {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--wg-gold-dark);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary, .btn-getstarted {
  background-color: var(--wg-red) !important;
  border-color: var(--wg-red) !important;
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  border-radius: 8px; /* Softer radius */
  box-shadow: 0 4px 6px rgba(221, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-getstarted:hover {
  background-color: var(--wg-red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(221, 0, 0, 0.3);
}

.btn-outline-dark, .btn-outline-primary {
  color: var(--wg-navy) !important;
  border-color: var(--wg-navy) !important;
  background: transparent;
  font-weight: 600;
  border-width: 2px;
  border-radius: 8px;
}

.btn-outline-dark:hover, .btn-outline-primary:hover {
  background-color: var(--wg-navy) !important;
  color: #ffffff !important;
}

/* Hero Light Button override */
.hero .btn-outline-light {
  border-color: #fff !important;
  color: #fff !important;
}
.hero .btn-outline-light:hover {
  background-color: #fff !important;
  color: var(--wg-navy) !important;
}

/* ==========================================================================
   GLOSS / GLASS CARD EFFECT (SHARED)
   ========================================================================== */

.glass-card, 
.study-card, 
.job-card, 
.feature-box, 
.compass-card,
.hub-card,
.pricing-card {
  background: rgba(255, 255, 255, 0.95); /* Default high opacity */
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6); 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); 
  border-radius: 16px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--wg-black); 
}

.glass-card:hover, 
.study-card:hover, 
.job-card:hover, 
.feature-box:hover, 
.compass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  background: #ffffff !important;
}

/* ==========================================================================
   HERO SECTION (CRITICAL FIXES)
   ========================================================================== */

.hero {
  /* Dark Navy Overlay - consistent across pages */
  background: linear-gradient(rgba(10, 31, 68, 0.6), rgba(10, 31, 68, 0.5)),
              url('../bg.png') center center / cover no-repeat !important;
  color: #ffffff !important;
}

/* Starter page hero background override */
body.starter-page-page #hero.hero {
  background: linear-gradient(rgba(10, 31, 68, 0.6), rgba(10, 31, 68, 0.5)),
              url('../macro-bg.png') center center / cover no-repeat !important;
}

/* Section-specific hero backgrounds */
body.study-page #hero.hero{
  background: linear-gradient(rgba(10, 31, 68, 0.6), rgba(10, 31, 68, 0.5)),
              url('../study-bg.png') center center / cover no-repeat !important;
}

body.work-page #hero.hero{
  background: linear-gradient(rgba(10, 31, 68, 0.6), rgba(10, 31, 68, 0.5)),
              url('../work-bg.png') center center / cover no-repeat !important;
}

body.culture-page #hero.hero{
  background: linear-gradient(rgba(10, 31, 68, 0.6), rgba(10, 31, 68, 0.5)),
              url('../culture-bg.png') center center / cover no-repeat !important;
}

body.settling-page #hero.hero{
  background: linear-gradient(rgba(10, 31, 68, 0.6), rgba(10, 31, 68, 0.5)),
              url('../settling-bg.png') center center / cover no-repeat !important;
}

body.future-page #hero.hero{
  background: linear-gradient(rgba(10, 31, 68, 0.6), rgba(10, 31, 68, 0.5)),
              url('../future-bg.png') center center / cover no-repeat !important;
}

/* Force text visibility in Hero regardless of bootstrap classes */
.hero h1, .hero h2, .hero p, .hero .lead {
  color: #ffffff !important;
}

/* Improve hero text contrast without heavy tint */
.hero h1, .hero h2 {
  text-shadow: 0 6px 18px rgba(10,31,68,0.35);
}

.hero p, .hero .lead {
  text-shadow: 0 4px 12px rgba(10,31,68,0.28);
}

/* Home hero: dark glass insight cards */
body.index-page #hero .hero-insight-cards .glass-card{
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

body.index-page #hero .hero-insight-icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 204, 0, 0.22);
  color: var(--wg-gold);
  margin-bottom: 8px;
}

body.index-page #hero .lead{
  font-weight: 700;
}

@media (max-width: 768px){
  body.index-page #hero .hero-content{
    padding-bottom: 8px;
  }

  body.index-page #hero .lead{
    margin-bottom: 16px !important;
    line-height: 1.4;
  }

  body.index-page #hero .hero-insight-cards{
    margin-bottom: 16px !important;
  }

  body.index-page #hero .hero-insight-cards > [class*="col-"]{
    flex: 0 0 50%;
    max-width: 50%;
  }

  body.index-page #hero .hero-insight-cards .glass-card{
    text-align: left;
    padding: 10px !important;
  }

  body.index-page #hero .hero-insight-cards p{
    font-size: 0.82rem;
    line-height: 1.3;
  }

  body.index-page #hero .hero-insight-icon{
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
}

/* Specific fix for Index Page Hero Text which has 'text-dark' class */
.hero .text-dark {
  color: #ffffff !important;
}

/* Starter page hero subtitle: dark text for readability */
body.starter-page-page #hero .lead{
  color: #ffffff !important;
  font-weight: 700;
}

.hero .accent-text {
  color: var(--wg-gold) !important; /* Bright gold on dark bg */
}

.hero .kicker {
  color: var(--wg-gold) !important; /* Bright gold for kicker in hero */
}
#hero.hero-fade{
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* content always above overlays */
#hero.hero-fade .container{
  position: relative;
  z-index: 2;
}

/* subtle dark tint (keeps text readable) */

/* bottom fade to white ONLY */
#hero.hero-fade::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 220px;                 /* tune this */
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 35%,
    rgba(255,255,255,0.70) 75%,
    rgba(255,255,255,1) 100%
  );
  z-index:1;
  pointer-events:none;
}

/* --- COMPASS GRID (Index Page) --- */
.compass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.compass-card {
  /* Glass effect for Hero cards */
  background: rgba(255, 255, 255, 0.9) !important; 
  padding: 1.5rem;
  text-align: left;
  position: relative;
  overflow: visible; 
  height: 100%; 
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.compass-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  font-weight: 700;
  color: var(--wg-navy) !important;
}

.compass-card p {
  font-size: 0.9rem;
  color: var(--wg-grey) !important;
  margin-bottom: 0;
}

.compass-card i {
  color: var(--wg-navy);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.compass-card .kicker {
  color: var(--wg-gold-dark) !important; /* Darker gold inside white card */
  font-size: 0.75rem;
}

/* ==========================================================================
   INDEX PAGE SPECIFIC CARDS
   ========================================================================== */

/* --- STUDY CARDS --- */
.study-card {
  padding: 2.5rem;
  height: 100%;
}

.study-card.red {
  border-left: 4px solid var(--wg-red) !important;
}

.study-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.study-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.study-list li i {
  margin-top: 4px;
}

/* --- JOB CARDS --- */
.job-card {
  padding: 2rem;
  height: 100%;
}

/* Ensure text inside job cards is readable on dark backgrounds */
.section.bg-primary .job-card h3,
.section.bg-primary .job-card li,
.section.bg-primary .job-card .text-secondary {
  color: var(--wg-black) !important;
}

/* --- HOUSING CARDS (DARK MODE FIX) --- */
/* These appear on the "Life" section which has a dark image background */
.housing-card {
  background: rgba(0, 0, 0, 0.4) !important; /* Dark semi-transparent */
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15) !important;
  height: 100%;
  color: #fff !important; /* Force white text */
  transition: transform 0.3s;
}

.housing-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: var(--wg-gold) !important;
}

.housing-card h4 {
  color: #fff !important;
  margin-top: 1rem;
  font-weight: 700;
}

.housing-card p, .housing-card .text-muted {
  color: rgba(255, 255, 255, 0.8) !important; /* Lighter white for text */
}

.housing-card .h-icon-box {
  width: 50px;
  height: 50px;
  background: var(--wg-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wg-navy);
  font-size: 1.25rem;
}

/* ==========================================================================
   STARTER PAGE SPECIFIC ELEMENTS
   ========================================================================== */

/* --- FEATURE BOXES & HUBS --- */
/* Ensure uniform height for card grids */
.feature-box, .hub-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: #ffffff !important;
}

.feature-box p, .hub-card p {
  flex-grow: 1; /* Pushes footer content down if needed */
}

/* Specific Feature Box Colors */
.feature-box.gold { border-top: 4px solid var(--wg-gold); }
.feature-box.navy { border-top: 4px solid var(--wg-navy); }
.feature-box.red  { border-top: 4px solid var(--wg-red); }

.feature-box i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* Icon Colors */
.feature-box.gold i { color: var(--wg-gold-dark); }
.feature-box.navy i { color: var(--wg-navy); }
.feature-box.red i  { color: var(--wg-red); }

/* --- FEATURE ICONS (Industry 4.0) --- */
/* Fix: Ensure icons inside colored circles are visible */
.feature-icon i {
  color: #ffffff !important;
}
/* Exception: Dark icon on Yellow background for contrast */
.feature-icon.bg-warning i {
  color: var(--wg-navy) !important;
}

/* --- FAQ STYLES --- */
.faq-toggle {
  transition: transform 0.3s ease;
}

.faq

/* === WG SECTION CONSISTENCY === */
/* Section title consistency */
.section-title .section-subtitle,
.section-title .lead,
.section-title p.lead {
  margin-top: .35rem;
  margin-bottom: 1.15rem;
}

/* ================================
   JUMP TO (TOC) REDESIGN
   ================================ */
.toc-container{
  justify-content: flex-start !important;
  align-items: center;
  padding: 18px 22px !important;
}

.toc-links{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px 24px !important;
  width: 100%;
  justify-content: flex-start !important;
}

.toc-link{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--wg-navy) !important;
  font-weight: 700;
  text-decoration: none;
}

.toc-link i{
  font-size: 20px;
  color: var(--wg-navy);
}

.toc-link:hover{
  color: var(--wg-red) !important;
}

.toc-link:hover i{
  color: var(--wg-red);
}

@media (max-width: 768px){
  .toc-links{
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (min-width: 992px){
  .toc-container{
    margin-top: -60px;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
  }
}

@media (min-width: 992px){
  body.unwritten-page .toc-container{
    margin-top: -90px;
  }
}

/* Home hero spacing: reduce extra space and avoid next section creeping up */
body.index-page #hero.hero{
  min-height: 88vh;
  padding-bottom: 70px;
}

@media (max-width: 768px){
  body.index-page #hero.hero{
    min-height: 78vh;
    padding-bottom: 32px;
  }
}

/* ================================
   MOBILE: FIRST SECTION ORDER FIX
   ================================ */
@media (max-width: 991px){
  body.starter-page-page #about .order-2.order-lg-1,
  body.starter-page-page #overview .order-2.order-lg-1,
  body.starter-page-page #system-logic .order-2.order-lg-1,
  body.starter-page-page #market .order-2.order-lg-1{
    order: 1 !important;
  }

  body.starter-page-page #about .order-1.order-lg-2,
  body.starter-page-page #overview .order-1.order-lg-2,
  body.starter-page-page #system-logic .order-1.order-lg-2,
  body.starter-page-page #market .order-1.order-lg-2{
    order: 2 !important;
  }
}

@media (max-width: 991px){
  .first-section-flow > [class*="col-"]{
    display: contents;
  }

  .first-section-flow .media-stack{
    display: contents;
  }

  .first-section-intro{
    order: 1;
  }

  .first-section-image{
    order: 2;
  }

  .first-section-features{
    order: 3;
  }

  .first-section-takeaway{
    order: 4;
  }

  .first-section-body{
    order: 5;
  }

  /* Keep side padding after display: contents */
  .first-section-flow{
    padding-left: 16px;
    padding-right: 16px;
  }

  .first-section-intro,
  .first-section-image,
  .first-section-features,
  .first-section-takeaway,
  .first-section-body{
    margin-left: 0;
    margin-right: 0;
  }

  .first-section-takeaway{
    margin-bottom: 16px;
  }
}

/* When subtitle is used outside .section-title (some sections use .lead with grid classes) */
.section-subtitle {
  margin-top: .35rem;
  margin-bottom: 1.15rem;
}

/* Prevent bootstrap grid utility on subtitle from shrinking/centering oddly inside left-aligned blocks */
.about .lead.col-lg-8.mx-auto,
.section .lead.col-lg-8.mx-auto {
  max-width: 100%;
}
.about .col-xl-5 .lead.col-lg-8.mx-auto,
.about .col-lg-5 .lead.col-lg-8.mx-auto,
.about .col-lg-6 .lead.col-lg-8.mx-auto,
.section .col-xl-5 .lead.col-lg-8.mx-auto,
.section .col-lg-5 .lead.col-lg-8.mx-auto,
.section .col-lg-6 .lead.col-lg-8.mx-auto {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

/* Dark background sections: make subtitles readable */
.bg-primary .section-title p.lead,
.bg-primary .section-title .section-subtitle,
.section.text-white .section-title p.lead,
.section.text-white .section-title .section-subtitle,
.section[style*="rgba(10, 31, 68"] .section-title p.lead,
.section[style*="rgba(10, 31, 68"] .section-title .section-subtitle {
  color: rgba(255,255,255,.78) !important;
}

/* Uniform spacing between subtitle and body copy */
.section-title + p,
.section-title p + p {
  margin-top: .6rem;
}

/* Study cards: consistent subtle border (no crass thick borders) */
.glass-card {
  border: 1px solid rgba(10, 31, 68, 0.10);
}
.glass-card.red {
  border: 1px solid rgba(220, 53, 69, 0.18);
}

/* Ensure BOTH study cards have the same border weight/shape */
#study .glass-card {
  border: 1px solid rgba(10, 31, 68, 0.10);
}
#study .glass-card.red {
  border: 1px solid rgba(220, 53, 69, 0.18);
}

/* Language fun chart: tighten layout and make it look intentional */
.lang-fun-chart { display: grid; gap: 14px; }
.lang-row { display: grid; gap: 8px; }
.lang-meta { display:flex; gap:10px; align-items:baseline; justify-content:space-between; font-weight:700; }
.lang-tag { font-weight:600; opacity:.75; font-size:.9rem; }
.lang-track {
  position: relative; height: 16px; border-radius: 999px;
  background: rgba(10,31,68,.08);
  overflow: hidden;
}
.lang-fill {
  height: 100%;
  width: var(--pct);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 204, 0, .95), rgba(10,31,68,.9));
  position: relative;
}
.lang-icon {
  position:absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 18px rgba(10,31,68,.12);
  color: var(--wg-navy, #0a1f44);
  font-size: 12px;
}
.lang-note { color: rgba(10,31,68,.75); font-size: .95rem; line-height: 1.35; }

/* Subtitles in centered section-title blocks: keep centered */
.section-title.text-center .lead,
.section-title.text-center .section-subtitle { text-align:center !important; margin-left:auto !important; margin-right:auto !important; max-width: 900px; }

/* Bigger header logo */
.header .logo-img{
  height: 85px;          /* increase this (e.g., 48–60px) */
  max-height: 85px;
  width: auto;
}

@media (max-width: 991px){
  .header .logo-img{
    height: 55px;
    max-height: 55px;
  }
}
.header{
  padding-top: 10px;
  padding-bottom: 10px;
}


/* === Subtitle visual parity (Index & Starter) === */
.lead.text-muted{
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--wg-grey) !important;
}

/* In left-aligned content columns, do not center subtitle blocks */
.about .col-lg-6 .lead.text-muted.col-lg-8.mx-auto,
.section .col-lg-6 .lead.text-muted.col-lg-8.mx-auto,
.about .col-xl-5 .lead.text-muted.col-lg-8.mx-auto{
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

/* Dark sections: keep subtitle visible even if text-muted is used */
.bg-primary .lead.text-muted,
.section.text-white .lead.text-muted{
  color: rgba(255,255,255,.78) !important;
}

/* =========================================
   Subtitle handling – light vs dark sections
   ========================================= */

/* Default (light sections) */
.section-title p.lead{
  margin-top: 0;
  margin-bottom: 28px;   /* uniform gap before content */
  line-height: 1.6;
  color: rgba(10, 31, 68, 0.65); /* muted navy */
}

/* Dark background sections */
.section.text-white .section-title p.lead,
.bg-primary .section-title p.lead,
.section.bg-dark .section-title p.lead{
  color: rgba(255, 255, 255, 0.78) !important;
}

/* =========================================
   Uniform spacing after section titles
   ========================================= */

/* Always add space AFTER the section-title block */
.section-title{
  margin-bottom: 40px;
}

/* =========================================
   FINAL: Uniform subtitle spacing everywhere
   (no per-section edits)
   ========================================= */

/* Treat these as “subtitles” across the site */
.section:not(.hero) p.lead.text-muted,
.section:not(.hero) p.lead.text-secondary {
  margin-bottom: 1.15rem !important; /* uniform gap after subtitle */
}

/* If a subtitle sits inside .section-title, keep it consistent as well */
.section-title p.lead.text-muted,
.section-title p.lead.text-secondary {
  margin-bottom: 1.15rem !important;
}

/* Dark sections: make subtitle readable even if text-secondary is used */
.section.bg-primary p.lead.text-muted,
.section.bg-primary p.lead.text-secondary,
.section.text-white p.lead.text-muted,
.section.text-white p.lead.text-secondary {
  color: rgba(255,255,255,.78) !important;
}

/* Fix oversized gaps below section headers (comes from main.css padding-bottom:60px) */
.section-title{
  padding-bottom: 0 !important;
}

/* Keep a consistent, controlled gap between subtitle and the next content */
.section-title p.lead{
  margin-bottom: 28px !important; /* tweak 20–32px if you want */
}

/* If any section-title uses Bootstrap mb-5/mb-4, normalize it */
.section-title.mb-5,
.section-title.mb-4,
.section-title.mb-3{
  margin-bottom: 40px !important;
}

.glass-card.blue{
  position: relative;
  overflow: hidden; /* ensures accent respects radius */
}

.glass-card.blue::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--wg-navy, #0a1f44);
  border-radius: 16px 0 0 16px; /* MATCHES glass-card */
}

/* 1) One universal image box size across the page */

/* Uniform media: identical size everywhere, NO white padding, crop with object-fit */
.uniform-media{
  width: 100%;
  aspect-ratio: 16 / 10;          /* pick one ratio and keep it everywhere */
  border-radius: 24px;            /* match your rounded cards */
  overflow: hidden;
  display: block;
  background: transparent;        /* prevents any “white frame” look */
}

.uniform-media > img{
  width: 100%;
  height: 100%;
  display: block;                 /* removes inline-image baseline gap */
  object-fit: cover;              /* CROPS instead of padding */
  object-position: center;         /* keep consistent framing */
}

/* If you want the badge to sit on top of the image */
.uniform-media{
  position: relative;
}

/* Dark Calculator Theme */
.salary-teaser-wrapper {
  background: #0f172a; /* deep navy */
  color: #e5e7eb;
  border-radius: 16px;
}

/* Labels */
.salary-teaser-wrapper label {
  color: #94a3b8;
  letter-spacing: 0.08em;
}

/* Salary value */
#salaryVal {
  color: #facc15; /* classy gold accent */
}

/* Range slider */
.salary-teaser-wrapper .form-range::-webkit-slider-thumb {
  background: #facc15;
}
.salary-teaser-wrapper .form-range::-moz-range-thumb {
  background: #facc15;
}

/* Select dropdown */
.salary-teaser-wrapper select {
  background-color: #020617;
  color: #e5e7eb;
  border: 1px solid #334155;
}

/* Result card */
.salary-teaser-wrapper .bg-white {
  background: #020617 !important;
  color: #e5e7eb;
  border: 1px solid #1e293b;
  box-shadow: none;
}

/* Divider */
.salary-teaser-wrapper .border-bottom {
  border-color: #1e293b !important;
}

/* Savings highlight */
#saveResult {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}

/* Prevent calculator from switching to white on hover */

/* ================================
   Dark Salary Calculator (LOCKED)
   ================================ */

/* Lock background (no hover / focus flip) */
.salary-teaser-wrapper,
.salary-teaser-wrapper:hover,
.salary-teaser-wrapper:focus-within {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%) !important;
  color: #e5e7eb;
  border-radius: 16px;
}

/* Labels */
.salary-teaser-wrapper label {
  color: #94a3b8;
  letter-spacing: 0.08em;
}

/* Big salary number (override text-primary safely) */
.salary-teaser-wrapper #salaryVal,
.salary-teaser-wrapper #salaryVal.text-primary {
  color: #facc15 !important;
}

/* Slider */
.salary-teaser-wrapper .form-range::-webkit-slider-thumb {
  background: #facc15;
}
.salary-teaser-wrapper .form-range::-moz-range-thumb {
  background: #facc15;
}
.salary-teaser-wrapper .form-range::-webkit-slider-runnable-track,
.salary-teaser-wrapper .form-range::-moz-range-track {
  background: #1e293b;
}

/* Select dropdown */
.salary-teaser-wrapper select {
  background-color: #020617 !important;
  color: #e5e7eb;
  border: 1px solid #334155;
}

/* Result card */
.salary-teaser-wrapper .bg-white {
  background: #020617 !important;
  border: 1px solid #1e293b;
  color: #e5e7eb;
  box-shadow: none;
}

/* Result text */
.salary-teaser-wrapper span,
.salary-teaser-wrapper .h6,
.salary-teaser-wrapper .h5 {
  color: #cbd5f5;
}

.salary-teaser-wrapper #netResult {
  color: #e5e7eb;
}

.salary-teaser-wrapper #saveResult {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

/* Divider */
.salary-teaser-wrapper .border-bottom {
  border-color: #1e293b !important;
}

/* =========================================
   Section title underline (center + left)
   ========================================= */

/* Create the underline */
.section-title h2::after,
.section-title .display-5::after,
.section-title h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  background: var(--wg-gold);
  border-radius: 999px;
}

/* Default: centered headings keep underline centered */
.section-title:not(.text-start):not(.text-end) h2::after,
.section-title:not(.text-start):not(.text-end) .display-5::after,
.section-title:not(.text-start):not(.text-end) h1::after {
  margin-left: auto;
  margin-right: auto;
}

/* Left aligned headings */
.section-title.text-start h2::after,
.section-title.text-start .display-5::after,
.section-title.text-start h1::after {
  margin-left: 0;
  margin-right: auto;
}

/* (Optional) Right aligned headings */
.section-title.text-end h2::after,
.section-title.text-end .display-5::after,
.section-title.text-end h1::after {
  margin-left: auto;
  margin-right: 0;
}

/* =========================================
   Fallback underline for non-section-title headings
   ========================================= */

.about-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  background: var(--wg-gold);
  border-radius: 999px;
}

/* =========================
   Hiring section polish
   ========================= */

.hiring-section h2 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hiring-main {
  padding-right: 6px; /* subtle breathing room vs gutter */
}

.hiring-divider {
  height: 1px;
  background: rgba(10, 31, 68, 0.12);
  margin: 18px 0 18px;
}

.hiring-copy p {
  line-height: 1.75;
}

.hiring-card {
  border-radius: 18px;
}

.hiring-checklist li span,
.hiring-pack li span {
  line-height: 1.6;
}

/* Make the right card feel anchored on desktop (optional but looks premium) */
@media (min-width: 992px) {
  .hiring-aside .hiring-card {
    position: sticky;
    top: 110px; /* adjust if your fixed header differs */
  }
}

/* Keep CTAs consistent, avoid awkward wrapping */
.hiring-cta .btn {
  min-width: 220px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 12px;
}

/* Prevent the checklist card from looking “detached” */
.hiring-main .glass-card {
  border: 1px solid rgba(10, 31, 68, 0.08);
}

/* =========================
   Dark Hiring Card
   ========================= */

/* =========================
   Dark Hiring Card (fixed contrast)
   ========================= */

.hiring-card-dark{
  background: linear-gradient(180deg, #0a1f44 0%, #081a38 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 45px rgba(10,31,68,.35);
  color: #fff;
}

/* Title */
.hiring-card-dark h3{
  color: #fff !important;
}

/* Paragraphs (this is what’s currently too dark in your screenshot) */
.hiring-card-dark p{
  color: rgba(255,255,255,.80) !important;
}

/* List text */
.hiring-card-dark .hiring-pack li span,
.hiring-card-dark ul li span{
  color: rgba(255,255,255,.90) !important;
}

/* Arrow icons */
.hiring-card-dark .bi-arrow-right-short{
  color: rgba(255,204,0,.95) !important;  /* gold */
}

/* CTA row spacing */
.hiring-card-dark .hiring-cta{
  margin-top: 22px;
}

/* Primary button (red) */
.hiring-card-dark .btn-primary{
  background: #e00000 !important;
  border-color: #e00000 !important;
  color: #fff !important;
}

/* Outline button must become WHITE outline + text */
.hiring-card-dark .btn-outline-primary{
  border: 2px solid rgba(255,255,255,.85) !important;
  color: rgba(255,255,255,.95) !important;
  background: transparent !important;
}

/* Hover: invert for clarity */
.hiring-card-dark .btn-outline-primary:hover{
  background: #fff !important;
  color: #0a1f44 !important;
  border-color: #fff !important;
}

/* ==========================================================================
   CEO MASTER FIX: RIBBON HEADER + BIG LOGO
   ========================================================================== */

/* 1. HIDE THE RECTANGLE (Main Bar Transparency) */
#header.header {
  background: transparent !important; 
  box-shadow: none !important;        
  padding-top: 15px !important;       /* Initial Gap */
  padding-bottom: 0 !important;
  transition: padding 0.3s ease;
}

/* 2. STYLE THE RIBBON (The Pill Shape) */
#header .header-container {
  background-color: #ffffff;
  border-radius: 50px !important;     /* Pill shape */
  padding: 8px 30px !important;       /* Space inside the pill */
  margin: 0 auto;                   
  width: 94% !important;            
  max-width: 1320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
  transition: all 0.3s ease;
  
  /* Flexbox fix to ensure items align nicely with big logo */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* 3. FORCE LOGO SIZE (The "Zoom" Fix) */
/* We target the ID #header specifically to force the size */
#header .logo img {
  height: 85px !important;       /* Force Big Height */
  max-height: 85px !important;   /* Override any constraints */
  width: auto !important;        /* Maintain Aspect Ratio */
  object-fit: contain !important;
  margin-right: 15px !important;
}

/* 4. SCROLLED STATE (Glass Effect) */
/* Activates when JS adds 'scrolled-active' to body */
body.scrolled-active #header .header-container {
  background-color: rgba(255, 255, 255, 0.85) !important; 
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 5. SCROLLED STATE (Tighten Gap) */
body.scrolled-active #header.header {
  padding-top: 5px !important; 
}

/* 6. MOBILE ADJUSTMENTS */
@media (max-width: 991px) {
  #header .header-container {
    width: 96% !important;
    padding: 10px 15px !important;
  }
  
  /* Keep mobile logo reasonable so it fits */
  #header .logo img {
    height: 50px !important;
    max-height: 50px !important;
  }
}

/* =========================================
   Salary Calculator – Manual Expenses Fix
   ========================================= */

/* Manual number input (match slider style) */
.salary-teaser-wrapper input[type="number"] {
  background-color: #020617 !important;
  color: #e5e7eb !important;
  border: 1px solid #334155 !important;
}

/* Placeholder visibility */
.salary-teaser-wrapper input[type="number"]::placeholder {
  color: #94a3b8 !important;
}

/* Helper text under expenses */
.salary-teaser-wrapper .small.text-secondary {
  color: #94a3b8 !important;
}

/* Reset button – visible but secondary */
.salary-teaser-wrapper .btn-outline-primary {
  color: #facc15 !important;          /* same gold as slider */
  border-color: #facc15 !important;
}

.salary-teaser-wrapper .btn-outline-primary:hover {
  background: rgba(250, 204, 21, 0.15) !important;
}

/* ================================
   MOBILE HERO FIXES
   ================================ */
@media (max-width: 768px) {

  .hero {
    min-height: 100vh;
    padding-top: 110px;   /* clears fixed header */
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-content {
    margin-bottom: 1.5rem;
  }

  /* Push compass grid below hero text cleanly */
  .compass-grid {
    margin-top: 1.75rem;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px; /* 👈 clean breathing space */
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* Ensure mobile nav toggle always visible */
.mobile-nav-toggle {
  font-size: 28px;
  color: #ffffff;
  z-index: 1001;
}

body.scrolled-active .mobile-nav-toggle {
  color: #ffffff; /* lock visibility */
}

/* Ensure header always stays above hero and mobile menu */
.header {
  z-index: 1000;
}



/* ================================
   MOBILE NAV ICON (VISIBLE ON WHITE HEADER PILL)
   ================================ */
@media (max-width: 1199px) {
  /* Default hamburger */
  #header .mobile-nav-toggle {
    color: var(--wg-navy) !important;  /* was white, invisible on white pill */
    font-size: 30px;
    line-height: 1;
    z-index: 2101;
  }

  /* When menu is open (X icon) keep it white because overlay is dark */
  body.mobile-nav-active #header .mobile-nav-toggle {
    color: #ffffff !important;
  }
}
/* ================================
   MOBILE MENU OVERLAY (FULL SCREEN, NOT CLIPPED)
   ================================ */
@media (max-width: 1199px) {

  /* Ensure the header pill does NOT clip dropdown content */
  #header .header-container {
    overflow: visible !important;
  }

  /* Overlay container */
  body.mobile-nav-active #navmenu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2100 !important;
    background: rgba(10, 31, 68, 0.65) !important; /* backdrop tint */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  /* The actual menu panel */
  body.mobile-nav-active #navmenu > ul,
  body.mobile-nav-active #navmenu ul {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    width: calc(100% - 28px);
    margin: 90px 14px 14px;           /* clears fixed header */
    padding: 10px;

    border-radius: 18px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  }

  /* Menu links */
  body.mobile-nav-active #navmenu a {
    color: var(--wg-navy) !important;
    font-weight: 700;
    padding: 14px 16px;
    border-radius: 12px;
  }

  body.mobile-nav-active #navmenu a:hover,
  body.mobile-nav-active #navmenu a.active {
    background: rgba(255, 204, 0, 0.18) !important;
    color: var(--wg-navy) !important;
  }

  /* Keep the X button always visible in the corner while scrolling */
  body.mobile-nav-active #header .mobile-nav-toggle {
    position: fixed !important;
    top: 20px;
    right: 18px;
    z-index: 2200 !important;
  }
}

/* ================================
   MOBILE HERO: PREVENT CLIPPING OF 4 CARDS
   ================================ */
@media (max-width: 768px) {
  /* Let hero expand if content exceeds one viewport */
  .hero {
    height: auto !important;
    min-height: 100vh;            /* keeps a full-screen feel */
    overflow: visible !important; /* key: stop cutting the compass grid */
    padding-bottom: 64px;         /* space below cards */
  }

  /* If any inner wrapper is forcing a fixed height/overflow, neutralize it */
  .hero .container,
  .hero .row {
    height: auto !important;
    overflow: visible !important;
  }

  /* Slightly tighten the grid so it fits better */
  .compass-grid {
    gap: 12px;
  }
  .compass-card {
    padding: 1.1rem;
    border-radius: 16px !important;
  }
}

/* Make ordered-list numbers visible */
.calc-steps ol li::marker {
  color: #111827 !important;
  font-weight: 800 !important;
}



/* === FIX: Make calculation step numbers visible === */
.calc-steps ol {
  list-style-position: inside;
  padding-left: 0;
}

.calc-steps ol li {
  color: #0f172a !important;   /* force dark text */
  font-weight: 500;
}

.calc-steps ol li::marker {
  color: #0f172a !important;   /* force number color */
  font-weight: 800;
}

/* === FIX: Make calc-step VALUES readable inside the white panel === */
.salary-teaser-wrapper .calc-steps div,
.salary-teaser-wrapper .calc-steps li,
.salary-teaser-wrapper .calc-steps span,
.salary-teaser-wrapper .calc-steps strong {
  color: #0f172a !important;
}

/* Keep the muted helper text muted (your inline styles already do this, but this is a safe fallback) */
.salary-teaser-wrapper .calc-steps [style*="color:#6b7280"] {
  color: #6b7280 !important;
}

/* =========================================================
   MOBILE HERO OPTIONS: CLEAN HORIZONTAL SWIPE (NO CUT/OFF)
   ========================================================= */
@media (max-width: 768px) {

  /* Ensure hero isn't clipping anything */
  body.index-page section#hero.hero.section{
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    padding-bottom: 56px !important;
  }

  /* Replace the 2x2 grid with a swipe row */
  body.index-page .compass-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;

    overflow-x: auto !important;
    overflow-y: visible !important;

    padding: 6px 4px 14px !important;
    margin-top: 18px !important;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    /* IMPORTANT: neutralize any grid settings from desktop */
    grid-template-columns: unset !important;
  }

  /* Each card becomes a “slide” */
  body.index-page .compass-card{
    flex: 0 0 78% !important;     /* one main card per screen */
    max-width: 340px;
    scroll-snap-align: start;

    /* Prevent super tall cards on mobile */
    min-height: 210px;
    padding: 16px !important;
  }

  /* Optional: hide scrollbar for a cleaner look */
  body.index-page .compass-grid::-webkit-scrollbar{ display:none; }
  body.index-page .compass-grid{ scrollbar-width:none; }
}

/* =========================================
   MOBILE: SWIPE HINT FOR COMPASS CARDS
   ========================================= */
/* =========================================
   MOBILE: CLICKABLE SWIPE ARROW (NO OVERLAY UGLINESS)
   ========================================= */
@media (max-width: 768px) {

  body.index-page .compass-grid{
    position: relative;
  }

  /* subtle right fade only on the edge (doesn't cover card content much) */
  body.index-page .compass-grid::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;                 /* smaller so it doesn't look like a big block */
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to left, rgba(10,31,68,0.65), rgba(10,31,68,0));
  }

  /* clickable arrow button */
  body.index-page .compass-swipe-hint{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;

    width: 34px;
    height: 34px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 204, 0, 0.55);
    background: rgba(255, 204, 0, 0.30);
    color: #fff;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    cursor: pointer;
  }

  body.index-page .compass-swipe-hint i{
    font-size: 18px;
    line-height: 1;
  }

  body.index-page .compass-swipe-hint{
    animation: wgSwipeHint 1.6s ease-in-out infinite;
  }

  @keyframes wgSwipeHint{
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: .85; }
    50%      { transform: translateY(-50%) translateX(6px); opacity: 1; }
  }
}

/* =========================================================
   MOBILE NAV: FORCE MENU VISIBILITY (especially after scroll)
   Paste at END of brand-overrides.css so it wins.
   ========================================================= */
@media (max-width: 1199px) {

  /* When hamburger is toggled ON, the overlay must be visible & interactive */
  body.mobile-nav-active #navmenu {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Critical: ensure the UL actually shows (some base themes keep it display:none) */
  body.mobile-nav-active #navmenu > ul {
    display: block !important;
  }

  /* Keep the panel readable (white panel + dark text) */
  body.mobile-nav-active #navmenu > ul,
  body.mobile-nav-active #navmenu ul {
    background: rgba(255, 255, 255, 0.92) !important;
  }

  body.mobile-nav-active #navmenu a {
    color: var(--wg-navy) !important;
  }
}

/* =========================================================
   HARD FIX: Mobile menu not visible after scroll
   Forces panel to show and disables any hidden transforms.
   ========================================================= */
@media (max-width: 1199px) {

  /* The full-screen overlay */
  body.mobile-nav-active #navmenu{
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
  }

  /* The actual menu panel */
  body.mobile-nav-active #navmenu > ul{
    position: fixed !important;
    top: 84px !important;         /* clears your fixed header */
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;

    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;   /* kills slide-up/translate hiding */
    margin: 0 !important;

    background: rgba(255,255,255,0.95) !important;
    border-radius: 18px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Make links readable no matter what the template does */
  body.mobile-nav-active #navmenu a{
    color: var(--wg-navy) !important;
  }

  /* Keep the X visible and clickable */
  body.mobile-nav-active #header .mobile-nav-toggle{
    position: fixed !important;
    top: 18px !important;
    right: 16px !important;
    z-index: 10000 !important;
    color: #ffffff !important;
  }
}


/* ============================================================
   FINAL FIXES: Mobile Menu & Swipe Button (Paste at Bottom)
   ============================================================ */

/* --- 1. Fix Mobile Menu (Full Screen Overlay) --- */

/* Force the hamburger/X button to be on top of everything */
#header .mobile-nav-toggle {
  z-index: 99999 !important; 
  position: relative;
  cursor: pointer;
}

/* Detach menu from the header pill and make it full screen */
body.mobile-nav-active #navmenu {
  position: fixed !important;
  inset: 0 !important; /* Covers top, left, right, bottom */
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(10, 31, 68, 0.98) !important; /* Deep Navy, almost opaque */
  z-index: 99998 !important; /* Just below the toggle button */
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Center the list items vertically and horizontally */
body.mobile-nav-active #navmenu ul {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px; /* Space between links */
  background: transparent !important;
  box-shadow: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important; /* Remove absolute positioning */
  transform: none !important;
}

/* Make links large and white */
body.mobile-nav-active #navmenu a {
  font-size: 1.5rem !important;
  color: #ffffff !important;
  font-weight: 700;
  display: inline-block;
  text-align: center;
}

/* Active/Hover state for links */
body.mobile-nav-active #navmenu a:hover,
body.mobile-nav-active #navmenu a.active {
  color: var(--wg-gold) !important;
  background: transparent !important;
}

/* Ensure the X button turns white when menu is open */
body.mobile-nav-active .mobile-nav-toggle {
  color: #ffffff !important;
}


/* ============================================================
   FINAL CORRECTED FIX: Swipe Button (Hidden on Desktop)
   ============================================================ */

/* 1. DEFAULT: Hide button on Desktop/Laptop */
.compass-swipe-hint {
  display: none !important;
}

/* 2. MOBILE ONLY: Show and Position the button */
@media (max-width: 768px) {

  /* Ensure the parent column is the positioning anchor */
  .hero .col-lg-6 {
    position: relative !important;
  }

  .compass-swipe-hint {
    /* Show it only on mobile */
    display: flex !important;
    align-items: center;
    justify-content: center;

    /* Absolute position relative to the Hero Column */
    position: absolute !important;
    bottom: 25px !important;  
    right: 25px !important;   
    
    /* Reset old transforms */
    top: auto !important;
    transform: none !important;
    
    /* Layering */
    z-index: 1050 !important;
    
    /* Styling */
    width: 50px !important;
    height: 50px !important;
    background: #ffcc00 !important; /* Bright Gold */
    color: #0a1f44 !important;      /* Navy Icon */
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
  }

  /* Fix icon size */
  .compass-swipe-hint i {
    font-size: 22px !important;
    line-height: 1 !important;
    margin-left: 2px;
  }
  
  /* Optional: Gentle pulse animation to encourage clicking */
  .compass-swipe-hint {
    animation: wgPulse 2s infinite;
  }
  
  @keyframes wgPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 204, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
  }
}

@media (max-width: 768px) {
  .compass-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
  }

  .nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    color: var(--wg-navy);
    font-size: 20px;
  }
}

/* Remove the mobile compass edge tint / overlay gradient */
@media (max-width: 768px) {
  body.index-page .compass-grid::before {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}
/* Hide compass nav on desktop by default */
.compass-nav {
  display: none;
}

/* Show compass nav only on mobile */
@media (max-width: 768px) {
  .compass-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
  }
}

/* Footer logo uses the same scale as header logo */
.footer-logo img {
  height: 100px !important;
  max-height: 100px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Mobile consistency */
@media (max-width: 991px) {
  .footer-logo img {
    height: 55px !important;
    max-height: 55px !important;
  }
}

/* ============================
   WHY GERMANY – FOOTER (FINAL)
============================ */

.wg-footer{
  background: var(--wg-navy);
  color: #cfd6df;
  padding: 64px 0 28px;
  font-size: 0.95rem;
}

/* TOP SECTION */
.footer-top{
  padding-bottom: 10px;
}

/* LEFT: Brand should sit slightly left (not centered) */
.footer-brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* key: left anchor */
  text-align: left;          /* key: left anchor */
}

.footer-logo{
  height: 56px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline{
  color: #aeb7c2;
  line-height: 1.6;
  max-width: 360px;
  margin: 0;
}

/* CENTER COPY */
.footer-text{
  color: #b9c2cd;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-text strong{
  color: #ffffff;
  font-weight: 600;
}

/* RIGHT: Connect aligned to the far right */
.footer-connect{
  display: flex;
  flex-direction: column;
  align-items: flex-end;      /* key: right anchor */
  text-align: right;          /* key: right anchor */
}

.footer-heading{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #ffffff;
  margin-bottom: 0.9rem;
}

/* Spread icons further, but keep them cohesive */
.footer-socials{
  display: flex;
  justify-content: flex-end;
  gap: 1.75rem;               /* increased spacing */
}

.footer-socials a{
  color: #ffffff;
  font-size: 1.35rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover{
  opacity: 1;
  transform: translateY(-2px);
}

/* DIVIDER */
.footer-divider{
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 26px 0 18px;
}

/* BOTTOM BAR aligned to container edges */
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #aeb7c2;
}

.footer-bottom strong{
  color: #ffffff;
}

/* MOBILE */
@media (max-width: 991px){
  .footer-brand{
    align-items: center;
    text-align: center;
  }

  .footer-connect{
    align-items: center;
    text-align: center;
    margin-top: 8px;
  }

  .footer-socials{
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-bottom{
    justify-content: center;
    text-align: center;
  }
}

/* Normalize footer alignment on mobile */
@media (max-width: 991px){
  .wg-footer .footer-brand{
    text-align: center !important;
    align-items: center;
  }

  .wg-footer .footer-tagline,
  .wg-footer .footer-text{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }

  .wg-footer .footer-top .col-lg-3.d-flex{
    justify-content: center !important;
  }

  .wg-footer .footer-connect{
    align-items: center !important;
    text-align: center !important;
  }

  .wg-footer .footer-socials{
    justify-content: center !important;
  }
}

/* ================================
   STUDY PAGE: STUDENT DISCOUNTS
   ================================ */
.discount-hero-visual{
  position: relative;
}

.discount-hero-badge{
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 18px 22px;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(10,31,68,0.18);
  background: rgba(255,255,255,0.95);
}

.badge-icon{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.student-savings-sim .form-range{
  accent-color: var(--wg-navy);
}

.discount-toggle.is-active,
.discount-chip.is-active{
  background: var(--wg-navy) !important;
  border-color: var(--wg-navy) !important;
  color: #ffffff !important;
}

.savings-result-card{
  background: #0f172a;
  color: #e5e7eb;
}

.savings-result-card .text-secondary,
.savings-result-card .text-muted{
  color: #cbd5f5 !important;
}

.savings-result-card .display-5{
  color: #93c5fd;
}

.savings-note{
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.discount-checklist{
  display: grid;
  gap: 12px;
}

.check-item{
  border: 1px solid rgba(10,31,68,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #ffffff;
}

.check-item .check-icon{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,31,68,0.08);
  color: var(--wg-navy);
}

.check-item.is-checked .check-icon{
  background: rgba(255,204,0,0.2);
  color: var(--wg-navy);
}

.discount-tip{
  background: rgba(37,99,235,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  color: #1e3a8a;
  font-size: 0.95rem;
}

.miss-item{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.miss-number{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.discount-impact{
  background: #2f2b7a;
  color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(10,31,68,0.25);
}

.discount-impact .impact-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c7d2fe;
}

.quote-text{
  font-family: "Nunito", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wg-navy);
}

@media (max-width: 991px){
  .discount-hero-badge{
    position: static;
    margin-top: 16px;
    width: 100%;
  }
}

/* ================================
   HOUSING: FURNITURE SECTION
   ================================ */
.furniture-hero-visual{
  position: relative;
}

.furniture-callout{
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: 320px;
  background: rgba(10,31,68,0.92);
  color: #e5e7eb;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 16px 36px rgba(10,31,68,0.25);
}

.furniture-alert-icon{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,204,0,0.2);
  color: var(--wg-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.furniture-step{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

@media (max-width: 991px){
  .furniture-callout{
    position: static;
    max-width: none;
    margin-top: 16px;
  }
}

.card-thumb{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(10,31,68,0.12);
  flex: 0 0 auto;
}

.card-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-fab{
  position: fixed;
  left: clamp(14px, 2vw, 24px);
  bottom: calc(clamp(14px, 2vw, 24px) + env(safe-area-inset-bottom));
  z-index: 9999;

  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #f4c430;
  color: #111;
  border-radius: 14px;
  text-decoration: none;

  box-shadow: 0 10px 24px rgba(0,0,0,.30);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.home-fab i{
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1;
}

.home-fab:hover{
  background: #e0b422;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.38);
}

.home-fab:active{
  transform: translateY(0);
}

/* ================================
   STARTER PAGE HERO: MOBILE TWEAKS
   ================================ */
@media (max-width: 768px) {
  body.starter-page-page #hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  body.starter-page-page #hero .row {
    align-items: flex-start !important;
  }

  body.starter-page-page #hero .hero-content {
    margin-bottom: 0;
  }

  body.starter-page-page #hero .hero-buttons {
    align-items: center;
  }

  body.starter-page-page #hero .hero-buttons .btn {
    width: auto;
    min-width: 180px;
    max-width: 240px;
  }
}
