/* =========================================================
   HOME PAGE
   ========================================================= */

/* ---------------------------------------------------------
   Global
   --------------------------------------------------------- */

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    line-height: 1.7;
}

h2 {
    color: #16407A;
    font-family: 'Poppins', sans-serif;
}


/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn-gradient {
    background: linear-gradient(135deg, #16407A, #2D82F7);
    border: none;
    color: #fff;
    transition: all 0.3s ease-in-out;
}

    .btn-gradient:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    }


/* ---------------------------------------------------------
   Section Titles
   --------------------------------------------------------- */

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #16407A;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    text-align: center;
}

    .section-title::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background: #16407A;
        margin: 10px auto 0;
        border-radius: 2px;
    }


/* ---------------------------------------------------------
   Generic Cards
   --------------------------------------------------------- */

.admission-card,
.staff-card {
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

    .admission-card:hover,
    .staff-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    }


/* ---------------------------------------------------------
   Admission Cards
   --------------------------------------------------------- */

.admission-card {
    text-decoration: none;
    display: block;
}

    .admission-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .admission-card i {
        transition: transform 0.3s ease;
    }

    .admission-card:hover i {
        transform: rotate(8deg) scale(1.1);
    }


/* ---------------------------------------------------------
   Gradient Backgrounds
   --------------------------------------------------------- */

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}


/* ---------------------------------------------------------
   Hero Section
   --------------------------------------------------------- */

.hero-split {
    background: linear-gradient(135deg, #16407A, #2D82F7);
    min-height: 90vh;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .hero-split h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-split p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

    .hero-split .btn-gradient {
        background: linear-gradient(135deg, #16407A, #246AC9);
        color: #fff;
        border: none;
        padding: 0.75rem 2.5rem;
        font-size: 1.1rem;
        border-radius: 50px;
        transition: all 0.3s ease;
    }

        .hero-split .btn-gradient:hover {
            background: linear-gradient(135deg, #28a745, #16407A);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }


/* ---------------------------------------------------------
   Hero Overlay
   --------------------------------------------------------- */

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #16407A, #2D82F7);
    z-index: 0;
}


/* ---------------------------------------------------------
   Video
   --------------------------------------------------------- */

.video-container {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .video-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
    }

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100% );
    pointer-events: none;
    border-radius: 1rem;
}


/* ---------------------------------------------------------
   Hover Glow
   --------------------------------------------------------- */

.hover-glow {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .hover-glow:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 25px rgba(0, 123, 255, 0.3);
    }


/* ---------------------------------------------------------
   Student Marquee
   --------------------------------------------------------- */

.student-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.student-marquee {
    display: flex;
    gap: 2rem;
    animation: marquee 25s linear infinite;
}

    .student-marquee:hover {
        animation-play-state: paused;
    }


/* ---------------------------------------------------------
   Student Cards
   --------------------------------------------------------- */

.student-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 200px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .student-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
    }

.student-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 5px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(45deg, #28a745, #16407A);
    box-shadow: 0 0 15px rgba(37, 150, 190, 0.3);
    transition: transform 0.3s ease;
}

.student-card:hover .student-img {
    transform: scale(1.1);
}


/* ---------------------------------------------------------
   Staff Marquee
   --------------------------------------------------------- */

.staff-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.staff-marquee {
    display: flex;
    gap: 2rem;
    animation: staffMarquee 25s linear infinite;
}

    .staff-marquee:hover {
        animation-play-state: paused;
    }


/* ---------------------------------------------------------
   Staff Cards
   --------------------------------------------------------- */

.staff-card {
    background: #ffffff;
    padding: 1.5rem;
    min-width: 220px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .staff-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
    }

.staff-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-img {
    transform: scale(1.05);
}


/* ---------------------------------------------------------
   Leadership / Chairman / Director Messages
   --------------------------------------------------------- */

.leadership-messages {
    background: #f7f9fc;
}

.leadership-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
    transition: all 0.35s ease;
}

    .leadership-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.11);
    }

.leader-image-wrapper {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 45px;
}

