:root {
  --portal-blue:#0758b8;
  --portal-blue-2:#0b6bdd;
  --portal-blue-3:#063f86;
  --portal-gold:#f4b400;
  --portal-gold-2:#ffd166;
  --ink:#0f172a;
  --muted:#64748b;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --ring:rgba(148,163,184,.22);
  --shadow-soft:0 18px 55px rgba(15,23,42,.10);
  --shadow-lift:0 28px 80px rgba(15,23,42,.18);
  --radius-xl:1.35rem;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { min-width:320px; }
img, video, iframe { max-width:100%; }
main { overflow-x:hidden; }

.site-body {
  background:
    radial-gradient(circle at top left, rgba(7,88,184,.10), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 45%, #eef4fb 100%);
  color:var(--ink);
}

::selection { background:rgba(244,180,0,.35); color:#07111f; }

.portal-container { width:min(100% - 2rem, 80rem); margin-inline:auto; }

/* Public header */
.site-header {
  position:sticky;
  top:0;
  z-index:50;
  background:linear-gradient(135deg, rgba(5,46,105,.96), rgba(7,88,184,.94));
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:0 16px 45px rgba(2,6,23,.22);
  backdrop-filter:blur(18px);
}
.site-logo-mark { box-shadow:0 12px 32px rgba(0,0,0,.22); }
.site-brand-text { letter-spacing:.01em; }
.nav-link {
  color:rgba(255,255,255,.88);
  border-radius:9999px;
  padding:.62rem .9rem;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover { background:rgba(255,255,255,.12); color:#fff; transform:translateY(-1px); }
.nav-contact { box-shadow:0 10px 24px rgba(244,180,0,.25); }
.mobile-menu-button { border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); }

.theme-toggle {
  border-radius:9999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.13);
  color:#fff;
  padding:.55rem .85rem;
  font-size:.8rem;
  font-weight:900;
  line-height:1;
  backdrop-filter:blur(10px);
  transition:transform .2s ease, background .2s ease;
}
.theme-toggle:hover { background:rgba(255,255,255,.22); transform:translateY(-1px); }

/* Hero */
.home-hero { min-height: calc(100vh - 80px); }
.hero-bg-slide { position:absolute; inset:0; }
.hero-bg-media { width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.02); }
.hero-bg-embed iframe { width:100% !important; height:100% !important; pointer-events:none; }
.hero-bg-embed { background:#020617; }
.hero-slider-btn { z-index:30; background:rgba(15,23,42,.36); backdrop-filter: blur(12px); }
.hero-slider-btn:hover { background:rgba(15,23,42,.72); }
.home-hero h1 { overflow-wrap:anywhere; word-break:normal; letter-spacing:-.055em; }
.home-hero .hero-content-card,
.home-hero .rounded-2xl.border.border-white\/20,
.home-hero .rounded-2xl.border.border-white\/20.bg-slate-950\/25 {
  border-radius:1.5rem;
  background:linear-gradient(135deg, rgba(15,23,42,.42), rgba(7,88,184,.24));
  box-shadow:0 20px 60px rgba(2,6,23,.28);
}

/* Generic page hero styling for existing pages */
.site-body section.bg-portalBlue.py-16.text-white {
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(244,180,0,.30), transparent 20rem),
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.18), transparent 22rem),
    linear-gradient(135deg, #0758b8 0%, #064ca2 52%, #031b3d 100%) !important;
  border-bottom:1px solid rgba(7,88,184,.18);
}
.site-body section.bg-portalBlue.py-16.text-white::after {
  content:"";
  position:absolute;
  right:-8rem;
  top:-10rem;
  width:24rem;
  height:24rem;
  border-radius:9999px;
  background:rgba(255,255,255,.10);
  filter:blur(1px);
  pointer-events:none;
}
.site-body section.bg-portalBlue.py-16.text-white > div { position:relative; z-index:1; }
.site-body section.bg-portalBlue.py-16.text-white h1 { letter-spacing:-.045em; line-height:1.04; }
.site-body section.bg-portalBlue.py-16.text-white p { max-width:46rem; font-size:1.05rem; line-height:1.7; }

/* Slider */
.portal-slider { position:relative; aspect-ratio:16/10; min-height:320px; }
.portal-slide { position:absolute; inset:0; opacity:0; pointer-events:none; transition:opacity .55s ease; }
.portal-slide.is-active { opacity:1; pointer-events:auto; }
.slider-btn {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  height:2.7rem;
  width:2.7rem;
  border-radius:9999px;
  background:rgba(15,23,42,.58);
  color:white;
  font-size:1.85rem;
  line-height:1;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 16px 34px rgba(2,6,23,.28);
}
.slider-btn:hover { background:rgba(15,23,42,.85); }
.slider-dot { height:.68rem; width:.68rem; border-radius:9999px; background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.7); }
.slider-dot.is-active { background:var(--portal-gold); border-color:var(--portal-gold); transform:scale(1.1); }

