/* assets/css/style.css - Complete Fixed Version with Mobile Dropdown Fix and Fixed Top Navbar */

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

body {
    font-family: 'Poppins', sans-serif;
    background: #f9fafc;
    color: #1e2a3e;
    overflow-x: hidden;
    padding-top: 40px; /* Space for fixed top navbar */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ============================================ */
/* TOP NAVBAR - FIXED */
/* ============================================ */
.top-navbar {
    background-color: #1a237e;
    color: #ffffff;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.top-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.top-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-nav-left ul,
.top-nav-right ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.top-nav-left ul li a,
.top-nav-right ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 13px;
}

.top-nav-left ul li a:hover,
.top-nav-right ul li a:hover {
    color: #ffc107;
}

.top-nav-left ul li a i,
.top-nav-right ul li a i {
    margin-right: 5px;
    font-size: 12px;
}

/* ============================================ */
/* MAIN HEADER - FIXED BELOW TOP NAVBAR */
/* ============================================ */
.main-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 40px; /* Height of top navbar */
    left: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1058db;
    font-weight: 700;
}

.logo img {
    height: 70px;
    object-fit: cover;
}

.logo span {
    font-size: 22px;
    font-weight: 700;
}

.logo small {
    font-size: 11px;
    display: block;
}

/* ============================================ */
/* NAVIGATION STYLES */
/* ============================================ */
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: #2c3e66;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.main-nav ul li a:hover {
    color: #e67e22;
}

/* ============================================ */
/* DROPDOWN STYLES - DESKTOP */
/* ============================================ */
.dropdown {
    position: relative;
}

.dropdown > a i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
    display: block;
    text-align: center;
}

.dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 8px 20px;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #e67e22;
}

/* ============================================ */
/* MOBILE MENU BUTTON */
/* ============================================ */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #1e3c72;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero-section {
    height: 85vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 110px; /* Height of top navbar + main header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 40px;
}

.hero-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-title h1 {
    font-size: 4rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #fff;
    text-align: left;
}

.hero-title p {
    font-size: 1.2rem;
    color: #fff;
    text-align: left;
}

.hero-admission {
    margin-top: 10px;
}

/* ============================================ */
/* BUTTON STYLES */
/* ============================================ */
.btn-primary {
    background: #e67e22;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #cf711f;
    transform: translateY(-2px);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 126, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

/* ============================================ */
/* FEATURES SECTION */
/* ============================================ */
.features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: -50px auto 60px;
    position: relative;
    z-index: 5;
}

.feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    flex: 1;
}

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

.feature-card i {
    font-size: 50px;
    color: #e67e22;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #1e3c72;
}

/* ============================================ */
/* NOTICE BOARD */
/* ============================================ */
.notice-board {
    background: #fff7e8;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1e3c72;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-item {
    padding: 10px;
    border-bottom: 1px solid #ffe0a3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-item span {
    font-size: 20px;
}

/* ============================================ */
/* PAGE BANNER */
/* ============================================ */
.page-banner {
    background: linear-gradient(120deg, #1e4668, #2c5a8c);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 110px; /* Height of top navbar + main header */
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.main-footer {
    background: #0f1a2c;
    color: #ddd;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

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

.social-icons i {
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.social-icons i:hover {
    color: #e67e22;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #223344;
    font-size: 0.9rem;
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

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

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

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

/* ============================================ */
/* RESPONSIVE DESIGN - FIXED FOR MOBILE DROPDOWNS */
/* ============================================ */

@media (max-width: 992px) {
    .features {
        flex-direction: column;
        margin-top: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Top Navbar Mobile */
    .top-nav-flex {
        flex-direction: column;
        gap: 5px;
    }
    
    .top-nav-left ul,
    .top-nav-right ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .top-navbar {
        padding: 5px 0;
        font-size: 11px;
    }
    
    body {
        padding-top: 56px; /* Adjusted for mobile top navbar */
    }
    
    /* Main Header Mobile */
    .main-header {
        top: 56px; /* Height of mobile top navbar */
        padding: 0;
    }
    
    .header-flex {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    /* Hamburger Menu */
    .hamburger {
        display: block;
        font-size: 24px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 15px 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        padding: 10px 15px;
        font-size: 15px;
        justify-content: space-between;
    }
    
    /* FIX: Mobile dropdown styles - Menu items will be visible */
    .dropdown .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0;
        margin-top: 5px;
        margin-left: 15px;
        background: #f5f5f5;
        border-radius: 8px;
        width: calc(100% - 15px);
        display: none;
    }
    
    /* When dropdown is active, show the menu */
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu li {
        width: 100%;
        text-align: left;
    }
    
    .dropdown-menu li a {
        padding: 10px 15px;
        font-size: 14px;
        text-align: left;
        justify-content: flex-start;
    }
    
    .dropdown-menu li a:hover {
        background: #e0e0e0;
        padding-left: 20px;
    }
    
    /* Style for dropdown arrow on mobile */
    .dropdown > a i {
        float: right;
        margin-top: 4px;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        margin-top: 106px; /* Height of top navbar + main header on mobile */
        height: 70vh;
    }
    
    .hero-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .hero-title h1 {
        font-size: 2rem;
    }
    
    .hero-title p {
        font-size: 0.95rem;
    }
    
    .hero-admission {
        align-self: flex-start;
    }
    
    /* Page Banner Mobile */
    .page-banner {
        margin-top: 106px;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-section {
        height: 60vh;
    }
}