@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary: #002B5B; /* Navy Blue */
    --accent: #D4AF37; /* Gold */
    --bg: #F5F7FA;
    --white: #ffffff;
    --text: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Open Sans', sans-serif; background: var(--bg); color: var(--text); display: flex; flex-direction: column; min-height: 100vh; line-height: 1.8; }
.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }

/* Yahan position: relative add kiya hai taake button lock ho sake */
.nav-container { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1150px; margin: auto; }

nav ul { list-style: none; display: flex; gap: 25px; align-items: center; }
nav a { text-decoration: none; color: var(--primary); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px; }
.btn-cta { background: var(--accent); color: #fff !important; padding: 10px 20px; border-radius: 4px; }

/* HERO SECTION (Home Page) */
.hero-section { background: var(--primary); color: var(--white); padding: 70px 20px; text-align: center; border-bottom: 5px solid var(--accent); }
.hero-content h1 { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; margin-bottom: 15px; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; }

/* LAYOUT: Left Article + Right Sidebar */
.page-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin: 40px auto; align-items: start; }

/* MAIN CONTENT BOX */
.content-box { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); border-top: 5px solid var(--primary); }
.main-title { font-family: 'Montserrat', sans-serif; color: var(--primary); font-size: 2.2rem; line-height: 1.3; margin-bottom: 10px; }
.gold-line { height: 4px; width: 70px; background: var(--accent); display: block; margin-bottom: 25px; }
.meta-data { color: #666; font-size: 0.95rem; margin-bottom: 15px; display: flex; gap: 10px; font-weight: 600; }

.text-content { font-size: 1.1rem; color: #333; }
.text-content h2 { color: var(--primary); margin-top: 35px; margin-bottom: 15px; font-family: 'Montserrat', sans-serif; font-size: 1.6rem; }
.text-content h3 { color: #004080; margin-top: 20px; font-weight: bold; font-size: 1.3rem; }
.text-content p { margin-bottom: 20px; }
.text-content ul { background: #f8f9fa; padding: 20px 20px 20px 40px; border-left: 4px solid var(--accent); margin-bottom: 20px; }

/* SIDEBAR */
.sidebar h3 { font-family: 'Montserrat', sans-serif; color: var(--primary); font-size: 1.3rem; border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; }
.side-card { background: var(--white); padding: 15px; margin-bottom: 15px; border-radius: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); border-left: 4px solid var(--accent); }
.side-card a { text-decoration: none; color: var(--primary); font-weight: 700; font-size: 0.95rem; line-height: 1.4; display: block; }
.side-card span { font-size: 0.8rem; color: #888; display: block; margin-bottom: 5px; }
.ad-space { background: #e9ecef; height: 250px; display: flex; align-items: center; justify-content: center; color: #999; margin-top: 20px; border-radius: 4px; }

/* FOOTER */
footer { background: #001A36; color: #ccc; padding: 50px 0 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: var(--accent); font-family: 'Montserrat', sans-serif; margin-bottom: 15px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }

/* --- BUTTON ABSOLUTE POSITIONING (100% RIGHT SIDE FIX) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--primary);
    cursor: pointer;
    position: absolute; /* Fixes button exactly on the right */
    right: 20px;
    top: 12px;
}

/* --- MOBILE RESPONSIVE & TOGGLE MENU --- */
@media (max-width: 768px) {
    .nav-container { 
        display: block; /* Disable flex on mobile so it doesn't push button */
        padding: 15px 20px;
    }
    
    .menu-toggle { 
        display: block; 
    }
    
    /* Hide nav menu wrapper by default */
    nav#main-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    /* Show when toggled via JS */
    nav#main-nav.active {
        display: block;
    }
    
    nav ul { 
        display: flex; 
        flex-direction: column; 
        width: 100%; 
        background: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-radius: 8px;
        border-top: 3px solid var(--accent);
    }
    
    nav ul li { text-align: center; margin-bottom: 20px; width: 100%; }
    nav ul li:last-child { margin-bottom: 0; }

    /* Page Layout Adjustments for Mobile */
    .page-layout, .articles-grid { grid-template-columns: 1fr; }
    .content-box { padding: 25px; }
    .main-title { font-size: 1.8rem; }
}

/* --- ALL ARTICLES GRID PAGE --- */
.articles-page-title { text-align: center; margin-bottom: 40px; }
.articles-page-title h1 { font-family: 'Montserrat', sans-serif; color: var(--primary); font-size: 2.5rem; margin-bottom: 10px; }
.articles-page-title .gold-line { margin: 0 auto; height: 4px; width: 80px; background: var(--accent); }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.grid-box { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; border-top: 4px solid var(--primary); display: flex; flex-direction: column; }
.grid-box:hover { transform: translateY(-8px); border-top: 4px solid var(--accent); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.box-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.box-date { font-size: 0.85rem; color: #888; margin-bottom: 10px; display: block; font-weight: 600; }
.box-title { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; margin-bottom: 15px; line-height: 1.4; }
.box-title a { text-decoration: none; color: var(--primary); transition: 0.3s; }
.box-title a:hover { color: var(--accent); }
.box-summary { font-size: 0.95rem; color: #555; margin-bottom: 20px; flex-grow: 1; line-height: 1.6; }

.read-more-btn { text-align: center; background: #f8f9fa; color: var(--primary); padding: 15px; text-decoration: none; font-weight: 700; font-size: 0.95rem; border-top: 1px solid #eee; transition: 0.3s; }
.read-more-btn:hover { background: var(--primary); color: #fff; }

/* Pagination (Page 1, 2, 3) */
.pagination { display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; flex-wrap: wrap; }
.pagination a { padding: 10px 18px; background: var(--white); color: var(--primary); border: 1px solid #ddd; text-decoration: none; border-radius: 4px; font-weight: bold; transition: 0.3s; }
.pagination a:hover, .pagination a.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Mobile & Tablet Responsive */
@media (max-width: 992px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .articles-grid { grid-template-columns: 1fr; } }