﻿:root {
    --bg: #f5f8fe;
    --surface: #ffffff;
    --surface-soft: #ecf3ff;
    --text: #10213d;
    --text-soft: #51617d;
    --line: #d9e5ff;

    --primary: #0f4cc9;
    --primary-dark: #0b3898;
    --accent: #ff7b3e;
    --accent-dark: #e45d1d;
    --success: #0d9f82;

    --hero-overlay: linear-gradient(115deg, rgba(4, 22, 62, 0.86), rgba(15, 76, 201, 0.7));
    --section-alt: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 8px 20px rgba(16, 33, 61, 0.08);
    --shadow-md: 0 14px 40px rgba(16, 33, 61, 0.12);
    --shadow-lg: 0 24px 65px rgba(16, 33, 61, 0.16);

    --space-1: 8px;
    --space-2: 14px;
    --space-3: 20px;
    --space-4: 28px;
    --space-5: 42px;
    --space-6: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background:
        radial-gradient(circle at 12% -10%, rgba(15, 76, 201, 0.13), transparent 38%),
        radial-gradient(circle at 95% 0%, rgba(13, 159, 130, 0.09), transparent 34%),
        var(--bg);
    overflow-x: hidden;
}

html,
body {
    max-width: 100%;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

section,
.container1 {
    padding: var(--space-6) clamp(16px, 4vw, 72px);
}

section:nth-of-type(even) {
    background: var(--section-alt);
}

.section-heading {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 860px;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    letter-spacing: 1.6px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.section-heading h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.24;
}

.section-heading p {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
}

nav {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(16px, 4vw, 72px);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 229, 255, 0.85);
    box-shadow: var(--shadow-sm);
}

nav h2 {
    font-family: 'Libre Baskerville', serif;
    color: #071f53;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    letter-spacing: 0.3px;
}

nav .navigation {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

#menu-close,
#menu-btn {
    display: none;
}

nav ul li a {
    color: #122b58;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 9px 13px;
    border-radius: 999px;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--surface-soft);
    color: var(--primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), #2f79ff);
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 76, 201, 0.33);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px rgba(15, 76, 201, 0.4);
}

#home {
    position: relative;
    text-align: center;
    color: #fff;
    background: var(--hero-overlay), url('../img/carousel-1.jpg') center/cover no-repeat;
    padding: clamp(82px, 11vw, 138px) clamp(16px, 4vw, 50px);
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(4, 22, 62, 0.35));
    pointer-events: none;
}

#home .eyebrow,
#home h2,
#home p,
#home .btn {
    position: relative;
    z-index: 1;
}

#home .eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
}

#home h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.05rem, 5.2vw, 4rem);
    line-height: 1.12;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

#home p {
    max-width: 800px;
    margin: 20px auto 30px;
    color: #edf4ff;
    font-size: clamp(1rem, 2vw, 1.15rem);
}

#home .btn {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

#home .btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
}

#home .btn .blue {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #ff915d);
    box-shadow: 0 12px 24px rgba(255, 123, 62, 0.36);
}

#home .btn .blue:hover {
    background: linear-gradient(135deg, var(--accent-dark), #ff7b3e);
    transform: translateY(-2px);
}

#home .btn .white {
    color: #0a2f77;
    background: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

#home .btn .white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.25);
}

.popup-onload .cnt223 {
    border-radius: var(--radius-lg);
}

