﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&family=Poppins:wght@300;400;600&display=swap');

/* --- GLOBAL RESET & BASICS --- */
* {
    box-sizing: border-box; /* Crucial for responsive layout */
    margin: 0;
    padding: 0;
}

body, html {
    overflow-x: hidden; /* Prevents horizontal scroll */
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- POPUP MODAL --- */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
    padding: 20px; /* Add padding to prevent edge touching on mobile */
}

.popup-content {
    position: relative;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 800px; /* Limit width for better aesthetics */
    width: 100%;
    text-align: center;
    animation: slideUp 0.5s ease;
    background: transparent; /* Assuming image is the main content */
}

    .popup-content img {
        width: 100%;
        border-radius: 12px;
        display: block;
    }

.close-btn-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

    .close-btn-modal:hover {
        color: #e63946;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* --- HERO SECTION --- */
.heroSection {
    height: 94vh;
    min-height: 500px; /* Prevent squishing on landscape mobile */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 0;
}

    .heroSection video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .heroSection::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%);
        pointer-events: none;
    }

.content-section {
    background: #fff;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    box-shadow: 0 -20px 30px rgba(0,0,0,0.05);
}

.logo-container {
    z-index: 1;
    position: absolute;
    top: 10%;
    right: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

    .logo-container img {
        max-width: 250px; /* Responsive width */
        width: 40vw; /* Scales with screen */
        height: auto;
        filter: brightness(2);
        opacity: 0.5;
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* --- SLIDER --- */
.text-slider-container {
    background: #1e293b; /* Primary Color */
    padding: 15px 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
}

.slider-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: fit-content;
    animation: slide 20s linear infinite;
}

    .slider-track h2 {
        font-size: 1.5rem;
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .slider-track img {
        height: 30px;
        width: auto;
    }

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* --- DISCOVER SECTION --- */
.discoverSection {
    width: 100%;
    padding: 100px 20px; /* Reduced side padding for consistency */
    background: #fff;
}

    .discoverSection .container {
        max-width: 1300px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 60px;
    }

.discover-content {
    flex: 1;
}

.discover-img {
    flex: 1;
}

    .discover-img img {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.discover-content h1 {
    font-size: 4.5rem; /* Responsive base size */
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

    .discover-content h1 span {
        color: transparent;
        -webkit-text-stroke: 1px #1e293b;
    }

.discover-content p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.7;
    text-align: justify;
}

.text-underline {
    position: relative;
    z-index: 1;
    display: inline-block;
}

    .text-underline::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 100%;
        height: 12px;
        background: #fcd34d; /* Yellow accent */
        z-index: -1;
        opacity: 0.6;
        transform: skewX(-10deg);
    }


/* --- FACILITIES SECTION --- */
.facilities-section {
    position: relative;
    background-color: #f8fafc;
    padding: 100px 20px;
    overflow: hidden;
}

    .facilities-section .container {
        max-width: 1300px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }

.watermark-container {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}

.spinning-logo {
    width: 100%;
    animation: spin 60s linear infinite;
}

.fac-header {
    margin-bottom: 60px;
}

.facilities-section .sub-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

    .facilities-section .sub-header .line {
        width: 40px;
        height: 2px;
        background: #3b82f6;
    }

    .facilities-section .sub-header p {
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 600;
        color: #3b82f6;
        font-size: 0.9rem;
    }

.main-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    color: #1e293b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.facilities-section .stroke-text {
    -webkit-text-stroke: 2px #1e293b;
    color: transparent;
    font-style: italic;
}

.image-pill {
    display: inline-block;
    width: 160px;
    height: 65px;
    border-radius: 50px;
    overflow: hidden;
    border: 3px solid #1e293b;
    transform: rotate(-3deg);
}

    .image-pill img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.header-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

    .header-footer p {
        color: #64748b;
        font-size: 1.1rem;
        max-width: 500px;
    }

.cta-btn {
    padding: 12px 30px;
    background: #1e293b;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .cta-btn:hover {
        background: #3b82f6;
        transform: translateX(5px);
    }

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.fac-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

    .fac-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border-color: #3b82f6;
    }

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.blue-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.yellow-icon {
    background: #fefce8;
    color: #eab308;
}

.green-icon {
    background: #f0fdf4;
    color: #22c55e;
}

.red-icon {
    background: #fef2f2;
    color: #ef4444;
}

.fac-card h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

.fac-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.fac-card:hover .card-link {
    background: #1e293b;
    color: #fff;
    transform: rotate(-45deg);
}


/* --- CULTURE / LEARN MORE --- */
.culture-section {
    padding: 100px 20px;
    background-color: #ffffff;
    overflow: hidden;
}

    .culture-section .container {
        max-width: 1300px;
        margin: 0 auto;
    }

.culture-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

.culture-media, .culture-content {
    flex: 1;
    position: relative;
}

.img-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

    .img-container img {
        width: 100%;
        display: block;
        transition: transform 0.5s ease;
    }

    .img-container:hover img {
        transform: scale(1.05);
    }

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: #3b82f6;
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    animation: float 4s ease-in-out infinite;
}

    .experience-badge span {
        font-weight: 600;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.sub-heading {
    color: #3b82f6;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    background: #eff6ff;
    padding: 5px 12px;
    border-radius: 6px;
}

.culture-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 25px;
    font-weight: 800;
}

.highlight-text {
    position: relative;
    z-index: 1;
    display: inline-block;
    white-space: nowrap;
}

    .highlight-text::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 100%;
        height: 35%;
        background-color: #b0ceff;
        z-index: -1;
        opacity: 0.6;
        transform: rotate(-2deg);
    }