.leader-image-bg {
    position: absolute;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: linear-gradient( 135deg, rgba(13, 110, 253, 0.08), rgba(0, 172, 193, 0.14) );
}

.leader-image {
    position: relative;
    width: 270px;
    height: 270px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
    z-index: 2;
}

.leadership-card:hover .leader-image {
    transform: scale(1.04);
}

.leader-role-badge {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #16407A;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    z-index: 3;
    white-space: nowrap;
}

.leader-content {
    padding: 55px 60px;
}

.leader-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #16407A;
    margin-bottom: 12px;
}

.leader-title {
    font-size: 34px;
    font-weight: 700;
    color: #16407A;
    margin-bottom: 15px;
}

.title-line {
    width: 55px;
    height: 4px;
    border-radius: 5px;
    background: goldenrod;
    margin-bottom: 25px;
}

.quote-icon {
    font-size: 28px;
    color: rgba(13, 110, 253, 0.15);
    margin-bottom: 8px;
}

.leader-description {
    color: #667085;
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 25px;
}

.leader-signature {
    border-left: 3px solid goldenrod;
    padding-left: 15px;
}

    .leader-signature h5 {
        margin: 0 0 4px;
        font-size: 17px;
        font-weight: 700;
        color: #1b263b;
    }

    .leader-signature span {
        color: #8a94a6;
        font-size: 13px;
    }


/* ---------------------------------------------------------
   Message Bubbles
   --------------------------------------------------------- */

.message-bubble {
    max-width: 600px;
    width: 100%;
    position: relative;
    border-radius: 30px;
    background: linear-gradient(145deg, #ffffff, #d0e9ff);
    padding: 2rem 2.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .message-bubble:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
    }

.animated-bubble {
    box-shadow: 0 0 20px rgba(37, 150, 190, 0.4), 0 0 30px rgba(40, 167, 69, 0.2);
    animation: bounceFade 1s ease forwards;
    opacity: 0;
}


/* Bubble Tail */

.message-bubble.left::after,
.message-bubble.right::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-top-color: #d0e9ff;
    bottom: -30px;
}

.message-bubble.left::after {
    left: 40px;
}

.message-bubble.right::after {
    right: 40px;
}


/* ---------------------------------------------------------
   Statistics
   --------------------------------------------------------- */

.stats-container {
    font-family: 'Poppins', sans-serif;
    color: black;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.stat-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float3D 5s ease-in-out infinite;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.3s ease;
}

    .stat-card:hover {
        animation-play-state: paused;
        transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(-5px);
    }

    .stat-card i {
        font-size: 40px;
        margin-bottom: 15px;
        color: black;
    }

    .stat-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
        color: #111;
    }

    .stat-card p {
        font-size: 28px;
        font-weight: bold;
        color: #111;
    }

    .stat-card:nth-child(2) {
        animation-delay: 0.5s;
    }

    .stat-card:nth-child(3) {
        animation-delay: 1s;
    }

    .stat-card:nth-child(4) {
        animation-delay: 1.5s;
    }


/* ---------------------------------------------------------
   Floating Particles
   --------------------------------------------------------- */

.particles-container,
.particles-containerStar,
.particles-containerStaff {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

    .particles-container span {
        position: absolute;
        display: block;
        width: 15px;
        height: 15px;
        background: rgba(37, 150, 190, 0.15);
        border-radius: 50%;
        animation: floatParticles 5s linear infinite;
        opacity: 0.6;
    }

    .particles-containerStar span {
        position: absolute;
        display: block;
        width: 12px;
        height: 12px;
        background: rgba(40, 167, 69, 0.15);
        border-radius: 50%;
        animation: floatParticles 5s linear infinite;
        opacity: 0.6;
    }

    .particles-containerStaff span {
        position: absolute;
        display: block;
        width: 12px;
        height: 12px;
        background: rgba(0, 123, 255, 0.1);
        border-radius: 50%;
        animation: floatParticlesStaff 5s linear infinite;
        opacity: 0.6;
    }


/* ---------------------------------------------------------
   Animations
   --------------------------------------------------------- */

.fade-in {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes bounceFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


@keyframes staffMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


@keyframes floatParticles {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) translateX(20px) rotate(45deg);
    }

    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}


