/* CSS Variables for Dainik Bhaskar Clone with Green Branding */
:root {
    --primary-color: #0F9D58;
    --secondary-color: #0B8043;
    --accent-color: #34A853;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --bg-light: #ffffff;
    --bg-page: #f8f9fa;
    --border-color: #e9ecef;
    --hover-bg: #e8f5e9;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.06);
    --font-sans: 'Outfit', 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Base Layout Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles */
.header-wrapper {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.header-wrapper.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 42px;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-color);
    gap: 8px;
}

.logo span.sun-icon {
    color: var(--accent-color);
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}
.nav-link.active {
    border-bottom: 2px solid var(--primary-color);
}

.nav-link i {
    font-size: 18px;
}

/* Utility Area */
.utility-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-trigger, .user-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
    transition: color 0.2s ease;
    padding: 8px;
    border-radius: 50%;
}

.search-trigger:hover, .user-trigger:hover {
    color: var(--primary-color);
    background-color: var(--hover-bg);
}

/* Language Selection Styling */
.lang-selector-wrapper {
    position: relative;
}
.lang-selector {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lang-selector:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Trending bar */
.trending-strip {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.trending-container {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.trending-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.trending-label {
    color: #d32f2f;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trending-item {
    background-color: #f1f3f4;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #3c4043;
    transition: all 0.2s ease;
}
.trending-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

/* Homepage Grid System */
.home-grid {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 24px;
    margin-top: 20px;
    align-items: start;
}

/* Left Category Sidebar */
.left-sidebar {
    position: sticky;
    top: 90px;
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #4c4c4c;
    transition: all 0.2s ease;
}

.sidebar-item a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-item a:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.sidebar-item.active a {
    background-color: var(--primary-color);
    color: white;
}

/* Center News Area */
.center-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Featured / Live News Card */
.live-news-card {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.live-badge {
    background-color: #d32f2f;
    color: white;
    padding: 2px 8px;
    font-weight: 800;
    font-size: 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.live-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.live-headline {
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-dark);
}

.live-headline a:hover {
    color: var(--primary-color);
}

.live-media-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background-color: #000;
    overflow: hidden;
}

.live-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.live-news-card:hover .live-media-wrapper img {
    transform: scale(1.03);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(15, 157, 88, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.live-news-card:hover .play-overlay {
    background-color: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Category news tabs / section blocks */
.section-title {
    font-size: 20px;
    font-weight: 800;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin-bottom: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Standard news card */
.news-card {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.news-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.news-card-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
}

.news-card:hover .news-card-title {
    color: var(--primary-color);
}

.news-card-meta {
    margin-top: auto;
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Horizontal List Cards */
.horizontal-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.horizontal-card {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
}

.horizontal-card:hover {
    box-shadow: var(--card-shadow);
}

.horizontal-img {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.horizontal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.horizontal-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-dark);
}
.horizontal-card:hover .horizontal-title {
    color: var(--primary-color);
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.google-follow-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.follow-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
}
.follow-btn:hover {
    background-color: #f1f3f4;
    border-color: #bdc1c6;
}

.ad-container {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.ad-label {
    font-size: 10px;
    color: #999;
    padding: 4px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.ad-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Column Widget */
.video-widget {
    background-color: #1a1a1a;
    color: white;
    border-radius: 8px;
    padding: 16px;
}

.video-widget-title {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-color);
    padding-left: 8px;
}

.video-widget-title a {
    font-size: 12px;
    color: var(--accent-color);
}

.video-item {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #2d2d2d;
    padding: 8px 0;
}
.video-item:last-child {
    border-bottom: none;
}

.video-thumb {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    background-color: rgba(15, 157, 88, 0.9);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* Footer Section */
.footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding: 40px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Single Post View Styles */
.article-container {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 24px;
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
}

.article-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.article-body {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.article-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* Search Overlay */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    z-index: 1000;
}

.search-content {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-input-group {
    display: flex;
    gap: 12px;
}

.search-input-group input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 16px;
    outline: none;
}
.search-input-group input:focus {
    border-color: var(--primary-color);
}

.search-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.search-submit:hover {
    background-color: var(--secondary-color);
}

/* Google Translate Override overrides */
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
    font-size: 0px !important;
}
.goog-te-gadget .goog-te-combo {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    outline: none;
    cursor: pointer;
    background-color: white;
    margin: 0;
}
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}

/* RESPONSIVE LAYOUT BREAKPOINTS */
@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: 200px 1fr;
    }
    .right-sidebar {
        display: none; /* Hide ads sidebar on tablets */
    }
}

@media (max-width: 768px) {
    .header-top {
        height: 60px;
    }
    .logo {
        font-size: 20px;
    }
    .nav-menu {
        display: none; /* Hide main horizontal nav list on mobile */
    }
    .home-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .left-sidebar {
        position: static;
        margin-bottom: 12px;
        overflow-x: auto;
    }
    .sidebar-menu {
        flex-direction: row;
        gap: 8px;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }
    .sidebar-item a {
        padding: 6px 12px;
        font-size: 13px;
    }
    .news-card-grid {
        grid-template-columns: 1fr;
    }
    .live-headline {
        font-size: 18px;
        padding: 12px 14px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
