
:root {
    /* ===== THEME: Ivory / Maroon / Sage / Gold ===== */
    --fx-ivory:        #F8F5EE;
    --fx-ivory-soft:   #FDFBF6;
    --fx-ivory-deep:   #F1EBDD;
    --fx-maroon:       #641F35;
    --fx-maroon-dark:  #4a1526;
    --fx-maroon-light: #7a2942;
    --fx-maroon-tint:  rgba(100,31,53,.09);
    --fx-maroon-line:  rgba(100,31,53,.16);
    --fx-maroon-line-soft: rgba(100,31,53,.10);
    --fx-sage:         #A9BBA5;
    --fx-sage-soft:    #eef3ec;
    --fx-gold:         #C4A66A;
    --fx-gold-dark:    #a8894f;
    --fx-gold-soft:    #f7f1e4;
    --fx-gold-tint:    rgba(196,166,106,.12);
    --fx-white:        #FFFFFF;
    --fx-text:         #641F35;
    --fx-text-soft:    #7a6a70;

    /* Aliases (existing class names ke liye) */
    --fx-blue:         var(--fx-maroon);
    --fx-red:          var(--fx-gold);
    --fx-head-bg:      var(--fx-maroon);
    --fx-blue-tint:    var(--fx-maroon-tint);
    --fx-red-tint:     var(--fx-gold-tint);
    --fx-line:         var(--fx-maroon-line);
    --fx-w-80:         rgba(255,255,255,.88);
    --fx-w-line:       rgba(255,255,255,.24);
    --fx-w-soft:       rgba(255,255,255,.10);
    --fx-font:         'Poppins', sans-serif;
}

/* Fonts */
.fx-head, .fx-head *, .fx-mobile-strip, .fx-mobile-strip *,
.fx-nav-wrap, .fx-nav-wrap *, .fx-drawer, .fx-drawer *,
.fx-news-modal, .fx-news-modal *,
.fx-burger, .fx-close, .fx-logout, .fx-m-trigger, .fx-m-btn { font-family: var(--fx-font); }

.fx-head i, .fx-mobile-strip i, .fx-nav-wrap i, .fx-drawer i, .fx-news-modal i { font-family: "Font Awesome 5 Free","Font Awesome 6 Free","Font Awesome 5 Brands","Font Awesome 6 Brands",sans-serif; }
.fx-head i.fab, .fx-drawer i.fab { font-family: "Font Awesome 5 Brands","Font Awesome 6 Brands" !important; }
.fx-head i.fas, .fx-mobile-strip i.fas, .fx-nav-wrap i.fas, .fx-drawer i.fas, .fx-news-modal i.fas { font-family: "Font Awesome 5 Free","Font Awesome 6 Free" !important; font-weight: 900; }
.fx-news-modal i.far { font-family: "Font Awesome 5 Free","Font Awesome 6 Free" !important; font-weight: 400; }

/* Progress bar */
.fx-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--fx-maroon), var(--fx-gold));
    z-index: 100000; transition: width .1s ease-out;
}

/* =========================================================
   HEADER BLOCK  → IVORY BACKGROUND
   ========================================================= */
.fx-head {
    position: relative; overflow: hidden; z-index: 1030;
    background: var(--fx-ivory);
    padding-bottom: 26px;
    border-bottom: 1px solid var(--fx-maroon-line-soft);
}
.fx-ring {
    position: absolute; width: 380px; height: 380px;
    right: -130px; top: -170px;
    border: 52px solid rgba(100,31,53,.05);
    border-radius: 50%;
    pointer-events: none;
}

/* =========================================================
   TOPBAR  → Maroon text on Ivory
   ========================================================= */
