/* =============================================
   HOME PAGE - REDESIGNED v4
   White page background, dark accent sections
   Color Palette: #141d2a, #8186d5, #F5875D
   ============================================= */

/* =============================================
   HERO — compact, rounded like Admission page
   ============================================= */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, #0d1320 0%, #141d2a 40%, #1a2744 100%);
    color: #fff;
    padding: 80px 0 70px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 15% 85%, rgba(129, 134, 213, 0.18), transparent 55%),
            radial-gradient(ellipse at 85% 15%, rgba(99, 102, 241, 0.12), transparent 45%),
            radial-gradient(ellipse at 50% 50%, rgba(245, 135, 93, 0.06), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background: url('/Resources/Img/Logo.svg') center center no-repeat;
    background-size: 40%;
    z-index: 1;
}

#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 3;
}

.hero-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 30px rgba(129, 134, 213, 0.4));
    animation: heroLogoFloat 6s ease-in-out infinite;
}

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

.hero-kicker {
    display: inline-block;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #F5875D;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e2ff 50%, #F5875D 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heroShimmer 8s ease-in-out infinite;
}

@keyframes heroShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    justify-content: right;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero-glow-ring {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(129, 134, 213, 0.15);
    box-shadow:
            inset 0 0 80px rgba(129, 134, 213, 0.08),
            0 0 120px rgba(129, 134, 213, 0.06);
    z-index: 2;
    pointer-events: none;
    animation: ringPulse 8s ease-in-out infinite;
}

.hero-glow-ring::before {
    content: "";
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 1px solid rgba(245, 135, 93, 0.1);
    box-shadow: inset 0 0 50px rgba(245, 135, 93, 0.04);
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.04); }
}


/* =============================================
   DIRECTOR — dark card on white page
   ============================================= */
.director-section {
    padding: 80px 0 60px;
}

.director-card {
    background: #141d2a;
    border: 1px solid rgba(129, 134, 213, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: border-color 0.4s ease;
}

.director-card:hover {
    border-color: rgba(129, 134, 213, 0.4);
}

.director-image-col {
    position: relative;
    overflow: hidden;
}

.director-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.director-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(20, 29, 42, 0.9) 100%);
    pointer-events: none;
}

.director-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, #1a2744 0%, #141d2a 100%);
}

.director-body {
    padding: 3rem 2.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.director-label {
    display: inline-block;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #F5875D;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.director-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.director-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.director-greeting {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.director-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(129, 134, 213, 0.2);
    text-align: right;
}

.director-signature strong {
    color: #fff;
    display: block;
    font-size: 1rem;
}

.director-signature em {
    color: #8186d5;
    font-style: normal;
    font-weight: 500;
}


/* =============================================
   TIMELINE — dark rounded container
   ============================================= */
.about-timeline-section {
    position: relative;
    padding: 80px 0 60px;
    margin: 0;
    background: linear-gradient(160deg, #0d1320 0%, #141d2a 50%, #1a2744 100%);
    border-radius: 36px;
    overflow: hidden;
}

.about-timeline-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 20% 70%, rgba(129, 134, 213, 0.12), transparent 50%),
            radial-gradient(ellipse at 80% 30%, rgba(245, 135, 93, 0.06), transparent 45%);
    pointer-events: none;
}

.about-timeline-section .section-header {
    position: relative;
    z-index: 1;
}

.about-timeline-section .section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8186d5, #F5875D);
    border-radius: 2px;
    margin: 0 auto 2.5rem;
}

.timeline-container {
    position: relative;
    z-index: 1;
}

.timeline-container .vertical-scrollable-timeline {
    list-style-type: none;
    position: relative;
    padding-left: 0;
}

.timeline-container .vertical-scrollable-timeline .list-progress {
    width: 4px;
    height: 87%;
    background-color: rgba(129, 134, 213, 0.15);
    position: absolute;
    left: 52px;
    top: 0;
    overflow: hidden;
    border-radius: 2px;
}

