/* Glory Theme — Front Page (production FINAL)
   - Premium hero + reveal + parallax + responsive sections
   - Uses root design tokens; overrides only for front-page-specific needs.
   - Section background: --sectionBgColor, --sectionBgImage, --sectionOverlayColor, --sectionOverlayOpacity
*/

/* Map front-page vars to root tokens; single font stack */
.glory-front{
  -webkit-text-size-adjust: 100%;
  --glory-ink: var(--text);
  --glory-muted: var(--muted);
  --glory-bg: var(--bg);
  --glory-border: var(--border);
  --glory-accent: var(--brand);
  --glory-accent-2: var(--brand2);
  --glory-shadow: var(--shadow);
  --glory-radius: var(--radius);
  --glory-radius-sm: var(--radius-sm);
  --glory-focus: var(--ring);
  --glory-hero-overlay: rgba(15,28,21,0.42);
  --glory-hero-overlay-strong: rgba(15,28,21,0.56);
  --glory-section-overlay-color: rgba(0,0,0,1);
  --glory-section-overlay-opacity: 0.35;

  background: var(--glory-bg);
  color: var(--glory-text-color, var(--text));
  font-family: var(--font-sans-en);
  line-height: 1.5;
  font-size: inherit;
}
html[data-theme="dark"] .glory-front{
  --glory-hero-overlay: rgba(0,0,0,0.46);
  --glory-hero-overlay-strong: rgba(0,0,0,0.62);
  --glory-section-overlay-opacity: 0.45;
}
.glory-front a{ color: var(--glory-link-color, var(--brand)); }

.glory-front .container{
  width: min(var(--container), calc(100% - var(--gutter)));
  margin-inline: auto;
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.glory-front .focus-ring:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--glory-focus);
  border-radius: 999px;
}

/* ---------------------------
   Reveal animation
---------------------------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms cubic-bezier(.22,1,.36,1),
    transform 900ms cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.is-revealed[data-reveal]{
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  [data-reveal]{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------------------------
   Shared section layout + BG system
---------------------------- */
.glory-section{
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  overflow: hidden;
}

.section-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--sectionBgColor, transparent);
}

/* expects inline: --sectionBgImage: url("...") */
.section-bg-media{
  position: absolute;
  inset: -12% -8%;
  background-image: var(--sectionBgImage, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: translate3d(0, var(--parallaxY, 0px), 0) scale(1.06);
  will-change: transform;
}

/* Overlay: supports dynamic color/opacity + premium gradients.
   Content wash (::after) uses --contentWashStrength so overlay--none still gets a
   minimum wash and avoids dark-on-dark or light-on-light text. */
.section-bg-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;

  --overlayStrength: 0.88;
  --contentWashStrength: 0.88;

  --overlayColor: var(--sectionOverlayColor, var(--glory-section-overlay-color));
  --overlayOpacity: var(--sectionOverlayOpacity, var(--glory-section-overlay-opacity));
}

.section-bg-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--overlayColor);
  opacity: calc(var(--overlayOpacity) * var(--overlayStrength));
}

.section-bg-overlay::after{
  content:"";
  position:absolute;
  inset:0;
  /* Content wash: light in light theme, dark in dark theme so text always contrasts */
  background:
    radial-gradient(1200px 700px at 20% 15%, rgba(46,125,50,0.18), transparent 55%),
    radial-gradient(900px 600px at 85% 25%, rgba(46,125,50,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.86) 100%);
  opacity: calc(0.35 * var(--contentWashStrength));
  pointer-events: none;
}
html[data-theme="dark"] .section-bg-overlay::after{
  background:
    radial-gradient(1200px 700px at 20% 15%, rgba(46,125,50,0.12), transparent 55%),
    radial-gradient(900px 600px at 85% 25%, rgba(46,125,50,0.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.64) 100%);
  opacity: calc(0.40 * var(--contentWashStrength));
}

