:root {
    --primary: #0a192f;
    --accent: #ffd700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: rgba(75, 75, 75, 1);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --background: radial-gradient(circle, rgba(15, 155, 200, 0.5) 0%, transparent 60%);
    --science-color: #0a192f;
    --social-color: #2d3748;
    --success-color: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* --- Header & Nav --- */
header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

/* Dropdown Menu Styles */
.nav-links li {
    position: relative;
}

.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown > a {
    cursor: pointer;
}

.nav-links .dropdown > a::after {
    content: ' ▾';
    font-size: 0.6rem;
    margin-left: 2px;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    min-width: 180px;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-links .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .dropdown-menu li {
    padding: 0;
}

.nav-links .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav-links .dropdown-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: var(--accent);
    color: var(--accent);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    background: linear-gradient(135deg, #020c1b 0%, #0a192f 100%);
    padding: 40px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(15, 155, 200, 0.5) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.institute-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #FFD700;
}

.enrollment-banner {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: lime;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #e0e0e0;
}

.hero p {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 17px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* --- Sections General --- */
.section-title {
    color: #000;
    background-color: rgba(0,151,170,0.9); 
    padding: 10px 20px; 
    margin-bottom: 20px; 
    margin-top: 0px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5rem;
    font-weight: 999;
    text-align: center;
    width: auto; 
    margin-left: calc(-5vw);
    margin-right: calc(-5vw);
    padding-left: 5vw;
    padding-right: 5vw;
    box-sizing: border-box; 
    display: block;
}

.section-title.left { 
    text-align: left; 
}

/* Reduce white space between major sections */
section + section {
    margin-top: 0; 
    padding-top: 15px;
}

/* --- About Section --- */
.about-section {
    padding: 20px 0;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto; 
    overflow: hidden; 
    margin-top: -20px;    
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: center;
}

.about-content p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #4a5568;
}

.about-stats {
    background: var(--primary);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-light);
}

.stat-item {
    margin-bottom: 10px;
}
.stat-item:last-child { margin-bottom: 0; }

.stat-item strong {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.stat-item p {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* --- Programs Section --- */
.programs-section {
    padding: 30px 0;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto; 
    overflow: hidden; 
    margin-top: -30px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.card {
    background: white;
    padding: 8px;
    border-top: 4px solid #068;
    box-shadow: var(--shadow);
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-2px); }

.card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* --- Contact Section --- */
.contact-section {
    background: white;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto; 
    overflow: hidden; 
    margin-top: -20px;    
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
}

.contact-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 0.9rem;
    margin-top: 10px;
}
.contact-info h4:first-child { margin-top: 0; }

.contact-info p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form input, 
.contact-form select,
.contact-form textarea {
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.map-container {
    width: 100%;
    height: 350px;
    background: #eee;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 13px;
    border: 2px solid black;
}


/* --- Footer Styles --- */
.footer-main {
    background: var(--primary);
    color: #fff;
    padding: 20px 0 10px;
    margin-bottom: 0px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li,
.footer-col p {
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: -1px;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.6;
    margin-bottom: 40px;
}

/* --- Partners Section --- */
.partners-section {
    padding: 30px 0;
    background: #fff;
    overflow: hidden; 
    position: relative;
    max-width: 1200px;
    margin: 0 auto; 
}

.partners-wrapper { max-width: 1200px; margin: 0 auto; overflow: hidden;}

.partners-track {
    display: flex;
    transform: translateX(calc(-350px * 3));
    animation: scrollRight 15s linear infinite; 
}

.partner-item {
    width: 350px; 
    flex-shrink: 0;
    text-align: center;
    font-weight: 700;
    color: #025; 
    font-size: 1.1rem;
    padding: 0 30px;
    text-transform: uppercase;
    border-right: 5px solid green;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes scrollRight {
    0% { transform: translateX(calc(-350px * 3)); }
    100% { transform: translateX(0); }
}

.partners-track:hover {
    animation-play-state: paused;
}

/* =========================================
   PROGRAMS PAGE SPECIFIC STYLES
   ========================================= */

/* Program Category Container */
.program-category {
    margin-bottom: 10px;
}

.category-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 10px auto;
    font-size: 0.9rem;
    color: #555;
}

/* Course List Styling */
.course-list {
    list-style: none;
    padding: 0;
    margin-top: 2px;
}

.course-list li {
    background: #f8f9fa;
    border-left: 3px solid var(--primary);
    padding: 2px 5px;
    margin-bottom: 2px;
    font-size: 0.85rem;
    color: #444;
    border-radius: 0 4px 4px 0;
    transition: transform 0.2s ease, background 0.2s;
}

.course-list li:hover {
    transform: translateX(5px);
    background: #f1f1f1;
}

/* Stream Badge */
.stream-badge {
    display: inline-block;
    background: var(--science-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.stream-badge.alt {
    background: var(--social-color); 
}

/* Subheading within cards */
.subheading {
    font-size: 0.9rem;
    color: var(--primary);
    margin: 8px 0 2px 0;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
}

/* Card highlight variant */
.card-highlight {
    border-top-color: var(--success-color); 
}

/* Target Populace Grid */
.populace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16px, 1fr));
    gap: 5px;
    margin-top: 10px;
}

.populace-item {
    background: linear-gradient(135deg, #777eea 0%, #751ba2 100%);
    color: white;
    padding: 4px 7px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    transition: transform 0.2s;
    font-weight: 700;
}

.populace-item:hover {
    transform: translateY(-2px);
}

/* Timeline Grid */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 0px;
}

.timeline-item {
    background: yellow;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 4px;
    text-align: center;
}

.timeline-item .week {
    font-size: 0.75rem;
    color: red;
    text-transform: uppercase;
}

.timeline-item .activity {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0px;
}

/* Higher Learning Cards */
.higher-learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.higher-card {
    background: linear-gradient(135deg, #11998e 0%, #003080 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.higher-card h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.higher-card p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Fee Table */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.fee-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
}

.fee-table td:first-child {
    font-weight: 600;
}

.fee-table td:last-child {
    text-align: right;
    color: var(--primary);
    font-weight: 600;
}

/* Awards Box */
.awards-box {
    margin-top: 20px;
    background: #f0fdf4;
    border: 2px solid var(--success-color);
    border-radius: 8px;
    padding: 15px;
}

.awards-box h4 {
    color: var(--success-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.ogl a {
    color: #999;
    margin-top: 1px;
    font-size: 0.7rem;
    text-decoration: none;
}

.ogl a:hover {
    color: lime;
    font-weight: 600;
}

/* --- Responsive Logic --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--primary);
        width: 100%;
        flex-direction: column;
        padding: 15px 0;
        align-items: center;
        gap: 10px;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }

    .menu-toggle { display: flex; }

    /* Dropdown Mobile */
    .nav-links .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        margin-top: 5px;
        display: none;
        border: 1px solid rgba(255, 215, 0, 0.1);
    }

    .nav-links .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-links .dropdown > a::after {
        content: ' ▾';
        float: right;
    }

    /* Hero */
    .hero { padding: 30px 0; }
    .enrollment-banner { font-size: 1.8rem; }
    .hero h1 { font-size: 1.1rem; }

    /* Grids */
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 20px;
    }
    
    .footer-col h4 { margin-bottom: 5px; }

    /* Responsive Title Fix */
    .section-title { 
        font-size: 1.3rem; 
        margin-bottom: 15px;
        padding-left: 5vw;
        padding-right: 5vw;
    }
    
    .partner-item {
        width: 250px;
        font-size: 0.9rem;
    }
    @keyframes scrollRight {
        0% { transform: translateX(calc(-250px * 3)); }
        100% { transform: translateX(0); }
    }

    .ogl a {
        margin-top: 2px;
        font-size: 0.6rem;
    }

    /* Programs Page Mobile */
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .populace-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   MOBILE MENU ANIMATION STYLES
   ========================================= */

/* Hamburger menu active state (X shape) */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Dropdown indicator rotation when active */
.nav-links .dropdown.active > a::after {
    transform: rotate(180deg);
    display: inline-block;
}

/* Mobile dropdown styling improvements */
@media (max-width: 768px) {
    .nav-links .dropdown > a {
        width: 100%;
        padding: 10px 20px;
        display: block;
    }
    
    .nav-links .dropdown-menu a {
        padding: 10px 30px;
        font-size: 0.75rem;
    }
    
    /* Add visual feedback when dropdown is open */
    .nav-links .dropdown.active > a {
        color: var(--accent);
    }
}
