@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1f3c88;
    --secondary-color: #f8b400;
    --dark-color: #1a1a1a;
    --light-color: #f9fafb;
    --text-color: #333333;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
}

.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
    font-weight: 500;
    margin-left: 1rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #162964;
    border-color: #162964;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.hero-section {
    min-height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(31, 60, 136, 0.85), rgba(24, 85, 127, 0.75));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading span {
    display: inline-block;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 0.15rem;
    text-transform: uppercase;
}

.section-heading h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.feature-card,
.profile-card,
.news-card {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(31, 60, 136, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover,
.profile-card:hover,
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(31, 60, 136, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: rgba(248, 180, 0, 0.1);
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.mission-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(16, 24, 40, 0.06);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.8rem;
    height: 100%;
    width: 2px;
    background-color: rgba(31, 60, 136, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.05rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.team-card img {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    height: 220px;
    object-fit: cover;
}

.school-card .card-body {
    display: flex;
    flex-direction: column;
}

.school-card .btn {
    margin-top: auto;
}

.news-card img {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.news-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.contact-info-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(31, 60, 136, 0.08);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(31, 60, 136, 0.08);
}

.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.85);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer a:hover {
    color: var(--secondary-color);
}

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 15px 25px rgba(31, 60, 136, 0.35);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .navbar .nav-link {
        margin-left: 0;
        padding: 0.75rem 0;
    }

    .hero-section {
        min-height: 60vh;
        padding: 4rem 0;
    }

    .mission-section {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .feature-card,
    .news-card {
        border-radius: 14px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }
}

