/* ================= GLOBAL BASE STYLES ================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #e8e8e8;
    font-family: Arial, sans-serif;
    color: #333;
}

/* ================= HEADER ================= */
.header {
    background: #cc0000;
    text-align: center;
    padding: 25px 15px;
    color: white;
    width: 100%;
}

.header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
}

.header p {
    margin: 6px 0 0 0;
    font-size: 16px;
}

/* ================= NAVBAR & MEGA MENU ================= */
.navbar {
    width: 100%;
    background: #0a1a57;
    color: white;
    font-size: 14px;
    position: relative;
    z-index: 1000;
}

/* Toggle Menu Button (Mobile Hamburger) */
.nav-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    align-items: center;
    justify-content: space-between;
}

.navbar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.navbar ul li {
    display: inline-block;
    position: relative;
}

.navbar a, 
.navbar .drop-btn {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.navbar a:hover, 
.drop-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Dropdown / Mega Menu */
.navbar ul li.mega-drop {
    position: relative;
}

.navbar .mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a1a57;
    border: 1px solid #00113b;
    padding: 12px;
    min-width: 280px;
    z-index: 999;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.navbar ul li.mega-drop:hover .mega-menu {
    display: grid;
}

.mega-col a {
    display: block;
    padding: 8px 6px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.mega-col a:last-child {
    border-bottom: none;
}

.mega-col a:hover {
    color: #ffeb3b;
    text-decoration: underline;
    background: transparent;
}

/* ================= UTILITY SECTIONS ================= */
.note {
    text-align: center;
    margin: 15px auto 5px auto;
    font-size: 13px;
    max-width: 900px;
    padding: 0 12px;
}

.sicon {
    text-align: center;
    margin: 5px 0;
    font-size: 12px;
}

.whats-app {
    text-align: center;
    margin: 10px 0;
}

.whats-app button {
    background: #1db954;
    color: white;
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.tools {
    text-align: center;
    margin: 8px 0 15px 0;
}

.tools a {
    background: #0d47a1;
    padding: 6px 15px;
    border-radius: 5px;
    color: white;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
}

/* NEWS MARQUEE STYLE */
.news-marquee-wrapper {
    max-width: 1100px;
    margin: 0 auto 15px auto;
    padding: 0 10px;
}

.news-marquee {
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.news-marquee a {
    color: #0033cc;
    text-decoration: none;
    padding: 0 6px;
}

.news-marquee a:hover {
    text-decoration: underline;
}

.news-marquee .sep {
    color: #ff0000;
    font-weight: bold;
}

/* ================= TOP BOXES GRID ================= */
.top-boxes {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.top-box-item, .top-boxes > div {
    padding: 12px 10px;
    text-align: center;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    display: block;
    text-decoration: none;
    line-height: 1.3;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-box-item:hover, .top-boxes > div:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

/* COLOR CLASSES */
.c-red, .t-red { background: #d32f2f !important; }
.c-orange, .t-orange { background: #f4511e !important; }
.c-pink { background: #c2185b !important; }
.c-blue, .t-blue { background: #0d47a1 !important; }
.c-green, .t-green { background: #2e7d32 !important; }
.c-cyan { background: #1565c0 !important; }
.t-purple { background: #6a1b9a !important; }

/* ================= 3 COLUMNS SARKARI CONTENT ================= */
.columns {
    width: 100%;
    max-width: 1180px;
    margin: 20px auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.col-box {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-title {
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    text-align: center;
}

.col-links {
    padding: 10px 14px;
    flex-grow: 1;
}

.col-links a, 
.category-container a.category-post-item {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    color: #0033aa;
    font-weight: 500;
    border-bottom: 1px dashed #e0e0e0;
    text-decoration: none;
}

.col-links a:last-child, 
.category-container a.category-post-item:last-child {
    border-bottom: none;
}

.col-links a:hover, 
.category-container a.category-post-item:hover {
    color: #ff0000;
    text-decoration: underline;
}

/* VIEW ALL BUTTON (Fixed Alignment) */
.view-all-wrapper {
    text-align: right;
    padding: 8px 12px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.view-all-btn {
    display: inline-block;
    padding: 5px 12px;
    background: #003399;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    text-decoration: none;
    margin: 0;
}

.view-all-btn:hover {
    background: #001f7a;
}

.pagination-wrapper {
    margin: 20px 0;
    text-align: center;
}

/* ================= FOOTER ================= */
.footer {
    background: #cc0000;
    padding: 25px 0;
    color: #fff;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left p {
    margin: 0;
    line-height: 1.4;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */

/* Tablet View (Max 992px) */
@media (max-width: 992px) {
    .columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View (Max 768px) */
@media (max-width: 768px) {
    .header h1 {
        font-size: 26px;
    }
    
    .header p {
        font-size: 14px;
    }

    /* Mobile Hamburger Menu */
    .nav-toggle-btn {
        display: flex;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #06113c;
    }

    .navbar ul.show {
        display: flex;
    }

    .navbar ul li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar a, .navbar .drop-btn {
        padding: 12px 18px;
    }

    /* Mobile Mega Menu Accordion */
    .navbar .mega-menu {
        position: static;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
        background: #020926;
        box-shadow: none;
        border: none;
        padding: 0 18px;
    }

    .navbar ul li.mega-drop:hover .mega-menu {
        display: block;
    }

    /* Single Column Layout */
    .columns {
        grid-template-columns: 1fr;
    }

    .top-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens (Max 480px) */
@media (max-width: 480px) {
    .top-boxes {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}