.fx-topbar {
    position: relative; padding: 6px 0;
    border-bottom: 1px solid var(--fx-maroon-line-soft);
    color: var(--fx-maroon); font-size: 12.5px;
}
.fx-top-contact { flex-shrink: 0; min-width: 0; }
.fx-top-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--fx-maroon); text-decoration: none; font-weight: 500;
    transition: color .2s;
}
.fx-top-link i { font-size: 11px; color: var(--fx-gold-dark); flex-shrink: 0; }
.fx-top-link:hover { color: var(--fx-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
/* Round icon chip for phone / email */
.fx-top-ico {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #FBF4E6; border: 1px solid #EBDDBB;
    transition: background-color .2s, border-color .2s;
}
.fx-top-ico i { font-size: 10.5px !important; line-height: 1; margin: 0; transform: none; }
.fx-top-link:hover .fx-top-ico { background: var(--fx-maroon); border-color: var(--fx-maroon); }
.fx-top-link:hover .fx-top-ico i { color: var(--fx-gold) !important; }

/* =========================================================
   NEWS TICKER  → Maroon text on Ivory
   ========================================================= */
.fx-ticker { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fx-ticker-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 12px; border-radius: 20px;
    background: var(--fx-maroon);
    color: var(--fx-ivory);
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.fx-ticker-badge i { color: var(--fx-gold); }
.fx-ticker-view {
    overflow: hidden; flex-grow: 1; min-width: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fx-ticker-track { display: flex; width: max-content; white-space: nowrap; animation: fxMarquee 35s linear infinite; }
.fx-ticker-group { display: flex; align-items: center; flex: 0 0 auto; min-width: 60vw; }

.fx-ticker-item {
    display: inline-flex; align-items: center;
    padding: 0 60px 0 0; margin: 0;
    border: 0; background: transparent; cursor: pointer; text-align: left;
    font: inherit; font-weight: 500; color: var(--fx-maroon); white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s;
}
.fx-ticker-item:hover { color: var(--fx-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.fx-ticker-item:focus-visible { outline: 2px solid var(--fx-maroon); outline-offset: 2px; border-radius: 4px; }
.fx-ticker-dot { font-size: 5px; margin-right: 12px; color: var(--fx-gold-dark); opacity: 1; }
.fx-ticker:hover .fx-ticker-track { animation-play-state: paused; }
body.fx-news-lock .fx-ticker-track { animation-play-state: paused; }
@keyframes fxMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   SOCIAL ICONS (topbar)  → Maroon outline + Maroon icon
   ========================================================= */
.fx-social a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(100,31,53,.25); border-radius: 50%;
    color: var(--fx-maroon); font-size: 12px; text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.fx-social a:hover {
    background: var(--fx-maroon); border-color: var(--fx-maroon);
    color: var(--fx-ivory); transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .fx-topbar-row { flex-wrap: wrap; row-gap: 6px; }
    .fx-top-contact { order: 1; flex: 1 1 0; min-width: 0; gap: 10px !important; }
    .fx-social { order: 2; }
    .fx-top-link { font-size: 11.5px; gap: 5px; min-width: 0; }
    .fx-top-phone { flex-shrink: 0; }
    .fx-top-mail { flex: 0 1 auto; min-width: 0; }
    .fx-top-mail span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
    .fx-ticker { order: 3; flex: 0 0 100%; width: 100%; gap: 8px; }
    .fx-ticker-badge { padding: 2px 10px; font-size: 10.5px; }
    .fx-ticker-group { min-width: 100vw; }
    .fx-ticker-item { padding-right: 40px; font-size: 12px; padding-top: 3px; padding-bottom: 3px; }
}

/* =========================================================
   BRAND  → Maroon title + muted tagline
   ========================================================= */
.fx-brand-inner { padding-top: 12px; padding-bottom: 4px; }
.fx-brand-link { gap: 14px; min-width: 0; }
.fx-logo-tile {
    width: 56px; height: 56px; flex: 0 0 56px; padding: 3px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--fx-white);
    box-shadow: 0 0 0 3px var(--fx-gold);
    transition: transform .25s;
}
.fx-logo-tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block; }
.fx-brand-link:hover .fx-logo-tile { transform: scale(1.05); }
.fx-logo-tile-sm { width: 42px; height: 42px; flex-basis: 42px; padding: 2px; box-shadow: 0 0 0 2px var(--fx-gold); }

.fx-brand-text { min-width: 0; display: block; }
.fx-title {
    margin: 0; color: var(--fx-maroon);
    font-size: 17px; font-weight: 700; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-tagline {
    display: block; margin-top: 2px; color: var(--fx-text-soft);
    font-size: 11px; font-weight: 500; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (min-width: 576px) {
    .fx-logo-tile { width: 60px; height: 60px; flex-basis: 60px; }
    .fx-title { font-size: 20px; }
    .fx-tagline { font-size: 12px; }
}
@media (min-width: 1200px) {
    .fx-head { padding-bottom: 32px; }
    .fx-title { font-size: 24px; }
    .fx-tagline { font-size: 13px; }
}
@media (max-width: 1199.98px) { .fx-head { padding-bottom: 10px; } .fx-brand-inner { padding-top: 8px; } }

@media (max-width: 1199.98px) {
    .fx-brand-link { flex: 1 1 auto; min-width: 0; gap: 10px; }
    .fx-brand-text { flex: 1 1 auto; min-width: 0; }

    .fx-title {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: break-word;
        font-size: 15px;
        line-height: 1.25;
    }
    .fx-tagline {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 11px;
        line-height: 1.35;
    }
    .fx-burger { margin-left: 8px; }
}
@media (min-width: 576px) and (max-width: 1199.98px) {
    .fx-title { font-size: 18px; }
    .fx-tagline { font-size: 12px; }
}

/* =========================================================
   HEADER BUTTONS  → Maroon bg + Ivory text
   ========================================================= */
.fx-btn {
    display: inline-flex; align-items: center;
    padding: 9px 22px; border: 2px solid transparent; border-radius: 30px;
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.fx-btn:hover { transform: translateY(-2px); }

.fx-btn-red,
.fx-btn-ghost {
    background: var(--fx-maroon);
    border-color: var(--fx-maroon);
    color: var(--fx-ivory) !important;
}
.fx-btn-red:hover,
.fx-btn-ghost:hover {
    background: var(--fx-gold);
    border-color: var(--fx-gold);
    color: var(--fx-maroon) !important;
}

/* =========================================================
   BURGER  → Maroon lines on Ivory
   ========================================================= */
.fx-burger {
    width: 42px; height: 42px; margin-left: 10px; padding: 0; flex-shrink: 0;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border: 1.5px solid rgba(100,31,53,.25); border-radius: 12px;
    background: transparent;
    transition: background-color .2s;
}
.fx-burger span { display: block; height: 2px; border-radius: 2px; background: var(--fx-maroon); transition: width .2s; }
.fx-burger span:nth-child(odd) { width: 20px; }
.fx-burger span:nth-child(2) { width: 14px; }
.fx-burger:hover { background: rgba(100,31,53,.06); }
.fx-burger:hover span:nth-child(2) { width: 20px; }

/* =========================================================
   MOBILE STRIP
   ========================================================= */
.fx-mobile-strip {
    background: var(--fx-ivory);
    border-bottom: 1px solid var(--fx-maroon-line-soft);
    box-shadow: 0 2px 8px -4px rgba(100,31,53,.10);
}
.fx-pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 7px 14px; border-radius: 20px;
    font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: transform .2s;
}
.fx-pill:active { transform: scale(.95); }
.fx-pill-light { background: var(--fx-white); color: var(--fx-maroon) !important; border: 1.5px solid var(--fx-maroon); }
.fx-pill-red  { background: var(--fx-gold);  color: var(--fx-maroon) !important; }
.fx-pill-blue { background: var(--fx-maroon); color: var(--fx-ivory) !important; }

/* =========================================================
   FLOATING NAVBAR
   ========================================================= */
.fx-nav-wrap {
    position: sticky; top: 8px; z-index: 1035;
    margin-top: -26px; margin-bottom: 8px;
    pointer-events: none;
}
.fx-nav {
    pointer-events: auto;
    height: 52px; width: 100%; padding: 0 6px 0 10px; gap: 10px;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--fx-white);
    border-radius: 50px;
    box-shadow: 0 0 0 1px var(--fx-maroon-line), 0 14px 30px -14px rgba(100,31,53,.5);
    transition: box-shadow .25s;
}
.fx-nav-wrap.stuck .fx-nav {
    box-shadow: 0 0 0 1px var(--fx-maroon-line), 0 18px 36px -12px rgba(100,31,53,.65);
}

.fx-menu { display: flex; align-items: center; justify-content: space-between; gap: 2px; flex: 1 1 auto; min-width: 0; margin: 0; white-space: nowrap; }
.fx-link {
    display: inline-flex; align-items: center;
    height: 38px; padding: 0 clamp(7px, .8vw, 15px);
    border-radius: 30px;
    font-size: clamp(11.5px, .88vw, 13.5px);
    font-weight: 600; text-decoration: none;
    transition: background-color .2s, color .2s;
    color: var(--fx-maroon);
}
.fx-link:hover,
.fx-dd.open > .fx-link { background: var(--fx-gold-tint); color: var(--fx-maroon); }
.fx-link.active,
.fx-link.active:hover { background: var(--fx-maroon); color: var(--fx-ivory) !important; }
.fx-caret { margin-left: 5px; font-size: 9px; transition: transform .25s; }
.fx-dd.open .fx-caret { transform: rotate(180deg); }
button.fx-link { border: 0; background: transparent; cursor: pointer; line-height: 1; }

.fx-dd { position: relative; }
.fx-dd-panel {
    position: absolute; top: 100%; left: 0; z-index: 999; min-width: 240px; padding-top: 12px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .2s, visibility .2s, transform .2s;
}
.fx-dd-panel.edge { left: auto; right: 0; }
.fx-dd.open .fx-dd-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.fx-dd-card {
    padding: 8px; border-radius: 16px;
    background: var(--fx-white);
    border: 1px solid var(--fx-maroon-line);
    border-top: 3px solid var(--fx-gold);
    box-shadow: 0 20px 36px -14px rgba(100,31,53,.4);
}
.fx-dd-card a {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px; border-radius: 10px;
    font-size: 13px; font-weight: 500; text-decoration: none;
    color: var(--fx-maroon);
    transition: background-color .2s, color .2s;
}
.fx-dd-card a:hover { background: var(--fx-gold-tint); }
.fx-dd-ico {
    width: 32px; height: 32px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: var(--fx-sage-soft); color: var(--fx-maroon);
    font-size: 13px;
    transition: background-color .2s, color .2s;
}
.fx-dd-card a:hover .fx-dd-ico { background: var(--fx-maroon); color: var(--fx-white); }

@media (hover: hover) and (pointer: fine) {
    .fx-dd:hover > .fx-dd-panel,
    .fx-dd:focus-within > .fx-dd-panel { opacity: 1; visibility: visible; transform: translateY(0); }
    .fx-dd:hover > .fx-link { background: var(--fx-gold-tint); color: var(--fx-maroon) !important; }
    .fx-dd:hover .fx-caret { transform: rotate(180deg); }
    .fx-dd:hover > .fx-link.active { background: var(--fx-maroon); color: var(--fx-ivory) !important; }
}

.fx-donate {
    flex: 0 0 auto;
    display: inline-flex; align-items: center;
    height: 40px; padding: 0 clamp(14px, 1.2vw, 22px);
    border-radius: 30px;
    background: var(--fx-gold);
    color: var(--fx-maroon) !important;
    font-size: 13px; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    animation: fxPulse 2.5s infinite;
    transition: transform .2s, background-color .2s, color .2s;
}
.fx-donate:hover { transform: translateY(-2px); background: var(--fx-maroon); color: var(--fx-ivory) !important; }
.fx-beat { animation: fxBeat 1.5s ease-in-out infinite; }
@keyframes fxBeat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@keyframes fxPulse {
    0%   { box-shadow: 0 0 0 0 rgba(196,166,106,.55); }
    70%  { box-shadow: 0 0 0 12px rgba(196,166,106,0); }
    100% { box-shadow: 0 0 0 0 rgba(196,166,106,0); }
}

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.fx-backdrop {
    position: fixed; inset: 0;
    background: rgba(59,31,43,.55);
    z-index: 99998;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.fx-backdrop.active { opacity: 1; visibility: visible; }
.fx-drawer {
    position: fixed; top: 0; right: 0; z-index: 99999;
    width: 88%; max-width: 360px;
    height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    background: var(--fx-ivory-soft);
    border-radius: 24px 0 0 24px;
    box-shadow: -15px 0 50px rgba(100,31,53,.4);
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.fx-drawer.active { transform: translateX(0); }
.fx-drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 16px;
    background: var(--fx-maroon);
    border-radius: 24px 0 0 0;
    border-bottom: 4px solid var(--fx-gold);
}
.fx-d-title { color: var(--fx-white); font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.fx-d-tag { color: var(--fx-w-80); font-size: 11px; font-weight: 500; line-height: 1.35; margin-top: 2px; }

.fx-drawer-head .overflow-hidden { overflow: visible !important; flex: 1 1 auto; min-width: 0; }
.fx-drawer-head .text-truncate,
.fx-drawer-head .fx-d-title,
.fx-drawer-head .fx-d-tag {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: break-word;
}
.fx-drawer-head .text-truncate { flex: 1 1 auto; min-width: 0; }

.fx-close {
    width: 36px; height: 36px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--fx-w-line); border-radius: 50%;
    background: transparent; color: var(--fx-white);
    transition: background-color .2s, color .2s, border-color .2s;
}
.fx-close:hover { background: var(--fx-gold); color: var(--fx-maroon); border-color: var(--fx-gold); }
.fx-drawer-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }

.fx-m-list { display: flex; flex-direction: column; gap: 4px; }
.fx-m-item,
.fx-m-trigger {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 9px 12px; border: none; border-radius: 12px;
    background: transparent; color: var(--fx-maroon);
    text-decoration: none; text-align: left;
    transition: background-color .2s;
}
.fx-m-trigger { justify-content: space-between; }
.fx-m-item:hover,
.fx-m-trigger:hover,
.fx-m-trigger.open { background: var(--fx-maroon-tint); }
.fx-m-item.active { background: var(--fx-gold-tint); }
.fx-m-ico {
    width: 36px; height: 36px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--fx-sage-soft); color: var(--fx-maroon);
    font-size: 14px;
    transition: background-color .2s, color .2s;
}
.fx-m-item:hover .fx-m-ico,
.fx-m-trigger:hover .fx-m-ico,
.fx-m-trigger.open .fx-m-ico { background: var(--fx-maroon); color: var(--fx-white); }
.fx-m-item.active .fx-m-ico { background: var(--fx-gold); color: var(--fx-maroon); }
.fx-m-label { font-size: 13.5px; font-weight: 600; }
.fx-m-arrow { font-size: 11px; transition: transform .25s; }
.fx-m-trigger.open .fx-m-arrow { transform: rotate(180deg); color: var(--fx-gold-dark); }

.fx-m-panel {
    display: flex; flex-direction: column; gap: 2px;
    margin-left: 28px; padding-left: 14px;
    border-left: 2px solid var(--fx-gold);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s;
}
.fx-m-panel.show { max-height: 400px; padding-top: 4px; padding-bottom: 6px; }
.fx-m-nested {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    color: var(--fx-maroon); font-size: 13px; font-weight: 500;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.fx-m-nested i { width: 16px; font-size: 11px; text-align: center; color: var(--fx-gold-dark); }
.fx-m-nested:hover { background: var(--fx-gold-tint); color: var(--fx-maroon); }

.fx-m-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--fx-maroon); border-radius: 14px;
    background: var(--fx-maroon); color: var(--fx-white) !important;
    font-size: 14px; font-weight: 600; text-decoration: none;
    transition: transform .15s;
}
.fx-m-btn:active { transform: scale(.98); }
.fx-m-btn-red { background: var(--fx-gold); border-color: var(--fx-gold); color: var(--fx-maroon) !important; }
.fx-logout { padding: 6px 12px; border: 0; background: transparent; color: var(--fx-maroon); font-weight: 600; }
.fx-m-new { margin-top: 10px; text-align: center; font-size: 13px; color: var(--fx-maroon); }
.fx-m-new a { margin-left: 4px; color: var(--fx-gold-dark); font-weight: 700; text-decoration: none; }

.fx-m-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--fx-maroon-line); }
.fx-m-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; color: var(--fx-maroon); font-size: 13px; font-weight: 500; }
.fx-m-row i { width: 18px; margin-top: 3px; flex-shrink: 0; text-align: center; color: var(--fx-gold-dark); }
.fx-m-row a { color: var(--fx-maroon); text-decoration: none; }
.fx-m-row a:hover { color: var(--fx-gold-dark); }
.fx-m-social { display: flex; gap: 8px; margin-top: 12px; }
.fx-m-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--fx-maroon); border-radius: 50%;
    color: var(--fx-maroon); text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}
