* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', 'Montserrat', sans-serif;
}
.navbar-toggler {
    border-color: white; 
}

.navbar-toggler-icon {
    filter: invert(1); 
}
.sideraw {
    display: flex;
    flex: 1; 
    width: 100%;
}
.banner{
    background-color: #011F59 !important;
}
/* Sidebar styles */
.sidebar {
    width: 280px;
    background-color: #011F59; 
    color: #fff; 
    height: auto; 
    flex-shrink: 0; 
    overflow-y: auto; 
    padding-top: 80px; 
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid gold;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-btn {
    display: none;
    background: none;
    border: none;
    color: #fff; 
    cursor: pointer;
    font-size: 1.2rem;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-content h4 {
    margin: 15px 0 10px;
    color: white; 
    font-size: 1rem;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 5px;
}

.nav-list a {
    display: block;
    padding: 8px 10px;
    color: #fff; 
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-list a:hover, .nav-list a.active {
    background-color: navy; 
    color: white; 
}

/* Main content styles */
.main-content {
    flex: 1;
    margin-left: 20px;
    padding: 100px 40px;
    transition: margin-left 0.3s ease;
}

.top-bar {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.top-bar h1 {
    font-size: 1.8rem;
    color: #011F59; 
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 auto;
    color: #011F59; 
}

/* Card container - UPDATED for exactly 3 cards per row */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    width: 100%;
}

/* Card styles */
.card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 115%;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card h2 {
    color: #7f8c8d; 
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.subjects {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.download-btn {
    display: inline-block;
    background-color: #011F59; 
    color: white; 
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: gold; 
    color: #011F59;
}
 /* Footer Styles */
 footer {
    background-color: #011F59 !important;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 32px;

}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.footer-heading {
    position: relative;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: gold;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-list li i {
    margin-right: 0.5rem;
    width: 16px;
    color: gold;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.social-links i {
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
   }

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
}
/* Responsive styles - UPDATED for specific breakpoints */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Ensure sidebar is properly hidden on mobile by default */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        height: 100%;
        overflow-y: auto;
        transition: transform 0.3s ease;
    }
  
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }
    
    /* Add overlay when sidebar is active */
    .sidebar.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Ensure main content takes full width */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Make menu button more visible */
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: #f5f7fa;
        border-radius: 4px;
        border: 1px solid #ddd;
        color: #011F59; 
        font-size: 1.2rem;
    }
    
    .menu-btn:hover {
        background-color: #e9ecef;
    }
    h1.den {
        font-size: 1.8rem; 
        
    }
}
@media (max-width: 576px) {
    .container {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    .card{
        width: 100%;
        max-width: 400px;
    }
    h1.den {
        font-size: 1.5rem; 
        
    }
    h1{
        font-size: 10px;
    }
    .hen{
        text-align: center;
    }
    .card-img {
        height: 160px;
    }
    
    .card h2 {
        font-size: 1.2rem;
    }
    
    .subjects {
        font-size: 0.9rem;
    }
    
    .download-btn {
        width: 100%;
        text-align: center;
    }
}
