/* --- GLOBAL RESET --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    list-style: none !important; 
    text-decoration: none; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: #fdfdfd; 
    color: #111; 
    line-height: 1.6;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- WEATHER STRIP --- */
.weather-strip { 
    background: #f1f1f1; 
    padding: 8px 0; 
    font-size: 12px; 
    font-weight: bold; 
    border-bottom: 1px solid #ddd; 
    color: #555; 
}

.flex-between { 
    display: flex; 
    justify-content: space-between; 
}

/* --- TICKER --- */
.ticker { 
    background: #000; 
    color: #fff; 
    padding: 10px 0; 
    display: flex; 
    align-items: center; 
}

.ticker-label { 
    background: #ed1c24; 
    padding: 2px 10px; 
    font-size: 11px; 
    font-weight: 900; 
    margin-right: 15px; 
}

/* --- LOGO AREA --- */
.header-main { 
    padding: 30px 0; 
    text-align: center; 
    background: #fff; 
}

.header-main h1 { 
    font-size: 50px; 
    font-family: serif; 
    letter-spacing: -2px; 
}

.header-main h1 span { 
    color: #ed1c24; 
}

/* --- NAVIGATION MENU (FIXED) --- */
nav { 
    background: #fff; 
    border-top: 1px solid #eee; 
    border-bottom: 2px solid #ed1c24; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
}

.menu-links { 
    display: flex !important; 
    gap: 25px; 
    margin: 0; 
    padding: 0;
}

.menu-links li { 
    display: inline-block; 
}

.menu-links a { 
    color: #111; 
    font-weight: 800; 
    font-size: 14px; 
    text-transform: uppercase; 
    transition: 0.3s; 
}

.menu-links a:hover { 
    color: #ed1c24; 
}

.admin-link { 
    color: #ed1c24 !important; 
}

/* --- SEARCH BOX --- */
.search-box { 
    display: flex; 
    background: #f1f1f1; 
    border-radius: 20px; 
    padding: 5px 15px; 
    border: 1px solid #ddd; 
}

.search-box input { 
    border: none; 
    background: transparent; 
    outline: none; 
    width: 150px; 
    font-size: 13px; 
}

.search-box button { 
    border: none; 
    background: none; 
    cursor: pointer; 
    color: #666; 
}

/* --- LAYOUT GRID --- */
.main-grid { 
    display: grid; 
    grid-template-columns: 8fr 4fr; 
    gap: 40px; 
    margin: 40px auto; 
}

/* --- NEWS POSTS --- */
.post-card { 
    background: #fff; 
    padding-bottom: 30px; 
    margin-bottom: 40px; 
    border-bottom: 1px solid #eee; 
}

.post-card img { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    border-radius: 4px; 
}

.post-card h2 { 
    font-size: 32px; 
    margin: 15px 0; 
    font-family: serif; 
    line-height: 1.2; 
}

.post-card h2 a { 
    color: #000; 
}

.post-card h2 a:hover { 
    color: #ed1c24; 
}

/* --- SIDEBAR --- */
aside { 
    position: sticky; 
    top: 100px; 
    height: fit-content; 
}

.sidebar-widget { 
    background: #fff; 
    padding: 25px; 
    border: 1px solid #eee; 
    border-radius: 4px; 
}

.sidebar-widget h4 { 
    border-bottom: 2px solid #ed1c24; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
}

/* --- PAGINATION --- */
.pagination { 
    text-align: center; 
    margin: 40px 0; 
}

.pagination a { 
    padding: 10px 18px; 
    border: 1px solid #ddd; 
    background: #fff; 
    color: #333; 
    font-weight: bold; 
    margin: 0 5px; 
    border-radius: 4px; 
}

.pagination a.active { 
    background: #ed1c24; 
    color: #fff; 
    border-color: #ed1c24; 
}

/* --- UPDATED PROFESSIONAL FOOTER --- */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.footer-box h4 {
    color: #ed1c24;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 900;
}

.footer-box p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ed1c24;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    background: #333;
    color: #fff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #ed1c24;
}

.subscribe-box {
    display: flex;
    margin-top: 15px;
}

.subscribe-box input {
    background: #333;
    border: none;
    padding: 10px;
    color: #fff;
    width: 70%;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.subscribe-box button {
    background: #ed1c24;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    font-size: 12px;
    color: #777;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- RESPONSIVE SETTINGS (Phone, Tablet, Laptop) --- */

/* 1. TABLET KE LIYE (Laptops se thoda chhota screen) */
@media (max-width: 1024px) {
    .container {
        max-width: 95%; /* Screen ke kinaro se thodi jagah chhod dega */
    }
    .header-main h1 {
        font-size: 40px; /* Logo thoda chhota ho jayega */
    }
}

/* 2. PHONE KE LIYE (Mobile screens) */
@media (max-width: 768px) {
    /* Main Layout ko single column mein badal dega */
    .main-grid {
        grid-template-columns: 1fr; /* Sidebar niche chala jayega */
        gap: 20px;
    }

    /* Navigation Menu ko ek line se hata kar thoda adjust karega */
    .nav-container {
        flex-direction: column; /* Search box niche aa jayega */
        gap: 15px;
    }

    .menu-links {
        flex-wrap: wrap; /* Links agar zyada hain toh dusri line mein aa jayenge */
        justify-content: center;
        gap: 10px;
    }

    .menu-links a {
        font-size: 12px; /* Chhote phone par font thoda chhota */
    }

    /* News Photos ki height adjust karega */
    .post-card img {
        height: 250px; 
    }

    .post-card h2 {
        font-size: 24px; /* Headline thodi chhoti taaki screen par fit aaye */
    }

    /* Header/Logo ko adjust karega */
    .header-main h1 {
        font-size: 32px;
    }

    /* Footer columns ko ek ke niche ek karega */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .subscribe-box {
        justify-content: center;
    }
}

/* 3. BAHUT CHHOTE PHONE KE LIYE */
@media (max-width: 480px) {
    .weather-strip {
        display: none; /* Bahut chhote phone par weather strip hata dete hain jagah bachane ke liye */
    }
    .post-card img {
        height: 200px;
    }
}