.fx-m-social a:hover { background: var(--fx-gold); border-color: var(--fx-gold); color: var(--fx-maroon); }

/* =========================================================
   NEWS POPUP
   ========================================================= */
.fx-news-modal {
    position: fixed; inset: 0; z-index: 100001;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    visibility: hidden; pointer-events: none;
    transition: visibility 0s linear .3s;
}
.fx-news-modal.active { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.fx-news-overlay {
    position: absolute; inset: 0;
    background: rgba(59,31,43,.65);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .3s;
}
.fx-news-modal.active .fx-news-overlay { opacity: 1; }

.fx-news-dialog {
    position: relative; width: 100%; max-width: 640px;
    max-height: 88vh; max-height: 88dvh;
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--fx-ivory-soft);
    border-radius: 22px;
    border-top: 5px solid var(--fx-gold);
    box-shadow: 0 30px 70px -20px rgba(59,31,43,.7);
    opacity: 0; transform: translateY(24px) scale(.97);
    transition: opacity .3s, transform .35s cubic-bezier(.16,1,.3,1);
}
.fx-news-modal.active .fx-news-dialog { opacity: 1; transform: translateY(0) scale(1); }

.fx-news-grip { display: none; }
.fx-news-x {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%;
    background: rgba(253,251,246,.95); color: var(--fx-maroon);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s;
}
.fx-news-x:hover { background: var(--fx-gold); color: var(--fx-maroon); transform: rotate(90deg); }