.timeline-container .vertical-scrollable-timeline .list-progress .inner {
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    background: linear-gradient(180deg, #8186d5, #F5875D);
    width: 100%;
    border-radius: 2px;
}

.timeline-container .vertical-scrollable-timeline li {
    position: relative;
    padding: 20px 0 65px 145px;
}

.timeline-container .vertical-scrollable-timeline li:last-child {
    padding-bottom: 0;
}

.timeline-container .vertical-scrollable-timeline li h3 {
    margin-bottom: 0.75rem;
    font-size: 1.45rem;
    color: #fff;
    font-weight: 700;
}

.timeline-container .vertical-scrollable-timeline li p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.timeline-container .vertical-scrollable-timeline li .icon-holder {
    position: absolute;
    left: 0;
    top: 0;
    width: 104px;
    height: 104px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a2744 0%, #141d2a 100%);
    border: 2px solid rgba(129, 134, 213, 0.3);
    border-radius: 50%;
    z-index: 1;
    transition: 0.4s all;
}

.timeline-container .vertical-scrollable-timeline li .icon-holder::before {
    content: "";
    width: 80px;
    height: 80px;
    border: 2px solid rgba(129, 134, 213, 0.2);
    position: absolute;
    background: linear-gradient(135deg, #1a2744, #0d1320);
    border-radius: 50%;
    z-index: -1;
    transition: 0.4s all;
}

.timeline-container .vertical-scrollable-timeline li .icon-holder i {
    font-size: 25px;
    color: #8186d5;
}

.timeline-container .vertical-scrollable-timeline li::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 4px;
    background-color: transparent;
    left: 52px;
    z-index: 0;
}

.timeline-container .vertical-scrollable-timeline li.active .icon-holder {
    background: linear-gradient(135deg, #8186d5 0%, #6366f1 100%);
    border-color: #8186d5;
    box-shadow: 0 0 30px rgba(129, 134, 213, 0.3);
}

.timeline-container .vertical-scrollable-timeline li.active .icon-holder::before {
    background: linear-gradient(135deg, #8186d5, #6366f1);
    border-color: rgba(255, 255, 255, 0.3);
}

.timeline-container .vertical-scrollable-timeline li.active .icon-holder i {
    color: #fff;
}

.home-team-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.8);
}

.home-team-cta .btn-gradient-border {
    margin-left: 0 !important;
}


/* =============================================
   MISSION / VISION / HISTORY — slightly taller
   ============================================= */
.mvh-section {
    padding: 80px 0 40px;
}

.mvh-section .section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #1a1a2e;
}

.mvh-section .section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.mvh-section .section-line {
    margin: 0.75rem auto 1rem;
}

.WhatAim {
    font-size: 1.4em;
}

/* Slightly taller overlay-img cards */
.mvh-section .overlay-img {
    max-height: 400px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    margin-bottom: 0;
}

.mvh-section .overlay-img:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.mvh-section .overlay-img img {
    max-height: 400px;
    object-fit: cover;
}

.mvh-section .overlay-img .des h1.title {
    font-size: 1.5rem;
}

.mvh-section .overlay-img .des h6.subtitle {
    font-size: 0.8rem;
}

.mvh-section .overlay-img .des p {
    font-size: 0.88rem;
    line-height: 1.5;
}


/* =============================================
   STATS — individual gradient cards, no wrapper
   ============================================= */
.stats-section {
    position: relative;
    padding: 60px 0 80px;
}

.stats-section .section-header h2 {
    color: #1a1a2e;
}

.stats-section .section-line {
    margin: 0 auto;
}

/* Each stat card has its own gradient */
.stats-item {
    position: relative;
    padding: 40px 30px 36px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.35s ease;
}

/* Blue card */
.stats-item.stats-accent-blue {
    --accent: #6c9fff;
    --icon-bg: rgba(108, 159, 255, 0.15);
    --glow: rgba(108, 159, 255, 0.12);
    background: linear-gradient(145deg, #0f1b2e 0%, #132240 40%, #162a4a 100%);
    border: 1px solid rgba(108, 159, 255, 0.18);
}

/* Purple card */
.stats-item.stats-accent-purple {
    --accent: #a78bfa;
    --icon-bg: rgba(167, 139, 250, 0.15);
    --glow: rgba(167, 139, 250, 0.12);
    background: linear-gradient(145deg, #151024 0%, #1c1538 40%, #231a45 100%);
    border: 1px solid rgba(167, 139, 250, 0.18);
}

/* Green card */
.stats-item.stats-accent-green {
    --accent: #34d399;
    --icon-bg: rgba(52, 211, 153, 0.15);
    --glow: rgba(52, 211, 153, 0.12);
    background: linear-gradient(145deg, #0c1a1a 0%, #0f2828 40%, #123030 100%);
    border: 1px solid rgba(52, 211, 153, 0.18);
}

.stats-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent, #8186d5), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.stats-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--glow, rgba(129, 134, 213, 0.08));
}

.stats-item.stats-accent-blue:hover {
    border-color: rgba(108, 159, 255, 0.4);
}

.stats-item.stats-accent-purple:hover {
    border-color: rgba(167, 139, 250, 0.4);
}

.stats-item.stats-accent-green:hover {
    border-color: rgba(52, 211, 153, 0.4);
}

.stats-item:hover::before { opacity: 1; }

.stats-item .icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg, rgba(129, 134, 213, 0.1));
    transition: transform 0.35s ease;
}

