/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* Header Section - Government Style */
header {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    padding: 15px 0;
    border-bottom: 4px solid #0056b3;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-left img, .logo-right img {
    height: 80px;
    width: auto;
}

.header-title {
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.header-title h2 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.header-title p {
    font-size: 0.9rem;
    font-style: italic;
}

/* Navigation Bar */
nav.main-menu {
    background-color: #004085; /* Dark Blue */
    position: sticky;
    top: 0;
    z-/: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav.main-menu ul {
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav.main-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 0.95rem;
}

nav.main-menu ul li a:hover, nav.main-menu ul li a.active {
    background-color: #0056b3;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 400px; /* Placeholder for slider */
    background: url('/banglar-yuva-sathi.webp') no-repeat center center/cover;
    background-color: #ddd; /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-btn {
    padding: 12px 30px;
    background-color: #ff9800;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s;
}

.hero-btn:hover {
    transform: scale(1.05);
    background-color: #e68900;
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3fr 1fr; /* Content Left, Sidebar Right */
    gap: 30px;
}

/* Content Area */
.content h2.section-title {
    color: #0056b3;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.content p {
    margin-bottom: 15px;
    text-align: justify;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #e9ecef;
    padding: 15px;
    font-weight: bold;
    color: #004085;
    border-bottom: 1px solid #ddd;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin-bottom: 10px;
    color: #333;
}

.btn-primary {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

/* Sidebar */
.sidebar .widget {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(to right, #004085, #0056b3);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
}

.widget-content {
    padding: 15px;
}

.news-ticker {
    list-style: none;
}

.news-ticker li {
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
    margin-bottom: 10px;
}

.news-ticker li a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.news-ticker li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Tables */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.responsive-table th, .responsive-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.responsive-table th {
    background-color: #0056b3;
    color: white;
}

.responsive-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Footer - Skyline Style */
footer {
    margin-top: 50px;
}

.skyline-decoration {
    height: 100px;
    background: url('/west-bengal.webp') repeat-x bottom center;
    background-size: contain;
    /* Use a gradient or CSS shape if image not available immediately, but mimicking the blue silhouette */
    background-color: transparent; 
    border-bottom: 5px solid #004085;
    /* Fallback CSS shape for tagline */
    background: linear-gradient(to top, #004085 20%, transparent 20%), 
                linear-gradient(to top left, transparent 49%, #004085 50%, transparent 51%) 0 100%/30px 30px repeat-x,
                url('/west-bengal.webp') repeat-x bottom center;
   
}

.footer-content {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    background-color: #000;
    color: #666;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 0.85rem;
}

/* Typography for Mixed Language */
.lang-bn {
    font-family: 'Kalpurush', 'Noto Sans Bengali', sans-serif;
    font-size: 1.1em; /* Bengali usually needs slightly larger size to match legibility */
}

/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Mobile Header Layout */
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "left title right";
        gap: 10px;
        padding: 10px;
        align-items: center;
        text-align: center;
    }

    .logo-left { grid-area: left; }
    .header-title { grid-area: title; }
    .logo-right { grid-area: right; }

    .logo-left img, .logo-right img {
        height: 50px;
        width: auto;
        margin: 0;
    }

    .header-title h2 { font-size: 0.7rem; margin-bottom: 0; }
    .header-title h1 { font-size: 0.95rem; line-height: 1.2; margin: 2px 0; }
    .header-title p { font-size: 0.7rem; display: block; }

    /* Hamburger Menu Styles */
    nav.main-menu {
        position: relative; /* Context for absolute menu if needed, though we use flow here */
    }

    /* Mobile Nav Header (contains toggle) */
    .mobile-nav-header {
        display: flex; /* Visible on mobile */
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background-color: #003366; /* Slightly darker than nav */
        color: white;
    }

    .mobile-menu-title {
        font-weight: bold;
        font-size: 1.1rem;
    }

    .menu-toggle {
        background: none;
        border: 2px solid rgba(255,255,255,0.5);
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 4px;
        transition: all 0.3s;
    }

    .menu-toggle:hover {
        background: rgba(255,255,255,0.1);
        border-color: white;
    }

    /* Hide the list by default on mobile */
    nav.main-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #004085;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Class to show menu via JS */
    nav.main-menu ul.show {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    nav.main-menu ul li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav.main-menu ul li a {
        padding: 15px 20px;
        font-size: 1rem;
        display: block; /* Full width click area */
        border-right: none;
        display: flex;
        align-items: center;
        gap: 15px; /* Space between icon and text */
    }
    
    nav.main-menu ul li a i {
        width: 25px; /* Fixed width for icon alignment */
        text-align: center;
        font-size: 1.1rem;
        margin-right: 0;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 0 10px;
        margin-top: 15px;
    }

    .hero-section {
        height: auto; /* Allow content to dictate height */
        min-height: 350px; /* Give it enough space */
        padding: 40px 0; /* Add vertical breathing room */
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.75); /* Darker overlay to read text over busy image */
        padding: 20px;
    }
    
    .hero-overlay h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .hero-overlay p {
        font-size: 0.95rem !important; /* Smaller paragraph text */
        line-height: 1.4;
        margin-bottom: 15px !important;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .card-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
}

/* Desktop styles for new elements */
/* Hide mobile nav header on desktop */
@media (min-width: 769px) {
    .mobile-nav-header {
        display: none;
    }
}

/* Extra small screens adjustments */
@media (max-width: 400px) {
    .header-title h1 {
        font-size: 0.8rem;
    }
    .logo-left img, .logo-right img {
        height: 40px;
    }
}
