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

:root {
    --primary: #003366;
    --primary-light: #004d99;
    --accent: #D4AF37;
    --accent-dark: #b8962d;
    --secondary: #008080;
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --bg-white: #ffffff;
    --bg-gray: #f9f9f9;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-gray);
    color: var(--primary) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: var(--shadow);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav.scrolled .logo {
    color: var(--primary);
}

nav:not(.scrolled) .logo,
nav:not(.scrolled) .nav-links a {
    color: white;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent) !important;
}

.btn-admission {
    padding: 10px 25px;
    background: var(--primary);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
}

.btn-admission:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/images/bg_1.JPG');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.4s ease-out;
}

.btn-primary {
    padding: 15px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary {
    padding: 15px 40px;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Branches Strip */
.branches-strip {
    background-color: #275c9b;
    border-bottom: 12px solid #ecd808;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.branches-strip-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    padding: 15px 20px;
}

.branches-strip a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.3;
    padding: 0 25px;
    transition: var(--transition);
}

.branches-strip a:hover {
    color: #ecd808;
    /* Yellow on hover */
    transform: translateY(-2px);
}

.branches-strip .divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    font-weight: 300;
}

/* Sections */
section {
    padding: 100px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.curriculum-badges {
    position: absolute;
    bottom: -20px;
    right: -20px;
    display: flex;
    gap: 15px;
}

.curriculum-badges span {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    border: 1px solid var(--accent);
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.vm-box {
    background: var(--bg-gray);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    transition: var(--transition);
}

.vm-box:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow);
}

.vm-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* History Section Styles */
.history-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.history-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.dropcap {
    float: left;
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 700;
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.facility-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.facility-item:hover .facility-overlay {
    opacity: 1;
}

.facility-item:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 10% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

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

    .nav-links {
        display: none;
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }
}