/* Homepage media */
.homepage-media-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(244,180,0,.24), transparent 24rem),
    radial-gradient(circle at 90% 20%, rgba(255,255,255,.18), transparent 22rem),
    linear-gradient(135deg, #0758b8 0%, #064da0 50%, #031b3d 100%);
}
.homepage-media-section::before {
  content:"";
  position:absolute;
  inset:auto -10% -35% -10%;
  height:42%;
  background:linear-gradient(180deg, transparent, rgba(2,6,23,.18));
  pointer-events:none;
}
.homepage-media-title { font-size:clamp(2.15rem, 5vw, 4.15rem); letter-spacing:-.055em; }
.media-showcase-shell { position:relative; }
.media-showcase-shell::after {
  content:"";
  position:absolute;
  inset:12px;
  border-radius:1.5rem;
  pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
.media-showcase-slider { aspect-ratio:16/9; min-height:auto; }
.media-showcase-item { width:100%; height:100%; object-fit:cover; display:block; background:#020617; }
.media-showcase-embed iframe { width:100% !important; height:100% !important; display:block; border:0; }
.media-showcase-caption { padding-bottom:calc(1rem + env(safe-area-inset-bottom)); }

/* Content and prose */
.prose-content p { margin: 0 0 1rem; line-height: 1.85; }
.prose-content ul { list-style: disc; margin: 1rem 0 1rem 1.5rem; }
.prose-content ol { list-style: decimal; margin: 1rem 0 1rem 1.5rem; }
.prose-content a { color: var(--portal-blue); font-weight: 800; text-decoration: underline; text-decoration-thickness:2px; text-underline-offset:3px; }
.prose-content img { border-radius: 1.1rem; max-width: 100%; height: auto; box-shadow:var(--shadow-soft); }
.prose-content iframe { width:100%; border:0; border-radius:1rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Cards, buttons, forms */
.card {
  border-radius:var(--radius-xl);
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(226,232,240,.92);
  backdrop-filter:blur(10px);
}
a.card, article.card, div.card { transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
a.card:hover, article.card:hover, div.card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lift); border-color:rgba(7,88,184,.20); }
.card img { transition:transform .35s ease; }
a.card:hover img, article.card:hover img { transform:scale(1.035); }

.form-input {
  width:100%;
  border-radius:1rem;
  border:1px solid #cbd5e1;
  background:#fff;
  padding:.85rem 1rem;
  outline:none;
  box-shadow:0 1px 0 rgba(15,23,42,.02);
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-input:focus { border-color:var(--portal-blue); box-shadow:0 0 0 4px rgba(7,88,184,.14); }
textarea.form-input { min-height:8rem; }

.btn-primary, .btn-gold, .btn-danger {
  border-radius:1rem;
  padding:.78rem 1.08rem;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
  min-height:2.85rem;
}
.btn-primary { background:linear-gradient(135deg, var(--portal-blue), var(--portal-blue-2)); color:white; box-shadow:0 14px 30px rgba(7,88,184,.24); }
.btn-gold { background:linear-gradient(135deg, var(--portal-gold), var(--portal-gold-2)); color:#0f172a; box-shadow:0 14px 30px rgba(244,180,0,.28); }
.btn-danger { background:linear-gradient(135deg, #dc2626, #ef4444); color:white; box-shadow:0 14px 30px rgba(220,38,38,.20); }
.btn-primary:hover, .btn-gold:hover, .btn-danger:hover { transform:translateY(-2px); filter:saturate(1.08); }

/* Public listing/search forms */
.site-body form.rounded-2xl.bg-white,
.site-body form.card {
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}

/* Better white blocks */
.site-body section.bg-white.py-16,
.site-body section.bg-white.py-14 {
  background:
    radial-gradient(circle at 88% 8%, rgba(7,88,184,.07), transparent 20rem),
    linear-gradient(180deg, #ffffff, #f8fafc) !important;
}

/* Tables */
.table-responsive { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-responsive::-webkit-scrollbar { height:.7rem; }
.table-responsive::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:9999px; }
.admin-table { min-width:760px; border-collapse:separate; border-spacing:0; }
.admin-table th {
  background:#f8fafc;
  text-align:left;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#475569;
  white-space:nowrap;
}
.admin-table th, .admin-table td { padding:1rem; border-bottom:1px solid #e2e8f0; vertical-align:top; }
.admin-table tbody tr { transition:background .2s ease; }
.admin-table tbody tr:hover { background:#f8fbff; }

/* Admin layout */
.admin-body {
  background:
    radial-gradient(circle at top left, rgba(7,88,184,.10), transparent 26rem),
    linear-gradient(180deg, #f7fbff, #eef4fb);
  min-height:100vh;
}
.admin-shell { min-height:100vh; }
.admin-sidebar {
  background:
    radial-gradient(circle at 20% 0%, rgba(244,180,0,.16), transparent 18rem),
    linear-gradient(180deg, #020617 0%, #061226 100%);
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:18px 0 45px rgba(2,6,23,.14);
}
.admin-brand { border-bottom:1px solid rgba(255,255,255,.08); }
.admin-nav { scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.22) transparent; }
.admin-nav a {
  display:flex;
  align-items:center;
  gap:.75rem;
  border-radius:1rem;
  padding:.78rem 1rem;
  font-weight:800;
  color:#cbd5e1;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.admin-nav a:hover { background:rgba(255,255,255,.10); color:#fff; transform:translateX(2px); }
.admin-nav a.is-admin-active { background:linear-gradient(135deg, var(--portal-blue), #0b6bdd); color:#fff; box-shadow:0 12px 30px rgba(7,88,184,.28); }
.admin-nav-icon { display:grid; place-items:center; width:1.65rem; height:1.65rem; border-radius:.7rem; background:rgba(255,255,255,.08); font-size:.95rem; }
.admin-topbar {
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(226,232,240,.8);
  box-shadow:0 12px 35px rgba(15,23,42,.06);
  backdrop-filter:blur(18px);
}
.admin-content { padding:1.25rem; }
.admin-kicker { color:#64748b; }
.admin-quick-card {
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
  border:1px solid rgba(226,232,240,.9);
}
.admin-backdrop { display:none; position:fixed; inset:0; z-index:55; background:rgba(2,6,23,.55); backdrop-filter:blur(4px); }
.admin-backdrop.is-open { display:block; }
.admin-menu-button { border:1px solid rgba(15,23,42,.10); background:#fff; box-shadow:0 10px 25px rgba(15,23,42,.08); }

[data-type-card].is-selected { box-shadow:0 16px 34px rgba(7,88,184,.16); }

/* Pagination */
.pagination a, .pagination span {
  border-radius:.85rem !important;
}

/* Dark mode */
.theme-dark body,
.theme-dark .site-body { background:#020617 !important; color:#e5e7eb !important; }
.theme-dark .site-header { background:linear-gradient(135deg, rgba(2,6,23,.97), rgba(3,27,61,.94)); border-color:rgba(148,163,184,.18); }
.theme-dark .bg-white { background-color:#0f172a !important; }
.theme-dark .bg-slate-50 { background-color:#020617 !important; }
.theme-dark .bg-slate-100 { background-color:#111827 !important; }
.theme-dark .text-slate-950,
.theme-dark .text-slate-900,
.theme-dark .text-slate-800 { color:#f8fafc !important; }
.theme-dark .text-slate-700,
.theme-dark .text-slate-600,
.theme-dark .text-slate-500 { color:#cbd5e1 !important; }
.theme-dark .text-blue-50 { color:#dbeafe !important; }
.theme-dark .card { background:rgba(15,23,42,.92); border-color:rgba(148,163,184,.22); box-shadow:0 18px 55px rgba(0,0,0,.38); }
.theme-dark .card:hover { border-color:rgba(96,165,250,.30); box-shadow:0 28px 70px rgba(0,0,0,.46); }
.theme-dark .form-input { background:#0f172a; border-color:#334155; color:#e5e7eb; }
.theme-dark .form-input::placeholder { color:#94a3b8; }
.theme-dark .admin-table th { background:#1e293b; color:#cbd5e1; }
.theme-dark .admin-table td { border-color:#334155; }
.theme-dark .admin-table tbody tr:hover { background:rgba(30,41,59,.55); }
.theme-dark .prose-content a { color:#93c5fd; }
.theme-dark .portal-slider { background:#020617; }
.theme-dark .theme-toggle { border-color:rgba(244,180,0,.55); background:rgba(244,180,0,.14); color:#fef3c7; }
.theme-dark footer { background:#020617 !important; }
.theme-dark .admin-body { background:linear-gradient(180deg, #020617, #061226) !important; color:#e5e7eb !important; }
.theme-dark .admin-topbar { background:rgba(15,23,42,.86); border-color:rgba(148,163,184,.20); }
.theme-dark .admin-menu-button,
.theme-dark .admin-quick-card { background:#0f172a; border-color:#334155; }
.theme-dark .site-body section.bg-white.py-16,
.theme-dark .site-body section.bg-white.py-14 { background:linear-gradient(180deg, #0f172a, #020617) !important; }
.theme-dark [data-type-card].is-selected { background:rgba(7,88,184,.22) !important; }

/* Responsive polish */
@media (max-width: 1023px) {
  .admin-sidebar {
    position:fixed;
    inset:0 auto 0 0;
    z-index:60;
    width:min(86vw, 22rem);
    transform:translateX(-105%);
    transition:transform .25s ease;
  }
  .admin-sidebar.is-open { transform:translateX(0); }
  .admin-shell { display:block; }
  .admin-content { padding:1rem; }
  .admin-table th, .admin-table td { padding:.85rem; }
}

@media (min-width: 1024px) {
  .admin-sidebar { position:sticky; top:0; height:100vh; overflow-y:auto; }
  .admin-content { padding:2rem; }
}

@media (max-width: 767px) {
  body { -webkit-text-size-adjust:100%; }
  .site-header nav { padding-block:.75rem; }
  .site-brand-text { max-width:12rem; font-size:.78rem; }
  #mainMenu:not(.hidden) {
    display:grid;
    position:absolute;
    left:1rem;
    right:1rem;
    top:calc(100% + .65rem);
    width:auto;
    gap:.2rem;
    border:1px solid rgba(255,255,255,.14);
    border-radius:1.25rem;
    background:linear-gradient(180deg, rgba(5,46,105,.98), rgba(2,6,23,.97));
    padding:.8rem;
    box-shadow:0 24px 70px rgba(2,6,23,.35);
  }
  #mainMenu a, #mainMenu button { width:100%; justify-content:flex-start; }
  .home-hero { min-height:auto; }
  .home-hero > .relative { min-height:620px; align-items:flex-start; padding-top:5.2rem; padding-bottom:4rem; }
  .home-hero h1 { font-size:clamp(2.35rem, 11vw, 4.2rem); line-height:.96; letter-spacing:-.055em; }
  .home-hero p { max-width:100%; }
  .portal-slider { aspect-ratio:4/3; min-height:230px; }
  .slider-btn { height:2.25rem; width:2.25rem; font-size:1.5rem; }
  .card { border-radius:1.05rem; }
  .site-body section.bg-portalBlue.py-16.text-white { padding-block:3rem !important; }
  .site-body section.bg-portalBlue.py-16.text-white h1 { font-size:clamp(2rem, 10vw, 3rem) !important; }
  .site-body section[class*="py-12"],
  .site-body section[class*="py-14"],
  .site-body section[class*="py-16"] { padding-top:3rem; padding-bottom:3rem; }
  .homepage-media-section { padding-top:2.75rem; padding-bottom:3rem; }
  .homepage-media-heading { margin-bottom:1rem; }
  .homepage-media-title { font-size:clamp(2rem, 9vw, 3rem); line-height:1.02; }
  .media-showcase-shell { width:100%; border-radius:1.35rem; padding:.65rem; }
  .media-showcase-shell::after { inset:8px; border-radius:1rem; }
  .media-showcase-slider { aspect-ratio:4/3; min-height:0; border-radius:1rem; }
  .media-showcase-caption { padding:.9rem; }
  .media-showcase-caption h2 { font-size:1.15rem; line-height:1.15; }
  .media-showcase-caption p { font-size:.85rem; line-height:1.35; }
  .btn-primary, .btn-gold, .btn-danger { width:100%; }
  form .btn-primary, form .btn-gold, form .btn-danger { width:100%; }
  .admin-topbar { align-items:flex-start; gap:.75rem; padding:1rem !important; }
  .admin-topbar h1 { font-size:1.25rem; }
  .admin-topbar-actions { width:100%; justify-content:flex-start; flex-wrap:wrap; }
}

@media (max-width: 480px) {
  .portal-container { width:min(100% - 1.5rem, 80rem); }
  .site-logo-mark { height:2.65rem !important; width:2.65rem !important; }
  .home-hero > .relative { min-height:580px; padding-top:4.5rem; }
  .portal-slider { min-height:210px; }
  .media-showcase-slider { aspect-ratio:1/1; }
  .media-showcase-slider .slider-btn { height:2rem; width:2rem; font-size:1.25rem; }
  .media-showcase-slider [data-slider-dots] { bottom:.65rem; }
  .admin-content { padding:.85rem; }
  .admin-table { min-width:680px; }
}

/* v8 responsive header/footer fixes */
.site-header nav { gap:.65rem; }
.brand-link { flex:1 1 auto; min-width:0; max-width:100%; }
.site-brand-text {
  min-width:0;
  max-width:min(58vw, 22rem);
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:normal;
  word-break:normal;
}
.site-footer, .site-footer * { min-width:0; }
.site-footer .grid > div { min-width:0; }
.footer-brand-card { width:100%; overflow:hidden; }
.footer-brand-row { min-width:0; }
.footer-brand-copy { min-width:0; max-width:100%; }
.footer-site-name {
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
}
.footer-map-card img { display:block; width:100%; height:auto; }

@media (max-width: 767px) {
  .brand-link { gap:.55rem; max-width:calc(100% - 6.5rem); }
  .site-brand-text {
    max-width:100%;
    font-size:clamp(.68rem, 3.15vw, .86rem);
    line-height:1.04;
    letter-spacing:.005em;
  }
  .site-header .flex.items-center.gap-2.md\:hidden { flex:0 0 auto; gap:.45rem; }
  .site-header .theme-toggle { padding:.5rem .64rem; font-size:.72rem; }
  .mobile-menu-button { padding:.62rem; }
  .site-footer { margin-top:2.5rem; }
  .site-footer > div:first-child {
    grid-template-columns:1fr !important;
    gap:1.2rem;
    padding:2rem 1rem 2.25rem;
  }
  .footer-brand-card { border-radius:1.35rem; padding:1rem; }
  .footer-brand-row { align-items:flex-start; gap:.85rem; }
  .footer-logo { width:3.6rem !important; height:3.6rem !important; padding:.25rem !important; }
  .footer-kicker { font-size:.68rem; letter-spacing:.14em; }
  .footer-site-name { font-size:clamp(1.15rem, 6.3vw, 1.7rem); line-height:1.08; }
  .site-footer p { font-size:.95rem; line-height:1.6; }
  .footer-map-card { border-radius:1.25rem; padding:.55rem; }
  .footer-map-card img { max-height:260px; object-fit:contain; }
  .site-footer .relative { width:100%; }
  .site-footer h3 { font-size:1.1rem; }
  .site-footer ul { display:grid; grid-template-columns:1fr 1fr; gap:.5rem .9rem; }
  .site-footer ul li { margin:0 !important; }
  .site-footer .border-t { padding-inline:1rem; line-height:1.5; }
}

@media (max-width: 420px) {
  .brand-link { max-width:calc(100% - 5.65rem); }
  .site-logo-mark { height:2.45rem !important; width:2.45rem !important; }
  .site-brand-text { font-size:clamp(.62rem, 3vw, .76rem); line-height:1.04; }
  .site-header .theme-toggle { padding:.45rem .54rem; font-size:.66rem; }
  .mobile-menu-button { padding:.54rem; }
  .mobile-menu-button span { width:1.25rem; }
  .footer-brand-row { gap:.7rem; }
  .footer-logo { width:3.15rem !important; height:3.15rem !important; }
  .footer-site-name { font-size:clamp(1rem, 6vw, 1.45rem); }
  .site-footer ul { grid-template-columns:1fr; }
}

/* v9 homepage text admin + safer hero text wrapping */
.homepage-text-preview { position:sticky; top:6rem; align-self:start; }
.homepage-text-preview h3 { overflow-wrap:anywhere; word-break:normal; }
.home-hero .relative.z-20 > div { min-width:0; }
.home-hero h1 { max-width:100%; }
@media (max-width: 767px) {
  .homepage-text-preview { position:static; }
  .home-hero .relative.z-20 { padding-left:1rem; padding-right:1rem; }
  .home-hero h1 { font-size:clamp(2.1rem, 10.5vw, 3.45rem) !important; line-height:1.02; }
  .home-hero .rounded-2xl.border.border-white\/20 { margin-top:1.25rem; padding:1rem; }
}

/* v10 animated welcome hero title */
.hero-title-animated {
  display:inline-block;
  max-width:100%;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
  color:#fff;
  transform-origin:left center;
  animation:heroTitleRise .9s cubic-bezier(.16,1,.3,1) both, heroTitlePulse 5.5s ease-in-out infinite 1.1s;
}

@supports ((-webkit-background-clip:text) or (background-clip:text)) {
  .hero-title-animated {
    background:linear-gradient(90deg, #ffffff 0%, #ffffff 35%, #f4b400 50%, #ffffff 65%, #ffffff 100%);
    background-size:230% auto;
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    animation:heroTitleRise .9s cubic-bezier(.16,1,.3,1) both, heroTitleShine 3.8s ease-in-out infinite 1s;
  }
}

@keyframes heroTitleRise {
  from { opacity:0; transform:translateY(22px) scale(.985); filter:blur(5px); }
  to { opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
}

@keyframes heroTitleShine {
  0%, 22% { background-position:210% center; }
  58%, 100% { background-position:-40% center; }
}

@keyframes heroTitlePulse {
  0%, 100% { text-shadow:0 16px 34px rgba(2,6,23,.34); }
  50% { text-shadow:0 18px 45px rgba(244,180,0,.20), 0 16px 34px rgba(2,6,23,.34); }
}

.homepage-text-preview .hero-title-animated {
  animation:heroTitleRise .75s cubic-bezier(.16,1,.3,1) both, heroTitleShine 3.8s ease-in-out infinite 1s;
}

@media (max-width: 767px) {
  .home-hero h1.hero-title-animated {
    font-size:clamp(2rem, 9.5vw, 3.35rem) !important;
    line-height:1.02;
    letter-spacing:-.05em;
  }
}

@media (max-width: 420px) {
  .home-hero h1.hero-title-animated {
    font-size:clamp(1.75rem, 8.8vw, 2.8rem) !important;
    line-height:1.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-animated {
    animation:none !important;
  }
}

/* v11 fixed Homepage Text backend */
.homepage-text-admin .form-input {
  min-height:3.15rem;
}
.homepage-text-admin textarea.form-input {
  resize:vertical;
}
.homepage-save-bar {
  box-shadow:0 18px 55px rgba(2, 6, 23, .14);
}
.theme-dark .homepage-save-bar {
  background:rgba(15,23,42,.94) !important;
}
.theme-dark .homepage-text-admin .card h3,
.theme-dark .homepage-text-admin .card .text-slate-900,
.theme-dark .homepage-text-preview strong {
  color:#f8fafc !important;
}
.theme-dark .homepage-text-admin .text-slate-700,
.theme-dark .homepage-text-admin .text-slate-600 {
  color:#cbd5e1 !important;
}
.theme-dark .homepage-text-admin .text-slate-500 {
  color:#94a3b8 !important;
}
.theme-dark .homepage-text-preview .bg-slate-100 {
  background:rgba(15,23,42,.8) !important;
  color:#f8fafc !important;
}
@media (max-width: 767px) {
  .homepage-text-admin { display:block; }
  .homepage-text-admin form { display:block; }
  .homepage-text-admin form > * + * { margin-top:1rem; }
  .homepage-save-bar { position:static; margin-top:1rem; }
  .homepage-text-admin .hero-admin-card .btn-gold,
  .homepage-text-admin .hero-admin-card a { width:100%; }
}


/* v12 force requested welcome title display + stronger responsive sizing */
.home-hero h1.hero-title-animated {
  text-transform:uppercase;
  max-width:min(980px, 100%);
  font-size:clamp(3.2rem, 7.4vw, 6.9rem) !important;
  line-height:.96;
  letter-spacing:-.065em;
}

@media (max-width: 767px) {
  .home-hero h1.hero-title-animated {
    font-size:clamp(2rem, 10vw, 3.25rem) !important;
    line-height:1.04;
    letter-spacing:-.045em;
  }
}

@media (max-width: 420px) {
  .home-hero h1.hero-title-animated {
    font-size:clamp(1.7rem, 9.2vw, 2.55rem) !important;
    line-height:1.06;
  }
}

/* v19 dynamic Featured Slide caption sync with hero background */
#heroFeaturedCaption {
  transition: transform .35s ease, opacity .35s ease;
}

#heroFeaturedCaption.caption-swap {
  animation: captionSwap .45s ease both;
}

@keyframes captionSwap {
  0% {
    opacity: .45;
    transform: translateY(10px) scale(.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
