/* BioLucifer.lk - Custom Stylesheet */
/* Colors based on official BioLucifer A/L Biology Artwork Branding */
:root {
    --brand-orange: #ea580c;
    --brand-orange-hover: #c2410c;
    --brand-orange-light: #fff7ed;
    --brand-orange-border: #fed7aa;
    --brand-teal: #0d9488;
    --brand-teal-deep: #1b7f6e;
    --brand-teal-hover: #0f766e;
    --brand-teal-light: #f0fdfa;
    --brand-teal-border: #99f6e4;
    --brand-green: #4ca864;
    --brand-green-hover: #3b8a50;
    --brand-green-light: #f0fdf4;
    --brand-dark: #18181b;
    --brand-dark-card: #222730;
    --brand-gray: #64748b;
    --brand-bg: #f8fafc;
    --brand-blue: #ea580c; /* unified primary to poster orange */
    --brand-blue-hover: #c2410c;
    --brand-blue-light: #fff7ed;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--brand-bg);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Gradient brand background */
.bg-brand-gradient {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 55%, #0d9488 100%);
}

.text-brand-orange {
    color: var(--brand-orange) !important;
}

.text-brand-teal {
    color: var(--brand-teal) !important;
}

.text-brand-blue {
    color: var(--brand-orange) !important;
}

.text-brand-green {
    color: var(--brand-green) !important;
}

.bg-brand-orange {
    background-color: var(--brand-orange) !important;
    color: #fff !important;
}

.bg-brand-teal {
    background-color: var(--brand-teal) !important;
    color: #fff !important;
}

.bg-brand-blue {
    background-color: var(--brand-orange) !important;
    color: #fff !important;
}

.bg-brand-green {
    background-color: var(--brand-green) !important;
    color: #fff !important;
}

/* Signature BIO LUCIFER Artwork Green/Teal Tag Badge */
.badge-bio-lucifer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #0d9488 0%, #1b7f6e 100%);
    color: #ffffff !important;
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

/* Soft Biology Teal Pill Badge */
.badge-teal-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: var(--brand-teal-light);
    border: 1px solid var(--brand-teal-border);
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-brand-primary {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-brand-primary:hover {
    background-color: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.btn-brand-secondary,
.btn-brand-teal {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #fff;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-brand-secondary:hover,
.btn-brand-teal:hover {
    background-color: var(--brand-teal-hover);
    border-color: var(--brand-teal-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.32);
}

.btn-brand-teal-outline {
    border: 1.5px solid var(--brand-teal);
    color: var(--brand-teal);
    background: var(--brand-teal-light);
    font-weight: 600;
    transition: all 0.22s ease;
}

.btn-brand-teal-outline:hover {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-brand-outline {
    border: 2px solid var(--brand-orange);
    color: var(--brand-orange);
    font-weight: 600;
}

.btn-brand-outline:hover {
    background-color: var(--brand-orange);
    color: #fff;
}

/* Navbar Styling - Matches Exact Brand Identity */
.main-navbar {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Transparent Hero Navbar on Home Page */
.main-navbar.navbar-transparent-hero {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* When User Scrolls Down on Home Page */
.main-navbar.navbar-transparent-hero.navbar-scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.navbar-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
}

.navbar-brand-logo-img-mobile {
    height: 36px;
    max-width: 160px;
}

.footer-brand-logo-img {
    height: 46px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

@media (max-width: 575.98px) {
    .navbar-brand-logo-img {
        height: 38px;
        max-width: 165px;
    }
}

.dna-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-title-main {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.1;
    color: #181b20;
    text-transform: uppercase;
}

.brand-subtitle-tag {
    font-size: 0.68rem;
    color: #ea580c;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: block;
    margin-top: 2px;
    text-transform: capitalize;
}

/* Nav links styling */
.nav-link-custom {
    font-weight: 600;
    font-size: 0.92rem;
    color: #334155 !important;
    padding: 0.45rem 1rem !important;
    border-radius: 9999px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-link-custom:hover {
    color: var(--brand-orange) !important;
    background-color: rgba(234, 88, 12, 0.08);
}

/* Active Pill State matching Image */
.nav-pill-active {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0.45rem 1.25rem !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.nav-pill-active:hover {
    background-color: #c2410c !important;
    color: #ffffff !important;
}

/* Join Our Groups / Login Pill Button */
.btn-join-groups {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 9999px;
    padding: 0.5rem 1.35rem;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    transition: all 0.25s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-join-groups:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
}

/* Custom Hamburger Toggle Button */
.navbar-toggler-custom {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.4rem 0.65rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.navbar-toggler-custom:hover, .navbar-toggler-custom:focus {
    background: #fff7ed;
    border-color: #ffedd5;
    box-shadow: none;
}

/* Mobile Responsive Offcanvas Slide Drawer Adjustments (Slides from Left) */
@media (max-width: 991.98px) {
    .main-navbar .offcanvas {
        max-width: 300px;
        height: 100dvh;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        box-shadow: 8px 0 35px rgba(0, 0, 0, 0.18);
        border: none;
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .main-navbar .offcanvas-body {
        padding: 1.25rem !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto;
    }

    .main-navbar .navbar-nav {
        gap: 6px !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    .main-navbar .navbar-nav .nav-item {
        width: 100% !important;
    }

    .nav-link-custom {
        width: 100% !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center;
        gap: 0.65rem;
        color: #374151 !important;
        background: transparent;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .nav-link-custom:hover {
        background: #f3f4f6 !important;
        color: #111827 !important;
    }

    /* Modern Full-Width Active Pill on Mobile */
    .nav-pill-active {
        width: 100% !important;
        background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28) !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        padding: 0.65rem 1rem !important;
        display: flex !important;
        align-items: center;
        gap: 0.65rem;
        text-align: left;
    }

    .nav-pill-active:hover {
        background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%) !important;
        color: #ffffff !important;
    }

    /* Mobile Login Button stretched long across drawer (Full Width) */
    .mobile-login-wrap {
        width: 100% !important;
    }

    .mobile-login-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.65rem 1.25rem !important;
        border-radius: 9999px !important;
        font-weight: 700;
        font-size: 0.95rem;
        background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
        color: #fff !important;
        border: none;
        box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .mobile-login-btn:hover {
        background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
        color: #fff !important;
    }

    .btn-join-groups {
        width: 100% !important;
        justify-content: center;
        padding: 0.6rem 1.2rem;
        font-size: 0.92rem;
    }

    .brand-title-main {
        font-size: 1.15rem;
    }

    .brand-subtitle-tag {
        font-size: 0.62rem;
    }
}

/* Secondary Dashboard Navigation Bar (Replacing Sidebars) */
.sub-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.6rem 0;
}

.sub-nav-link {
    font-weight: 600;
    color: #64748b;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.sub-nav-link:hover {
    color: var(--brand-orange);
    background-color: var(--brand-orange-light);
}

.sub-nav-link.active {
    background-color: var(--brand-orange);
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(132, 204, 22, 0.08) 100%), #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Cards & Badges */
.custom-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.class-card-img {
    transition: transform 0.35s ease;
}

.custom-card:hover .class-card-img {
    transform: scale(1.05);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge-2027 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timetable card styled exactly like the poster */
.poster-timetable-card {
    background: #1e232a;
    border-radius: 18px;
    color: #ffffff;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Features Grid */
.feature-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .feature-icon-box {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
}

/* Full-Width Container-Fluid Hero Slideshow (Exact 1920 x 900 ratio - 16:7.5) */
.hero-slideshow-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #14171c;
}

.hero-slideshow-wrap.hero-fullscreen-slider {
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 900;
    min-height: 0;
}

.hero-slide-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 900;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* About Sir Section Matched Height Split Layout (Exact 800 x 700 ratio - 8:7) */
.about-sir-poster-col {
    min-height: 0;
    aspect-ratio: 8 / 7;
}

@media (min-width: 992px) {
    .about-sir-poster-col .about-sir-poster-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 991.98px) {
    .about-sir-poster-col {
        min-height: 0;
        aspect-ratio: 8 / 7;
    }
    .about-sir-poster-col .about-sir-poster-img {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 8 / 7;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 991.98px) {
    .hero-slideshow-wrap.hero-fullscreen-slider {
        height: auto;
        min-height: 0;
        aspect-ratio: 1920 / 900;
    }
    .hero-slide-img {
        height: auto;
        aspect-ratio: 1920 / 900;
    }
}

.hero-slide-content-banner {
    min-height: clamp(260px, 48vw, 520px);
    background: linear-gradient(135deg, #181b20 0%, #222730 40%, #ea580c 100%);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--brand-orange);
    width: 32px;
    border-radius: 9999px;
}

/* Result Circular Badge / Stamp (from Reference landing page) */
.result-stamp {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px dashed #ea580c;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.2);
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.result-stamp:hover {
    transform: scale(1.05) rotate(3deg);
}

.result-stamp-num {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #ea580c;
    line-height: 1;
}

/* Telegram & Social Channel Cards */
.channel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: #ea580c;
    box-shadow: 0 12px 25px rgba(234, 88, 12, 0.15);
    color: inherit;
}

.channel-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    transition: transform 0.25s ease;
}

.channel-card:hover .channel-icon-wrap {
    transform: scale(1.1);
}

/* Mobile Touch Swipeable Channels Track (2 cards per row on mobile) */
.channels-touch-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.channels-touch-track::-webkit-scrollbar {
    display: none;
}
.channel-col-mobile {
    flex: 0 0 calc((100% - 8px) / 2);
    min-width: calc((100% - 8px) / 2);
    scroll-snap-align: start;
    user-select: none;
}
.channel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ea580c;
    opacity: 0.35;
    border: none;
    padding: 0;
    transition: all 0.25s ease;
    cursor: pointer;
}
.channel-dot.active {
    width: 22px;
    border-radius: 4px;
    opacity: 1;
}

/* 3-Row Photo Wall Slider */
.gallery-wall-container {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
}

.gallery-ticker-row {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}
.gallery-ticker-row:last-child {
    margin-bottom: 0;
}

.gallery-ticker-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.gallery-ticker-left {
    animation: galleryTickerLeft 36s linear infinite;
}

.gallery-ticker-right {
    animation: galleryTickerRight 40s linear infinite;
}

.gallery-ticker-row:hover .gallery-ticker-track,
.gallery-ticker-row.is-paused .gallery-ticker-track {
    animation-play-state: paused;
}

@keyframes galleryTickerLeft {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes galleryTickerRight {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.gallery-wall-card {
    flex: 0 0 285px;
    width: 285px;
    margin-right: 14px;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    background: #14171c;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-wall-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #ea580c;
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.2);
}

.gallery-wall-img {
    width: 100%;
    height: 190px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-wall-card:hover .gallery-wall-img {
    transform: scale(1.04);
}

@media (max-width: 767.98px) {
    .gallery-wall-card {
        flex: 0 0 210px;
        width: 210px;
        margin-right: 10px;
        border-radius: 12px;
    }
    .gallery-wall-img {
        height: 140px;
        aspect-ratio: 3 / 2;
    }
    .gallery-ticker-row {
        margin-bottom: 10px;
    }
    .gallery-ticker-left {
        animation-duration: 25s;
    }
    .gallery-ticker-right {
        animation-duration: 28s;
    }
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: #fff;
    opacity: 0.9;
}

/* Islandwide Map Coverage Container */
.map-coverage-box {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 3rem 2rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.04);
}

/* Quote Callout */
.quote-highlight-card {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border-left: 5px solid #ea580c;
    border-radius: 16px;
    padding: 2rem;
}

/* Video embed container */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Gallery Cards & Placeholders */
.gallery-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #14171c;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.gallery-placeholder-img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

/* Compact Video Auto-Slider Section */
.video-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
}
.video-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.video-scroll-container:active {
    cursor: grabbing;
}
.video-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}
.video-compact-item {
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: 220px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
@media (max-width: 1199.98px) {
    .video-compact-item {
        flex: 0 0 calc((100% - 32px) / 3);
        min-width: 200px;
    }
}
@media (max-width: 767.98px) {
    .video-compact-item {
        flex: 0 0 calc((100% - 16px) / 2);
        min-width: 160px;
    }
}
.video-compact-item:hover {
    transform: translateY(-5px);
}
.video-compact-item:hover .video-play-btn {
    transform: scale(1.15);
    background: #ea580c;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.6);
}
.video-compact-item:hover .video-thumb-img {
    transform: scale(1.05);
}

.video-thumb-wrap {
    position: relative;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.video-compact-item:hover .video-thumb-wrap {
    border-color: #ea580c;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.2);
}
.video-thumb-img {
    transition: transform 0.4s ease;
}
.video-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
    transition: background 0.25s ease;
}
.video-compact-item:hover .video-thumb-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}
.video-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.92);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    padding-left: 3px;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
@media (max-width: 767.98px) {
    .video-play-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}
.video-duration-pill {
    font-size: 0.7rem;
    letter-spacing: 0.3px;
    border-radius: 4px;
}

/* Footer */
footer {
    background: #14171c;
    color: #94a3b8;
    border-top: 3px solid var(--brand-orange);
    padding: 3rem 0 1.5rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--brand-orange);
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1f242c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.footer-social-btn:hover {
    background: var(--brand-orange);
    color: #ffffff !important;
    border-color: var(--brand-orange);
    transform: translateY(-2px);
}

/* Full-Height 100% Fit Login Layout (No Vertical Scrollbar on 100% Zoom) */
@media (min-width: 992px) {
    html:has(.login-page-wrapper),
    body:has(.login-page-wrapper) {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    body:has(.login-page-wrapper) main {
        flex: 1 1 auto;
        min-height: 0;
        height: calc(100vh - 72px);
        max-height: calc(100vh - 72px);
        overflow: hidden;
    }
    .login-page-wrapper {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }
    .login-page-row {
        height: 100%;
        max-height: 100%;
    }
    .login-col-left {
        height: 100%;
        max-height: 100%;
    }
    .login-col-right {
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        scrollbar-width: none;
    }
    .login-col-right::-webkit-scrollbar {
        display: none;
    }
}
@media (max-width: 991.98px) {
    .login-col-left {
        display: none !important;
    }
    .login-col-right {
        min-height: calc(100dvh - 68px) !important;
        border-left: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1.5rem 1.25rem !important;
        background: #f8fafc !important;
    }
    .login-col-right .auth-panel-container {
        background: #ffffff;
        padding: 1.75rem 1.35rem !important;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
        border: 1px solid #e2e8f0;
    }
}

/* ==========================================================================
   Modern Floating Slide-in Toast Alert System (No Static Full-Width Banners)
   ========================================================================== */
.slide-alert-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: max-content;
    pointer-events: none;
    align-items: flex-end;
}

.slide-alert {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 16px 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.95);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    animation: slideAlertInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-alert.hide-slide {
    animation: slideAlertOutRight 0.22s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.slide-alert-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.slide-alert-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
}

/* Alert Type Color Variants */
.slide-alert-success {
    border-color: #86efac !important;
}
.slide-alert-success .slide-alert-icon-wrap {
    background: #dcfce7;
    color: #16a34a;
}

.slide-alert-danger, .slide-alert-error {
    border-color: #fdba74 !important;
}
.slide-alert-danger .slide-alert-icon-wrap, .slide-alert-error .slide-alert-icon-wrap {
    background: #ffedd5;
    color: #ea580c;
}

.slide-alert-warning {
    border-color: #fde68a !important;
}
.slide-alert-warning .slide-alert-icon-wrap {
    background: #fef3c7;
    color: #d97706;
}

.slide-alert-info {
    border-color: #bae6fd !important;
}
.slide-alert-info .slide-alert-icon-wrap {
    background: #e0f2fe;
    color: #0284c7;
}

/* Animations */
@keyframes slideAlertInRight {
    0% {
        opacity: 0;
        transform: translateX(80px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideAlertOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 50px;
    }
    100% {
        opacity: 0;
        transform: translateX(80px);
        max-height: 0;
        margin-bottom: -8px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@keyframes slideAlertProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile top slide */
@media (max-width: 576px) {
    .slide-alert-container {
        top: 14px;
        left: 14px;
        right: 14px;
        max-width: none;
        width: auto;
    }
    @keyframes slideAlertInRight {
        0% {
            opacity: 0;
            transform: translateY(-80px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @keyframes slideAlertOutRight {
        0% {
            opacity: 1;
            transform: translateY(0);
            max-height: 120px;
        }
        100% {
            opacity: 0;
            transform: translateY(-80px);
            max-height: 0;
            margin-bottom: -12px;
        }
    }
}

/* ==========================================================================
   MINIMALIST GROUP FILTER BUTTON TABS ("කොටු විදිහට" - Text Only)
   ========================================================================== */
.group-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #e9ecef;
    color: #495057;
    border: none;
    line-height: 1.25;
    cursor: pointer;
    user-select: none;
}

.group-tab-btn:hover {
    background-color: #dee2e6;
    color: #212529;
    transform: translateY(-1px);
}

.group-tab-btn.active {
    background-color: #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

/* ==========================================================================
   MCQ PDF & INTERACTIVE OMR ANSWER BUBBLE STYLES
   ========================================================================== */
.answer-bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    background: #ffffff;
    color: #475569;
    transition: all 0.15s ease;
    user-select: none;
    margin: 0 2px;
}

.answer-bubble:hover {
    border-color: #ea580c;
    color: #ea580c;
    background: #fff7ed;
    transform: scale(1.08);
}

.answer-bubble.selected {
    background: #ea580c !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.45) !important;
    transform: scale(1.08);
}

.hover-shadow {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* =========================================================================
   CLEAN SINGLE-ROW PASTEL ICON FEATURE CARDS (MATCHING REFERENCE)
   ========================================================================= */
.bl-why-section {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

@keyframes blWhyFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blIconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.bl-why-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.65);
    border-radius: 20px;
    padding: 1.45rem 1rem 1.35rem;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.25s ease;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.045);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: blWhyFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--delay, 0s);
}

.bl-why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.085);
}

.bl-why-icon-wrap {
    margin-bottom: 0.95rem;
    animation: blIconFloat 3.8s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.bl-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.bl-why-card:hover .bl-why-icon {
    transform: scale(1.08);
}

/* Pastel Icon Themes */
.bl-theme-orange .bl-why-icon {
    background: #ffedd5;
    color: #ea580c;
}
.bl-theme-orange:hover {
    border-color: rgba(234, 88, 12, 0.35);
}

.bl-theme-green .bl-why-icon {
    background: #dcfce7;
    color: #10b981;
}
.bl-theme-green:hover {
    border-color: rgba(16, 185, 129, 0.35);
}

.bl-theme-blue .bl-why-icon {
    background: #dbeafe;
    color: #2563eb;
}
.bl-theme-blue:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.bl-theme-purple .bl-why-icon {
    background: #f3e8ff;
    color: #7c3aed;
}
.bl-theme-purple:hover {
    border-color: rgba(124, 58, 237, 0.35);
}

.bl-why-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.38rem;
}

.bl-why-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 0;
}

/* =========================================================================
   BIOLOGY ANIMATION LAYER (Cells, DNA Helix, Orbiting Organelles)
   ========================================================================= */
.bl-theme-orange { --c: #ea580c; --c-soft: rgba(234, 88, 12, 0.28); }
.bl-theme-green  { --c: #10b981; --c-soft: rgba(16, 185, 129, 0.28); }
.bl-theme-blue   { --c: #2563eb; --c-soft: rgba(37, 99, 235, 0.28); }
.bl-theme-purple { --c: #7c3aed; --c-soft: rgba(124, 58, 237, 0.28); }

/* Scroll reveal: cards wait until section is visible */
.bl-why-section.bl-reveal-ready:not(.bl-in-view) .bl-why-card {
    animation-play-state: paused;
    opacity: 0;
}

/* --- Background layer --- */
.bl-bio-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bl-bio-dna {
    position: absolute;
    left: -5%;
    right: -5%;
    top: 50%;
    height: 70px;
    transform: translateY(-50%) rotate(-4deg);
    background: linear-gradient(90deg, #ea580c 0%, #f97316 35%, #0d9488 70%, #2563eb 100%);
    opacity: 0.09;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='70' viewBox='0 0 160 70'><g fill='none' stroke='black' stroke-width='3' stroke-linecap='round'><path d='M0 35 C20 5 60 5 80 35 S140 65 160 35'/><path d='M0 35 C20 65 60 65 80 35 S140 5 160 35'/><g stroke-width='2'><line x1='14' y1='20' x2='14' y2='50'/><line x1='28' y1='14' x2='28' y2='56'/><line x1='52' y1='14' x2='52' y2='56'/><line x1='66' y1='20' x2='66' y2='50'/><line x1='94' y1='20' x2='94' y2='50'/><line x1='108' y1='14' x2='108' y2='56'/><line x1='132' y1='14' x2='132' y2='56'/><line x1='146' y1='20' x2='146' y2='50'/></g></g></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='70' viewBox='0 0 160 70'><g fill='none' stroke='black' stroke-width='3' stroke-linecap='round'><path d='M0 35 C20 5 60 5 80 35 S140 65 160 35'/><path d='M0 35 C20 65 60 65 80 35 S140 5 160 35'/><g stroke-width='2'><line x1='14' y1='20' x2='14' y2='50'/><line x1='28' y1='14' x2='28' y2='56'/><line x1='52' y1='14' x2='52' y2='56'/><line x1='66' y1='20' x2='66' y2='50'/><line x1='94' y1='20' x2='94' y2='50'/><line x1='108' y1='14' x2='108' y2='56'/><line x1='132' y1='14' x2='132' y2='56'/><line x1='146' y1='20' x2='146' y2='50'/></g></g></svg>");
    -webkit-mask-size: 160px 70px;
    mask-size: 160px 70px;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    animation: blDnaScroll 14s linear infinite;
}

@keyframes blDnaScroll {
    from { -webkit-mask-position: 0 0; mask-position: 0 0; }
    to   { -webkit-mask-position: 160px 0; mask-position: 160px 0; }
}

/* Floating cells (membrane + nucleus) */
.bl-cell {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, rgba(13, 148, 136, 0.10) 45%, rgba(13, 148, 136, 0.18) 100%);
    border: 1.5px solid rgba(13, 148, 136, 0.18);
    animation: blCellFloat 16s ease-in-out infinite, blCellMorph 9s ease-in-out infinite;
}

.bl-cell::after {
    content: "";
    position: absolute;
    width: 32%;
    height: 32%;
    left: 38%;
    top: 36%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(234, 88, 12, 0.35), rgba(234, 88, 12, 0.12));
}

.bl-cell-1 { width: 90px; height: 90px; left: 3%; top: 8%; }
.bl-cell-2 { width: 60px; height: 60px; right: 6%; top: 12%; animation-delay: -4s, -2s; }
.bl-cell-3 { width: 120px; height: 120px; right: 22%; bottom: -40px; animation-delay: -8s, -5s; opacity: 0.8; }
.bl-cell-4 { width: 45px; height: 45px; left: 28%; bottom: 6%; animation-delay: -11s, -7s; }

@keyframes blCellFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(18px, -14px) rotate(25deg); }
    50%      { transform: translate(-10px, -24px) rotate(-15deg); }
    75%      { transform: translate(-20px, 8px) rotate(10deg); }
}

@keyframes blCellMorph {
    0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
    33%      { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; }
    66%      { border-radius: 44% 56% 46% 54% / 56% 44% 56% 44%; }
}

/* Molecule hexagons */
.bl-molecule {
    position: absolute;
    color: rgba(234, 88, 12, 0.16);
    animation: blMoleculeSpin 22s linear infinite;
}
.bl-molecule-1 { font-size: 2.2rem; left: 14%; top: 62%; }
.bl-molecule-2 { font-size: 1.5rem; right: 12%; bottom: 14%; color: rgba(37, 99, 235, 0.16); animation-duration: 18s; animation-direction: reverse; }
.bl-molecule-3 { font-size: 1.8rem; left: 52%; top: 4%; color: rgba(124, 58, 237, 0.14); animation-duration: 26s; }

@keyframes blMoleculeSpin {
    from { transform: rotate(0deg) translateY(0); }
    50%  { transform: rotate(180deg) translateY(-10px); }
    to   { transform: rotate(360deg) translateY(0); }
}

/* Rising bubbles (like cytoplasm vesicles) */
.bl-bubble {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.18);
    animation: blBubbleRise 12s ease-in infinite;
}
.bl-bubble-1 { width: 10px; height: 10px; left: 8%;  animation-delay: 0s; }
.bl-bubble-2 { width: 6px;  height: 6px;  left: 38%; animation-delay: -3s; background: rgba(234, 88, 12, 0.2); }
.bl-bubble-3 { width: 12px; height: 12px; left: 66%; animation-delay: -6s; }
.bl-bubble-4 { width: 8px;  height: 8px;  left: 88%; animation-delay: -9s; background: rgba(37, 99, 235, 0.2); }

@keyframes blBubbleRise {
    0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
    15%  { opacity: 1; }
    50%  { transform: translate(14px, -120px) scale(1); }
    100% { transform: translate(-8px, -260px) scale(0.8); opacity: 0; }
}

/* --- Card enhancements --- */
.bl-why-card {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.88);
}

/* Top accent line that grows on hover */
.bl-why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--c, #ea580c), transparent);
    transform: scaleX(0);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mini DNA strand that scrolls along the card bottom on hover */
.bl-why-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 16px;
    background: var(--c, #ea580c);
    opacity: 0;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'><g fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'><path d='M0 8 C6 1 18 1 24 8 S42 15 48 8'/><path d='M0 8 C6 15 18 15 24 8 S42 1 48 8'/><line x1='6' y1='4' x2='6' y2='12'/><line x1='18' y1='4' x2='18' y2='12'/><line x1='30' y1='4' x2='30' y2='12'/><line x1='42' y1='4' x2='42' y2='12'/></g></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'><g fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'><path d='M0 8 C6 1 18 1 24 8 S42 15 48 8'/><path d='M0 8 C6 15 18 15 24 8 S42 1 48 8'/><line x1='6' y1='4' x2='6' y2='12'/><line x1='18' y1='4' x2='18' y2='12'/><line x1='30' y1='4' x2='30' y2='12'/><line x1='42' y1='4' x2='42' y2='12'/></g></svg>");
    -webkit-mask-size: 48px 16px;
    mask-size: 48px 16px;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    transition: opacity 0.35s ease;
    animation: blMiniDna 3s linear infinite;
}

@keyframes blMiniDna {
    from { -webkit-mask-position: 0 0; mask-position: 0 0; }
    to   { -webkit-mask-position: 48px 0; mask-position: 48px 0; }
}

.bl-why-card:hover::before { transform: scaleX(1); }
.bl-why-card:hover::after  { opacity: 0.28; }
.bl-why-card:hover { box-shadow: 0 18px 38px var(--c-soft, rgba(15, 23, 42, 0.09)); }

/* Icon: orbit ring + orbiting organelle dot */
.bl-why-icon-wrap {
    position: relative;
}

.bl-why-icon-wrap::before,
.bl-why-icon-wrap::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    pointer-events: none;
}

.bl-why-icon-wrap::before {
    border: 1.5px dashed var(--c, #ea580c);
    opacity: 0.3;
    animation: blOrbitSpin 16s linear infinite;
}

.bl-why-icon-wrap::after {
    background: radial-gradient(circle at 50% 3px, var(--c, #ea580c) 3px, transparent 3.5px);
    animation: blOrbitSpin 5s linear infinite reverse;
}

@keyframes blOrbitSpin {
    to { transform: rotate(360deg); }
}

.bl-why-card:hover .bl-why-icon-wrap::before { opacity: 0.6; animation-duration: 5s; }
.bl-why-card:hover .bl-why-icon-wrap::after  { animation-duration: 1.8s; }

/* Icon body morphs like a living cell + membrane pulse */
.bl-why-icon {
    position: relative;
    animation: blIconCell 7s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.bl-why-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: blMembranePulse 2.8s ease-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes blIconCell {
    0%, 100% { border-radius: 16px; }
    33%      { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
    66%      { border-radius: 56% 44% 54% 46% / 44% 56% 44% 56%; }
}

@keyframes blMembranePulse {
    0%   { box-shadow: 0 0 0 0 var(--c-soft, rgba(234, 88, 12, 0.28)); }
    80%  { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.bl-why-card:hover .bl-why-icon i {
    animation: blHeartbeat 0.9s ease-in-out infinite;
}

@keyframes blHeartbeat {
    0%, 100% { transform: scale(1); }
    25%      { transform: scale(1.18); }
    45%      { transform: scale(0.96); }
    65%      { transform: scale(1.1); }
}

/* Mobile & Tablet: Compact Single-Row Smooth Auto-Slider (Seamless Infinite Marquee) */
.bl-why-clone {
    display: none !important;
}

@keyframes blWhyMarquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 991.98px) {
    .bl-why-section {
        padding-top: 1.15rem !important;
        padding-bottom: 1.15rem !important;
    }
    .bl-why-section .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    .bl-why-slider-viewport {
        overflow: hidden;
        padding: 6px 0 10px;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    }
    .bl-why-single-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: max-content !important;
        margin: 0 !important;
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        animation: blWhyMarquee 22s linear infinite;
        will-change: transform;
    }
    .bl-why-slider-viewport:hover .bl-why-single-row,
    .bl-why-slider-viewport:active .bl-why-single-row {
        animation-play-state: paused;
    }
    .bl-why-single-row > .col {
        flex: 0 0 auto !important;
        width: 170px !important;
        max-width: 170px !important;
        padding: 0 6px !important;
        margin: 0 !important;
    }
    .bl-why-clone {
        display: block !important;
    }
    .bl-why-section.bl-reveal-ready:not(.bl-in-view) .bl-why-card,
    .bl-why-card {
        opacity: 1 !important;
        animation: none !important;
        padding: 0.9rem 0.65rem 0.85rem;
        border-radius: 16px;
    }
    .bl-why-icon-wrap {
        margin-bottom: 0.55rem;
    }
    .bl-why-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.2rem;
    }
    .bl-why-title {
        font-size: 0.8rem;
        margin-bottom: 0.22rem;
        white-space: nowrap;
    }
    .bl-why-desc {
        font-size: 0.69rem;
        line-height: 1.35;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bl-bio-bg *,
    .bl-bio-dna,
    .bl-why-single-row,
    .bl-why-card,
    .bl-why-card::after,
    .bl-why-icon,
    .bl-why-icon::after,
    .bl-why-icon-wrap,
    .bl-why-icon-wrap::before,
    .bl-why-icon-wrap::after,
    .bl-why-icon i {
        animation: none !important;
    }
    .bl-why-section.bl-reveal-ready:not(.bl-in-view) .bl-why-card { opacity: 1; }
    @media (max-width: 991.98px) {
        .bl-why-slider-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
        .bl-why-clone { display: none !important; }
    }
}

@media (max-width: 575.98px) {
    .bl-bio-dna { height: 50px; -webkit-mask-size: 115px 50px; mask-size: 115px 50px; }
    .bl-cell-3 { display: none; }
    .bl-why-icon-wrap::before,
    .bl-why-icon-wrap::after { inset: -6px; }
    .bl-why-single-row {
        animation-duration: 18s;
    }
    .bl-why-single-row > .col {
        width: 152px !important;
        max-width: 152px !important;
        padding: 0 5px !important;
    }
    .bl-why-card {
        padding: 0.8rem 0.6rem 0.75rem;
        border-radius: 15px;
    }
    .bl-why-icon-wrap {
        margin-bottom: 0.5rem;
    }
    .bl-why-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 1.1rem;
    }
    .bl-why-title {
        font-size: 0.76rem;
    }
    .bl-why-desc {
        font-size: 0.66rem;
    }
}

/* =========================================================================
   OUR ONGOING CLASSES - SINGLE ROW AUTO-SLIDER (4 CARDS PER VIEW ON DESKTOP)
   ========================================================================= */
.bl-classes-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 10px;
}

.bl-classes-slider-track::-webkit-scrollbar {
    display: none;
}

.bl-classes-slide-item {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: calc((100% - 48px) / 4);
    scroll-snap-align: start;
}

.bl-class-nav-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #cbd5e1;
    color: #334155;
    background: #ffffff;
    transition: all 0.2s ease;
}

.bl-class-nav-btn:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .bl-classes-slide-item {
        flex: 0 0 calc((100% - 16px) / 2);
        min-width: calc((100% - 16px) / 2);
    }
}

@media (max-width: 575.98px) {
    .bl-classes-slider-track {
        gap: 10px;
    }
    .bl-classes-slide-item {
        flex: 0 0 calc((100% - 10px) / 2);
        min-width: calc((100% - 10px) / 2);
    }
}

/* =========================================================================
   GLOBAL MATERIAL OUTLINED FLOATING LABELS (ENTIRE WEBSITE)
   Before click: sits inside as placeholder -> On click/value: floats up as label
   ========================================================================= */
.bl-float-field {
    position: relative;
    width: 100%;
    --bl-float-bg: #ffffff;
    --bl-prefix-left: 14px;
}

.bl-float-field.bl-float-on-light {
    --bl-float-bg: #f8fafc;
}

.bl-float-field > .form-control,
.bl-float-field > .form-select,
.bl-float-field .input-group > .form-control,
.bl-float-field .input-group > .form-select {
    min-height: 48px;
    padding: 0.72rem 0.95rem !important;
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    background-color: #ffffff;
    font-size: 0.94rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bl-float-field.bl-float-textarea > textarea.form-control {
    min-height: 100px;
    padding-top: 0.85rem !important;
}

.bl-float-field.bl-float-pill > .form-control,
.bl-float-field.bl-float-pill > .form-select {
    border-radius: 9999px;
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
}

.bl-float-field .form-control:focus,
.bl-float-field .form-select:focus {
    border-color: #ea580c !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12) !important;
    background-color: #ffffff;
}

.bl-float-label {
    position: absolute;
    left: var(--bl-prefix-left);
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
    margin: 0;
    padding: 0 6px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 6;
    line-height: 1.15;
    border-radius: 4px;
    transition: top 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                left 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.18s ease,
                background-color 0.18s ease;
}

/* Textarea resting label sits near top */
.bl-float-field.bl-float-textarea .bl-float-label {
    top: 18px;
    transform: translateY(0);
}

/* Floated State (On Click/Focus OR When Value Exists OR Autofilled) */
.bl-float-field:focus-within .bl-float-label,
.bl-float-field.is-floated .bl-float-label,
.bl-float-field .form-control:-webkit-autofill ~ .bl-float-label {
    top: 0;
    left: 12px;
    transform: translateY(-50%) scale(0.82);
    background: var(--bl-float-bg);
    font-weight: 600;
    color: #475569;
    max-width: calc(118% - 24px);
}

.bl-float-field:focus-within .bl-float-label {
    color: #ea580c;
}

/* Keep native placeholders hidden when floating label is active */
.bl-float-field .form-control::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

/* Input-group cohesion */
.bl-float-field.bl-float-group .input-group > .input-group-text,
.bl-float-field.bl-float-group .input-group > .btn {
    border-width: 1.5px;
    border-color: #d1d5db;
}

.bl-float-field.bl-float-group .input-group:focus-within .input-group-text,
.bl-float-field.bl-float-group .input-group:focus-within .form-control,
.bl-float-field.bl-float-group .input-group:focus-within .btn {
    border-color: #ea580c !important;
}

.bl-float-field.bl-float-group .form-control:focus {
    box-shadow: none !important;
}

.bl-float-field.bl-float-group .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
    border-radius: 10px;
}

.bl-float-field.bl-float-pill .input-group:focus-within {
    border-radius: 9999px;
}

.bl-float-field.bl-float-pill:focus-within .bl-float-label,
.bl-float-field.bl-float-pill.is-floated .bl-float-label {
    left: 18px;
}