.stats-item:hover .icon-wrap { transform: scale(1.08); }

.stats-item .icon-wrap i {
    font-size: 26px;
    color: var(--accent, #8186d5);
}

.stats-item span {
    font-size: 44px;
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    letter-spacing: -1px;
}

.stats-item h4 {
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


/* =============================================
   NEWS — white bg
   ============================================= */
.news-section {
    padding: 60px 0 60px;
}

.news-section .section-header h2 {
    color: #1a1a2e;
}

.news-section .section-line {
    margin: 0 auto;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .home-hero {
        padding: 60px 0 50px;
        border-radius: 0 0 24px 24px;
    }

    .hero-glow-ring {
        width: 300px;
        height: 300px;
        right: -100px;
        opacity: 0.4;
    }

    .director-body { padding: 2rem 1.5rem; }
    .director-body h2 { font-size: 1.5rem; }

    .about-timeline-section {
        border-radius: 24px;
        padding: 60px 20px 50px;
    }

    .timeline-container .vertical-scrollable-timeline .list-progress {
        left: 32px;
        width: 3px;
    }

    .timeline-container .vertical-scrollable-timeline li {
        padding: 15px 0 50px 100px;
    }

    .timeline-container .vertical-scrollable-timeline li .icon-holder {
        width: 80px;
        height: 80px;
    }

    .timeline-container .vertical-scrollable-timeline li .icon-holder::before {
        width: 60px;
        height: 60px;
    }

    .timeline-container .vertical-scrollable-timeline li h3 { font-size: 1.3rem; }

    .timeline-container .vertical-scrollable-timeline li p {
        line-height: 1.6;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 50px 0 40px;
        border-radius: 0 0 20px 20px;
    }

    .hero-logo { width: 75px; }
    .hero-subtitle { font-size: 1.02rem; }
    .hero-glow-ring { display: none; }

    .director-section { padding: 50px 0 40px; }
    .director-image-col img { min-height: 280px; }

    .about-timeline-section {
        padding: 50px 15px 40px;
        border-radius: 20px;
    }

    .mvh-section { padding: 50px 0 30px; }

    .mvh-section .overlay-img {
        max-height: 350px;
    }

    .mvh-section .overlay-img img {
        max-height: 350px;
    }

    .stats-section { padding: 40px 0 60px; }
    .news-section { padding: 40px 0 40px; }
}

@media (max-width: 576px) {
    .home-hero { padding: 40px 0 35px; }

    .hero-logo {
        width: 65px;
        margin-bottom: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group .btn-site-solid,
    .hero-cta-group .btn-site-outline {
        text-align: center;
    }

    .about-timeline-section {
        padding: 40px 12px 30px;
        border-radius: 18px;
    }

    .timeline-container .vertical-scrollable-timeline .list-progress {
        left: 26px;
    }

    .timeline-container .vertical-scrollable-timeline li {
        padding: 12px 0 45px 80px;
    }

    .timeline-container .vertical-scrollable-timeline li .icon-holder {
        width: 60px;
        height: 60px;
    }

    .timeline-container .vertical-scrollable-timeline li .icon-holder::before {
        width: 45px;
        height: 45px;
    }

    .timeline-container .vertical-scrollable-timeline li .icon-holder i {
        font-size: 20px;
    }

    .timeline-container .vertical-scrollable-timeline li h3 { font-size: 1.15rem; }

    .timeline-container .vertical-scrollable-timeline li p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .director-body { padding: 1.5rem; }
    .director-body h2 { font-size: 1.3rem; }
    .director-text { font-size: 0.95rem; }
    .home-team-cta { gap: 0.55rem; }

    .mvh-section .overlay-img .des h1.title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .overlay-img {
        display: block;
        max-width: 85%;
        margin: 30px auto;
    }

    .stats-item {
        max-width: 85%;
        margin: 0 auto;
    }
}

@media (max-width: 420px) {
    .hero-title { font-size: 1.8rem; }
}