/* header-style.css */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    padding-top: 80px; /* ADDED: Space for fixed header */
}


/* Main Header Styles - MADE SMALLER AND FIXED */
.main-header {
    background: #0d2592; /* Changed to solid blue */
    color: white;
    padding: 5px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

/* Logo Section - MADE SMALLER */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    text-align: center;
    position: relative;
}

.logo-with-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.logo-container {
    background-color: white !important; /* Force white background */
    padding: 8px; /* Increased padding for better white background visibility */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
}

.logo-img-small {
    height: 40px;
    width: auto;
    border-radius: 4px;
    max-width: 100%;
    object-fit: contain;
    max-height: 40px;
    background-color: white !important; /* Add white background to image itself */
    padding: 2px; /* Add padding inside the image container */
}

/* Fallback for missing image */
.logo-fallback {
    height: 40px;
    width: 40px;
    background: #4CAF50;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-align: center;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

/* Main Navigation - DESKTOP - MADE SMALLER */
.main-nav {
    margin-top: 8px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Changed hover effect to border only, no background */
.nav-menu a:hover {
    background-color: transparent;
    border: 2px solid white;
    padding: 4px 10px; /* Adjust padding to account for border */
}

.nav-menu a.active {
    background-color: transparent;
    border: 2px solid #4CAF50;
    color: white;
    padding: 4px 10px; /* Adjust padding to account for border */
}

/* Mobile Menu Toggle - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: transparent !important; /* No background */
    color: white !important;
    border: 2px solid white !important; /* Border only */
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.1rem;
    z-index: 1001;
}

/* ============================= */
/* MOBILE STYLES (≤ 768px) - SIMPLIFIED */
/* ============================= */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: block !important;
        background: transparent !important; /* No background */
        color: white !important;
        border: 2px solid white !important; /* Border only */
    }
    
    /* Adjust logo for mobile */
    .logo-with-image {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        text-align: left;
        padding-left: 15px;
        padding-right: 60px;
    }
    
    .logo-container {
        padding: 6px !important; /* Increased padding */
        min-width: 40px;
        min-height: 40px;
        background-color: white !important; /* Force white background */
    }
    
    .logo-img-small {
        height: 32px;
        max-height: 32px;
        background-color: white !important; /* White background for image */
        padding: 1px;
    }
    
    .site-title {
        font-size: 1.1rem;
        line-height: 1.1;
        text-align: left;
    }
    
    /* Hide the navigation menu by default on mobile */
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0d2592; /* Solid blue background */
        z-index: 1000;
        padding: 10px 0;
        margin-top: 0;
    }
    
    /* Show menu when show class is added */
    .main-nav.show {
        display: block;
    }
    
    /* Stack menu items vertically */
    .nav-menu {
        flex-direction: column;
        gap: 5px;
        padding: 0 15px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 8px 12px; /* Reduced padding */
        display: block;
        text-align: left;
        background: transparent; /* No background */
        border-radius: 4px;
        font-size: 0.9rem;
        border: 1px solid transparent; /* Prepare for hover border */
    }
    
    .nav-menu a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }
    
    /* Mobile hover with border only */
    .nav-menu a:hover {
        background: transparent;
        border: 1px solid white;
    }
    
    /* Mobile active with border only */
    .nav-menu a.active {
        background-color: transparent;
        border: 1px solid #4CAF50;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
    
    .site-title {
        font-size: 0.95rem;
    }
    
    .logo-container {
        padding: 4px !important; /* Increased padding */
        min-width: 35px;
        min-height: 35px;
        background-color: white !important; /* Force white background */
    }
    
    .logo-img-small {
        height: 28px;
        max-height: 28px;
        background-color: white !important; /* White background for image */
    }
    
    .nav-menu a {
        padding: 6px 10px; /* Further reduced padding */
        font-size: 0.85rem;
    }
    
    .logo-with-image {
        padding-right: 55px;
    }
    
    .mobile-menu-toggle {
        padding: 6px 10px;
        font-size: 1rem;
        top: 12px;
    }
}

@media (max-width: 360px) {
    body {
        padding-top: 60px;
    }
    
    .site-title {
        font-size: 0.85rem;
    }
    
    .logo-container {
        padding: 3px !important; /* Increased padding */
        min-width: 30px;
        min-height: 30px;
        background-color: white !important; /* Force white background */
    }
    
    .logo-img-small {
        height: 24px;
        max-height: 24px;
        background-color: white !important; /* White background for image */
    }
    
    .mobile-menu-toggle {
        padding: 5px 8px;
        font-size: 0.9rem;
        top: 10px;
    }
}