.fx-news-scroll {
    flex: 1 1 auto; min-width: 0; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}

.fx-news-imgwrap { display: none; width: 100%; max-width: 100%; overflow: hidden; align-items: center; justify-content: center; background: var(--fx-sage-soft); }
.fx-news-imgwrap.has-img { display: flex; }
.fx-news-imgwrap img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 60vh; max-height: 60dvh; object-fit: contain; object-position: center; }

.fx-news-content { min-width: 0; max-width: 100%; padding: 20px 22px 8px; }
.fx-news-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 12px; border-radius: 20px;
    background: var(--fx-gold-soft); color: var(--fx-maroon);
    font-size: 11px; font-weight: 700;
}
.fx-news-title { margin: 12px 0 8px; color: var(--fx-maroon); font-size: 21px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.fx-news-date { display: none; align-items: center; gap: 6px; color: #7a6a70; font-size: 12.5px; font-weight: 500; }
.fx-news-date.show { display: inline-flex; }

/* ---- Description ---- */
.fx-news-desc {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--fx-maroon-line);
    color: #4a3a40; font-size: 14.5px; line-height: 1.75;
    max-width: 100%; min-width: 0; overflow: hidden; overflow-wrap: anywhere;
}
.fx-news-desc:empty { display: none; }
.fx-news-desc > :first-child { margin-top: 0; }
.fx-news-desc > :last-child  { margin-bottom: 0; }
.fx-news-desc * { max-width: 100%; box-sizing: border-box; }
.fx-news-desc .fx-plain,
.fx-news-desc p,
.fx-news-desc li,
.fx-news-desc div { white-space: pre-line; }
.fx-news-desc p { margin: 0 0 12px; }
.fx-news-desc h1, .fx-news-desc h2, .fx-news-desc h3,
.fx-news-desc h4, .fx-news-desc h5, .fx-news-desc h6 { margin: 18px 0 8px; color: var(--fx-maroon); font-weight: 700; line-height: 1.35; }
.fx-news-desc h1 { font-size: 22px; } .fx-news-desc h2 { font-size: 20px; } .fx-news-desc h3 { font-size: 18px; }
.fx-news-desc h4, .fx-news-desc h5, .fx-news-desc h6 { font-size: 16px; }
.fx-news-desc ul, .fx-news-desc ol { margin: 0 0 12px; padding-left: 24px; }
.fx-news-desc ul { list-style: disc; } .fx-news-desc ol { list-style: decimal; }
.fx-news-desc ul ul { list-style: circle; } .fx-news-desc ul ul ul { list-style: square; }
.fx-news-desc li { margin-bottom: 4px; display: list-item; }
.fx-news-desc strong, .fx-news-desc b { font-weight: 700; }
.fx-news-desc em, .fx-news-desc i { font-style: italic; }
.fx-news-desc u { text-decoration: underline; }
.fx-news-desc s, .fx-news-desc strike, .fx-news-desc del { text-decoration: line-through; }
.fx-news-desc mark { background: #f7f1e4; padding: 0 2px; }
.fx-news-desc sub { vertical-align: sub; font-size: .8em; } .fx-news-desc sup { vertical-align: super; font-size: .8em; }
.fx-news-desc a { color: var(--fx-maroon); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.fx-news-desc a:hover { color: var(--fx-gold-dark); }
.fx-news-desc blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 4px solid var(--fx-gold); background: var(--fx-sage-soft); border-radius: 0 8px 8px 0; }
.fx-news-desc hr { border: 0; border-top: 1px solid var(--fx-maroon-line); margin: 14px 0; }
.fx-news-desc pre { max-width: 100%; overflow-x: auto; padding: 10px 12px; border-radius: 8px; background: #f3efe6; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.fx-news-desc code { font-family: Consolas, Menlo, monospace; font-size: .92em; }

.fx-news-desc img { display: inline-block; max-width: 100% !important; height: auto !important; margin: 6px 0; border-radius: 8px; object-fit: contain; vertical-align: middle; }
.fx-news-desc figure { margin: 10px 0; }
.fx-news-desc figcaption { padding: 6px 4px 0; color: #7a6a70; font-size: 12.5px; text-align: center; }

.fx-tbl-wrap { max-width: 100%; overflow-x: auto; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.fx-news-desc table { max-width: none; border-collapse: collapse; width: 100%; }
.fx-news-desc td, .fx-news-desc th { padding: 6px 10px; border: 1px solid var(--fx-maroon-line); vertical-align: top; }
.fx-news-desc th { background: var(--fx-sage-soft); font-weight: 700; }

.fx-news-desc iframe.fx-embed { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin: 10px 0; background: #000; }

/* Quill classes */
.fx-news-desc .ql-align-center  { text-align: center; }
.fx-news-desc .ql-align-right   { text-align: right; }
.fx-news-desc .ql-align-justify { text-align: justify; }
.fx-news-desc .ql-direction-rtl { direction: rtl; text-align: inherit; }
.fx-news-desc .ql-indent-1 { padding-left: 3em; } .fx-news-desc .ql-indent-2 { padding-left: 6em; }
.fx-news-desc .ql-indent-3 { padding-left: 9em; } .fx-news-desc .ql-indent-4 { padding-left: 12em; }
.fx-news-desc .ql-size-small { font-size: .78em; } .fx-news-desc .ql-size-large { font-size: 1.5em; } .fx-news-desc .ql-size-huge { font-size: 2.2em; }
.fx-news-desc .ql-syntax { display: block; }

.fx-news-foot { flex: 0 0 auto; padding: 12px 22px 16px; border-top: 1px solid var(--fx-maroon-line); background: var(--fx-ivory-soft); text-align: right; }
.fx-news-btn {
    padding: 9px 28px; border: 0; border-radius: 30px;
    background: var(--fx-maroon); color: var(--fx-white);
    font-size: 13.5px; font-weight: 600; cursor: pointer;
    transition: background-color .2s, transform .15s, color .2s;
}
.fx-news-btn:hover { background: var(--fx-gold); color: var(--fx-maroon); }
.fx-news-btn:active { transform: scale(.97); }

@media (max-width: 575.98px) {
    .fx-news-modal { padding: 0; align-items: flex-end; }
    .fx-news-dialog {
        max-width: 100%; max-height: 90vh; max-height: 90dvh;
        border-radius: 24px 24px 0 0; border-top-width: 4px;
        transform: translateY(100%); opacity: 1;
        transition: transform .38s cubic-bezier(.16,1,.3,1);
    }
    .fx-news-modal.active .fx-news-dialog { transform: translateY(0); }
    .fx-news-grip { display: block; width: 42px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: rgba(100,31,53,.25); flex: 0 0 auto; }
    .fx-news-x { top: 14px; right: 12px; width: 34px; height: 34px; }
    .fx-news-imgwrap img { max-height: 45vh; max-height: 45dvh; }
    .fx-news-content { padding: 16px 16px 6px; }
    .fx-news-title { font-size: 18px; padding-right: 8px; }
    .fx-news-desc { font-size: 14px; }
    .fx-news-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
    .fx-news-btn { width: 100%; padding: 12px 16px; border-radius: 14px; }
}

/* =========================================================
   COLOUR GUARDS  → force Maroon theme on Ivory
   ========================================================= */
.fx-top-link { color: var(--fx-maroon) !important; }
.fx-top-link:hover { color: var(--fx-gold-dark) !important; }
.fx-top-link i { color: var(--fx-gold-dark) !important; }

.fx-social a { color: var(--fx-maroon) !important; text-decoration: none !important; border-color: rgba(100,31,53,.25) !important; }
.fx-social a:hover { color: var(--fx-ivory) !important; background: var(--fx-maroon) !important; border-color: var(--fx-maroon) !important; }

.fx-brand-link, .fx-brand-link:hover { color: var(--fx-maroon) !important; text-decoration: none !important; }
.fx-title { color: var(--fx-maroon) !important; }
.fx-tagline { color: var(--fx-text-soft) !important; }

.fx-ticker-item { color: var(--fx-maroon) !important; }
.fx-ticker-item:hover { color: var(--fx-gold-dark) !important; }

.fx-link { color: var(--fx-maroon) !important; text-decoration: none !important; }
.fx-link:hover, .fx-dd.open > .fx-link { color: var(--fx-maroon) !important; background: var(--fx-gold-tint) !important; }
.fx-link.active, .fx-link.active:hover { color: var(--fx-ivory) !important; background: var(--fx-maroon) !important; }

.fx-dd-card a { color: var(--fx-maroon) !important; text-decoration: none !important; }
.fx-dd-card a:hover { color: var(--fx-maroon) !important; }

.fx-btn-red, .fx-btn-ghost { color: var(--fx-ivory) !important; }
.fx-btn-red:hover, .fx-btn-ghost:hover { color: var(--fx-maroon) !important; }

.fx-pill-light { color: var(--fx-maroon) !important; }
.fx-pill-blue { color: var(--fx-ivory) !important; }

.fx-m-item, .fx-m-trigger { color: var(--fx-maroon) !important; }
.fx-m-item.active .fx-m-label { color: var(--fx-maroon) !important; }
.fx-m-nested { color: var(--fx-maroon) !important; }
.fx-m-nested:hover { color: var(--fx-maroon) !important; }
.fx-m-row a { color: var(--fx-maroon) !important; }
.fx-m-row a:hover { color: var(--fx-gold-dark) !important; }
.fx-m-new a { color: var(--fx-gold-dark) !important; }
.fx-m-social a { color: var(--fx-maroon) !important; }
.fx-m-social a:hover { color: var(--fx-maroon) !important; background: var(--fx-gold) !important; border-color: var(--fx-gold) !important; }

.fx-news-title { color: var(--fx-maroon) !important; }
.fx-news-btn { color: var(--fx-white) !important; }
.fx-news-btn:hover { color: var(--fx-maroon) !important; }
.fx-news-x { color: var(--fx-maroon) !important; }
.fx-news-x:hover { color: var(--fx-maroon) !important; }

@media (prefers-reduced-motion: reduce) {
    .fx-head *, .fx-nav-wrap *, .fx-drawer, .fx-backdrop, .fx-news-modal, .fx-news-modal * { animation: none !important; transition: none !important; }
}
