/* ═══════════════════════════════════════════════════════════════ */
/* LIBERATOR TRUST — Custom Styles                                 */
/* Premium charitable trust design with Royal Blue & Champagne Gold*/
/* ═══════════════════════════════════════════════════════════════ */

/* ── Hero Carousel ─────────────────────────────────────────────── */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.8s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .flex > div:last-child .max-w-xl {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero-slide:not(.active) .flex > div:last-child .max-w-xl {
    transform: translateY(30px);
    opacity: 0;
}

.hero-placeholder {
    background: linear-gradient(135deg, #1A237E 0%, #283593 50%, #3949AB 100%);
}

.hero-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(233, 196, 106, 0.15) 0%, transparent 60%);
}

/* ── Timeline ──────────────────────────────────────────────────── */
.timeline-item.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Programme Filter Animation ────────────────────────────────── */
.programme-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.programme-card.hidden-card {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

/* ── Logo Crest Scroll Transitions ─────────────────────────────── */
#trust-logo-crest {
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-width 0.35s ease;
}

/* Scrolled state — crest shrinks into the navbar */
.header-scrolled #trust-logo-crest {
    width: 3rem !important;
    height: 3rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-width: 2px !important;
}

/* Adjust brand link padding when scrolled */
#trust-brand-link {
    transition: padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-scrolled #trust-brand-link {
    padding-left: 4rem !important;
}

/* ── Scrollbar Customization ───────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #E8EAF6;
}

::-webkit-scrollbar-thumb {
    background: #1A237E;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #283593;
}

/* ── Selection Color ───────────────────────────────────────────── */
::selection {
    background: #E9C46A;
    color: #1A237E;
}

/* ── Smooth entrance for page sections ─────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Filter button active state ────────────────────────────────── */
.filter-btn.active {
    background-color: #1A237E !important;
    color: white !important;
    border-color: #1A237E !important;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

/* ── Pillar Card hover gold line ───────────────────────────────── */
.pillar-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #E9C46A, #D4A843);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover::after {
    width: 100%;
}

/* ── Counter number styling ────────────────────────────────────── */
.js-counter {
    font-variant-numeric: tabular-nums;
}

/* ── Mobile menu open state: body scroll lock ──────────────────── */
body.menu-open {
    overflow: hidden;
}