@media (min-width: 769px) {
    .logo-container {
        padding: 10px !important; /* Increased padding for desktop */
        min-width: 60px;
        min-height: 60px;
        background-color: white !important; /* Force white background */
    }
    
    .logo-img-small {
        height: 50px;
        max-height: 50px;
        background-color: white !important; /* White background for image */
        padding: 2px;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 150px);
    padding: 20px 0;
}
/*header style css  ends */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: #0d12a5; /* Deep Blue */
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-section .site-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    color: white;
}

.main-nav .nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 5px;
}

.main-nav .nav-menu li {
    margin: 0 2px;
}

.main-nav .nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: inline-block;
}

.main-nav .nav-menu a:hover,
.main-nav .nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
    color: #ffcc00;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    text-align: center;
    margin-top: 10px;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(13, 59, 102, 0.85), rgba(19, 73, 126, 0.75)), url('../images/hero-bg.jpg'); /* Deep Blue Gradient */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Fallback if image doesn't load */
.hero-banner {
    background-color: #0d3b66; /* Deep Blue Fallback */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.section.hero {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 500;
}

.hero-motto {
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #ddd;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    min-width: 180px;
}

.btn-primary {
    background-color: #ffcc00;
    color: #0d3b66; /* Deep Blue */
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background-color: white;
    color: #0d3b66; /* Deep Blue */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Stats Bar */
.stats-bar {
    background-color: white;
    padding: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
}

.stat-item {
    padding: 20px;
}

.stat-item h3 {
    font-size: 36px;
    color: #0d3b66; /* Deep Blue */
    margin-bottom: 5px;
}

.stat-item p {
    color: #666;
    font-weight: 500;
    font-size: 16px;
}

/* Latest News */
.latest-news {
    padding: 50px 0;
    background-color: #f5f5f5;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #0d3b66; /* Deep Blue */
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ffcc00;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-category {
    display: inline-block;
    background-color: #0d3b66; /* Deep Blue */
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.read-more {
    color: #0d3b66; /* Deep Blue */
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

.read-more:hover {
    color: #ffcc00;
}

/* Footer */
.main-footer {
    background-color: #0a2a4a; /* Darker Deep Blue */
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-title {
    color: #ffcc00;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0d3b66; /* Deep Blue */
    padding-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #ffcc00;
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #ffcc00;
    margin-right: 10px;
    width: 20px;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.contact-info a:hover {
    color: #ffcc00;
}

.social-media h4 {
    color: #ffcc00;
    margin: 20px 0 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #0d3b66; /* Deep Blue */
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #ffcc00;
    color: #0d3b66; /* Deep Blue */
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #0d3b66; /* Deep Blue */
    color: #aaa;
    font-size: 14px;
}

.footer-note {
    color: #ffcc00;
    font-style: italic;
    margin-top: 5px;
}

/* Admin Button */
.admin-btn {
    background-color: #ffcc00 !important;
    color: #0d3b66 !important; /* Deep Blue */
    font-weight: bold !important;
    border-radius: 4px !important;
    margin-left: 10px !important;
    padding: 8px 15px !important;
    transition: all 0.3s !important;
}

.admin-btn:hover {
    background-color: #e6b800 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
}

.admin-btn i {
    margin-right: 5px !important;
}

/* Logo with Image */
.logo-with-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-img-small {
    height: 50px;
    width: auto;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav .nav-menu {
        flex-direction: column;
        display: none;
        width: 100%;
        background-color: #0d3b66; /* Deep Blue */
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav .nav-menu.show {
        display: flex;
    }
    
    .main-nav .nav-menu li {
        margin: 5px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-motto {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        max-width: 250px;
    }
    
    .hero-banner {
        min-height: 60vh;
        padding: 60px 0;
        background-attachment: scroll;
    }
    
    .logo-with-image {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .logo-img-small {
        height: 40px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .admin-btn {
        margin-left: 0 !important;
        margin-top: 10px !important;
        width: 100px !important;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner {
        min-height: 50vh;
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-motto {
        font-size: 1rem;
    }
    
    .logo-section .site-title {
        font-size: 18px;
    }
    
    .logo-img-small {
        height: 35px;
    }
    
    .site-title {
        font-size: 18px;
    }
}

/* Hero Banner Additional Styles */
.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* For mobile - disable parallax */
@media (max-width: 768px) {
    .hero-banner {
        background-attachment: scroll;
    }
}