.popup-onload {
    position: fixed;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    z-index: 1001;
    display: grid !important;
    place-items: center;
    padding: 18px;
    background: rgba(4, 18, 48, 0.46);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.popup-onload.is-hidden {
    display: none !important;
}

.popup-onload .cnt223 {
    min-width: 0 !important;
    width: min(680px, 94vw) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: static !important;
}

.popup-onload .popup-content {
    width: 100% !important;
    max-height: min(82svh, 720px);
    overflow-y: auto;
    padding: 24px 24px 20px;
    background: linear-gradient(180deg, #f7faff 0%, #edf3ff 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-lg);
}

.popup-onload .popup-content img {
    margin-bottom: 10px;
}

.popup-onload .popup-content h2 {
    font-family: 'Libre Baskerville', serif;
    color: #0f2b5d;
    line-height: 1.25;
    margin-bottom: 8px;
}

.popup-onload .popup-content .admission-title {
    color: #d90429;
}

.popup-onload .popup-content p {
    color: #2f3f5f;
    margin: 10px 0;
    font-weight: 600;
}

.popup-onload .popup-content i {
    color: #1d4fbf;
    margin-right: 6px;
}

.popup-onload .popup-content .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #2f79ff);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 76, 201, 0.28);
}

.popup-onload .popup-content .close:hover {
    transform: translateY(-2px);
}

.fea-base,
.course-box,
.stats-grid {
    display: grid;
    gap: clamp(14px, 2vw, 26px);
    margin-top: 18px;
}

.fea-base,
.course-box {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.fea-box,
.courses,
.stat-card,
.map-container {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.fea-box {
    padding: clamp(20px, 2.4vw, 30px);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fea-box:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.fea-box i {
    font-size: 1.95rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.fea-box h3 {
    font-size: 1.24rem;
    margin-bottom: 8px;
}

.fea-box p {
    color: var(--text-soft);
}

#stats {
    padding-top: clamp(48px, 8vw, 72px);
    padding-bottom: clamp(48px, 8vw, 72px);
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.stat-card i {
    font-size: 1.55rem;
    color: var(--success);
}

.stat-card h3 {
    margin-top: 10px;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    color: #0d2a5f;
}

.stat-card p {
    margin-top: 2px;
    color: var(--text-soft);
    font-weight: 600;
}

.courses {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.courses:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.courses img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.courses .details {
    padding: 12px 14px;
    text-align: center;
    margin-top: auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.courses .details h6 {
    color: #11306a;
    font-size: 1rem;
    font-weight: 800;
}

.courses::after {
    content: 'View Activity';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 25, 66, 0.62);
    color: #fff;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.courses:hover::after {
    opacity: 1;
}

.location-wrap {
    padding-top: clamp(50px, 8vw, 72px);
}

.container1 header {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}

.container1 .slider {
    position: relative;
    background: linear-gradient(135deg, #f3f8ff 0%, #e8f1ff 100%);
    overflow: hidden;
}

.container1 .slider::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    top: -130px;
    right: -90px;
    background: radial-gradient(circle, rgba(47, 121, 255, 0.28), rgba(47, 121, 255, 0));
    pointer-events: none;
}

.container1 .slider ul,
.container1 .slider li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container1 .slider li {
    padding: clamp(30px, 5vw, 54px);
    border: 0;
}

.container1 .slider li:last-child {
    border-bottom: 0;
}

.container1 .slider article {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.container1 .slider .highlight-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0d4dc6;
    background: rgba(15, 76, 201, 0.1);
    border: 1px solid rgba(15, 76, 201, 0.22);
}

.container1 .slider .title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #0d2a5f;
    line-height: 1.25;
    text-transform: uppercase;
}

.container1 .slider article p {
    margin: 12px auto 22px;
    max-width: 640px;
    color: #3e5074;
    font-weight: 600;
    font-size: 1.04rem;
}

.container1 .slider .btn_3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f4cc9, #2f79ff);
    border: 1px solid transparent;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 76, 201, 0.26);
}

.container1 .slider .btn_3:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 76, 201, 0.34);
}

.map-container {
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    min-height: 330px;
}

.map-container .information {
    padding: clamp(18px, 3vw, 28px);
}

.map-container .information h2 {
    font-family: 'Libre Baskerville', serif;
    color: #0f2c63;
    margin-bottom: 10px;
}

.map-container .information p {
    margin: 9px 0;
    color: #3a4b6c;
    font-weight: 600;
}

.map-container .information i {
    color: var(--primary);
    margin-right: 6px;
}

footer {
    margin-top: var(--space-6);
    background:
        radial-gradient(circle at 15% -10%, rgba(47, 121, 255, 0.27), transparent 34%),
        radial-gradient(circle at 95% 0%, rgba(13, 159, 130, 0.2), transparent 32%),
        #061533;
    color: #dce8ff;
    padding: clamp(20px, 3.2vw, 36px) clamp(16px, 4vw, 72px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

footer .footer-col h3 {
    font-size: 1.02rem;
    color: #fff;
    margin-bottom: 6px;
}

footer .footer-col li,
footer .footer-col p {
    list-style: none;
    color: #d4e3ff;
    font-size: 0.88rem;
    margin-bottom: 5px;
    line-height: 1.45;
}

footer .footer-col li:hover {
    transform: translateX(4px);
    color: #fff;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
}

.social-links a:hover {
    background: #fff;
    color: #0f4cc9;
    transform: translateY(-2px);
}

.social-text {
    color: #c9d9ff;
    font-size: 0.84rem;
    line-height: 1.45;
}

footer .copyright {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: static;
    bottom: auto;
    display: block;
}

footer .copyright a {
    color: #fff;
    font-weight: 700;
}

footer .copyright a:hover {
    color: #9cc0ff;
}

@media (max-width: 940px) {
    #menu-btn {
        display: initial;
        width: 28px;
        height: 28px;
        cursor: pointer;
    }

    #menu-close {
        display: initial;
        font-size: 1.3rem;
        color: #0f2f6a;
        padding: 6px 12px;
        margin-left: auto;
        margin-bottom: 6px;
    }

    nav .navigation ul {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 86vw);
        height: 100vh;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: -20px 0 40px rgba(16, 33, 61, 0.15);
        transform: translateX(110%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 999;
    }

    nav .navigation ul.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    nav .navigation ul li {
        width: 100%;
    }

    nav .navigation ul li a {
        display: block;
        width: 100%;
        color: #122b58 !important;
        background: transparent;
    }

    nav .navigation ul li a:hover,
    nav .navigation ul li a.active {
        background: #ecf3ff;
        color: #0f4cc9;
    }

    #home .btn a {
        min-width: 255px;
    }

    .popup-onload .popup-content {
        padding: 18px 16px;
        max-height: 84svh;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 12px 14px;
    }

    nav h2 {
        font-size: 1.02rem;
    }

    #home h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    #home p {
        font-size: 0.95rem;
    }

    .fea-base,
    .course-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .popup-onload {
        padding: 12px;
    }

    .popup-onload .cnt223 {
        width: 100% !important;
    }

    .popup-onload .popup-content {
        border-radius: 18px;
        max-height: 86svh;
        padding: 16px 14px;
    }

    .popup-onload .popup-content h2 {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .popup-onload .popup-content p {
        font-size: 0.98rem;
    }
}

