/* ==========================================================================
   CCSK — Critical Care Society of Kenya
   Front-end styles (layout borrowed from the Finiscope CI4 template,
   re-themed for CCSK). Brand colour comes from Admin → Settings and is
   injected as --primary in the layout <head>.
   ========================================================================== */

:root {
    --primary: #3367c1;
    --primary-dark: #244f9b;
    --primary-soft: #eaf1fc;
    --navy: #0b1f3a;
    --navy-2: #12305a;
    --accent: #c8102e;          /* critical-care red, used sparingly */
    --accent-soft: #fdecef;
    --ink: #13233a;
    --text: #44546a;
    --muted: #6b7a90;
    --line: #e3e9f2;
    --light: #f4f7fb;
    --white: #fff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(11, 31, 58, .08);
    --shadow-lg: 0 24px 60px rgba(11, 31, 58, .14);
    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .6em;
}

p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { padding-left: 1.2em; }

.container { max-width: 1200px; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; color: #fff; }

:focus-visible { outline: 3px solid rgba(51, 103, 193, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn-c {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .85em 1.6em; border-radius: 6px; border: 2px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1.2; letter-spacing: .01em;
    cursor: pointer; transition: all .25s ease; white-space: nowrap; font-family: var(--font);
}
.btn-c i { font-size: .9em; transition: transform .25s ease; }
.btn-c:hover i.fa-arrow-right { transform: translateX(4px); }
.btn-primary-c { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary-c:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-dark-c { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark-c:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-outline-c { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-c:hover { background: var(--primary); color: #fff; }
.btn-light-c { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light-c:hover { background: transparent; color: #fff; }
.btn-ghost-c { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-c:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm-c { padding: .55em 1.1em; font-size: .85rem; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow i { transition: transform .2s ease; font-size: .85em; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .78); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.text-center .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--accent); }
.section-dark .eyebrow { color: #8fb3ef; }

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
.section-title .hl { color: var(--primary); }
.section-dark .section-title .hl { color: #8fb3ef; }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 680px; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }
.section-dark .section-lead { color: rgba(255, 255, 255, .7); }
.section-head { margin-bottom: 52px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head-row .section-title { margin-bottom: .2em; }
.section-head-row .section-lead { margin-bottom: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contact i { color: #8fb3ef; margin-right: 6px; }
.topbar-social { display: flex; gap: 14px; }

/* ---------- Header / navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000; background: #fff;
    border-bottom: 1px solid var(--line); transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 31, 58, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand img { max-height: 60px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.brand-text span { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a,
.main-nav > ul > li > button {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 13px; border: 0; background: none; cursor: pointer;
    font-family: var(--font); font-size: .88rem; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--ink); border-radius: 6px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > button:hover,
.main-nav > ul > li.active > a,
.main-nav > ul > li.active > button { color: var(--primary); }
.main-nav > ul > li.active > a::after,
.main-nav > ul > li.active > button::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px;
}
.main-nav .caret { font-size: .65em; transition: transform .2s ease; }

.sub-menu {
    list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
    background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.sub-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub:hover .caret, .has-sub.open .caret { transform: rotate(180deg); }
.sub-menu a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
    color: var(--ink); font-size: .93rem; font-weight: 500;
}
.sub-menu a i { width: 18px; text-align: center; color: var(--primary); opacity: .8; }
.sub-menu a:hover, .sub-menu a.active { background: var(--primary-soft); color: var(--primary); }

.nav-cta > a {
    border: 2px solid var(--primary) !important; color: var(--primary) !important; padding: 8px 18px !important; margin-left: 8px;
}
.nav-cta > a:hover, .nav-cta.active > a { background: var(--primary); color: #fff !important; }
.nav-cta.active > a::after { display: none; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.nav-search-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.nav-search-btn:hover { color: var(--primary); border-color: var(--primary); }

.nav-toggle, .nav-close {
    display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; color: var(--navy); font-size: 1.2rem; cursor: pointer;
}

.search-panel { display: none; border-top: 1px solid var(--line); background: #fff; }
.search-panel.open { display: block; }
.search-panel form { display: flex; gap: 10px; padding: 16px 0; }
.search-panel input { flex: 1; }

@media (max-width: 1099px) {
    :root { --header-h: 72px; }
    .nav-toggle, .nav-close { display: inline-flex; align-items: center; justify-content: center; }
    .brand img { max-height: 50px; }
    .main-nav {
        position: fixed; top: 0; bottom: 0; right: 0; width: min(360px, 88vw); background: #fff; z-index: 1100;
        transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; padding: 80px 20px 30px;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > ul > li > a, .main-nav > ul > li > button { width: 100%; justify-content: space-between; padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav > ul > li.active > a::after, .main-nav > ul > li.active > button::after { display: none; }
    .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 4px 0 10px 10px; min-width: 0; }
    .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
    .has-sub.open > .sub-menu { display: block; }
    .nav-cta > a { margin: 16px 0 0; justify-content: center !important; }
    .nav-close { position: absolute; top: 18px; right: 18px; }
    .nav-overlay { position: fixed; inset: 0; background: rgba(11, 31, 58, .5); z-index: 990; opacity: 0; visibility: hidden; transition: all .3s ease; }
    .nav-overlay.open { opacity: 1; visibility: visible; }
}
@media (min-width: 1100px) { .nav-close, .nav-overlay { display: none; } }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(82vh, 760px); min-height: 540px; overflow: hidden; background: var(--navy); }
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    background-size: cover; background-position: center; opacity: 0; visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8, 22, 44, .92) 0%, rgba(8, 22, 44, .72) 45%, rgba(8, 22, 44, .25) 100%);
}
.hero-slide.pos-right::before { background: linear-gradient(260deg, rgba(8, 22, 44, .92) 0%, rgba(8, 22, 44, .72) 45%, rgba(8, 22, 44, .25) 100%); }
.hero-slide.no-image {
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(51, 103, 193, .55), transparent 60%),
        radial-gradient(700px 420px at 10% 90%, rgba(200, 16, 46, .28), transparent 60%),
        linear-gradient(135deg, #0b1f3a 0%, #12305a 100%);
}
.hero-slide.no-image::before { background: none; }
.hero-slide .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; color: #fff; }
.hero-slide.pos-right .hero-content { margin-left: auto; text-align: right; }
.hero-slide.pos-right .hero-actions { justify-content: flex-end; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 40px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px;
}
.hero-kicker .pulse { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
.hero .hero-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.hero-text { font-size: 1.15rem; color: rgba(255, 255, 255, .85); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.is-active .hero-content > * { animation: heroIn .9s both; }
.is-active .hero-content > *:nth-child(2) { animation-delay: .12s; }
.is-active .hero-content > *:nth-child(3) { animation-delay: .24s; }
.is-active .hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-nav { position: absolute; z-index: 5; bottom: 34px; left: 0; right: 0; }
.hero-nav .container { display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; transition: all .3s; }
.hero-dots button.is-active { background: #fff; width: 54px; }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; cursor: pointer; transition: all .2s; }
.hero-arrows button:hover { background: #fff; color: var(--navy); }

/* ---------- Welcome / intro ---------- */
.welcome { padding: 90px 0 70px; text-align: center; }
.welcome .kicker { font-size: .85rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.welcome h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.welcome .tagline { font-size: 1.25rem; font-weight: 600; color: var(--accent); margin-bottom: 22px; }
.welcome .lead-text { max-width: 860px; margin: 0 auto 36px; font-size: 1.08rem; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 40px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .95rem;
    box-shadow: 0 4px 14px rgba(11, 31, 58, .05); transition: all .25s ease;
}
.pill i { color: var(--primary); }
.pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---------- Counters ---------- */
.counters { background: linear-gradient(120deg, #8e0a20, var(--accent)); padding: 64px 0; }
.counter-card {
    text-align: center; color: #fff; padding: 30px 16px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); height: 100%;
}
.counter-card i { font-size: 1.6rem; opacity: .85; margin-bottom: 12px; }
.counter-value { font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.counter-label { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 600; opacity: .9; }

/* ---------- Split / about block ---------- */
.split-media { position: relative; padding: 0 0 40px 40px; z-index: 0; }
.split-media .frame {
    position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--light);
    box-shadow: var(--shadow-lg);
}
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-media .frame.no-image {
    background:
        radial-gradient(400px 300px at 80% 10%, rgba(51, 103, 193, .5), transparent 60%),
        linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
    display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .14); font-size: 8rem;
}
.split-media .frame::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
    background: linear-gradient(to top, rgba(8, 22, 44, .75), transparent);
}
.frame-caption { position: absolute; left: 28px; bottom: 26px; right: 28px; z-index: 2; color: #fff; }
.frame-caption small { display: block; color: #ffb3bd; font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.frame-caption strong { font-size: 1.3rem; line-height: 1.3; display: block; }
.split-media::before {
    content: ""; position: absolute; left: 0; bottom: 0; width: 60%; height: 60%;
    border: 2px solid var(--primary); border-radius: 18px; opacity: .25; z-index: -1;
}
.float-card {
    position: absolute; top: 34px; left: 0; z-index: 3; background: #fff; border-radius: 12px; padding: 16px 20px;
    display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--accent);
    max-width: 290px;
}
.float-card .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.float-card strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.float-card span { font-size: .8rem; color: var(--muted); }
.rich-text { font-size: 1.04rem; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text img { border-radius: var(--radius-sm); }
.rich-text h2, .rich-text h3, .rich-text h4 { margin-top: 1.3em; }
.rich-text ul li, .rich-text ol li { margin-bottom: .4em; }
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.rich-text table td, .rich-text table th { border: 1px solid var(--line); padding: 8px 10px; }
.rich-text strong { color: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check-list i { color: var(--accent); margin-top: 5px; }
@media (max-width: 575px) { .check-list { grid-template-columns: 1fr; } }

/* ---------- What we do cards ---------- */
.feature-card {
    position: relative; height: 100%; background: #fff; border-radius: var(--radius); padding: 34px 30px 30px;
    border: 1px solid var(--line); transition: all .3s ease; overflow: hidden;
}
.feature-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; z-index: 2; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .num { position: absolute; top: 18px; right: 24px; font-size: 3rem; font-weight: 800; color: var(--light); line-height: 1; }
.feature-card .ic {
    width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary); font-size: 1.6rem; margin-bottom: 22px; position: relative;
}
.col-feature:nth-child(3n+2) .feature-card .ic { background: var(--accent-soft); color: var(--accent); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; }
.feature-card .photo { margin: -34px -30px 24px; height: 190px; background-size: cover; background-position: center; }
.feature-card.has-photo .ic { margin-top: -56px; border: 4px solid #fff; background: #fff; box-shadow: var(--shadow); }
.feature-card.has-photo .num { color: rgba(255, 255, 255, .5); }

/* ---------- Event cards ---------- */
.event-card {
    display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--line); transition: all .3s ease;
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.event-card .thumb { position: relative; aspect-ratio: 16 / 10; background: var(--navy) center / cover no-repeat; display: block; overflow: visible; }
.event-card .thumb.no-image { background: linear-gradient(135deg, var(--navy), var(--primary)); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .25); font-size: 3.4rem; }
.date-badge {
    position: absolute; left: 18px; bottom: -26px; width: 66px; padding: 8px 0; text-align: center; border-radius: 10px;
    background: #fff; box-shadow: var(--shadow); line-height: 1.05;
}
.date-badge .d { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.date-badge .m { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.date-badge .y { display: block; font-size: .7rem; color: var(--muted); }
.event-card .body { padding: 40px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 30px; background: var(--primary-soft); color: var(--primary); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.chip-muted { background: var(--light); color: var(--muted); }
.event-card h3 { font-size: 1.2rem; margin: 12px 0 10px; }
.event-card h3 a { color: var(--ink); }
.event-card h3 a:hover { color: var(--primary); }
.meta-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: .92rem; }
.meta-list li { display: flex; gap: 10px; margin-bottom: 6px; }
.meta-list i { color: var(--primary); width: 16px; margin-top: 5px; text-align: center; flex-shrink: 0; }
.event-card .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.status-pill { position: absolute; top: 16px; right: 16px; padding: 5px 12px; border-radius: 30px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--ink); }
.status-pill.upcoming { background: #16a34a; color: #fff; }

.event-row { display: grid; grid-template-columns: 220px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s ease; }
.event-row:hover { box-shadow: var(--shadow); }
.event-row .thumb { background: var(--navy) center / cover no-repeat; min-height: 160px; position: relative; }
.event-row .thumb.no-image { background: linear-gradient(135deg, var(--navy), var(--primary)); }
.event-row .body { padding: 22px 26px; }
.event-row h3 { font-size: 1.15rem; margin: 8px 0; }
.event-row h3 a { color: var(--ink); }
@media (max-width: 575px) { .event-row { grid-template-columns: 1fr; } }

/* ---------- CME list ---------- */
.cme-list { display: grid; gap: 16px; }
.cme-item {
    display: grid; grid-template-columns: 86px 1fr auto; gap: 22px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: all .25s ease;
}
.cme-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.cme-date { text-align: center; border-right: 1px solid var(--line); padding-right: 18px; line-height: 1.1; }
.cme-date .d { font-size: 1.9rem; font-weight: 800; color: var(--primary); display: block; }
.cme-date .m { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: block; }
.cme-date .y { font-size: .74rem; color: var(--muted); display: block; }
.cme-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.cme-people { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.cme-people span { display: inline-flex; gap: 6px; }
.cme-people b { color: var(--ink); font-weight: 600; }
.cme-sponsor { margin-top: 8px; font-size: .82rem; color: var(--muted); }
.cme-sponsor i { color: var(--accent); }
.cme-passcode { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); text-align: center; }
@media (max-width: 767px) {
    .cme-item { grid-template-columns: 64px 1fr; }
    .cme-item .cme-action { grid-column: 1 / -1; }
    .cme-item .cme-action .btn-c { width: 100%; }
    .cme-date { padding-right: 10px; }
}
.section-dark .cme-item { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section-dark .cme-item h3, .section-dark .cme-people b, .section-dark .cme-date .m { color: #fff; }
.section-dark .cme-date { border-color: rgba(255, 255, 255, .12); }
.section-dark .cme-date .d { color: #8fb3ef; }
.section-dark .cme-sponsor, .section-dark .cme-date .y, .section-dark .cme-passcode { color: rgba(255, 255, 255, .55); }
.cme-item.is-hidden { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.filter-btn {
    padding: 8px 18px; border-radius: 40px; border: 1px solid var(--line); background: #fff; color: var(--ink);
    font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s ease; font-family: var(--font); display: inline-block;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-search { margin-left: auto; position: relative; min-width: 280px; }
.filter-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-search input { padding-left: 42px; border-radius: 40px; }
@media (max-width: 767px) { .filter-search { margin-left: 0; width: 100%; min-width: 0; } }

/* ---------- Team ---------- */
.team-card { text-align: center; height: 100%; }
.team-card .photo {
    position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1.08; background: var(--light);
    margin-bottom: 18px; display: block;
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.team-card:hover .photo img { transform: scale(1.05); }
.team-card .photo.no-image { display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 800; color: var(--primary); background: var(--primary-soft); }
.team-card .social { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; opacity: 0; transform: translateY(10px); transition: all .3s ease; }
.team-card:hover .social, .team-card:focus-within .social { opacity: 1; transform: none; }
.team-card .social a { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.team-card .social a:hover { background: var(--primary); color: #fff; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card h3 a { color: var(--ink); }
.team-card h3 a:hover { color: var(--primary); }
.team-card .role { color: var(--accent); font-weight: 600; font-size: .9rem; }
.team-card.compact .photo { aspect-ratio: 1 / 1; border-radius: 50%; max-width: 170px; margin: 0 auto 16px; border: 4px solid #fff; box-shadow: var(--shadow); }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.partner-tile {
    background: #fff; border-radius: 12px; height: 110px; display: flex; align-items: center; justify-content: center;
    padding: 18px; transition: all .3s ease; border: 1px solid var(--line);
}
.partner-tile img { max-height: 70px; max-width: 100%; object-fit: contain; filter: grayscale(30%); transition: filter .3s ease; }
.partner-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.partner-tile:hover img { filter: none; }
.partner-tile .name { font-weight: 700; color: var(--ink); text-align: center; }
.section-dark .partner-tile { border-color: transparent; }

/* ---------- News ---------- */
.news-card { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: all .3s ease; }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.news-card .thumb { display: block; aspect-ratio: 16 / 10; background: var(--light) center / cover no-repeat; }
.news-card .thumb.no-image { background: linear-gradient(135deg, var(--primary-soft), #dbe6f8); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--primary); }
.news-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .meta { font-size: .85rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.news-card .meta i { color: var(--primary); margin-right: 5px; }
.news-card h3 { font-size: 1.2rem; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--primary); }
.news-card .foot { margin-top: auto; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; padding: 90px 0 80px; color: #fff; background: var(--navy) center / cover no-repeat; overflow: hidden;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(700px 380px at 90% 0%, rgba(51, 103, 193, .55), transparent 60%),
        linear-gradient(100deg, rgba(8, 22, 44, .95) 0%, rgba(8, 22, 44, .78) 55%, rgba(8, 22, 44, .55) 100%);
}
.page-hero::after {
    content: ""; position: absolute; right: -40px; bottom: -40px; width: 340px; height: 120px; opacity: .14;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 120'%3E%3Cpolyline fill='none' stroke='%23ffffff' stroke-width='4' points='0,70 90,70 110,70 125,30 145,110 165,10 185,90 200,70 340,70'/%3E%3C/svg%3E") no-repeat center / contain;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.page-hero p.sub { color: rgba(255, 255, 255, .78); max-width: 680px; font-size: 1.08rem; margin: 0; }
.breadcrumb-c { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; }
.breadcrumb-c li { color: rgba(255, 255, 255, .6); }
.breadcrumb-c li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .35); }
.breadcrumb-c a { color: rgba(255, 255, 255, .9); }
.breadcrumb-c a:hover { color: #fff; }

/* ---------- Sidebar ---------- */
.sidebar-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.sidebar-box h4 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line); position: relative; }
.sidebar-box h4::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 50px; height: 2px; background: var(--accent); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: var(--ink); font-weight: 500; display: flex; justify-content: space-between; gap: 10px; }
.side-list a:hover, .side-list a.active { color: var(--primary); }
.side-list small { color: var(--muted); display: block; font-size: .8rem; }
.side-list .count { background: var(--light); border-radius: 20px; padding: 0 10px; font-size: .8rem; color: var(--muted); height: fit-content; }

.info-panel { background: var(--navy); color: rgba(255, 255, 255, .8); border-radius: var(--radius); padding: 28px; margin-bottom: 26px; }
.info-panel h4 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.info-panel .row-i { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.info-panel .row-i:last-child { border-bottom: 0; }
.info-panel .row-i > i { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #8fb3ef; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-panel .row-i small { display: block; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; color: rgba(255, 255, 255, .5); }
.info-panel .row-i strong { color: #fff; font-weight: 600; }
.info-panel .btn-c { width: 100%; margin-top: 16px; }

.detail-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow); }
.detail-cover img { width: 100%; display: block; }
.map-embed { border-radius: var(--radius); overflow: hidden; background: var(--light); line-height: 0; }
.map-embed iframe { width: 100% !important; height: 360px; border: 0; display: block; }

.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-row span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.share-row a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--light); color: var(--ink); }
.share-row a:hover { background: var(--primary); color: #fff; }

/* ---------- Mission / vision ---------- */
.mv-card { height: 100%; background: #fff; border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.mv-card .num { position: absolute; top: 16px; right: 22px; font-size: 3.4rem; font-weight: 800; color: var(--light); line-height: 1; }
.mv-card .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; position: relative; }
.mv-card.accent { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .8); }
.mv-card.accent h3, .mv-card.accent strong { color: #fff; }
.mv-card.accent .num { color: rgba(255, 255, 255, .06); }
.mv-card.accent .ic { background: rgba(255, 255, 255, .1); color: #ffb3bd; }
.mv-card h3 { font-size: 1.35rem; }

/* ---------- Resources ---------- */
.accordion-c { display: grid; gap: 14px; }
.accordion-c details { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s ease; }
.accordion-c details[open] { box-shadow: var(--shadow); border-color: transparent; }
.accordion-c summary {
    list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink); font-size: 1.08rem;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.accordion-c summary::-webkit-details-marker { display: none; }
.accordion-c summary .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s ease; font-size: .85rem; }
.accordion-c details[open] summary .ic { transform: rotate(45deg); background: var(--accent); color: #fff; }
.accordion-c .acc-body { padding: 0 24px 22px; }
.file-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: all .2s ease; height: 100%; }
.file-card:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--ink); }
.file-card .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.file-card strong { display: block; line-height: 1.3; }
.file-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.file-card .dl { margin-left: auto; color: var(--primary); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--light); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.gallery-item::after { content: "\f00e"; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem; background: rgba(11, 31, 58, .45); opacity: 0; transition: opacity .3s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.gallery-item.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(5, 12, 25, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: .9rem; }
@media (max-width: 575px) { .lightbox { padding: 60px 10px; } }

/* ---------- Contact ---------- */
.contact-wrap { position: relative; overflow: hidden; }
.contact-wrap::before { content: ""; position: absolute; top: -80px; right: -120px; width: 380px; height: 380px; border-radius: 50%; background: var(--primary-soft); z-index: 0; opacity: .7; }
.contact-wrap .container { position: relative; z-index: 1; }
.card-c { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 36px; height: 100%; }
.card-c .card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.card-c .card-head .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.card-c .card-head h3 { margin: 0; font-size: 1.35rem; }
.card-c .card-head p { margin: 0; font-size: .9rem; color: var(--muted); }
.form-label-c { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: 6px; }
.form-control-c {
    width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafd;
    font-family: var(--font); font-size: .98rem; color: var(--ink); transition: all .2s ease;
}
.form-control-c:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(51, 103, 193, .12); }
textarea.form-control-c { min-height: 140px; resize: vertical; }
.form-group-c { margin-bottom: 18px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-line small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); font-weight: 700; }
.contact-line strong, .contact-line a { color: var(--ink); font-weight: 600; white-space: pre-line; }
.contact-line a:hover { color: var(--primary); }

.alert-c { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-c i { margin-top: 4px; }
.alert-success-c { background: #e8f7ee; color: #146c34; border: 1px solid #bfe7cd; }
.alert-error-c { background: #fdecef; color: #9b1028; border: 1px solid #f6c3cc; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, var(--navy-2) 100%); border-radius: 22px; padding: 54px 56px; color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 991px) { .cta-band .actions { justify-content: flex-start; margin-top: 24px; } }
@media (max-width: 767px) { .cta-band { padding: 36px 26px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.footer-newsletter { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 46px 0; }
.footer-newsletter h3 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; }
.footer-newsletter p { margin: 0; }
.newsletter-form { display: flex; gap: 10px; position: relative; }
.newsletter-form input[type=email] { flex: 1; padding: 14px 18px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; font-family: var(--font); font-size: 1rem; min-width: 0; }
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter-form input:focus { outline: none; border-color: #8fb3ef; background: rgba(255, 255, 255, .1); }
.newsletter-msg { font-size: .9rem; margin-top: 10px; min-height: 1.2em; }
.newsletter-msg.ok { color: #7ee2a8; }
.newsletter-msg.err { color: #ffb3bd; }
@media (max-width: 575px) { .newsletter-form { flex-direction: column; } }
.footer-main { padding: 64px 0 34px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--accent); }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: #fff; }
.footer-brand img { max-height: 76px; background: #fff; border-radius: 10px; padding: 8px; margin-bottom: 18px; }
.footer-brand .brand-text { margin-bottom: 16px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: rgba(255, 255, 255, .55); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links a i { font-size: .65em; color: #8fb3ef; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { color: #8fb3ef; margin-top: 5px; width: 16px; text-align: center; flex-shrink: 0; }
.footer-contact span { white-space: pre-line; }
.social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all .25s ease; }
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .45); transition: transform .25s ease;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.back-top {
    position: fixed; right: 30px; bottom: 92px; z-index: 900; width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: var(--navy); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s ease;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary); }

/* ---------- Pager ---------- */
.pager-c { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pager-c a, .pager-c span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pager-c a:hover { border-color: var(--primary); color: var(--primary); }
.pager-c .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 2.4rem; color: var(--primary); opacity: .5; margin-bottom: 14px; display: block; }
.section-dark .empty-state { border-color: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .6); }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 5000; background: #fff; display: flex; align-items: center; justify-content: center; transition: opacity .4s ease, visibility .4s ease; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .beat { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s !important; }
.reveal-delay-2 { transition-delay: .2s !important; }
.reveal-delay-3 { transition-delay: .3s !important; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.gap-y > [class*="col-"] { margin-bottom: 30px; }
.text-muted-c { color: var(--muted); }
.ecg-line { display: block; width: 120px; height: 24px; color: var(--accent); margin-bottom: 14px; }
.text-center .ecg-line { margin-left: auto; margin-right: auto; }

@media (max-width: 991px) {
    .section { padding: 72px 0; }
    .split-media { padding: 0 0 30px 20px; margin-bottom: 40px; }
    .hero { height: auto; min-height: 580px; }
    .hero-slide { padding: 80px 0 110px; }
}
@media (max-width: 575px) {
    .section { padding: 60px 0; }
    .card-c { padding: 24px; }
    .topbar { display: none; }
    .hero-arrows { display: none; }
    .hero-slide.pos-right .hero-content { text-align: left; margin-left: 0; }
    .hero-slide.pos-right .hero-actions { justify-content: flex-start; }
    .float-card { max-width: 230px; padding: 12px 14px; }
}

@media print {
    .topbar, .site-header, .site-footer, .whatsapp-float, .back-top, .hero-nav { display: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

.team-card .social { z-index: 2; }
.team-card .photo .stretched-link::after { z-index: 1; }

.welcome .ecg-line { margin: 0 auto 14px; }
.contact-block .card-c { height: auto; }

/* Featured (single) event */
.event-feature { display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.event-feature .thumb { position: relative; min-height: 360px; background: var(--navy) center / cover no-repeat; }
.event-feature .thumb.no-image { background: radial-gradient(500px 300px at 80% 10%, rgba(51, 103, 193, .6), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-2)); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .15); font-size: 7rem; }
.event-feature .date-badge { left: 28px; top: 28px; bottom: auto; width: 78px; }
.event-feature .body { padding: 42px 44px; display: flex; flex-direction: column; justify-content: center; }
.event-feature h3 { font-size: 1.7rem; margin: 14px 0 12px; }
.event-feature h3 a { color: var(--ink); }
.event-feature .meta-list { font-size: 1rem; }
@media (max-width: 991px) { .event-feature { grid-template-columns: 1fr; } .event-feature .thumb { min-height: 240px; } .event-feature .body { padding: 30px 26px; } }

.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.partner-grid > .partner-tile { flex: 0 0 calc((100% - 5 * 18px) / 6); }
@media (max-width: 991px) { .partner-grid > .partner-tile { flex-basis: calc((100% - 3 * 18px) / 4); } }
@media (max-width: 767px) { .partner-grid > .partner-tile { flex-basis: calc((100% - 18px) / 2); } }