.section-bg-overlay.overlay--none{ --overlayStrength: 0; --contentWashStrength: 0.32; }
html[data-theme="dark"] .section-bg-overlay.overlay--none{ --contentWashStrength: 0.4; }
.section-bg-overlay.overlay--soft{ --overlayStrength: 0.75; --contentWashStrength: 0.75; }
.section-bg-overlay.overlay--normal{ --overlayStrength: 0.88; --contentWashStrength: 0.88; }
.section-bg-overlay.overlay--strong{ --overlayStrength: 0.96; --contentWashStrength: 0.96; }

.glory-section > .container,
.glory-section > .container *{
  position: relative;
  z-index: 2;
}

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.3rem;
}

.section-head--row{
  width: min(1200px, 92vw);
  margin-inline: auto;
  margin-bottom: 2rem;
}

.section-kicker{
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--glory-kicker-color, var(--glory-accent-2));
  margin: 0 0 .7rem;
}
.section-title{
  font-size: clamp(1.9rem, 3.3vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .9rem;
  color: var(--glory-title-color, var(--glory-heading-color, var(--glory-ink)));
}
.section-text{
  color: var(--glory-text-color, var(--glory-muted));
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}
/* Section content: Customizer content colors with fallbacks */
.glory-section .section-head .section-title{ color: var(--glory-title-color, var(--glory-heading-color, var(--glory-ink))); }
.glory-section .section-head .section-text{ color: var(--glory-text-color, var(--glory-muted)); }
.section-actions{ margin-top: 1.4rem; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--glory-border);
  background: rgba(255,255,255,0.50);
  color: var(--glory-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
html[data-theme="dark"] .btn{
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 26px rgba(0,0,0,0.44);
}
.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(46,125,50,0.35);
}
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--glory-accent);
  border-color: rgba(46,125,50,0.25);
  color: #fff;
}
.btn-primary:hover{
  background: #1b5e20;
  box-shadow: 0 14px 32px rgba(46,125,50,0.25);
}

.btn-outline{
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.70);
  color: #fff;
  box-shadow: none;
}
.btn-outline:hover{ background: rgba(255,255,255,0.18); }

.empty-note{
  padding: 1.2rem 1.2rem;
  border: 1px dashed var(--glory-border);
  border-radius: var(--glory-radius-sm);
  color: var(--glory-muted);
  background: rgba(255,255,255,0.34);
}
html[data-theme="dark"] .empty-note{ background: rgba(255,255,255,0.06); }

/* ---------------------------
   HERO (premium + right visual)
---------------------------- */
.glory-hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--glory-bg);
  /* So hero sits beneath transparent header; content starts below header */
  padding-top: calc(var(--header-h, 78px) + var(--site-header-top, 0px));
  box-sizing: border-box;
}

/* hero overlay modes */
.glory-hero.hero--normal .hero-overlay{ background: linear-gradient(180deg, var(--glory-hero-overlay) 0%, rgba(46,125,50,0.42) 100%); }
.glory-hero.hero--strong .hero-overlay{ background: linear-gradient(180deg, var(--glory-hero-overlay-strong) 0%, rgba(46,125,50,0.48) 100%); }

.glory-hero .hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.glory-hero .hero-bg-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.6s ease;
  filter: brightness(0.88) contrast(1.1) saturate(1.1);
  transform: scale(1.04);
  animation: gloryGentleZoom 22s infinite ease-in-out;
}
.glory-hero .hero-bg-img.is-active{ opacity: .74; }

.glory-hero .hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--glory-hero-overlay) 0%, rgba(46,125,50,0.42) 100%);
}
html[data-theme="dark"] .glory-hero .hero-overlay{
  background: linear-gradient(180deg, var(--glory-hero-overlay) 0%, rgba(46,125,50,0.28) 100%);
}

.glory-hero .hero-top-overlay{
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.32), transparent);
  pointer-events: none;
}
.glory-hero .hero-bottom-fade{
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  z-index: 2;
  background: linear-gradient(0deg, var(--glory-bg), transparent);
  pointer-events: none;
}

