@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Gurmukhi:wght@400;700&family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #c0392b; 
    --secondary-color: #2c3e50; 
    --dark-color: #1a1a1a;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', 'Noto Sans Gurmukhi', sans-serif; background-color: var(--light-bg); color: var(--dark-color); line-height: 1.6; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.flex-space { display: flex; justify-content: space-between; align-items: center; }

/* --- Top Bar & Header --- */
.top-bar { background: var(--dark-color); color: #ccc; font-size: 0.85rem; padding: 8px 0; border-bottom: 2px solid var(--primary-color); }
.main-header { background: var(--white); padding: 20px 0; }
.header-grid { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 20px; }
.logo h1 { font-size: 2.5rem; color: var(--secondary-color); font-weight: 700; }
.logo h1 span { color: var(--primary-color); }
.logo p { font-size: 0.95rem; color: #666; margin-top: -5px; }

/* AdSense Box */
.adsense-banner-top { background: #ebebeb; border: 1px dashed #bbb; height: 90px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }
.ad-label { position: absolute; top: 2px; left: 5px; font-size: 0.65rem; color: #999; text-transform: uppercase; }

/* --- Navigation Bar (Desktop) --- */
.navbar { background: var(--secondary-color); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.nav-links { display: flex; list-style: none; }
.nav-links li a { color: var(--white); text-decoration: none; padding: 15px 20px; display: block; font-weight: 600; transition: var(--transition); }
.nav-links li a:hover, .nav-links li a.active { background: var(--primary-color); }

/* Dropdown Menu CSS for Desktop */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: 0 8px 16px rgba(0,0,0,0.1); list-style: none; display: none; min-width: 200px; }
.dropdown-menu li a { color: var(--dark-color); padding: 12px 20px; border-bottom: 1px solid #eee; }
.dropdown-menu li a:hover { background: #f4f4f4; color: var(--primary-color); }
.dropdown:hover .dropdown-menu { display: block; }

/* --- Breaking News Ticker --- */
.ticker-wrap { position: relative; background: #f1f1f1; height: 40px; overflow: hidden; border-bottom: 1px solid #ddd; width: 100%; }
.ticker-title { position: absolute; left: 0; top: 0; height: 100%; background: var(--primary-color); color: var(--white); padding: 0 20px; line-height: 40px; font-weight: bold; z-index: 99; box-shadow: 4px 0 8px rgba(0,0,0,0.2); }
.ticker { position: absolute; top: 0; left: 0; height: 100%; line-height: 40px; display: flex; white-space: nowrap; animation: marquee 80s linear infinite; z-index: 1; }
.ticker-item { padding: 0 40px; color: var(--dark-color); font-weight: 600; }
.ticker-item i { color: var(--primary-color); margin-right: 8px; }
@keyframes marquee { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* --- Content Layout --- */
.main-layout { display: grid; grid-template-columns: 2.5fr 1fr; gap: 30px; margin-top: 30px; margin-bottom: 50px; }
.section-title { border-left: 5px solid var(--primary-color); padding-left: 10px; margin-bottom: 20px; color: var(--secondary-color); }
.margin-top-xl { margin-top: 40px; }

/* --- News Cards Grids --- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card { background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: relative; transition: var(--transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-content { padding: 15px; }
.news-card-content h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--secondary-color); }
.news-card-content p { font-size: 0.9rem; color: #555; margin-bottom: 15px; }
.news-time { font-size: 0.75rem; color: #999; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 4px; color: white; font-size: 0.75rem; font-weight: bold; }
.badge-mansa { background: var(--primary-color); }
.badge-rss { background: #27ae60; }

/* --- Sidebar Styling --- */
.adsense-sidebar { background: #ebebeb; border: 1px dashed #bbb; height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; margin-bottom: 30px; }
.trending-box { background: var(--white); padding: 20px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-top: 4px solid var(--primary-color); }
.trending-box h3 { margin-bottom: 15px; color: var(--secondary-color); }
.trending-list { list-style: none; }
.trending-list li { border-bottom: 1px solid #eee; padding: 10px 0; }
.trending-list li a { text-decoration: none; color: #444; font-size: 0.95rem; transition: var(--transition); }
.trending-list li a:hover { color: var(--primary-color); }

/* --- Footer & Modals --- */
.main-footer { background: var(--dark-color); color: #bbb; padding: 40px 0 20px 0; font-size: 0.9rem; }
.footer-grid-links { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.footer-grid-links h3 { color: white; margin-bottom: 15px; }
.footer-links-list { list-style: none; }
.footer-links-list li a { color: #aaa; text-decoration: none; display: block; margin-bottom: 8px; transition: 0.3s; }
.footer-links-list li a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; margin-top: 20px; font-size: 0.8rem; }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content { background-color: white; margin: 10% auto; padding: 30px; width: 50%; border-radius: 6px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.close { float: right; font-size: 1.8rem; font-weight: bold; cursor: pointer; color: #555; transition: 0.3s; }
.close:hover { color: var(--primary-color); }
.animate-fade { animation: fadeInUp 0.6s ease-in-out forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* --- Make Entire News Card Clickable --- */
.news-card {
    position: relative;
    cursor: pointer;
}

/* This stretches the link over the entire image and box */
.news-card-content h3 a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Keep the category badge clickable and above the link overlay */
.badge {
    z-index: 11;
}
/* =========================================
   MOBILE RESPONSIVE DESIGN (SWIPE TABS ONLY)
   ========================================= */
@media screen and (max-width: 768px) {
    .header-grid { grid-template-columns: 1fr; text-align: center; gap: 15px; }
    .navbar .container { padding: 0 5px; }
    
    /* Horizontal Scrolling Nav Bar (Swipeable) */
    .nav-links { 
        display: flex !important; 
        flex-direction: row !important; 
        flex-wrap: nowrap !important; 
        overflow-x: auto !important; 
        -webkit-overflow-scrolling: touch; 
        padding: 15px 0 !important;
        white-space: nowrap !important;
        align-items: center !important;
    }
    /* Hide scrollbar for a clean app-like look */
    .nav-links::-webkit-scrollbar { display: none; }
    
    .nav-links > li { 
        display: inline-block !important; 
        margin-right: 8px !important;
    }
    
    /* Beautiful Capsule Buttons */
    .nav-links li a { 
        padding: 8px 18px !important; 
        background: rgba(255, 255, 255, 0.1) !important; 
        border: 1px solid rgba(255, 255, 255, 0.3) !important; 
        border-radius: 20px !important; 
        font-size: 0.9rem !important;
        color: #ffffff !important; /* Text Color White */
        text-decoration: none !important;
        display: inline-block !important;
    }
    
    /* Active Button Color */
    .nav-links li a.active { 
        background: var(--primary-color) !important; 
        border-color: var(--primary-color) !important; 
        color: #ffffff !important;
    }
    
    /* Layout Adjustments */
    .main-layout { grid-template-columns: 1fr; margin-top: 15px; gap: 20px; }
    .news-grid { grid-template-columns: 1fr; gap: 15px; }
    .adsense-banner-top { height: auto; min-height: 80px; padding: 10px; }
    .adsense-sidebar { height: 250px; }
    .footer-grid-links { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .modal-content { width: 90%; margin: 20% auto; padding: 20px; }
}
/* =========================================
   LATEST MODERN ANIMATIONS & HOVER EFFECTS 
   ========================================= */

/* 1. Global Smooth Transition (ਸਾਰੀਆਂ ਚੀਜ਼ਾਂ ਨੂੰ ਸਮੂਥ ਬਣਾਉਣ ਲਈ) */
.nav-links li a, 
.news-card, 
.news-card img, 
.badge, 
.trending-list li a, 
.btn-publish {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 2. Modern News Card Hover (Subtle Lift & Inner Image Zoom) */
.news-card {
    position: relative;
    overflow: hidden;
}
.news-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}
.news-card img {
    transform: scale(1);
    backface-visibility: hidden;
}
.news-card:hover img {
    transform: scale(1.05) !important; /* ਫੋਟੋ ਜ਼ੂਮ ਇਫੈਕਟ */
}

/* 3. Desktop Navigation Line Expansion Effect */
@media screen and (min-width: 769px) {
    .nav-links li a {
        position: relative;
    }
    .nav-links li a::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--white);
        transition: all 0.3s ease-in-out;
        transform: translateX(-50%);
    }
    .nav-links li a:hover::after {
        width: 70%; /* ਮਾਊਸ ਲੈ ਕੇ ਜਾਣ ਤੇ ਲਾਈਨ ਸੈਂਟਰ ਤੋਂ ਖੁੱਲ੍ਹੇਗੀ */
    }
}

/* 4. Breaking News Badge Pulse Glow Effect */
.ticker-title {
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% {
        background-color: #c0392b;
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.7);
    }
    70% {
        background-color: #e74c3c;
        box-shadow: 0 0 0 10px rgba(192, 57, 43, 0);
    }
    100% {
        background-color: #c0392b;
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);
    }
}

/* 5. Premium Page Load Animation (Fade In Up) */
.animate-fade {
    animation: smoothFadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
}
@keyframes smoothFadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. Ticker Bolt Icon Spin on Hover */
.ticker-item:hover i {
    animation: boltSpin 0.6s ease-in-out;
}
@keyframes boltSpin {
    100% { transform: rotate(360deg); }
}

/* 7. Trending List Link Hover Glow */
.trending-list li a:hover {
    padding-left: 5px;
    color: var(--primary-color) !important;
}