/* ==========================================================================
   Dr. Anoof's Rheuma Care — 2026 refresh
   Loaded after the original theme CSS. Homepage sections are scoped to
   .home-2026; shared components (floating buttons, forms) apply site-wide.
   ========================================================================== */

:root {
    --c-blue: #127dc2;      /* brand blue (logo / theme) */
    --c-blue-dark: #0e6aa6;
    --c-navy: #0b3a5c;
    --c-ink: #1d2733;
    --c-muted: #50606f;
    --c-mist: #eef5fb;
    --c-line: #d9e4ee;
    --c-orange: #f58220;    /* brand orange — used for the primary action */
    --c-orange-dark: #e06f0f;
    --c-wa: #25d366;
    --radius-s: 6px;
    --radius-m: 12px;
    --shadow: 0 10px 30px rgba(11, 58, 92, .12);
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 10000;
    background: var(--c-navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; color: #fff; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--c-orange) !important; outline-offset: 2px;
}

/* ---------- Footer contact strip links ---------- */
.first-footer .featured-title h5 a { color: #fff; }
.first-footer .featured-title h5 a:hover { color: #fff; text-decoration: underline; }

/* ---------- Header ticker ---------- */
.top-news-item { margin-right: 48px; }

/* ---------- Buttons ---------- */
.btn-2026 {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px; border-radius: var(--radius-s);
    font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: 0;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-accent { background: var(--c-orange); color: var(--c-ink); }
.btn-accent:hover, .btn-accent:focus { background: var(--c-orange-dark); color: var(--c-ink); }
.btn-primary { background: var(--c-blue-dark); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--c-navy); color: #fff; }
.btn-outline { border-color: var(--c-blue-dark); color: var(--c-blue-dark); background: transparent; }
.btn-outline:hover, .btn-outline:focus { background: var(--c-blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--c-navy); }
.btn-light:hover, .btn-light:focus { background: var(--c-mist); color: var(--c-navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost:hover, .btn-ghost:focus { background: #fff; color: var(--c-navy); }
.btn-2026[disabled] { opacity: .65; cursor: progress; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.home-2026 { color: var(--c-ink); font-weight: 400; font-size: 16px; line-height: 1.65; }
.home-2026 .site-main p { color: var(--c-ink); }
.home-2026 .site-main a:not(.btn-2026) { color: var(--c-blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.home-2026 .site-main .conditions a, .home-2026 .site-main a.video, .home-2026 .site-main .visit-item a { text-decoration: none; }
.home-2026 .site-main a.video .video-caption { color: var(--c-ink); }
.home-2026 .site-main a.video:hover .video-caption { color: var(--c-blue-dark); text-decoration: underline; }
.home-2026 .site-main a:not(.btn-2026):hover { color: var(--c-navy); }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--c-navy); overflow: hidden; }
.hero-track { position: relative; height: clamp(460px, 40vw, 640px); }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-slide.is-active .hero-media img { animation: hero-zoom 9s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.045); } to { transform: scale(1); } }

.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-copy .container { width: 100%; }
.hero-dark .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 58, 92, .88) 0%, rgba(11, 58, 92, .62) 38%, rgba(11, 58, 92, 0) 68%);
}
.hero-dark.hero-text-right .hero-media::after {
    background: linear-gradient(270deg, rgba(11, 58, 92, .88) 0%, rgba(11, 58, 92, .62) 38%, rgba(11, 58, 92, 0) 68%);
}
.hero-text-right .hero-copy-inner { margin-left: auto; }
.hero-copy-inner { max-width: 560px; padding: 32px 0 112px; }
.hero-title {
    font-family: var(--font); font-weight: 700; letter-spacing: -.01em;
    font-size: clamp(30px, 3.6vw, 50px); line-height: 1.12; margin: 0 0 16px; color: #fff;
}
.hero-text { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; margin: 0 0 28px; color: rgba(255, 255, 255, .92); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* light slide (pale photo) — dark text instead of an overlay */
.hero-light .hero-title { color: var(--c-navy); }
.hero-light .hero-text { color: var(--c-ink); }
.hero-light .btn-ghost { border-color: var(--c-navy); color: var(--c-navy); background: rgba(255, 255, 255, .6); }
.hero-light .btn-ghost:hover, .hero-light .btn-ghost:focus { background: var(--c-navy); color: #fff; }

.hero-controls {
    position: absolute; left: 0; right: 0; bottom: 74px; z-index: 3;
    display: flex; align-items: center; gap: 10px; pointer-events: none;
}
.hero-controls > * { pointer-events: auto; }
.hero-arrow {
    width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
    background: rgba(255, 255, 255, .92); color: var(--c-navy); font-size: 22px; line-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-arrow:hover { background: #fff; }
.hero-toggle { font-size: 14px; margin-left: 4px; }
.hero-toggle .fa-play, .hero-toggle.is-paused .fa-pause { display: none; }
.hero-toggle.is-paused .fa-play { display: inline-block; }
.hero-dots { display: flex; gap: 6px; padding: 0 6px; }
.hero-dot {
    width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.hero-dot::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .6); transition: width .3s ease, background-color .3s ease; }
.hero-dot.is-active::before { width: 26px; background: var(--c-orange); }

/* ---------- Visit panel (overlaps the hero) ---------- */
.block, .visit { position: relative; }
.visit { margin-top: -56px; z-index: 5; }
.visit-panel {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 28px; align-items: center;
    background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow); padding: 28px 32px;
    border-top: 4px solid var(--c-blue);
}
.visit-item { display: flex; gap: 14px; align-items: flex-start; }
.visit-icon {
    flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--c-mist); color: var(--c-blue-dark);
    display: inline-flex; align-items: center; justify-content: center; font-size: 19px;
}
.visit-title { font-family: var(--font); font-size: 15px; font-weight: 600; margin: 0 0 4px; color: var(--c-navy); line-height: 1.3; }
.visit-item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--c-muted) !important; }
.home-2026 .visit-item a:not(.btn-2026) { font-weight: 600; text-decoration: none; }

/* ---------- Shared section rhythm ---------- */
.block { padding: 88px 0; }
.block-title {
    font-family: var(--font); font-weight: 700; color: var(--c-navy);
    font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.005em; margin: 0 0 16px;
}
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.block-head p { max-width: 62ch; margin: 0; color: var(--c-muted) !important; }
.lead-2026 { font-size: 18px; line-height: 1.6; }

/* ---------- About ---------- */
.block-about { padding-top: 96px; }
.about-photo { position: relative; margin: 0 24px 24px 0; }
.about-photo::before {
    content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius-m);
    background: var(--c-orange); opacity: .9;
}
.about-photo img { position: relative; display: block; width: 100%; height: auto; border-radius: var(--radius-m); }
.about-copy { padding-left: 24px; max-width: 640px; }
.facts { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: baseline; }
.facts i { color: var(--c-blue); width: 20px; text-align: center; font-size: 17px; }
.facts strong { font-weight: 600; color: var(--c-navy); }

/* ---------- Doctor (the bold moment) ---------- */
.block-doctor { background: var(--c-navy); color: #fff; overflow: hidden; }
.block-doctor::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%;
    border: 70px solid rgba(18, 125, 194, .35); pointer-events: none;
}
.doctor { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.doctor-photo img { width: 100%; height: auto; border-radius: var(--radius-m); display: block; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.doctor-role { color: #9fd0f0 !important; font-weight: 500; margin: 0 0 6px; font-size: 16px; }
.doctor-name {
    font-family: var(--font); font-weight: 700; color: #fff; margin: 0 0 18px;
    font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -.025em;
}
.doctor-intro { color: rgba(255, 255, 255, .88) !important; max-width: 56ch; margin-bottom: 26px; }
.credentials { margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.credentials > div { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.credentials dt { font-weight: 600; color: #fff; font-size: 15.5px; }
.credentials dd { margin: 2px 0 0; color: rgba(255, 255, 255, .75); font-size: 14.5px; line-height: 1.45; }
.doctor-reg { color: rgba(255, 255, 255, .7) !important; font-size: 14px; margin-bottom: 26px; }

/* ---------- Conditions ---------- */
.block-conditions { background: var(--c-mist); }
.conditions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-2026 .conditions a {
    display: flex; align-items: center; gap: 14px; height: 100%;
    padding: 14px 16px; background: #fff; border-radius: var(--radius-s); border: 1px solid var(--c-line);
    color: var(--c-ink); text-decoration: none; font-weight: 500; line-height: 1.3;
    transition: border-color .2s ease, color .2s ease;
}
.home-2026 .conditions a:hover { border-color: var(--c-blue); color: var(--c-blue-dark); }
.conditions img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }

/* ---------- Appointment form ---------- */
.appt-alt { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.appt-alt li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.appt-alt i { width: 36px; height: 36px; border-radius: 50%; background: var(--c-mist); color: var(--c-blue-dark); display: inline-flex; align-items: center; justify-content: center; }
.appt-alt .fa-whatsapp { color: #128c4b; }
.appt-form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-m); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: block; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span { display: block; font-weight: 600; font-size: 14px; color: var(--c-navy); margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--c-muted); }
.home-2026 .field input, .home-2026 .field textarea {
    width: 100%; border: 1px solid #b8c7d4; border-radius: var(--radius-s); padding: 11px 14px;
    font-size: 16px; letter-spacing: 0; color: var(--c-ink); background: #fff; min-height: 48px;
}
.home-2026 .field input:focus, .home-2026 .field textarea:focus { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(18, 125, 194, .18); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 22px; }
.form-note { margin: 0; flex: 1 1 240px; font-size: 13px; line-height: 1.5; color: var(--c-muted) !important; }
.form-alert { display: none; margin: 18px 0 0; }

/* ---------- Videos ---------- */
.block-videos { background: var(--c-mist); }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-2026 .videos .video { display: block; text-decoration: none; color: var(--c-ink); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: #cfdbe6; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.video:hover .video-thumb img { transform: scale(1.04); }
.video-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--c-orange-dark);
    display: flex; align-items: center; justify-content: center; font-size: 20px; padding-left: 4px;
}
.video-caption { display: block; margin-top: 12px; font-weight: 500; line-height: 1.45; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-h { margin: 0; font-size: inherit; }
.faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
    background: none; border: 0; padding: 20px 4px; text-align: left; cursor: pointer;
    font-family: var(--font); font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--c-navy); letter-spacing: 0;
}
.faq-q:hover { color: var(--c-blue-dark); }
.faq-icon { position: relative; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--c-mist); }
.faq-icon::before, .faq-icon::after {
    content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--c-blue-dark);
    transition: transform .3s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; transition: max-height .32s ease; }
.faq-a p { margin: 0; padding: 0 44px 22px 4px; max-width: 70ch; }

/* ==========================================================================
   Floating WhatsApp + Call buttons (all pages)
   ========================================================================== */
.float-contact {
    position: fixed; right: 18px; bottom: 18px; z-index: 990;
    display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
    padding-bottom: env(safe-area-inset-bottom);
}
.float-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%; color: #fff !important; text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .2s ease, box-shadow .2s ease;
}
.float-btn:hover, .float-btn:focus { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 24px rgba(0, 0, 0, .28); color: #fff; }
.float-wa { background: var(--c-wa); }
.float-wa svg { color: #fff; }
.float-call { background: var(--c-blue-dark); }
.float-label {
    position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
    background: var(--c-ink); color: #fff; font-size: 13px; font-weight: 500; line-height: 1;
    padding: 8px 10px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
}
.float-btn:hover .float-label, .float-btn:focus .float-label { opacity: 1; }
/* move "back to top" to the left so it never sits under the floating buttons */
#totop { right: auto !important; left: 18px !important; bottom: 18px !important; }
/* leave room above the buttons at the very end of the page */
.bottom-footer-text { padding-bottom: 90px !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
    .visit-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .visit-cta { grid-column: 1 / -1; justify-self: start; }
    .conditions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .block { padding: 64px 0; }
    .doctor { grid-template-columns: 1fr; gap: 32px; }
    .doctor-photo { max-width: 420px; }
    .about-copy { padding-left: 0; }
    .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visit-panel { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
    .visit-cta { width: 100%; }
}
@media (max-width: 767px) {
    /* Hero: photo on top, text on solid navy below — always readable */
    .hero-track { height: auto; display: grid; }
    .hero-slide { position: relative; grid-area: 1 / 1; inset: auto; }
    .hero-media { position: relative; display: block; height: 240px; }
    .hero-media img { position: absolute; }
    .hero-dark .hero-media::after, .hero-dark.hero-text-right .hero-media::after { background: linear-gradient(0deg, rgba(11, 58, 92, .55), rgba(11, 58, 92, 0) 45%); }
    .hero-copy { height: auto; background: var(--c-navy); }
    .hero-light .hero-copy { background: #e8e9eb; }
    .hero-copy-inner { padding: 26px 0 84px; max-width: none; }
    .hero-text { margin-bottom: 20px; }
    .hero-actions .btn-2026 { flex: 1 1 100%; }
    .hero-controls { bottom: 22px; }
    .hero-prev, .hero-next { display: none; }
    .hero-dots { background: rgba(11, 58, 92, .85); border-radius: 22px; }
    .visit { margin-top: 0; padding-top: 24px; }
    .visit-panel { box-shadow: none; border: 1px solid var(--c-line); border-top: 4px solid var(--c-blue); }
    .block-head { flex-direction: column; align-items: flex-start; }
    .conditions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-2026 .conditions a { padding: 12px; gap: 10px; font-size: 14.5px; }
    .conditions img { flex-basis: 32px; width: 32px; height: 32px; }
    .credentials { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .appt-form { padding: 22px 18px; }
    .videos { grid-template-columns: 1fr; }
    .about-photo { margin-right: 16px; margin-bottom: 16px; }
    .about-photo::before { inset: 16px -16px -16px 16px; }
    .faq-q { font-size: 16px; }
    .faq-a p { padding-right: 8px; }
    .float-btn { width: 52px; height: 52px; }
    .float-label { display: none; }
}
@media (max-width: 359px) {
    .conditions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slide.is-active { transition: none; }
    .hero-slide.is-active .hero-media img { animation: none; }
    .faq-a, .faq-icon::before, .faq-icon::after, .video-thumb img, .float-btn { transition: none; }
}

/* ==========================================================================
   Header (2026) — orange info bar + white navigation bar
   ========================================================================== */
body .page { overflow: hidden; overflow: clip !important; }  /* "hidden" alone would stop the sticky header working; clip keeps the same visual result */
.sh { position: sticky; top: -42px; z-index: 1000; font-family: var(--font); }
.sh-bar { background: var(--c-orange); color: var(--c-ink); font-size: 13.5px; line-height: 1; }
.sh-bar-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; height: 42px; }
.sh-ticker { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.sh-ticker-icon { font-size: 14px; }
.sh-ticker marquee { flex: 1 1 auto; min-width: 0; }
.sh .top-news-item { margin-right: 64px; color: var(--c-ink); }
.sh-bar-phone { color: var(--c-ink); font-weight: 600; }
.sh-lang { display: flex; align-items: stretch; flex: 0 0 auto; }
.sh-lang a {
    display: flex; align-items: center; padding: 0 16px; color: var(--c-ink); font-weight: 500; text-decoration: none;
}
.sh-lang a:hover { background: rgba(255, 255, 255, .25); color: var(--c-ink); }
.sh-lang a.is-current { background: var(--c-blue-dark); color: #fff; }

.sh-main { background: #fff; box-shadow: 0 1px 0 var(--c-line); transition: box-shadow .2s ease; }
.sh.is-stuck .sh-main { box-shadow: 0 6px 20px rgba(11, 58, 92, .10); }
.sh-main-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; position: relative; }
.sh-logo { flex: 0 0 auto; display: block; }
.sh-logo img { display: block; width: 210px; height: auto; }

.sh-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.sh .sh-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.sh .sh-menu > li { position: relative; }
.sh .sh-menu > li > a, .sh .sh-sub-btn {
    display: inline-flex; align-items: center; gap: 6px; position: relative;
    padding: 12px 12px; margin: 0; border: 0; background: none; border-radius: 0;
    font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: 0;
    color: var(--c-ink); text-decoration: none; cursor: pointer; text-transform: none;
}
.sh .sh-menu > li > a::after, .sh .sh-sub-btn::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px;
    background: var(--c-orange); transform: scaleX(0); transition: transform .2s ease;
}
.sh .sh-menu > li > a:hover, .sh .sh-sub-btn:hover, .sh .sh-menu > li > a.is-current, .sh .sh-sub-btn.is-current { color: var(--c-blue-dark); }
.sh .sh-menu > li > a:hover::after, .sh .sh-sub-btn:hover::after,
.sh .sh-menu > li > a.is-current::after, .sh .sh-sub-btn.is-current::after { transform: scaleX(1); }
.sh .sh-sub-btn .fa { font-size: 14px; transition: transform .2s ease; }
.sh .sh-sub-btn[aria-expanded="true"] .fa { transform: rotate(180deg); }

/* dropdowns (theme JS also adds .sub-menu to these lists — overridden here) */
.sh ul.sh-sub {
    list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 200px;
    background: #fff; border-radius: var(--radius-s); box-shadow: var(--shadow); border-top: 3px solid var(--c-blue);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    display: block; width: auto; height: auto; z-index: 20;
}
.sh .sh-has-sub.is-open > ul.sh-sub {
    opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
@media (hover: hover) and (min-width: 1200px) {
    .sh .sh-has-sub:hover > ul.sh-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
}
.sh ul.sh-sub a {
    display: block; padding: 10px 12px; border-radius: 4px; color: var(--c-ink); font-size: 14.5px; font-weight: 500; text-decoration: none;
}
.sh ul.sh-sub a:hover, .sh ul.sh-sub a[aria-current="page"] { background: var(--c-mist); color: var(--c-blue-dark); }

.sh-cta { flex: 0 0 auto; }
.sh-cta .fa, .sh-nav-extra .fa { font-size: 16px; }
.sh-nav-extra { display: none; }

.sh-toggle {
    display: none; margin-left: auto; width: 48px; height: 48px; padding: 0; border: 1px solid var(--c-line);
    border-radius: var(--radius-s); background: #fff; cursor: pointer; position: relative;
}
.sh-toggle-bars, .sh-toggle-bars::before, .sh-toggle-bars::after {
    position: absolute; left: 13px; width: 20px; height: 2px; border-radius: 2px; background: var(--c-navy);
    transition: transform .2s ease, opacity .2s ease;
}
.sh-toggle-bars { top: 22px; }
.sh-toggle-bars::before, .sh-toggle-bars::after { content: ""; left: 0; }
.sh-toggle-bars::before { top: -7px; }
.sh-toggle-bars::after { top: 7px; }
.sh-toggle[aria-expanded="true"] .sh-toggle-bars { background: transparent; }
.sh-toggle[aria-expanded="true"] .sh-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.sh-toggle[aria-expanded="true"] .sh-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Large desktop: tighten spacing a little */
@media (max-width: 1399px) and (min-width: 1200px) {
    .sh-main-inner { gap: 18px; }
    .sh .sh-menu > li > a, .sh .sh-sub-btn { padding: 12px 9px; font-size: 14.5px; }
    .sh .sh-menu > li > a::after, .sh .sh-sub-btn::after { left: 9px; right: 9px; }
    .sh-logo img { width: 190px; }
}

/* Tablet & phone: menu collapses into a panel under the bar */
@media (max-width: 1199px) {
    .sh-toggle { display: inline-block; order: 3; margin-left: 0; }
    .sh-cta { order: 2; margin-left: auto; }
    .sh-main-inner { min-height: 76px; gap: 14px; }
    .sh-nav {
        position: absolute; left: 0; right: 0; top: 100%; display: block;
        background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 16px 30px rgba(11, 58, 92, .15);
        max-height: calc(100vh - 120px); overflow-y: auto; padding: 8px 15px 20px;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }
    .sh.is-open .sh-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
    .sh .sh-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .sh .sh-menu > li { border-bottom: 1px solid var(--c-line); }
    .sh .sh-menu > li > a, .sh .sh-sub-btn { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 16px; }
    .sh .sh-menu > li > a::after, .sh .sh-sub-btn::after { display: none; }
    .sh .sh-menu > li > a.is-current, .sh .sh-sub-btn.is-current { color: var(--c-blue-dark); font-weight: 600; }
    .sh ul.sh-sub {
        position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 10px 12px;
        display: none; opacity: 1; visibility: visible; transform: none; transition: none;
    }
    .sh .sh-has-sub.is-open > ul.sh-sub { display: block; }
    .sh-nav-extra { display: grid; gap: 12px; margin-top: 18px; }
    .sh-nav-extra .btn-2026 { width: 100%; }
    .sh-nav-call { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 600; color: var(--c-blue-dark); text-decoration: none; border: 1px solid var(--c-line); border-radius: var(--radius-s); }
}
@media (max-width: 767px) {
    .sh { top: -38px; }
    .sh-bar-inner { height: 38px; gap: 8px; }
    .sh-bar { font-size: 12.5px; }
    .sh-lang a { padding: 0 9px; }
    .sh-cta { display: none; }
    .sh-toggle { margin-left: auto; }
    .sh-main-inner { min-height: 68px; }
    .sh-logo img { width: 170px; }
}
@media (max-width: 380px) {
    .sh-ticker-icon { display: none; }
    .sh-lang a { padding: 0 7px; }
    .sh-logo img { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-nav, .sh ul.sh-sub, .sh-toggle-bars, .sh-toggle-bars::before, .sh-toggle-bars::after { transition: none !important; }
}

/* in-page anchors land below the sticky header */
[id] { scroll-margin-top: 100px; }

/* Header container: wider than the theme's 1140px so logo + menu + button fit on one line */
@media (min-width: 1200px) {
    .sh .container { max-width: 1320px; padding-left: 24px; padding-right: 24px; }
    .sh .sh-menu > li > a, .sh .sh-sub-btn, .sh-cta { white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1299px) {
    .sh-cta { padding-left: 16px; padding-right: 16px; font-size: 14px; }
    .sh .sh-menu > li > a, .sh .sh-sub-btn { padding: 12px 7px; font-size: 14px; }
    .sh .sh-menu > li > a::after, .sh .sh-sub-btn::after { left: 7px; right: 7px; }
    .sh-logo img { width: 170px; }
}
@media (min-width: 1300px) {
    .sh-main-inner { gap: 20px; }
    .sh .sh-menu > li > a, .sh .sh-sub-btn { padding-left: 10px; padding-right: 10px; }
    .sh .sh-menu > li > a::after, .sh .sh-sub-btn::after { left: 10px; right: 10px; }
}

/* Announcement ticker: starts at the left; scrolls only when the text is longer than the bar */
.sh-ticker-track { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.sh-ticker-move { display: inline-flex; }
.sh .sh-ticker-move .top-news-item { margin-right: 64px; }
.sh-ticker-track.is-scrolling .sh-ticker-move { animation: sh-ticker var(--ticker-duration, 30s) linear 2s infinite; }
.sh-ticker-track.is-scrolling:hover .sh-ticker-move,
.sh-ticker-track.is-scrolling:focus .sh-ticker-move { animation-play-state: paused; }
.sh-ticker-track:focus-visible { outline: 2px solid var(--c-navy) !important; outline-offset: -2px; }
@keyframes sh-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .sh-ticker-track.is-scrolling .sh-ticker-move { animation: none; }
    .sh-ticker-track { overflow-x: auto; }
}