.glory-hero .hero-content{
  position: relative;
  z-index: 3;
  padding: clamp(4rem, 10vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}
.glory-hero .hero-content.hero-text-only{
  grid-template-columns: 1fr;
  max-width: 42rem;
  margin-inline: auto;
}

.hero-left{ max-width: 620px; }
.hero-kicker{
  color: var(--glory-kicker-color, rgba(255,255,255,0.90));
  font-size: clamp(0.875rem, 1.8vw, 1.03rem);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.hero-headline{
  font-size: clamp(2rem, 5.5vw, 4.65rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  color: var(--glory-heading-color, #fff);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero-subheadline{
  font-size: clamp(1rem, 2vw, 1.34rem);
  line-height: 1.65;
  color: var(--glory-text-color, rgba(255,255,255,0.92));
  margin: 0 0 1.75rem;
  max-width: 56ch;
}

.hero-pills{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.5vw, 0.85rem);
  margin: 0 0 2rem;
}
.hero-pills .pill{
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.95);
  font-weight: 750;
  font-size: clamp(0.875rem, 1.5vw, 0.98rem);
}

.hero-actions{
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  flex-wrap: wrap;
}
.hero-more{
  display: inline-block;
  margin-top: 1.25rem;
  color: rgba(165,214,167,0.98);
  font-weight: 750;
  text-decoration: none;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}
.hero-more:hover{ text-decoration: underline; }

/* Right visual wrapper — single column, predictable width */
.hero-right{
  width: 100%;
  max-width: 480px;
  justify-self: end;
}
@media (max-width: 1100px){
  .hero-right{ justify-self: center; max-width: 100%; }
}

/* Route panel: one card, contents fill it with no offset */
.route-panel{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  max-height: min(55vh, 420px);
  border-radius: clamp(14px, 2vw, 20px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  background:
    radial-gradient(1200px 600px at 30% 25%, rgba(46,125,50,0.22), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.88));
}

.route-overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(46,125,50,0.35) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

/* Optional chips (if your markup includes them) */
.hero-chips{
  position:absolute;
  top: 1.05rem;
  left: 1.05rem;
  display:flex;
  flex-wrap: wrap;
  gap: .55rem;
  z-index: 5;
  pointer-events: none;
}
.hero-chip{
  pointer-events: none;
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.46);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-weight: 750;
  font-size: .92rem;
  backdrop-filter: blur(10px);
}
.hero-chip .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(165,214,167,0.95);
}

