:root {
    --primary-maroon: #990033;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --accent-gold: #ffd700;
    --text-grey: #555;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    overflow-x: hidden;
    color: var(--dark);
}

h1, h2, h3, .academy-title {
    font-family: 'Playfair Display', serif;
}

/* --- HEADER STYLES --- */
.top-bar {
    background-color: var(--primary-maroon);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar a { color: white; text-decoration: none; margin-right: 15px; transition: 0.3s; }
.top-bar a:hover { color: var(--accent-gold); }
.top-bar .social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.top-bar .social-icons a {
    font-size: 1.1rem;
    margin-right: 0;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.top-bar .social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
@media (max-width: 767px) {
    .top-bar {
        padding: 10px 0;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .top-bar .social-icons {
        justify-content: center;
    }
}

.middle-header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.academy-title {
    color: var(--dark);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0;
    color: var(--primary-maroon);
}

/* Navigation */
.main-navbar {
    background-color: var(--primary-maroon);
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
    min-height: 70px;
}
.main-navbar .navbar-nav {
    align-items: center;
}
.main-navbar .nav-link {
    color: white !important;
    font-weight: 500;
    text-transform: uppercase;
    padding: 22px 24px !important;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.main-navbar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-gold) !important;
}

/* Mobile Menu Button */
.main-navbar .btn {
    padding: 14px 24px !important;
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 50px;
    border: 2px solid white !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Menu */
.offcanvas { width: 80% !important; }
.mobile-nav-link {
    display: block; padding: 12px 20px; color: #333; font-weight: 600;
    text-decoration: none; border-bottom: 1px solid #f0f0f0;
}
.mobile-nav-link:hover { background-color: #fff5f5; color: var(--primary-maroon); }

/* --- HERO SECTION --- */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.hero-carousel {
    margin-top: 0;
    margin-bottom: 0;
}
.hero-carousel .carousel-item {
    height: 600px;
}
.hero-slide {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-title { 
    font-size: 3.5rem; 
    font-weight: 700; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
    margin-bottom: 20px;
}
.hero-subtitle { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    font-weight: 300; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero-carousel .carousel-indicators {
    bottom: 30px;
}
.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
}
.hero-carousel .carousel-indicators button.active {
    background-color: white;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 0.8;
}
.hero-carousel .carousel-control-prev {
    left: 20px;
}
.hero-carousel .carousel-control-next {
    right: 20px;
}
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 500px;
    }
    .hero-slide {
        padding: 100px 0 80px;
    }
    .hero-title { 
        font-size: 2.5rem; 
    }
    .hero-subtitle { 
        font-size: 1rem; 
    }
}

/* --- SECTIONS --- */
.section-title {
    color: var(--primary-maroon);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 3px; background: var(--accent-gold);
}

/* Founder Section */
.founder-img {
    border: 10px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 350px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Problems & Solutions (Why Us) */
.prob-sol-box { padding: 30px; height: 100%; border-radius: 10px; }
.bg-problem { background-color: #fff0f0; border-left: 5px solid #dc3545; }
.bg-solution { background-color: #f0fff4; border-left: 5px solid #198754; }
.list-check li { margin-bottom: 10px; display: flex; align-items: start; }
.list-check i { margin-top: 5px; margin-right: 10px; }

/* Course Cards */
.course-card {
    border: none; border-radius: 8px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: 0.3s;
    background: white;
}
.course-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.course-img-wrapper { position: relative; height: 200px; overflow: hidden; }
.course-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.course-card:hover .course-img-wrapper img { transform: scale(1.1); }
.course-badge {
    position: absolute; top: 15px; right: 15px;
    background: var(--accent-gold); color: black;
    padding: 5px 12px; font-size: 0.75rem; font-weight: bold; border-radius: 20px;
}

/* Stats Strip */
.stats-strip { background-color: var(--primary-maroon); color: white; padding: 60px 0; }
.stat-item h3 { font-size: 2.5rem; font-weight: 700; color: var(--accent-gold); }

/* Global Scope Map */
.global-section {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/World_map_blank_without_borders.svg/2000px-World_map_blank_without_borders.svg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: overlay;
}
.country-tag {
    display: inline-block; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); padding: 8px 15px;
    margin: 5px; border-radius: 20px; font-size: 0.9rem;
}

/* Software Marquee */
.software-list span {
    display: inline-block; padding: 10px 20px;
    background: #e9ecef; margin: 5px; border-radius: 5px;
    font-weight: 600; color: #555;
}

/* Footer */
footer { 
    background: #111; 
    color: #aaa; 
    padding: 60px 0 20px; 
    font-size: 0.9rem; 
    margin-top: 0;
}
footer h5 { color: white; margin-bottom: 20px; font-family: 'Playfair Display', serif; }
footer a { color: #aaa; text-decoration: none; display: block; margin-bottom: 10px; }
footer a:hover { color: var(--accent-gold); }

/* Page Content */
.page-content {
    padding: 60px 0;
    min-height: 70vh;
}

/* Hero Section - No top margin when directly after navbar */
.hero-section {
    margin-top: 0 !important;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Login Pages */
.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}
.login-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
}

/* Placements */
.placement-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    background: white;
}
.placement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* About Page */
.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-maroon);
}
.timeline-item::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-maroon);
}

/* Course Detail Page */
.syllabus-module {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-maroon);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