@media (max-width: 640px) {
    section,
    .container1 {
        padding: var(--space-5) 14px;
    }

    #home {
        padding-top: 70px;
        padding-bottom: 75px;
    }

    #home .btn a {
        width: min(290px, 90vw);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    footer {
        gap: 18px;
    }
}

@media (max-width: 480px) {
    #home .btn {
        flex-direction: column;
    }

    #home .btn a {
        width: 100%;
        min-width: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .popup-onload {
        inset: 0 !important;
        margin: 0 !important;
        padding: 10px !important;
        align-items: center;
    }

    .popup-onload .cnt223 {
        min-width: 0 !important;
        width: min(94vw, 430px) !important;
        margin: 0 !important;
    }

    .popup-onload .popup-content {
        max-height: 68svh !important;
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .popup-onload .popup-content img {
        width: 34px !important;
        margin-bottom: 6px !important;
    }

    .popup-onload .popup-content h2 {
        font-size: 1.05rem !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
    }

    .popup-onload .popup-content p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin: 6px 0 !important;
    }

    .popup-onload .popup-content .close {
        margin-top: 8px !important;
        padding: 8px 14px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 400px) {
    .popup-onload .cnt223 {
        width: 95vw !important;
    }

    .popup-onload .popup-content {
        max-height: 64svh !important;
        padding: 10px !important;
    }

    .popup-onload .popup-content h2 {
        font-size: 0.98rem !important;
    }

    .popup-onload .popup-content p {
        font-size: 0.84rem !important;
    }
}