@keyframes floatParticlesStaff {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) translateX(20px) rotate(45deg);
    }

    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}


@keyframes float3D {
    0% {
        transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(0);
    }

    25% {
        transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
    }

    50% {
        transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(0);
    }

    75% {
        transform: perspective(800px) rotateX(-2deg) rotateY(2deg) translateY(-8px);
    }

    100% {
        transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(0);
    }
}


/* ---------------------------------------------------------
   Director / Principal Image
   --------------------------------------------------------- */

.DirectorAndPrincipal-img {
    height: 240px;
    width: 240px;
    object-fit: cover;
}


/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */


/* ---------------------------------------------------------
   Large Tablets / Small Desktops
   --------------------------------------------------------- */

@media (max-width: 992px) {

    .section-title {
        font-size: 1.5rem;
    }

    .admission-card,
    .staff-card {
        margin-bottom: 20px;
    }

    .leader-content {
        padding: 40px 30px;
    }

    .leader-image-wrapper {
        min-height: 350px;
    }

    .leader-image {
        width: 230px;
        height: 230px;
    }

    .leader-image-bg {
        width: 270px;
        height: 270px;
    }

    .leader-title {
        font-size: 28px;
    }
}


/* ---------------------------------------------------------
   Tablets / Mobile
   --------------------------------------------------------- */

@media (max-width: 768px) {

    /* Hero */

    .hero {
        height: auto;
        padding: 80px 20px;
        text-align: center;
    }

        .hero h1 {
            font-size: 2rem;
            line-height: 1.3;
        }

        .hero p {
            font-size: 1rem;
        }

        .hero .btn {
            padding: 10px 20px;
            font-size: 1rem;
        }


    /* Hero Split */

    .hero-split {
        text-align: center;
        padding: 60px 20px;
    }

        .hero-split h1 {
            font-size: 2rem;
        }

        .hero-split p {
            font-size: 1rem;
        }

        .hero-split .btn-gradient {
            padding: 0.65rem 2rem;
            font-size: 1rem;
        }


    /* Bootstrap Columns */

    .col-lg-6 {
        margin-bottom: 30px;
    }


    /* Section Titles */

    .section-title {
        font-size: 2rem;
    }


    /* Students */

    .student-img {
        width: 90px;
        height: 90px;
    }

    .student-card {
        min-width: 150px;
        padding: 1rem;
    }


    /* Staff */

    .staff-img {
        width: 80px;
        height: 80px;
    }

    .staff-card {
        min-width: 140px;
        padding: 1rem;
    }


    /* Carousel */

    .carousel-item img {
        max-width: 150px;
    }


    /* Admissions */

    .admission-card {
        padding: 1.5rem 1rem;
    }


    /* Feedback */

    .feedback .card {
        padding: 1.5rem;
    }


    /* Message Bubble */

    .message-bubble {
        max-width: 90%;
        padding: 1.5rem 2rem;
    }

        .message-bubble.left::after,
        .message-bubble.right::after {
            bottom: -20px;
            border-width: 12px;
        }

        .message-bubble.left::after {
            left: 30px;
        }

        .message-bubble.right::after {
            right: 30px;
        }
}


/* ---------------------------------------------------------
   Small Mobile
   --------------------------------------------------------- */

@media (max-width: 576px) {

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .DirectorAndPrincipal-img {
        height: 240px;
        width: 240px;
    }
}


/* ---------------------------------------------------------
   Smallest Mobile
   --------------------------------------------------------- */

@media (max-width: 575px) {

    .leadership-card {
        border-radius: 18px;
    }

    .leader-image-wrapper {
        min-height: 320px;
        padding: 30px;
    }

    .leader-image {
        width: 200px;
        height: 200px;
    }

    .leader-image-bg {
        width: 235px;
        height: 235px;
    }

    .leader-content {
        padding: 30px 22px;
    }

    .leader-title {
        font-size: 25px;
    }

    .leader-description {
        font-size: 15px;
        line-height: 1.75;
    }
}