.description {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.features-list {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1e293b;
}

    .feature-item i {
        color: #3b82f6;
        background: #eff6ff;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background-color: #1e293b;
    color: #ffffff;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .read-more-btn:hover {
        background-color: #3b82f6;
        transform: translateY(-3px);
    }


/* --- TEAM SECTION --- */
.team-section {
    width: 100%;
    padding: 100px 20px;
    background: #f8fafc;
}

    .team-section .container {
        max-width: 1300px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

.team-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    width: 100%;
    gap: 60px;
}

.team-content {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .team-content h1 {
        font-size: 4.5rem;
        color: #1e293b;
        font-weight: 700;
        line-height: 1.1;
    }

    .team-content p {
        font-size: 1.1rem;
        color: #444;
        line-height: 1.8;
        text-align: justify;
    }

.team-container {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.team-card {
    background-color: #fff;
    width: 100%;
    max-width: 320px; /* Responsive width */
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.19);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    /* Subtle rotations on desktop only */
    .team-card:nth-child(1) {
        transform: translateY(20px) rotate(-2deg);
    }

    .team-card:nth-child(2) {
        transform: translateY(-20px) rotate(2deg);
    }

    .team-card:hover {
        transform: translateY(-5px) rotate(0deg);
        z-index: 5;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.card-image {
    width: 100%;
    height: 350px; /* Fixed height for consistency */
    background-color: #f1f5f9;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }

.card-content {
    padding: 20px;
}

.name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.title {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 500;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 25px;
}

.social-link {
    color: #1e293b;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .social-link:hover {
        background: #1e293b;
        color: #fff;
        transform: scale(1.1);
    }


/* --- APPLY SECTION --- */
.apply-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

    .apply-section .standard-container {
        max-width: 1300px;
        margin: 0 auto;
    }

.apply-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.apply-visual {
    flex: 1;
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

    .image-frame img {
        width: 100%;
        display: block;
        transition: transform 0.5s ease;
    }

    .image-frame:hover img {
        transform: scale(1.03);
    }

.frame-border {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid #3b82f6;
    border-radius: 20px;
    z-index: -1;
}

.admission-badge {
    position: absolute;
    bottom: 40px;
    right: -30px;
    background: #1e293b;
    color: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.3);
    text-align: center;
    z-index: 3;
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.admission-badge .year {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: #fcd34d;
}

.admission-badge .status {
    font-size: 0.85rem;
    text-transform: uppercase;
}

.apply-content {
    flex: 1;
}

.section-header-left .eyebrow {
    color: #3b82f6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.section-header-left h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 800;
    color: #1e293b;
}

.section-header-left p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.process-timeline {
    position: relative;
    padding-left: 20px;
    margin-bottom: 40px;
}

    .process-timeline::before {
        content: '';
        position: absolute;
        top: 10px;
        bottom: 10px;
        left: 24px;
        width: 2px;
        background: #e2e8f0;
        z-index: 0;
    }

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

    .timeline-item:last-child {
        margin-bottom: 0;
    }

.icon-box {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #3b82f6;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-item:hover .icon-box {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.2);
}

.step-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.step-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

.cta-group {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn-primary-large {
    padding: 15px 40px;
    background: #1e293b;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.2);
}

    .btn-primary-large:hover {
        background: #3b82f6;
        transform: translateY(-3px);
    }

.btn-secondary-large {
    padding: 15px 30px;
    background: transparent;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

    .btn-secondary-large:hover {
        border-color: #1e293b;
        background: #1e293b;
        color: #fff;
    }


/* =========================================== */
/* FULLY RESPONSIVE MEDIA QUERIES */
/* =========================================== */

@media (max-width: 1024px) {
    .discoverSection .container,
    .culture-wrapper,
    .team-wrapper,
    .apply-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    /* Reorder items for mobile flow (Image on top, Text below) */
    .culture-media,
    .apply-visual {
        order: -1;
        width: 100%;
        max-width: 600px;
    }

    .team-content {
        width: 100%;
        text-align: center;
    }

    .discover-content,
    .discover-img {
        flex: auto;
        width: 100%;
    }

    .team-container {
        width: 100%;
        flex-direction: column; /* Stack cards */
        align-items: center;
    }

    .team-card:nth-child(n) {
        transform: none; /* Remove rotation on tablet */
    }

    .team-content h1, .main-title, .discover-content h1, .culture-content h1, .section-header-left h1 {
        font-size: 3rem; /* Standardize header size */
    }
}

@media (max-width: 768px) {
    /* --- Spacing Adjustments --- */
    .discoverSection,
    .facilities-section,
    .culture-section,
    .team-section,
    .apply-section {
        padding: 60px 20px; /* Consistent padding for mobile */
    }

    /* --- Hero --- */
    .logo-container img {
        max-width: 150px;
    }

    .logo-container {
        top: 15px;
        right: 15px;
    }

    .heroSection {
        height: 100%;
        min-height: 100%;
    }

    /* --- Fonts --- */
    .main-title, .discover-content h1, .culture-content h1, .team-content h1, .section-header-left h1 {
        font-size: 2.2rem; /* Smaller headers for phone */
    }

    .description, .discover-content p, .team-content p, .section-header-left p {
        font-size: 1rem;
        text-align: left; /* Easier to read on small screens */
    }

    /* --- Elements --- */
    .image-pill {
        display: none;
    }
    /* Hide decorative elements to save space */

    .header-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-large, .btn-secondary-large {
        width: 100%;
        justify-content: center;
    }

    .admission-badge {
        right: 0;
        bottom: 10px;
        padding: 10px 20px;
    }

        .admission-badge .year {
            font-size: 1.4rem;
        }

    .team-section .container {
        flex-direction: column;
    }

    .team-card {
        max-width: 100%; /* Full width cards on mobile */
    }

    .highlight-text::after {
        height: 25%;
    }
}