/**
 * FarHub Visual Intelligence Design System
 * Version: 6.5.3
 *
 * Editorial Minimalism
 * + Intelligence UI
 * + restrained Glassmorphism
 * + micro-Neumorphism
 */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {

    /* Brand */
    --fh-navy-950: #0b1029;
    --fh-navy-900: #111735;
    --fh-navy-850: #171e42;
    --fh-navy-800: #20294f;

    --fh-purple-700: #5836d6;
    --fh-purple-600: #6847eb;
    --fh-purple-500: #7657f5;
    --fh-purple-100: #eeeaff;
    --fh-purple-50:  #f7f5ff;

    /* Editorial surfaces */
    --fh-bg: #f5f7fb;
    --fh-surface: #ffffff;
    --fh-surface-soft: #f9faff;
    --fh-surface-muted: #f1f4fa;

    /* Text */
    --fh-text: #171b2f;
    --fh-text-secondary: #525a73;
    --fh-text-muted: #7e869d;
    --fh-text-on-dark: #ffffff;

    /* Borders */
    --fh-border: rgba(35, 44, 84, .11);
    --fh-border-strong: rgba(35, 44, 84, .18);
    --fh-purple-border: rgba(104, 71, 235, .22);

    /* Semantic */
    --fh-success: #18875d;
    --fh-success-bg: #eaf8f2;

    --fh-warning: #a96b09;
    --fh-warning-bg: #fff7e5;

    --fh-danger: #c33f4a;
    --fh-danger-bg: #fff0f1;

    --fh-info: #3867d6;
    --fh-info-bg: #eef4ff;

    /* Radius */
    --fh-radius-xs: 6px;
    --fh-radius-sm: 9px;
    --fh-radius-md: 13px;
    --fh-radius-lg: 17px;
    --fh-radius-xl: 22px;

    /* Shadows */
    --fh-shadow-xs:
        0 1px 2px rgba(16, 24, 64, .04);

    --fh-shadow-sm:
        0 2px 8px rgba(16, 24, 64, .06),
        0 1px 2px rgba(16, 24, 64, .04);

    --fh-shadow-md:
        0 8px 24px rgba(16, 24, 64, .08),
        0 2px 5px rgba(16, 24, 64, .04);

    --fh-shadow-hover:
        0 12px 30px rgba(16, 24, 64, .11),
        0 3px 8px rgba(16, 24, 64, .05);

    /* Spacing */
    --fh-space-1: 4px;
    --fh-space-2: 8px;
    --fh-space-3: 12px;
    --fh-space-4: 16px;
    --fh-space-5: 20px;
    --fh-space-6: 24px;
    --fh-space-8: 32px;
    --fh-space-10: 40px;
    --fh-space-12: 48px;

    /* Typography */
    --fh-font-display: 2.25rem;
    --fh-font-h1: 1.75rem;
    --fh-font-h2: 1.28rem;
    --fh-font-body: .94rem;
    --fh-font-small: .82rem;
    --fh-font-meta: .74rem;

    /* Motion */
    --fh-motion-fast: 140ms;
    --fh-motion: 220ms;

    /* Images */
    --fh-image-feature: 16 / 9;
    --fh-image-card: 4 / 3;
    --fh-image-compact: 1 / 1;
}


/* =========================================================
   2. PAGE FOUNDATION
   ========================================================= */

body {
    background: var(--fh-bg);
    color: var(--fh-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.fh-surface {
    background: var(--fh-surface);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-lg);
    box-shadow: var(--fh-shadow-sm);
}


/* =========================================================
   3. EDITORIAL TYPOGRAPHY
   ========================================================= */

.fh-display {
    font-size: clamp(1.85rem, 4vw, var(--fh-font-display));
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.025em;
}

.fh-title {
    font-size: var(--fh-font-h1);
    line-height: 1.4;
    font-weight: 800;
}

.fh-section-title {
    font-size: var(--fh-font-h2);
    line-height: 1.45;
    font-weight: 800;
}

.fh-body {
    font-size: var(--fh-font-body);
    line-height: 1.9;
    color: var(--fh-text-secondary);
}

.fh-meta {
    font-size: var(--fh-font-meta);
    line-height: 1.6;
    color: var(--fh-text-muted);
}


/* =========================================================
   4. EDITORIAL CARDS
   ========================================================= */

.fh-card {
    position: relative;
    overflow: hidden;

    background: var(--fh-surface);
    border: 1px solid var(--fh-border);
    border-radius: var(--fh-radius-lg);
    box-shadow: var(--fh-shadow-sm);

    transition:
        transform var(--fh-motion) ease,
        box-shadow var(--fh-motion) ease,
        border-color var(--fh-motion) ease;
}

@media (hover:hover) {
    .fh-card:hover {
        transform: translateY(-2px);
        border-color: var(--fh-purple-border);
        box-shadow: var(--fh-shadow-hover);
    }
}


/* =========================================================
   5. GLASS — RESTRICTED INTELLIGENCE LAYER
   ========================================================= */

.fh-glass {
    background: rgba(17, 23, 53, .70);
    border: 1px solid rgba(255, 255, 255, .13);
    box-shadow:
        0 12px 36px rgba(4, 7, 24, .18),
        inset 0 1px rgba(255, 255, 255, .06);

    color: #fff;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

@supports not ((backdrop-filter: blur(12px))) {
    .fh-glass {
        background: rgba(17, 23, 53, .94);
    }
}


/* =========================================================
   6. MICRO NEUMORPHISM
   Use only for small controls / KPI surfaces.
   ========================================================= */

.fh-neo {
    background: var(--fh-surface-soft);
    border: 1px solid rgba(255,255,255,.85);

    box-shadow:
        5px 5px 12px rgba(28, 38, 75, .07),
        -5px -5px 12px rgba(255, 255, 255, .9);
}

.fh-neo-control {
    border-radius: var(--fh-radius-sm);

    box-shadow:
        inset 2px 2px 5px rgba(23, 31, 67, .06),
        inset -2px -2px 5px rgba(255,255,255,.8);
}


/* =========================================================
   7. MEDIA SYSTEM
   ========================================================= */

.fh-media {
    position: relative;
    overflow: hidden;
    background: var(--fh-navy-800);
}

.fh-media--feature {
    aspect-ratio: var(--fh-image-feature);
}

.fh-media--card {
    aspect-ratio: var(--fh-image-card);
}

.fh-media--compact {
    aspect-ratio: var(--fh-image-compact);
}

.fh-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 450ms ease;
}

@media (hover:hover) {
    .fh-card:hover .fh-media img {
        transform: scale(1.025);
    }
}

.fh-media::after {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(7, 11, 32, .42),
            transparent 52%
        );
}


/* =========================================================
   8. EDITORIAL PLACEHOLDER
   ========================================================= */

.fh-placeholder {
    display: grid;
    place-items: center;

    min-height: 140px;

    color: rgba(255,255,255,.84);

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(118,87,245,.32),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--fh-navy-800),
            var(--fh-navy-950)
        );
}

.fh-placeholder::before {
    content: "FarHub";

    font-weight: 800;
    letter-spacing: .04em;

    opacity: .72;
}


/* =========================================================
   9. BADGES / SIGNALS
   ========================================================= */

.fh-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: var(--fh-font-meta);
    line-height: 1.2;
    font-weight: 700;

    background: var(--fh-purple-100);
    color: var(--fh-purple-700);
}