/* SVG route drawing — fill panel with no offset */
.route-svg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}
/* Route path: always visible, no draw-in or pulse — reads as “journey” */
.route-path{
  fill: none;
  stroke: rgba(232, 245, 233, 0.9);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.route-endpoint{
  fill: #e8f5e9;
  opacity: 0.9;
}

/* Route panel when ticker is full — no path/line, ticker fills the card */
.route-panel--ticker-full .hero-route-ticker{
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  min-height: 0;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem;
}

/* Hero route ticker — full width, 3 cards fill most of container; blur non-centered */
.hero-route-ticker{
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: none;
  width: auto;
  min-height: 5rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.94);
  z-index: 6;
  visibility: visible;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
/* Viewport: fills container so 3 visible cards occupy most height */
.hero-route-ticker-viewport{
  flex: 1;
  min-height: 8em;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
}
.hero-route-ticker-strip{
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 100%;
  will-change: transform;
  position: relative;
  z-index: 0;
  padding: 0 0.1rem;
  min-height: 100%;
}
.hero-route-ticker-item{
  flex: 0 0 33.333%;
  min-height: 2.5em;
  width: 100%;
  box-sizing: border-box;
  transition: filter 0.4s ease, opacity 0.4s ease;
  filter: blur(4px);
  opacity: 0.65;
}
.hero-route-ticker-item.is-centered{
  filter: none;
  opacity: 1;
}
.hero-route-ticker-card{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  text-align: left;
}
.hero-route-ticker-card:hover{ background: rgba(255,255,255,0.12); text-decoration: none; color: inherit; }
.hero-route-ticker-icon{
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(165,214,167,0.25);
  color: rgba(165,214,167,0.98);
}
.hero-route-ticker-icon svg{ width: 18px; height: 18px; }
.hero-route-ticker-card-content{ min-width: 0; flex: 1; }
.hero-route-ticker-title{
  display: block;
  font-weight: 800;
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  line-height: 1.28;
  color: rgba(255,255,255,0.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-route-ticker--full-title .hero-route-ticker-title{
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.hero-route-ticker-meta{
  display: block;
  font-size: 0.7rem;
  color: rgba(165,214,167,0.9);
  margin-top: 0.15rem;
}

/* Hero route footer — under the route panel (title + from→to + meta line) */
.hero-route-footer{
  margin-top: 0.75rem;
  padding: 0 0.1rem;
  width: 100%;
  max-width: 480px;
}
.hero-route-footer p{
  margin: 0 0 0.35rem;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  line-height: 1.35;
  color: rgba(255,255,255,0.88);
}
.hero-route-footer p:last-child{ margin-bottom: 0; }
.hero-route-footer-title{
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
}
.hero-route-footer-route{
  color: rgba(165,214,167,0.92);
  font-weight: 600;
}
.hero-route-footer-arrow{ opacity: 0.85; }
.hero-route-footer-meta{
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}
.hero-route-footer-steps{
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.hero-route-footer-steps .hero-route-step{
  position: relative;
  padding-left: 0;
}
.hero-route-footer-steps .hero-route-step:not(:last-child)::after{
  content: '';
  position: absolute;
  right: -0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

/* Info badge — visible with the panel (no late pop-in) */
.info-badge{
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 280px;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.94);
  z-index: 4;
}
.verified-tag{
  color: rgba(165,214,167,0.96);
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
}
.stat-big{
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 900;
  margin: 0.15rem 0 0.35rem;
  color: rgba(255,255,255,0.96);
  line-height: 1.2;
}
.badge-link{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-weight: 750;
  color: rgba(165,214,167,0.96);
}
.badge-link:hover{ text-decoration: underline; }

/* Hover glow */
.hover-glow{
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(46,125,50,0.34) 0%, transparent 70%);
  opacity: 0;
  transform: translate(-50%,-50%);
  transition: opacity 220ms ease;
  z-index: 3;
}
.route-panel:hover .hover-glow{ opacity: 1; }

@keyframes gloryFadeUp{ to{ opacity: 1; transform: translateY(0);} }
@keyframes gloryFadeIn{ to{ opacity: 1; transform: none;} }
@keyframes glorySlideUp{ to{ opacity: 1; transform: translateY(0);} }
@keyframes gloryGentleZoom{
  0%,100%{ transform: scale(1.03); }
  50%{ transform: scale(1.09); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .glory-hero .hero-bg-img{ animation: none !important; }
  .hero-collage .collage-card{ animation: none !important; }
}

@media (max-width: 1100px){
  .glory-hero .hero-content:not(.hero-text-only){ grid-template-columns: 1fr; }
  .hero-right{ max-width: 100%; }
  .route-panel{ max-height: min(50vh, 380px); min-height: 260px; }
}
@media (max-width: 768px){
  .glory-hero .hero-content{ padding: 5rem 0 4rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; justify-content: center; }
  .hero-right{
    max-width: 100%;
    justify-self: stretch;
  }
  .hero-visual{
    width: 100%;
    max-width: 100%;
  }
  .route-panel{
    min-height: 240px;
    max-height: none;
    aspect-ratio: auto;
  }
  .route-panel--ticker-full{
    min-height: 320px;
  }
  .route-panel--ticker-full .hero-route-ticker{
    inset: 0;
    padding: 0.9rem;
  }
  .hero-route-ticker-viewport{
    min-height: 0;
  }
  .hero-route-ticker-item{
    min-height: 84px;
    flex-basis: 84px;
  }
  .hero-route-ticker-card{
    padding: 0.7rem;
    border-radius: 14px;
  }
  .hero-route-ticker-icon{
    width: 24px;
    height: 24px;
  }
  .hero-route-ticker-icon svg{
    width: 16px;
    height: 16px;
  }
  .hero-route-ticker-title{
    font-size: 0.92rem;
  }
  .hero-route-ticker--full-title .hero-route-ticker-title{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-route-ticker-meta{
    font-size: 0.72rem;
  }
  .hero-route-footer{
    max-width: 100%;
  }
  .info-badge{ padding: 0.75rem 1rem; max-width: 85%; }
}
@media (max-width: 480px){
  .hero-pills .pill{ padding: 0.45rem 0.85rem; font-size: 0.8125rem; }
  .hero-headline{ font-size: clamp(1.65rem, 8vw, 2.25rem); }
  .hero-subheadline{ font-size: 0.9375rem; }
  .route-panel--ticker-full{
    min-height: 292px;
  }
  .route-panel--ticker-full .hero-route-ticker{
    padding: 0.75rem;
  }
  .hero-route-ticker-item{
    min-height: 78px;
    flex-basis: 78px;
  }
  .hero-route-ticker-card{
    gap: 0.55rem;
    padding: 0.65rem;
  }
  .hero-route-ticker-title{
    font-size: 0.86rem;
    line-height: 1.25;
  }
  .hero-route-ticker-meta{
    font-size: 0.68rem;
  }
}
@media (max-width: 420px){
  .section-head{ flex-direction: column; align-items: flex-start; }
  .section-head .section-text{ max-width: 100%; }
}
@media (max-width: 380px){
  .glory-hero .hero-content{ padding: 3.5rem 0 3rem; }
  .hero-headline{ font-size: clamp(1.4rem, 7vw, 1.9rem); }
  .hero-subheadline{ font-size: 0.875rem; }
  .hero-pills .pill{ padding: 0.4rem 0.75rem; font-size: 0.75rem; }
  .hero-actions .btn{ min-height: 44px; padding: 0.6rem 1rem; }
  .info-badge{ padding: 0.65rem 0.85rem; max-width: 92%; font-size: 0.85rem; }
  .section-title{ font-size: clamp(1.5rem, 5vw, 1.85rem); }
  .section-text{ font-size: 0.9375rem; }
}

/* ---------------------------
   COUNTERS
---------------------------- */
.counters .section-head{ margin-bottom: 2.1rem; }

.counter-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.counter-card{
  border-radius: var(--glory-radius);
  border: 1px solid var(--glory-border);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 1.25rem 1.2rem 1.05rem;
  overflow: hidden;
}
html[data-theme="dark"] .counter-card{
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 54px rgba(0,0,0,0.45);
}
.counter-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin-bottom: .85rem;
}
.counter-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(46,125,50,0.12);
  border: 1px solid rgba(46,125,50,0.18);
  font-size: 1.15rem;
}
.counter-num{
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--glory-heading-color, var(--glory-ink));
}
.counter-label{ color: var(--glory-heading-color, var(--glory-ink)); }
.counter-image{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--glory-border);
}
.counter-label{
  font-weight: 850;
  font-size: 1.05rem;
  margin-bottom: .35rem;
}
.counter-desc{
  color: var(--glory-text-color, var(--glory-muted));
  font-size: .97rem;
  line-height: 1.55;
}

@media (max-width: 980px){
  .counter-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .counter-grid{ grid-template-columns: 1fr; }
}

.counters--minimal .counter-grid{ gap: 0.85rem; }
.counters--minimal .counter-card{
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.25rem 1rem;
  align-items: center;
}
.counters--minimal .counter-top{ grid-column: 1; grid-row: 1 / -1; margin-bottom: 0; }
.counters--minimal .counter-icon{ width: 38px; height: 38px; font-size: 1rem; }
.counters--minimal .counter-num{ font-size: 1.5rem; }
.counters--minimal .counter-label{ grid-column: 2; grid-row: 1; margin-bottom: 0; }
.counters--minimal .counter-desc{ grid-column: 2; grid-row: 2; margin-top: 0; font-size: 0.9rem; }
.counters--minimal .counter-card .counter-image{ width: 38px; height: 38px; }

/* ---------------------------
   ABOUT (2x2 features)
---------------------------- */
.about-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.4rem;
  align-items: center;
}
.about-media{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.about-media img{
  width: 100%;
  height: min(520px, 62vh);
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid var(--glory-border);
  box-shadow: var(--glory-shadow);
  position: relative;
  left: 0;
  top: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.3s ease;
}
.about-media:hover img:first-of-type{
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  border-color: rgba(46, 125, 50, 0.25);
}
.about-media:hover img.about-media-2{
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(46, 125, 50, 0.2);
}
@media (prefers-reduced-motion: reduce){
  .about-media img{ transition: none; }
  .about-media:hover img{ transform: none; }
}
.about-media img.about-media-2{
  height: min(260px, 32vh);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.3s ease;
}
@media (min-width: 660px){
  .about-media img.about-media-2{
    max-width: 55%;
    align-self: flex-end;
  }
}

.about-feats{
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.feat{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .75rem;
  align-items: flex-start;
  padding: .9rem .9rem;
  border-radius: var(--glory-radius-sm);
  border: 1px solid var(--glory-border);
  background: rgba(255,255,255,0.44);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .feat{ background: rgba(255,255,255,0.06); }
.feat-icon{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(46,125,50,0.12);
  border: 1px solid rgba(46,125,50,0.18);
  font-size: 1.12rem;
}
.feat-title{
  font-weight: 900;
  margin: .12rem 0 .25rem;
  color: var(--glory-ink);
}
.feat-text{
  color: var(--glory-muted);
  font-size: .97rem;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-media img{ height: 52vh; }
}
@media (max-width: 520px){
  .about-feats{ grid-template-columns: 1fr; }
}

/* ---------------------------
   DUO cards
---------------------------- */
.duo-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.duo-card{
  border-radius: 26px;
  border: 1px solid var(--glory-border);
  background: rgba(255,255,255,0.55);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
html[data-theme="dark"] .duo-card{
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 54px rgba(0,0,0,0.45);
}
.duo-card--accent{
  border-color: rgba(46,125,50,0.28);
  background: linear-gradient(180deg, rgba(46,125,50,0.12), rgba(255,255,255,0.52));
}
html[data-theme="dark"] .duo-card--accent{
  background: linear-gradient(180deg, rgba(46,125,50,0.12), rgba(255,255,255,0.06));
}
.duo-icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(46,125,50,0.14);
  border: 1px solid rgba(46,125,50,0.2);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.duo-card h3{
  margin: 0 0 .65rem;
  font-size: 1.35rem;
  color: var(--glory-ink);
}
.duo-card p{
  margin: 0 0 1.1rem;
  color: var(--glory-muted);
  line-height: 1.65;
}
@media (max-width: 860px){
  .duo-grid{ grid-template-columns: 1fr; }
}

/* ---------------------------
   ANNOUNCEMENTS
---------------------------- */
.ann-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.1rem;
}
.ann-card{
  display: block;
  padding: 1.2rem 1.15rem;
  border-radius: 22px;
  border: 1px solid var(--glory-border);
  background: rgba(255,255,255,0.55);
  text-decoration: none;
  color: var(--glory-ink);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
html[data-theme="dark"] .ann-card{
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 54px rgba(0,0,0,0.45);
}
.ann-card:hover{
  transform: translateY(-3px);
  border-color: rgba(46,125,50,0.35);
  box-shadow: 0 18px 42px rgba(0,0,0,0.10);
}
.ann-meta{
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--glory-muted);
  font-size: .92rem;
  margin-bottom: .65rem;
}
.dot{ opacity: .7; }
.ann-title{
  font-weight: 900;
  font-size: 1.12rem;
  margin-bottom: .45rem;
  line-height: 1.3;
  color: var(--glory-ink);
}
.ann-excerpt{
  color: var(--glory-muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 980px){
  .ann-grid{ grid-template-columns: 1fr; }
}

/* ---------------------------
   POSTS / UPDATES / BLOG cards
---------------------------- */
.post-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.post-card{
  display: block;
  border-radius: 24px;
  border: 1px solid var(--glory-border);
  background: rgba(255,255,255,0.55);
  overflow: hidden;
  text-decoration: none;
  color: var(--glory-ink);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
html[data-theme="dark"] .post-card{
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 54px rgba(0,0,0,0.45);
}
.post-card:hover{
  transform: translateY(-3px);
  border-color: rgba(46,125,50,0.35);
}
.post-media{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(46,125,50,0.10);
}
.post-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-thumb-fallback{
  width: 100%;
  height: 100%;
  background:
    radial-gradient(1000px 520px at 30% 20%, rgba(46,125,50,0.18), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10));
}
html[data-theme="dark"] .post-thumb-fallback{
  background:
    radial-gradient(1000px 520px at 30% 20%, rgba(46,125,50,0.14), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.post-body{ padding: 1.05rem 1.1rem 1.2rem; }
.post-meta{
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--glory-muted);
  font-size: .92rem;
  margin-bottom: .55rem;
}
.post-title{
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.28;
  margin-bottom: .45rem;
  color: var(--glory-ink);
}
.post-excerpt{
  color: var(--glory-muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 980px){
  .post-grid{ grid-template-columns: 1fr; }
}

/* ---------------------------
   Carousel (Updates / any horizontal track)
---------------------------- */
.carousel{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
}
.carousel-track{
  overflow: hidden;
  scroll-behavior: smooth;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(100%, 320px), 1fr);
  gap: 1.05rem;
  padding-bottom: .25rem;
}
.carousel-track::-webkit-scrollbar{ height: 10px; }
.carousel-track::-webkit-scrollbar-thumb{ background: rgba(46,125,50,0.22); border-radius: 999px; }

.carousel-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--glory-border);
  background: rgba(255,255,255,0.55);
  color: var(--glory-ink);
  font-size: 1.4rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}
html[data-theme="dark"] .carousel-btn{ background: rgba(255,255,255,0.06); }
.carousel-btn:hover{ transform: translateY(-2px); }

@media (max-width: 720px){
  .section-head--row{
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .section-head--row > .btn{
    width: 100%;
    justify-content: center;
  }

  .carousel{
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
  }

  .carousel-track{
    grid-column: 1 / -1;
    grid-auto-columns: 84%;
    gap: 0.85rem;
  }

  .carousel-btn{
    display: grid;
    width: 100%;
    min-height: 46px;
    font-size: 1.2rem;
  }

  .carousel-btn[data-carousel-prev]{
    order: 2;
  }

  .carousel-btn[data-carousel-next]{
    order: 3;
  }
}

/* ---------------------------
   TESTIMONIALS (full coverage)
---------------------------- */
.testimonials-wrap{
  display: grid;
  gap: 1.1rem;
}

.testimonials-carousel{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
}

.testimonials-track{
  overflow: hidden;
  scroll-behavior: smooth;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(100%, 340px), 1fr);
  gap: 1.15rem;
  padding-bottom: .25rem;
}

.testimonial-card{
  border-radius: 26px;
  border: 1px solid var(--glory-border);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 1.35rem 1.3rem;
  overflow: hidden;
  display: grid;
  gap: 1rem;
}
html[data-theme="dark"] .testimonial-card{
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 54px rgba(0,0,0,0.45);
}

.testimonial-quote{
  margin: 0;
  color: var(--glory-ink);
  font-size: 1.06rem;
  line-height: 1.7;
}
.testimonial-quote::before{
  content: "“";
  color: rgba(46,125,50,0.55);
  font-weight: 900;
  margin-right: .15rem;
}
.testimonial-quote::after{
  content: "”";
  color: rgba(46,125,50,0.55);
  font-weight: 900;
  margin-left: .15rem;
}

.testimonial-person{
  display: flex;
  align-items: center;
  gap: .85rem;
}
.testimonial-avatar{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--glory-border);
  background: rgba(46,125,50,0.10);
}
.testimonial-name{
  font-weight: 900;
  margin: 0;
  line-height: 1.15;
  color: var(--glory-ink);
}
.testimonial-role{
  margin: .15rem 0 0;
  color: var(--glory-muted);
  font-weight: 650;
  font-size: .95rem;
}

@media (max-width: 720px){
  .testimonials-carousel{
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
  }

  .testimonials-track{
    grid-column: 1 / -1;
    grid-auto-columns: 86%;
    gap: 0.9rem;
  }

  .testimonials-carousel .carousel-btn{
    display: grid;
    width: 100%;
    min-height: 46px;
  }
}

/* ---------------------------
   RECOMMENDATIONS
---------------------------- */
.reco-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.15rem;
}
.reco-card{
  border-radius: 24px;
  border: 1px solid var(--glory-border);
  background: rgba(255,255,255,0.55);
  padding: 1.25rem 1.2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
html[data-theme="dark"] .reco-card{
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 54px rgba(0,0,0,0.45);
}
.reco-top{
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .7rem;
}
.reco-icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(46,125,50,0.12);
  border: 1px solid rgba(46,125,50,0.18);
  font-size: 1.2rem;
}
.reco-title{
  font-weight: 950;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--glory-ink);
}
.reco-text{
  color: var(--glory-muted);
  line-height: 1.65;
  margin: 0;
}
.reco-actions{ margin-top: .95rem; }
.reco-link{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 850;
  text-decoration: none;
  color: var(--glory-accent);
}
.reco-link:hover{ text-decoration: underline; }

@media (max-width: 980px){
  .reco-grid{ grid-template-columns: 1fr; }
}

/* ---------------------------
   FINAL CTA
---------------------------- */
.final-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.7rem, 4vw, 2.4rem);
  border-radius: 30px;
  border: 1px solid rgba(46,125,50,0.28);
  background: linear-gradient(135deg, rgba(46,125,50,0.14), rgba(255,255,255,0.62));
  box-shadow: var(--glory-shadow);
}
html[data-theme="dark"] .final-inner{
  background: linear-gradient(135deg, rgba(46,125,50,0.16), rgba(255,255,255,0.06));
}
.final-copy .section-title{ margin-bottom: .65rem; color: var(--glory-title-color, var(--glory-heading-color, var(--glory-ink))); }
.final-copy .section-text{ color: var(--glory-text-color, var(--glory-muted)); }
.final-copy .section-kicker{ color: var(--glory-kicker-color, var(--glory-accent-2)); }

.final-cta--stacked .final-inner{
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
.final-cta--stacked .final-actions .btn{ width: 100%; max-width: 280px; margin: 0 auto; }

@media (max-width: 820px){
  .final-inner{ flex-direction: column; align-items: stretch; }
  .final-actions .btn{ width: 100%; }
}

/* ---------------------------
   Small spacing fixes for very narrow screens
---------------------------- */
@media (max-width: 420px){
  .section-head{ flex-direction: column; align-items: flex-start; }
  .section-head .section-text{ max-width: 100%; }

  .ann-card,
  .post-card,
  .testimonial-card,
  .reco-card,
  .counter-card,
  .duo-card{
    border-radius: 20px;
  }

  .ann-card,
  .post-body,
  .testimonial-card,
  .reco-card,
  .counter-card,
  .duo-card{
    padding-inline: 1rem;
  }
}
