/* assets/css/style.css - Complete Fixed Version with Mobile Dropdown Fix */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f9fafc;
    color: #1e2a3e;
    overflow-x: hidden;
}

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

/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    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 0;
}

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

.logo img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

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

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

/* Navigation Styles - Reduced Gap */
.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 - Centered */
.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;
}

.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;
}

.hero-content h1 {
    font-size: 4rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
}

.btn-primary {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #bf5e0a;
    transform: scale(1.05);
}

.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;
}

.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;
    margin-right: 15px;
    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) {
    .hamburger {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        background: white;
        padding: 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;
    }
    
    .logo span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}