.fh-badge--live {
    background: var(--fh-success-bg);
    color: var(--fh-success);
}

.fh-badge--warning {
    background: var(--fh-warning-bg);
    color: var(--fh-warning);
}

.fh-badge--risk {
    background: var(--fh-danger-bg);
    color: var(--fh-danger);
}


/* =========================================================
   10. INTELLIGENCE SIGNAL
   ========================================================= */

.fh-signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--fh-text-secondary);
    font-size: var(--fh-font-meta);
}

.fh-signal::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--fh-purple-500);
    box-shadow: 0 0 0 4px rgba(118,87,245,.10);
}


/* =========================================================
   11. SECTION FOUNDATION
   ========================================================= */

.fh-section {
    margin-block: var(--fh-space-6);
}

.fh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fh-space-4);

    margin-bottom: var(--fh-space-4);
}

.fh-section-head h2,
.fh-section-head h3 {
    margin: 0;
}


/* =========================================================
   12. ACCESSIBILITY / MOTION
   ========================================================= */

:where(
    a,
    button,
    input,
    select,
    textarea
):focus-visible {
    outline: 3px solid rgba(104,71,235,.28);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   13. MOBILE
   ========================================================= */

@media (max-width: 768px) {

    :root {
        --fh-font-display: 1.75rem;
        --fh-font-h1: 1.45rem;
        --fh-font-h2: 1.15rem;
    }

    .fh-card {
        border-radius: var(--fh-radius-md);
    }

    .fh-section {
        margin-block: var(--fh-space-5);
    }

    .fh-glass {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

/* ==========================================================
   FARHUB 6.5.3 — PHASE 2
   Editorial Visual Hierarchy
   ========================================================== */

/* ---------- Global editorial rhythm ---------- */

.fh-modern-home {
    position: relative;
}

.fh-modern-grid {
    gap: 22px;
    align-items: start;
}

.fh-card {
    border: 1px solid var(--fh-border);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow:
        0 1px 2px rgba(15,23,42,.03),
        0 8px 24px rgba(15,23,42,.045);
}

/* ---------- HERO: restrained glass + intelligence identity ---------- */

.fh-hero--intelligence {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fh-hero--intelligence::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    inset-inline-start: 58%;
    top: -300px;
    background: rgba(118,87,245,.16);
    filter: blur(70px);
    pointer-events: none;
    z-index: -1;
}

.fh-hero-main h1 {
    letter-spacing: -.045em;
    text-wrap: balance;
}

.fh-hero-main h1 span {
    color: #a99aff;
}

.fh-smart-search {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 14px 36px rgba(0,0,0,.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.fh-reader-value {
    background: rgba(13,20,55,.48);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 22px 50px rgba(0,0,0,.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ---------- Emerging events: lighter utility cards ---------- */

.fh-events {
    gap: 12px;
}

.fh-event-card {
    border-radius: 14px;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.fh-event-card:hover {
    transform: translateY(-2px);
    border-color: var(--fh-purple-border);
    box-shadow: 0 10px 28px rgba(25,35,70,.07);
}

.fh-event-thumb {
    overflow: hidden;
    border-radius: 10px;
}

.fh-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.fh-event-card:hover .fh-event-thumb img {
    transform: scale(1.035);
}

/* ---------- Calendar / visual story ---------- */

.fh-calendar-home__grid {
    gap: 18px;
}

.fh-day-slider {
    overflow: hidden;
    border: 0;
    box-shadow: 0 14px 38px rgba(15,23,42,.10);
}

.fh-day-slide > a {
    position: relative;
    overflow: hidden;
}

.fh-day-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.fh-day-slide:hover img {
    transform: scale(1.025);
}

.fh-day-slide__shade {
    background:
        linear-gradient(
            180deg,
            rgba(5,10,28,.02) 20%,
            rgba(5,10,28,.20) 52%,
            rgba(5,10,28,.88) 100%
        );
}

.fh-day-slide__copy {
    padding: 26px;
}

.fh-day-slide__copy strong {
    max-width: 92%;
    line-height: 1.65;
    text-shadow: 0 2px 16px rgba(0,0,0,.32);
}

/* ---------- Domain rail ---------- */

.fh-domain-rail {
    padding: 5px;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--fh-border);
    box-shadow: 0 5px 18px rgba(15,23,42,.035);
    backdrop-filter: blur(10px);
}

.fh-domain-rail a {
    border-radius: 9px;
    transition: background .16s ease, color .16s ease;
}

/* ---------- NEWS STREAM: primary editorial surface ---------- */

.fh-news-stream {
    border-color: rgba(104,71,235,.14);
    box-shadow:
        0 1px 2px rgba(15,23,42,.03),
        0 16px 42px rgba(15,23,42,.055);
}

.fh-news-stream .fh-section-head {
    border-bottom: 1px solid rgba(35,44,84,.08);
}

.fh-news-stream .fh-title {
    letter-spacing: -.025em;
}

.fh-stream-intro {
    color: var(--fh-text-secondary);
}

/* Make the first story feel editorially dominant */
.fh-feed > article:first-child {
    position: relative;
    border-color: rgba(104,71,235,.26);
    background:
        linear-gradient(
            145deg,
            rgba(247,245,255,.96),
            rgba(255,255,255,.98)
        );
    box-shadow:
        0 14px 34px rgba(76,55,170,.07);
}

.fh-feed > article:first-child h2,
.fh-feed > article:first-child h3 {
    letter-spacing: -.025em;
}

/* Secondary feed items become calmer */
.fh-feed > article:not(:first-child) {
    box-shadow: none;
}

/* ---------- Sidebar ---------- */

.fh-intelligence-sidebar {
    gap: 16px;
}

.fh-sidebar-module {
    box-shadow:
        0 1px 2px rgba(15,23,42,.025),
        0 8px 24px rgba(15,23,42,.04);
}

.fh-priority-module {
    border-top: 3px solid var(--fh-purple-600);
}

.fh-priority-image {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: var(--fh-surface-muted);
}

.fh-priority-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .35s ease;
}

.fh-priority-image:hover img {
    transform: scale(1.03);
}

.fh-priority-body h3 {
    line-height: 1.65;
}

.fh-pulse-list i {
    overflow: hidden;
    border-radius: 999px;
}

/* ---------- Editorial deck ---------- */

.fh-editorial-deck {
    margin-top: 28px;
}

.fh-editorial-deck-grid {
    gap: 18px;
}

.fh-editorial-deck-grid > article {
    overflow: hidden;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.fh-editorial-deck-grid > article:hover {
    transform: translateY(-3px);
    border-color: var(--fh-purple-border);
    box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

.fh-editorial-deck-image {
    display: block;
    overflow: hidden;
    background:
        linear-gradient(145deg,#20294f,#303c69);
}

.fh-editorial-deck-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .4s ease;
}

.fh-editorial-deck-grid > article:hover img {
    transform: scale(1.035);
}

/* ---------- Image fallback identity ---------- */

.fh-today-image-fallback {
    background:
        radial-gradient(circle at 72% 20%, rgba(118,87,245,.42), transparent 32%),
        linear-gradient(145deg,#111735,#25325f);
    color: rgba(255,255,255,.86);
    letter-spacing: .04em;
}

/* ---------- Motion accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .fh-event-card,
    .fh-event-thumb img,
    .fh-day-slide img,
    .fh-priority-image img,
    .fh-editorial-deck-grid > article,
    .fh-editorial-deck-image img {
        transition: none !important;
        transform: none !important;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 782px) {
    .fh-card {
        border-radius: 15px;
    }

    .fh-modern-grid {
        gap: 14px;
    }

    .fh-day-slide__copy {
        padding: 18px;
    }

    .fh-day-slide__copy strong {
        max-width: 100%;
    }

    .fh-domain-rail {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .fh-domain-rail::-webkit-scrollbar {
        display: none;
    }
}



/* =========================================================
   FARHUB 6.5.3 — REAL PUBLIC UI
   ========================================================= */


/* ---------- Glass Header ---------- */

.fh-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background:
        rgba(255,255,255,.82);

    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);

    border-bottom:
        1px solid rgba(35,44,84,.09);

    box-shadow:
        0 8px 30px rgba(17,23,53,.045);
}

.fh-header-row {
    min-height: 64px;
}

.fh-nav > ul {
    gap: 4px;
}

.fh-nav a {
    position: relative;

    padding: 8px 11px;

    border-radius: 9px;

    font-weight: 600;
    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease;
}

.fh-nav a:hover,
.fh-nav .current-menu-item > a {
    background: rgba(104,71,235,.07);
    color: var(--fh-purple-600);
}


/* ---------- Minimal Intelligence Hero ---------- */

.fh-hero--653 {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 77% 22%,
            rgba(118,87,245,.22),
            transparent 30%
        ),
        linear-gradient(
            118deg,
            var(--fh-navy-950),
            var(--fh-navy-850) 60%,
            #25236c
        );

    color: #fff;
}

.fh-hero--653::after {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    left: -180px;
    bottom: -300px;

    border:
        1px solid rgba(255,255,255,.09);

    border-radius: 50%;

    pointer-events: none;
}

.fh-hero-653-inner {
    min-height: 330px;

    display: flex;
    align-items: center;

    padding-top: 48px;
    padding-bottom: 48px;
}

.fh-hero-653-content {
    width: min(760px, 100%);

    margin-inline: auto;

    text-align: center;
}

.fh-hero-653-title {
    margin:
        14px 0 10px;

    font-size:
        clamp(2rem, 4vw, 3.75rem);

    line-height: 1.22;

    letter-spacing: -.035em;

    color: #fff;
}

.fh-hero-653-title span {
    display: block;

    color: #9fc4ff;
}

.fh-hero-653-subtitle {
    max-width: 590px;

    margin:
        0 auto 24px;

    color:
        rgba(255,255,255,.76);

    font-size: .98rem;
    line-height: 1.9;
}


/* ---------- Single Search ---------- */

.fh-smart-search--653 {
    width: min(650px, 100%);

    margin-inline: auto;

    display: grid;
    grid-template-columns: 1fr auto;

    padding: 5px;

    border:
        1px solid rgba(255,255,255,.18);

    border-radius: 12px;

    background:
        rgba(255,255,255,.09);

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

    box-shadow:
        0 18px 45px rgba(0,0,0,.12);
}

.fh-smart-search--653 input[type="search"] {
    width: 100%;

    min-height: 48px;

    padding:
        0 16px;

    border: 0;
    outline: 0;

    color: #fff;
    background: transparent;

    font: inherit;
}

.fh-smart-search--653 input::placeholder {
    color:
        rgba(255,255,255,.58);
}

.fh-smart-search--653 button {
    min-width: 96px;

    border: 0;

    border-radius: 9px;

    padding:
        0 20px;

    font: inherit;
    font-weight: 700;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #7657f5,
            #6847eb
        );

    cursor: pointer;
}


/* ---------- Hot topics ---------- */

.fh-hero-topics {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 15px;

    font-size: .78rem;
}

.fh-hero-topics > span {
    color:
        rgba(255,255,255,.5);
}

.fh-hero-topics a {
    padding:
        5px 10px;

    border:
        1px solid rgba(255,255,255,.14);

    border-radius: 8px;

    color:
        rgba(255,255,255,.82);

    text-decoration: none;

    background:
        rgba(255,255,255,.045);
}

.fh-hero-topics a:hover {
    background:
        rgba(255,255,255,.11);

    color: #fff;
}


/* ---------- Responsive ---------- */

@media (max-width: 782px) {

    .fh-hero-653-inner {
        min-height: 290px;

        padding-top: 38px;
        padding-bottom: 38px;
    }

    .fh-hero-653-content {
        text-align: right;
    }

    .fh-hero-653-subtitle {
        margin-inline: 0;
    }

    .fh-smart-search--653 {
        grid-template-columns: 1fr auto;
    }

    .fh-hero-topics {
        justify-content: flex-start;
    }

}

@media (max-width: 520px) {

    .fh-hero-653-title {
        font-size: 2rem;
    }

    .fh-hero-653-subtitle {
        font-size: .9rem;
    }

    .fh-smart-search--653 button {
        min-width: 76px;
        padding-inline: 13px;
    }

}



/* =========================================================
   FARHUB 6.5.3-B
   VISUAL STORY + DAY CALENDAR
   RTL editorial composition
   ========================================================= */


/*
 * Main editorial composition:
 *
 * RTL:
 * RIGHT  = visual story
 * LEFT   = day calendar
 *
 * No new data queries are introduced here.
 */

.fh-story-calendar-653,
.fh-calendar-story,
.fh-calendar-wrap {

    direction: rtl;

    display: grid;

    grid-template-columns:
        minmax(0, 1.48fr)
        minmax(280px, 1fr);

    gap: 14px;

    align-items: stretch;
}


/* =========================================================
   VISUAL STORY
   ========================================================= */

.fh-story-visual-653,
.fh-calendar-media {

    position: relative;

    min-width: 0;

    overflow: hidden;

    border-radius: 12px;

    background: var(--fh-navy-900);

    box-shadow:
        0 8px 28px rgba(17,23,53,.08);
}


/*
 * Keep the image editorial rather than banner-like.
 */

.fh-story-visual-653 img,
.fh-calendar-media img {

    display: block;

    width: 100%;

    height: 100%;

    min-height: 270px;

    max-height: 340px;

    object-fit: cover;
}


/*
 * Existing slider links/cards should occupy the complete
 * visual-story surface.
 */

.fh-story-visual-653 > a,
.fh-story-visual-653 .fh-slide,
.fh-story-visual-653 .fh-slider-item,
.fh-calendar-media > a,
.fh-calendar-media .fh-slide,
.fh-calendar-media .fh-slider-item {

    min-height: 270px;
}


/* ---------- Editorial image gradient ---------- */

.fh-story-visual-653::after,
.fh-calendar-media::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(7,12,32,.84) 0%,
            rgba(7,12,32,.43) 34%,
            rgba(7,12,32,.04) 67%,
            transparent 100%
        );
}


/* =========================================================
   IMAGE TEXT / GLASS OVERLAY
   ========================================================= */

.fh-story-visual-653 .fh-slide-content,
.fh-story-visual-653 .fh-slider-content,
.fh-story-visual-653 .fh-slide-caption,
.fh-calendar-media .fh-slide-content,
.fh-calendar-media .fh-slider-content,
.fh-calendar-media .fh-slide-caption {

    position: absolute;

    z-index: 3;

    right: 16px;
    left: 16px;
    bottom: 14px;

    padding: 13px 15px;

    border:
        1px solid rgba(255,255,255,.13);

    border-radius: 10px;

    color: #fff;

    background:
        rgba(10,16,43,.38);

    backdrop-filter:
        blur(10px) saturate(135%);

    -webkit-backdrop-filter:
        blur(10px) saturate(135%);

    box-shadow:
        0 8px 28px rgba(0,0,0,.13);
}


/* headline */

.fh-story-visual-653 h2,
.fh-story-visual-653 h3,
.fh-story-visual-653 .fh-slide-title,
.fh-calendar-media h2,
.fh-calendar-media h3,
.fh-calendar-media .fh-slide-title {

    margin:
        0 0 5px;

    color: #fff;

    font-size:
        clamp(1rem, 1.35vw, 1.32rem);

    line-height: 1.65;

    font-weight: 800;
}


/* metadata */

.fh-story-visual-653 .fh-meta,
.fh-story-visual-653 .fh-slide-meta,
.fh-calendar-media .fh-meta,
.fh-calendar-media .fh-slide-meta {

    color:
        rgba(255,255,255,.7);

    font-size: .72rem;
}


/* =========================================================
   SLIDER CONTROLS — GLASS ONLY HERE
   ========================================================= */

.fh-story-visual-653 button,
.fh-story-visual-653 .swiper-button-next,
.fh-story-visual-653 .swiper-button-prev,
.fh-calendar-media button,
.fh-calendar-media .swiper-button-next,
.fh-calendar-media .swiper-button-prev {

    border:
        1px solid rgba(255,255,255,.18);

    background:
        rgba(9,15,39,.38);

    color: #fff;

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}


/* =========================================================
   DAY CALENDAR
   ========================================================= */

.fh-day-calendar-653,
.fh-calendar-panel,
.fh-home-calendar {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 10px;

    padding: 15px;

    border:
        1px solid var(--fh-border);

    border-radius: 12px;

    background:
        rgba(255,255,255,.88);

    box-shadow:
        0 8px 25px rgba(17,23,53,.055);
}


/* Calendar title */

.fh-day-calendar-653 h2,
.fh-day-calendar-653 h3,
.fh-calendar-panel h2,
.fh-calendar-panel h3,
.fh-home-calendar h2,
.fh-home-calendar h3 {

    margin:
        0 0 3px;

    font-size: 1rem;

    font-weight: 800;

    color: var(--fh-text);
}


/* =========================================================
   TWO HORIZONTAL EVENT CARDS
   ========================================================= */

/*
 * We deliberately expose only the first two calendar items
 * in this homepage composition.
 */

.fh-day-calendar-653 .fh-calendar-item:nth-of-type(n+3),
.fh-calendar-panel .fh-calendar-item:nth-of-type(n+3),
.fh-home-calendar .fh-calendar-item:nth-of-type(n+3) {

    display: none;
}


.fh-day-calendar-653 .fh-calendar-item,
.fh-calendar-panel .fh-calendar-item,
.fh-home-calendar .fh-calendar-item {

    position: relative;

    flex: 1 1 0;

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    align-items: center;

    gap: 12px;

    min-height: 94px;

    padding:
        12px 13px;

    border:
        1px solid rgba(35,44,84,.09);

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(249,250,255,.98),
            rgba(244,246,253,.94)
        );

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.fh-day-calendar-653 .fh-calendar-item:hover,
.fh-calendar-panel .fh-calendar-item:hover,
.fh-home-calendar .fh-calendar-item:hover {

    transform:
        translateY(-1px);

    border-color:
        rgba(104,71,235,.18);

    box-shadow:
        0 8px 20px rgba(35,44,84,.06);
}


/* Event title */

.fh-day-calendar-653 .fh-calendar-item h3,
.fh-day-calendar-653 .fh-calendar-item h4,
.fh-calendar-panel .fh-calendar-item h3,
.fh-calendar-panel .fh-calendar-item h4,
.fh-home-calendar .fh-calendar-item h3,
.fh-home-calendar .fh-calendar-item h4 {

    margin:
        0 0 5px;

    font-size:
        .86rem;

    line-height: 1.75;

    font-weight: 750;

    color: var(--fh-text);
}


/* Event metadata */

.fh-day-calendar-653 .fh-calendar-item time,
.fh-day-calendar-653 .fh-calendar-item .fh-meta,
.fh-calendar-panel .fh-calendar-item time,
.fh-calendar-panel .fh-calendar-item .fh-meta,
.fh-home-calendar .fh-calendar-item time,
.fh-home-calendar .fh-calendar-item .fh-meta {

    font-size:
        .7rem;

    color:
        var(--fh-text-muted);
}


/* small calendar/date marker */

.fh-day-calendar-653 .fh-calendar-date,
.fh-calendar-panel .fh-calendar-date,
.fh-home-calendar .fh-calendar-date {

    min-width: 48px;

    padding:
        8px 7px;

    text-align: center;

    border-radius: 8px;

    color:
        var(--fh-purple-600);

    background:
        var(--fh-purple-50);

    border:
        1px solid var(--fh-purple-border);
}


/* =========================================================
   SECTION SHELL
   ========================================================= */

.fh-story-calendar-653,
.fh-calendar-wrap {

    padding: 10px;

    border:
        1px solid rgba(35,44,84,.09);

    border-radius: 14px;

    background:
        rgba(255,255,255,.78);

    box-shadow:
        0 10px 32px rgba(17,23,53,.055);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .fh-story-calendar-653,
    .fh-calendar-story,
    .fh-calendar-wrap {

        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(245px, .9fr);
    }

    .fh-story-visual-653 img,
    .fh-calendar-media img {

        min-height: 250px;
    }

}


/* =========================================================
   MOBILE
   Story first, calendar second.
   ========================================================= */

@media (max-width: 680px) {

    .fh-story-calendar-653,
    .fh-calendar-story,
    .fh-calendar-wrap {

        display: flex;

        flex-direction: column;

        gap: 10px;
    }


    .fh-story-visual-653,
    .fh-calendar-media {

        order: 1;

        width: 100%;
    }


    .fh-day-calendar-653,
    .fh-calendar-panel,
    .fh-home-calendar {

        order: 2;

        width: 100%;

        padding: 12px;
    }


    .fh-story-visual-653 img,
    .fh-calendar-media img {

        min-height: 220px;
        max-height: 260px;
    }


    .fh-story-visual-653 .fh-slide-content,
    .fh-story-visual-653 .fh-slider-content,
    .fh-story-visual-653 .fh-slide-caption,
    .fh-calendar-media .fh-slide-content,
    .fh-calendar-media .fh-slider-content,
    .fh-calendar-media .fh-slide-caption {

        right: 10px;
        left: 10px;
        bottom: 10px;

        padding: 10px 12px;
    }


    .fh-day-calendar-653 .fh-calendar-item,
    .fh-calendar-panel .fh-calendar-item,
    .fh-home-calendar .fh-calendar-item {

        min-height: 82px;
    }

}


/* =========================================================
   FARHUB 6.5.3-C
   REAL DOM — CALENDAR + VISUAL STORY
   ========================================================= */

/*
 RTL desktop composition

 RIGHT : Visual Story  ~58%
 LEFT  : Day Calendar  ~42%
*/

.fh-calendar-home__grid {
    direction: rtl;
    display: grid !important;
    grid-template-columns:
        minmax(0, 1.42fr)
        minmax(300px, 1fr) !important;
    gap: 16px !important;
    align-items: stretch;
}


/* =========================================================
   VISUAL STORY — RIGHT
   ========================================================= */

.fh-calendar-home__grid > .fh-day-slider {
    grid-column: 1;
    grid-row: 1;

    position: relative;
    min-width: 0;
    min-height: 300px;

    padding: 0 !important;
    overflow: hidden;

    border-radius: 14px;
    border: 1px solid rgba(35,44,84,.10);

    background: #111735;

    box-shadow:
        0 10px 30px rgba(17,23,53,.09);
}


/* Header becomes a light glass label, not a separate band */

.fh-day-slider__head {
    position: absolute !important;
    z-index: 20;

    top: 14px;
    right: 14px;
    left: auto;

    display: flex;
    align-items: center;
    gap: 8px;

    width: auto !important;
    padding: 7px 10px !important;
    margin: 0 !important;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;

    color: #fff !important;
    background: rgba(11,17,45,.38);

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

    box-shadow: none !important;
}

.fh-day-slider__head strong,
.fh-day-slider__head span {
    color: #fff !important;
}


/* Slides */

.fh-day-slider__slides,
.fh-day-slide,
.fh-day-slide > a {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.fh-day-slide {
    position: absolute;
    inset: 0;
}

.fh-day-slide.is-active {
    position: relative;
}

.fh-day-slide > a {
    position: relative;
    display: block;
    overflow: hidden;
}

.fh-day-slide img {
    display: block;

    width: 100% !important;
    height: 300px !important;

    object-fit: cover !important;
    object-position: center;

    transition: transform .45s ease;
}

.fh-day-slide:hover img {
    transform: scale(1.018);
}


/* Controlled editorial gradient */

.fh-day-slide__shade {
    position: absolute;
    z-index: 2;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(7,12,31,.90) 0%,
            rgba(7,12,31,.57) 28%,
            rgba(7,12,31,.12) 62%,
            rgba(7,12,31,.02) 100%
        ) !important;
}


/* Story title */

.fh-day-slide__copy {
    position: absolute !important;
    z-index: 5;

    right: 18px !important;
    left: 18px !important;
    bottom: 22px !important;

    display: block;

    max-width: 86%;
    padding: 0 !important;

    text-align: right;
    color: #fff;
}

.fh-day-slide__copy small {
    display: inline-flex;

    margin-bottom: 8px;
    padding: 4px 8px;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;

    background: rgba(17,23,53,.38);
    color: rgba(255,255,255,.88);

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

    font-size: .68rem;
}

.fh-day-slide__copy strong {
    display: block;

    max-width: 680px;

    color: #fff !important;

    font-size: clamp(1.08rem,1.45vw,1.45rem);
    font-weight: 850;
    line-height: 1.75;

    text-shadow: 0 2px 15px rgba(0,0,0,.22);
}


/* Slider controls */

.fh-day-slider__controls {
    position: absolute !important;
    z-index: 15;

    right: 14px;
    left: 14px;
    bottom: 12px;

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

    pointer-events: none;
}

.fh-day-slider__controls button,
.fh-day-slider__controls [role="tablist"] {
    pointer-events: auto;
}

.fh-day-slider__controls > button {
    width: 30px;
    height: 30px;

    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 8px !important;

    color: #fff !important;
    background: rgba(8,13,34,.48) !important;

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


/* =========================================================
   CALENDAR — LEFT
   ========================================================= */

.fh-calendar-home__grid > .fh-calendar-home__panel {
    grid-column: 2;
    grid-row: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 16px !important;

    border: 1px solid rgba(35,44,84,.10);
    border-radius: 14px;

    background: rgba(255,255,255,.91);

    box-shadow:
        0 10px 30px rgba(17,23,53,.055);
}


/* Calendar heading */

.fh-calendar-home__head {
    flex: 0 0 auto;

    margin-bottom: 10px;
    padding-bottom: 10px;

    border-bottom: 1px solid rgba(35,44,84,.08);
}

.fh-calendar-home__head .fh-kicker {
    margin-bottom: 3px;
}

.fh-calendar-home__head h2 {
    margin: 0;

    font-size: 1.05rem;
    font-weight: 850;
}


/* Date row */

.fh-calendar-today {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px !important;
    padding: 9px 11px !important;

    border: 1px solid rgba(104,71,235,.10);
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            rgba(247,245,255,.94),
            rgba(250,251,255,.96)
        );
}

.fh-calendar-today__label {
    font-weight: 800;
}

.fh-calendar-today__dates {
    display: flex;
    gap: 8px;

    color: var(--fh-text-muted);
    font-size: .72rem;
}


/* =========================================================
   EVENT CONTENT
   Two horizontal blocks stacked vertically
   ========================================================= */

.fh-calendar-home__content {
    flex: 1;

    min-height: 0;

    overflow: hidden;
}


/*
 Day Events plugin output.
 We constrain homepage presentation without modifying plugin.
*/

.fh-calendar-home__content .fhde-home-strip {
    height: 100%;

    display: flex !important;
    flex-direction: column !important;

    gap: 10px !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}


/* Generic direct children of event strip */

.fh-calendar-home__content .fhde-home-strip > * {
    flex: 1 1 0;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
}


/*
 Only two event cards are shown in the homepage calendar.
 This affects presentation only.
*/

.fh-calendar-home__content .fhde-home-strip > *:nth-child(n+3) {
    display: none !important;
}


/* event card styling */

.fh-calendar-home__content .fhde-home-strip > * {
    padding: 12px 13px !important;

    border: 1px solid rgba(35,44,84,.09) !important;
    border-radius: 10px !important;

    background:
        linear-gradient(
            135deg,
            rgba(249,250,255,.98),
            rgba(244,246,253,.95)
        ) !important;

    box-shadow: none !important;

    transition:
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.fh-calendar-home__content .fhde-home-strip > *:hover {
    transform: translateY(-1px);

    border-color: rgba(104,71,235,.20) !important;

    box-shadow:
        0 7px 20px rgba(35,44,84,.055) !important;
}


/* =========================================================
   SECTION SPACING
   ========================================================= */

.fh-calendar-home {
    margin-block: 20px !important;
}

.fh-calendar-home > .fh-container {
    padding: 10px;

    border: 1px solid rgba(35,44,84,.08);
    border-radius: 16px;

    background: rgba(255,255,255,.64);

    box-shadow:
        0 10px 32px rgba(17,23,53,.045);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {

    .fh-calendar-home__grid {
        grid-template-columns:
            minmax(0,1.25fr)
            minmax(260px,.9fr) !important;
    }

    .fh-day-slider,
    .fh-day-slider__slides,
    .fh-day-slide,
    .fh-day-slide > a {
        min-height: 270px;
    }

    .fh-day-slide img {
        height: 270px !important;
    }
}


/* =========================================================
   MOBILE
   Visual Story first; Calendar follows.
   ========================================================= */

@media (max-width: 720px) {

    .fh-calendar-home__grid {
        display: flex !important;
        flex-direction: column !important;

        gap: 10px !important;
    }

    .fh-calendar-home__grid > .fh-day-slider {
        order: 1;

        width: 100%;
        min-height: 230px;
    }

    .fh-calendar-home__grid > .fh-calendar-home__panel {
        order: 2;

        width: 100%;
    }

    .fh-day-slider__slides,
    .fh-day-slide,
    .fh-day-slide > a {
        min-height: 230px;
    }

    .fh-day-slide img {
        height: 230px !important;
    }

    .fh-day-slide__copy {
        right: 13px !important;
        left: 13px !important;
        bottom: 18px !important;

        max-width: calc(100% - 26px);
    }

    .fh-day-slide__copy strong {
        font-size: 1rem;
        line-height: 1.7;
    }

    .fh-calendar-home > .fh-container {
        padding: 7px;
    }
}



/* =========================================================
   FARHUB 6.5.3-D
   COMPACT HERO + 50/50 STORY/CALENDAR
   ========================================================= */


/* ---------------------------------------------------------
   1. COMPACT HERO
   --------------------------------------------------------- */

.fh-hero--653 {
    min-height: 0 !important;
}

.fh-hero-653-inner {
    min-height: 0 !important;

    padding-top: 24px !important;
    padding-bottom: 24px !important;
}


/*
 * Wider content area.
 * Hero is no longer a tall centered billboard.
 */

.fh-hero-653-content {
    width: min(1180px, 100%) !important;

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        minmax(330px, .95fr)
        minmax(430px, 1.25fr);

    grid-template-areas:
        "identity search"
        "topics   search";

    align-items: center;

    column-gap: 34px;
    row-gap: 10px;

    text-align: right !important;
}


/* ---------------------------------------------------------
   Hero identity
   --------------------------------------------------------- */

.fh-hero-badge {
    grid-area: identity;

    justify-self: start;

    margin: 0 0 5px !important;

    font-size: .72rem;
}


/*
 * Title now flows horizontally instead of stacking
 * two large lines vertically.
 */

.fh-hero-653-title {
    grid-area: identity;

    align-self: end;

    margin:
        27px 0 0 !important;

    white-space: normal;

    font-size:
        clamp(1.55rem, 2.15vw, 2.45rem) !important;

    line-height: 1.45 !important;

    letter-spacing: -.025em;
}


/*
 * The second semantic part remains highlighted
 * but stays inline.
 */

.fh-hero-653-title span {
    display: inline !important;

    margin-inline-start: .18em;

    color: #9fc4ff;
}


/*
 * Redundant descriptive sentence is removed from
 * the public visual hierarchy.
 */

.fh-hero-653-subtitle {
    display: none !important;
}


/* ---------------------------------------------------------
   Search occupies the second half of the compact hero
   --------------------------------------------------------- */

.fh-smart-search--653 {
    grid-area: search;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    align-self: center;
}


/* ---------------------------------------------------------
   Hot topics remain lightweight
   --------------------------------------------------------- */

.fh-hero-topics {
    grid-area: topics;

    justify-content: flex-start !important;

    margin-top: 0 !important;

    min-height: 28px;
}


/* ---------------------------------------------------------
   Reduce decorative hero mass
   --------------------------------------------------------- */

.fh-hero--653::after {
    width: 300px !important;
    height: 300px !important;

    bottom: -240px !important;

    opacity: .65;
}


/* =========================================================
   2. STORY + CALENDAR — TRUE 50/50
   ========================================================= */

.fh-calendar-home__grid {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr) !important;

    gap: 14px !important;

    align-items: stretch !important;
}


/*
 * In RTL:
 * visual story remains on the right,
 * calendar remains on the left.
 */

.fh-calendar-home__grid > .fh-day-slider {
    grid-column: 1;

    height: 330px !important;
    min-height: 330px !important;
    max-height: 330px !important;
}


.fh-calendar-home__grid > .fh-calendar-home__panel {
    grid-column: 2;

    height: 330px !important;
    min-height: 330px !important;
    max-height: 330px !important;

    overflow: hidden;
}


/* Story internals inherit exact height */

.fh-day-slider__slides,
.fh-day-slide,
.fh-day-slide > a {
    height: 330px !important;
    min-height: 330px !important;
    max-height: 330px !important;
}

.fh-day-slide img {
    width: 100% !important;

    height: 330px !important;

    min-height: 330px !important;
    max-height: 330px !important;

    object-fit: cover !important;
}


/* =========================================================
   3. THREE-LAYER CALENDAR
   ========================================================= */

/*
 * The panel becomes one unified component rather than
 * several disconnected cards.
 */

.fh-calendar-home__panel {
    display: grid !important;

    grid-template-rows:
        auto
        auto
        minmax(0, 1fr);

    gap: 0 !important;

    padding: 0 !important;

    border-radius: 14px !important;

    background: #fff !important;
}


/* ---------------------------------------------------------
   LAYER 1 — calendar heading
   --------------------------------------------------------- */

.fh-calendar-home__head {
    margin: 0 !important;

    padding:
        13px 16px 11px !important;

    border: 0 !important;
    border-bottom:
        1px solid rgba(35,44,84,.08) !important;

    background:
        linear-gradient(
            135deg,
            rgba(249,250,255,.98),
            rgba(246,247,253,.96)
        );
}

.fh-calendar-home__head h2 {
    margin: 1px 0 0 !important;

    font-size: 1rem !important;
}


/* ---------------------------------------------------------
   LAYER 2 — today / date
   --------------------------------------------------------- */

.fh-calendar-today {
    margin: 0 !important;

    min-height: 72px;

    padding:
        11px 16px !important;

    border: 0 !important;
    border-radius: 0 !important;

    border-bottom:
        1px solid rgba(35,44,84,.08) !important;

    background:
        linear-gradient(
            135deg,
            rgba(248,246,255,.86),
            rgba(255,255,255,.96)
        ) !important;
}


.fh-calendar-today__label {
    font-size: .82rem;
    font-weight: 850;
}


.fh-calendar-today__dates {
    line-height: 1.7;
}


/* ---------------------------------------------------------
   LAYER 3 — events / upcoming
   --------------------------------------------------------- */

.fh-calendar-home__content {
    min-height: 0;

    padding:
        11px 14px 13px !important;

    overflow: hidden;

    background: #fff;
}


/*
 * Plugin output becomes a compact vertical feed.
 */

.fh-calendar-home__content .fhde-home-strip {
    height: 100% !important;

    display: flex !important;

    flex-direction: column !important;

    justify-content: center;

    gap: 7px !important;

    overflow: hidden;
}


/*
 * Keep the first two useful event entries visible.
 */

.fh-calendar-home__content .fhde-home-strip > * {
    flex: 1 1 0 !important;

    min-height: 0 !important;

    padding:
        8px 10px !important;

    border:
        1px solid rgba(35,44,84,.075) !important;

    border-radius: 8px !important;

    background:
        rgba(247,248,252,.72) !important;
}


.fh-calendar-home__content .fhde-home-strip > *:nth-child(n+3) {
    display: none !important;
}


/* =========================================================
   4. VISUAL STORY TYPOGRAPHY
   ========================================================= */

.fh-day-slide__copy {
    right: 17px !important;
    left: 17px !important;
    bottom: 18px !important;

    max-width: calc(100% - 34px) !important;
}


.fh-day-slide__copy strong {
    max-width: 92%;

    font-size:
        clamp(1rem, 1.25vw, 1.3rem) !important;

    line-height: 1.65 !important;
}


/* =========================================================
   5. TABLET
   ========================================================= */

@media (max-width: 980px) {

    .fh-hero-653-content {
        grid-template-columns:
            minmax(280px,.9fr)
            minmax(360px,1.1fr);

        column-gap: 20px;
    }

    .fh-hero-653-title {
        font-size: 1.55rem !important;
    }

}


/* =========================================================
   6. MOBILE / SMALL TABLET
   ========================================================= */

@media (max-width: 760px) {

    /*
     * Hero returns to a compact vertical composition.
     */

    .fh-hero-653-inner {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .fh-hero-653-content {
        display: flex !important;

        flex-direction: column;

        align-items: stretch;

        gap: 11px;

        text-align: right !important;
    }

    .fh-hero-badge {
        order: 1;

        align-self: flex-start;

        margin: 0 !important;
    }

    .fh-hero-653-title {
        order: 2;

        margin: 0 !important;

        font-size:
            clamp(1.45rem, 7vw, 2rem) !important;
    }

    .fh-smart-search--653 {
        order: 3;
    }

    .fh-hero-topics {
        order: 4;

        justify-content: flex-start !important;
    }


    /*
     * Story first, calendar second.
     * Fixed desktop height is released.
     */

    .fh-calendar-home__grid {
        display: flex !important;

        flex-direction: column !important;

        gap: 10px !important;
    }

    .fh-calendar-home__grid > .fh-day-slider {
        order: 1;

        width: 100%;

        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .fh-calendar-home__grid > .fh-calendar-home__panel {
        order: 2;

        width: 100%;

        height: auto !important;
        min-height: 300px !important;
        max-height: none !important;
    }

    .fh-day-slider__slides,
    .fh-day-slide,
    .fh-day-slide > a,
    .fh-day-slide img {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

}


/* =========================================================
   7. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .fh-hero-653-inner {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .fh-hero-topics a:nth-of-type(n+4) {
        display: none;
    }

    .fh-calendar-home__grid > .fh-day-slider,
    .fh-day-slider__slides,
    .fh-day-slide,
    .fh-day-slide > a,
    .fh-day-slide img {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }

}



/* =========================================================
   FARHUB 6.5.3-E
   COMPACT INLINE HERO + REAL THREE-LAYER CALENDAR
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.fh-hero--653 {
    min-height: 0 !important;
}

.fh-hero-653-inner {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}


/*
 * One horizontal composition:
 * TITLE | SEARCH
 */

.fh-hero-653-content {
    position: relative;

    width: min(1180px, 100%) !important;
    min-height: 116px !important;

    margin-inline: auto;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(380px, .95fr) !important;

    grid-template-areas:
        "title search"
        "topics search" !important;

    column-gap: 42px !important;
    row-gap: 8px !important;

    align-items: center !important;

    text-align: right !important;
}


/*
 * Badge was competing with H1 in the same grid area.
 * Remove it from the compact homepage hero.
 */

.fh-hero-badge {
    display: none !important;
}


/*
 * One-line desktop headline.
 */

.fh-hero-653-title {
    grid-area: title !important;

    margin: 0 !important;

    align-self: end !important;

    white-space: nowrap !important;

    font-size:
        clamp(1.45rem, 2vw, 2.15rem) !important;

    line-height: 1.35 !important;

    letter-spacing: -.025em;
}

.fh-hero-653-title span {
    display: inline !important;

    margin-inline-start: .16em !important;
}


/* no redundant paragraph */

.fh-hero-653-subtitle {
    display: none !important;
}


/* search */

.fh-smart-search--653 {
    grid-area: search !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    align-self: center !important;
}


/* hot topics under headline */

.fh-hero-topics {
    grid-area: topics !important;

    margin: 0 !important;

    justify-content: flex-start !important;

    align-self: start !important;
}


/* =========================================================
   STORY / CALENDAR — EXACT 50 / 50
   ========================================================= */

.fh-calendar-home__grid {
    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr) !important;

    gap: 14px !important;

    align-items: stretch !important;
}


/*
 * Exact shared height.
 */

.fh-calendar-home__grid > .fh-day-slider,
.fh-calendar-home__grid > .fh-calendar-home__panel {
    height: 330px !important;
    min-height: 330px !important;
    max-height: 330px !important;
}


/* =========================================================
   THREE REAL VERTICAL CALENDAR LAYERS
   ========================================================= */

.fh-calendar-home__panel {
    display: grid !important;

    /*
       1 — heading
       2 — today/date
       3 — calendar/event output
    */

    grid-template-rows:
        76px
        88px
        minmax(0, 1fr) !important;

    padding: 0 !important;

    overflow: hidden !important;

    border-radius: 12px !important;

    background: #fff !important;
}


/* -----------------------
   LAYER 1
   ----------------------- */

.fh-calendar-home__head {
    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;

    margin: 0 !important;

    padding: 11px 16px !important;

    border: 0 !important;

    border-bottom:
        1px solid rgba(35,44,84,.09) !important;

    background:
        linear-gradient(
            135deg,
            #fafaff,
            #f6f7fd
        ) !important;
}

.fh-calendar-home__head .fh-kicker {
    margin-bottom: 4px !important;

    font-size: .72rem !important;
}

.fh-calendar-home__head h2 {
    margin: 0 !important;

    font-size: 1rem !important;
}


/* -----------------------
   LAYER 2 — TODAY
   ----------------------- */

.fh-calendar-today {
    display: flex !important;

    align-items: center !important;

    justify-content: space-between !important;

    gap: 16px !important;

    min-height: 0 !important;

    margin: 0 !important;

    padding: 12px 16px !important;

    border: 0 !important;

    border-radius: 0 !important;

    border-bottom:
        1px solid rgba(35,44,84,.09) !important;

    background:
        linear-gradient(
            135deg,
            rgba(244,241,255,.75),
            rgba(255,255,255,.98)
        ) !important;
}

.fh-calendar-today__label {
    font-size: 1.05rem !important;
    font-weight: 900 !important;
}

.fh-calendar-today__dates {
    display: flex !important;

    flex-direction: column !important;

    align-items: flex-end !important;

    gap: 2px !important;

    font-size: .78rem !important;
}


/* -----------------------
   LAYER 3 — EVENTS
   ----------------------- */

.fh-calendar-home__content {
    min-height: 0 !important;

    padding: 10px 14px !important;

    overflow: hidden !important;

    background: #fff !important;
}


/*
 * Make plugin calendar output fit inside the third layer.
 */

.fh-calendar-home__content > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.fh-calendar-home__content .fhde-home-strip {
    height: 100% !important;
    min-height: 0 !important;

    overflow: hidden !important;
}


/* =========================================================
   STORY HEIGHT
   ========================================================= */

.fh-day-slider__slides,
.fh-day-slide,
.fh-day-slide > a,
.fh-day-slide img {
    height: 330px !important;
    min-height: 330px !important;
    max-height: 330px !important;
}

.fh-day-slide img {
    object-fit: cover !important;
}


/* =========================================================
   FIVE-DOMAIN RAIL
   ========================================================= */

.fh-domain-rail {
    justify-content: flex-start !important;

    gap: 7px !important;

    overflow: visible !important;
}

.fh-domain-rail a {
    flex: 0 0 auto !important;

    padding-inline: 16px !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .fh-hero-653-content {
        grid-template-columns:
            minmax(0,1fr)
            minmax(330px,.9fr) !important;

        column-gap: 24px !important;
    }

    .fh-hero-653-title {
        font-size: 1.4rem !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .fh-hero-653-inner {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .fh-hero-653-content {
        min-height: 0 !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 12px !important;
    }

    .fh-hero-653-title {
        order: 1;

        white-space: normal !important;

        font-size: 1.65rem !important;
    }

    .fh-smart-search--653 {
        order: 2;
    }

    .fh-hero-topics {
        order: 3;
    }


    /*
     * Story and calendar stack only on small screens.
     */

    .fh-calendar-home__grid {
        display: flex !important;

        flex-direction: column !important;
    }

    .fh-calendar-home__grid > .fh-day-slider {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .fh-calendar-home__grid > .fh-calendar-home__panel {
        height: 330px !important;
        min-height: 330px !important;
        max-height: 330px !important;
    }

    .fh-day-slider__slides,
    .fh-day-slide,
    .fh-day-slide > a,
    .fh-day-slide img {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .fh-domain-rail {
        overflow-x: auto !important;

        scrollbar-width: none;
    }

    .fh-domain-rail::-webkit-scrollbar {
        display: none;
    }

}



/* =========================================================
   FARHUB 6.5.3-F
   FINAL VISUAL POLISH — 2026-09-26
   No data/query/runtime changes.
   ========================================================= */


/* =========================================================
   1. COMPACT HERO — FINAL
   ========================================================= */

.fh-hero-653-inner {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
}

.fh-hero-653-content {
    min-height: 98px !important;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(360px, .92fr) !important;

    column-gap: 38px !important;
    row-gap: 5px !important;
}

.fh-hero-653-title {
    margin: 0 !important;

    font-size:
        clamp(1.4rem, 1.85vw, 2rem) !important;

    line-height: 1.3 !important;
}

.fh-hero-topics {
    min-height: 24px !important;

    gap: 5px !important;
}

.fh-hero-topics span,
.fh-hero-topics a {
    font-size: .7rem !important;
}

.fh-smart-search--653 {
    min-height: 44px !important;
}

.fh-smart-search--653 input[type="search"] {
    min-height: 44px !important;
}

.fh-smart-search--653 button {
    min-height: 38px !important;

    padding-inline: 17px !important;
}


/* =========================================================
   2. REDUCE SECTION VERTICAL GAPS
   ========================================================= */

.fh-events-wrap {
    margin-bottom: 0 !important;
}

.fh-calendar-home {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.fh-modern-home {
    padding-top: 8px !important;
}


/* =========================================================
   3. STORY + CALENDAR — FINAL SHARED GEOMETRY
   ========================================================= */

.fh-calendar-home__grid {
    gap: 12px !important;
}

.fh-calendar-home__grid > .fh-day-slider,
.fh-calendar-home__grid > .fh-calendar-home__panel {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;

    border-radius: 10px !important;
}


/* =========================================================
   4. CALENDAR — 25 / 30 / 45
   ========================================================= */

.fh-calendar-home__panel {
    grid-template-rows:
        80px
        96px
        minmax(0, 144px) !important;

    border:
        1px solid rgba(35,44,84,.09) !important;

    box-shadow:
        0 7px 22px rgba(17,23,53,.045) !important;
}


/* Layer 1 */

.fh-calendar-home__head {
    padding: 12px 15px !important;

    justify-content: center !important;
}

.fh-calendar-home__head .fh-kicker {
    margin-bottom: 3px !important;

    font-size: .69rem !important;
}

.fh-calendar-home__head h2 {
    font-size: .98rem !important;
}


/* Layer 2 */

.fh-calendar-today {
    padding: 13px 15px !important;
}

.fh-calendar-today__label {
    font-size: 1rem !important;
}

.fh-calendar-today__dates {
    gap: 3px !important;

    font-size: .76rem !important;

    line-height: 1.55 !important;
}


/* Layer 3 */

.fh-calendar-home__content {
    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;

    min-height: 0 !important;

    padding: 10px 14px !important;

    overflow: hidden !important;
}

.fh-calendar-home__content .fhde-home-strip {
    width: 100% !important;
    height: auto !important;
    max-height: 124px !important;

    overflow: hidden !important;
}


/* Compact plugin content */

.fh-calendar-home__content .fhde-home-strip > * {
    margin-top: 0 !important;
    margin-bottom: 5px !important;

    border-radius: 7px !important;
}


/* =========================================================
   5. VISUAL STORY — EDITORIAL POLISH
   ========================================================= */

.fh-day-slider {
    border:
        1px solid rgba(35,44,84,.10) !important;

    box-shadow:
        0 7px 22px rgba(17,23,53,.055) !important;
}

.fh-day-slider__slides,
.fh-day-slide,
.fh-day-slide > a,
.fh-day-slide img {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
}

.fh-day-slide img {
    object-fit: cover !important;
}

.fh-day-slider__head {
    top: 11px !important;
    right: 11px !important;

    padding: 5px 8px !important;

    border-radius: 6px !important;

    font-size: .69rem !important;

    backdrop-filter: blur(8px);
}

.fh-day-slide__copy {
    right: 15px !important;
    left: 15px !important;
    bottom: 15px !important;
}

.fh-day-slide__copy strong {
    max-width: 90% !important;

    font-size:
        clamp(.98rem, 1.18vw, 1.22rem) !important;

    line-height: 1.6 !important;
}

.fh-day-slider__controls {
    right: 10px !important;
    left: 10px !important;
    bottom: 9px !important;
}

.fh-day-slider__controls button {
    width: 26px !important;
    height: 26px !important;

    border-radius: 6px !important;
}


/* =========================================================
   6. FIVE-DOMAIN NAV — LIGHTER EDITORIAL RAIL
   ========================================================= */

.fh-domain-rail {
    min-height: 42px !important;

    margin-bottom: 10px !important;

    padding: 5px 7px !important;

    gap: 5px !important;

    border-radius: 9px !important;

    box-shadow:
        0 4px 14px rgba(17,23,53,.035) !important;
}

.fh-domain-rail a {
    min-height: 30px !important;

    display: inline-flex !important;

    align-items: center !important;

    padding:
        5px 13px !important;

    border-radius: 7px !important;

    font-size: .75rem !important;
}

.fh-domain-rail a.is-active {
    box-shadow: none !important;
}


/* =========================================================
   7. RESTRAIN GENERIC CARD ROUNDNESS IN HOME SECTIONS
   ========================================================= */

.fh-events-wrap .fh-card,
.fh-modern-home > .fh-container > .fh-card,
.fh-news-stream,
.fh-sidebar-module,
.fh-editorial-deck {
    border-radius: 11px !important;
}


/* =========================================================
   8. MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .fh-hero-653-inner {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .fh-hero-653-content {
        min-height: 0 !important;

        gap: 9px !important;
    }

    .fh-hero-653-title {
        font-size: 1.5rem !important;
        line-height: 1.45 !important;
    }

    .fh-calendar-home__grid > .fh-day-slider {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }

    .fh-day-slider__slides,
    .fh-day-slide,
    .fh-day-slide > a,
    .fh-day-slide img {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }

    .fh-calendar-home__grid > .fh-calendar-home__panel {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }

    .fh-domain-rail {
        margin-inline: 0 !important;

        padding-inline: 5px !important;
    }

}

