﻿/* Dholpur News Network - Premium Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Mukta:wght@400;500;600;700;800&display=swap');

:root {
    --primary-red: #D32F2F;
    --primary-red-glow: rgba(211, 47, 47, 0.2);
    --primary-blue: #0B192C;
    --primary-blue-dark: #050C16;
    --accent-gold: #FFC107;
    --text-dark: #1E293B;
    --text-light: #F8FAFC;
    --text-muted: #475569;
    --bg-light: #F1F5F9;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --font-heading: 'Mukta', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-red {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.badge-blue {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.badge-gold {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
}

/* Header & Top bar */
.top-bar {
    background-color: var(--primary-blue-dark);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary-red);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
}

.weather-info, .date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-temp {
    font-weight: 700;
    color: var(--accent-gold);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-btn {
    background-color: var(--primary-red);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 10px var(--primary-red-glow);
    cursor: pointer;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* Main Brand Header */
.main-header {
    background-color: var(--bg-white);
    padding: 1rem 0;
    box-shadow: var(--card-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -1px;
}

.brand-title span {
    color: var(--primary-red);
}

.brand-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.header-ad {
    width: 468px;
    height: 60px;
    background: linear-gradient(135deg, #eef2f7 0%, #dbe3ed 100%);
    border: 1px dashed var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Navigation Menu */
.nav-bar {
    background-color: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-links li a {
    color: var(--text-light);
    display: block;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}

.nav-links li a:hover, .nav-links li.active a {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--primary-red);
    color: var(--accent-gold);
}

.admin-login-link {
    background-color: var(--primary-red);
    color: white !important;
    border-radius: 4px;
    margin: 0.5rem 0 0.5rem 1rem;
    padding: 0.5rem 1rem !important;
    border-bottom: none !important;
}

.admin-login-link:hover {
    background-color: #b71c1c !important;
    color: white !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
}

/* Breaking News Ticker */
.ticker-section {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: stretch;
    height: 44px;
    overflow: hidden;
}

.ticker-label {
    background-color: var(--primary-red);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 10px solid var(--primary-red);
}

.ticker-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    position: absolute;
    animation: tickerLoop 30s linear infinite;
    padding-left: 100%;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    padding-right: 3rem;
}

.ticker-item::before {
    content: '•';
    color: var(--primary-red);
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Main Hero Grid */
.hero-section {
    padding: 2rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
}

/* Main Hero Story (Left) */
.hero-main {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    position: relative;
}

.hero-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.hero-main-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.hero-main:hover img {
    transform: scale(1.03);
}

.hero-main-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 15;
}

.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: white;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-main-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-main-text {
    font-size: 0.95rem;
    color: #cccccc;
    margin-bottom: 1rem;
}

.read-more-btn {
    align-self: flex-start;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more-btn::after {
    content: '→';
    transition: var(--transition-fast);
}

.read-more-btn:hover::after {
    transform: translateX(3px);
}

/* Sidebar Headlines (Right) */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-title-bar {
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-heading {
    font-size: 1.3rem;
    position: relative;
}

.sidebar-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-red);
}

.sidebar-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 1rem;
    transition: var(--transition-normal);
    cursor: pointer;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.sidebar-card-img {
    width: 100px;
    height: 75px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dynamic Ads banner */
.ad-banner-full {
    background: linear-gradient(135deg, #eef2f7 0%, #dbe3ed 100%);
    border: 1px dashed var(--text-muted);
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

/* Category Grid & Tabs */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section-title {
    font-size: 1.6rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--bg-white);
    transition: var(--transition-fast);
}

.filter-tab.active, .filter-tab:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-color: var(--primary-blue);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.news-card-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.news-card:hover .news-card-img-wrapper img {
    transform: scale(1.05);
}

.news-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 5;
}

.news-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Gallery Section */
.video-section {
    background-color: var(--primary-blue-dark);
    color: var(--text-light);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.video-section .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.video-section .section-title {
    color: var(--text-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background-color: #0b192c;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-red);
}

.video-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.video-card:hover .video-thumbnail-wrapper img {
    transform: scale(1.03);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.video-card:hover .video-play-overlay {
    background-color: rgba(0,0,0,0.5);
}

.play-button-circle {
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.6);
    transition: var(--transition-fast);
}

.video-card:hover .play-button-circle {
    transform: scale(1.15);
    background-color: #ff3d3d;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid white;
    margin-left: 4px;
}

.video-card-content {
    padding: 1rem;
}

.video-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Middle Layout - News + Sidebar Split */
.content-split-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 2rem;
    padding: 1rem 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    border-left: 4px solid var(--primary-red);
    padding-left: 0.75rem;
    margin-bottom: 1.25rem;
}

/* WhatsApp join button */
.whatsapp-widget {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.whatsapp-widget h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.whatsapp-widget p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.whatsapp-join-btn {
    background-color: white;
    color: #128C7E;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.whatsapp-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

/* Trending widget list */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.trending-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
    font-family: var(--font-heading);
    line-height: 1;
}

.trending-item:nth-child(1) .trending-num { color: #f43f5e; }
.trending-item:nth-child(2) .trending-num { color: #fb7185; }
.trending-item:nth-child(3) .trending-num { color: #fda4af; }

.trending-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.trending-text:hover {
    color: var(--primary-red);
}

/* Footer Section */
footer {
    background-color: var(--primary-blue-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem 0;
    margin-top: 3rem;
    border-top: 5px solid var(--primary-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-about .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-about .footer-logo span {
    color: var(--primary-red);
}

.footer-about p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.social-circle:hover {
    background-color: var(--primary-red);
}

.footer-links-col h4 {
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col ul li a {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-links-col ul li a:hover {
    color: white;
    padding-left: 4px;
}

.app-dl-box {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.25rem;
    border-radius: 6px;
}

.app-dl-box p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.store-btn {
    display: block;
    background-color: #000;
    color: white;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.store-btn:hover {
    background-color: #111;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* Modals & Popups */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.video-modal-content {
    background-color: var(--primary-blue-dark);
    max-width: 800px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--primary-red);
}

.close-modal-btn {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    color: white;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 1010;
}

.modal-video-container {
    aspect-ratio: 16/9;
}

.modal-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-video-info {
    padding: 1.5rem;
    color: white;
}

.modal-video-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.modal-video-desc {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* News Article Detail Modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.article-modal-content {
    background-color: var(--bg-white);
    max-width: 750px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 0 auto;
    position: relative;
}

.article-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    z-index: 1005;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-modal-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-modal-body {
    padding: 2rem;
}

.article-modal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.article-modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.3;
    margin: 0.5rem 0;
}

.article-modal-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.article-modal-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    text-align: justify;
    white-space: pre-line;
}

/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */
.admin-body {
    background-color: var(--bg-light);
}

.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.login-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 400px;
    width: 100%;
    border-top: 5px solid var(--primary-red);
}

.login-logo {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.login-logo span {
    color: var(--primary-red);
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.2);
}

.btn-block {
    width: 100%;
}

.btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
    font-size: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn:hover {
    background-color: var(--primary-red);
}

.btn-danger {
    background-color: var(--primary-red);
}
.btn-danger:hover {
    background-color: #b71c1c;
}

/* Admin Dashboard layout */
.admin-navbar {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem 0;
}

.admin-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}
.admin-brand span {
    color: var(--primary-red);
}

.logout-btn {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}
.logout-btn:hover {
    background-color: var(--primary-red);
}

.admin-dashboard-container {
    padding: 2rem 0;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-blue);
}

.stat-card:nth-child(2) { border-left-color: var(--primary-red); }
.stat-card:nth-child(3) { border-left-color: var(--accent-gold); }

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-top: 0.25rem;
}

.admin-panels-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2rem;
}

.admin-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.admin-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.news-table-wrapper {
    overflow-x: auto;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.news-table th {
    background-color: var(--bg-light);
    padding: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--border-color);
}

.news-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.news-table tr:hover {
    background-color: #f8fafc;
}

.action-btn-group {
    display: flex;
    gap: 0.5rem;
}

.table-btn {
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}

.table-btn-delete {
    background-color: #fee2e2;
    color: #ef4444;
}
.table-btn-delete:hover {
    background-color: #fca5a5;
}

.error-message {
    color: var(--primary-red);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .content-split-layout {
        grid-template-columns: 1fr;
    }
    
    .header-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-blue-dark);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li a {
        padding: 0.75rem 1.25rem;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .nav-links li a:hover, .nav-links li.active a {
        border-left-color: var(--primary-red);
        background-color: rgba(255,255,255,0.02);
    }
    
    .admin-login-link {
        margin: 0.5rem 1.25rem;
    }
    
    .admin-panels-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-main-title {
        font-size: 1.4rem;
    }
}

/* ==========================================
   Fullscreen Background Slideshow & Glassmorphism UI
   ========================================== */

/* 1. Background Slider */
.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}
.bg-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}
.bg-slider .slide.active {
    opacity: 1;
}
.bg-slider .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 44, 0.65); /* Dark transparent overlay to ensure high text readability */
    z-index: 1;
    backdrop-filter: blur(2px); /* Subtle blur to blend background details nicely */
}

/* 2. Glassmorphism UI Theme Overrides */
html {
    background-color: #0f172a !important; /* Premium dark slate background as a solid fallback */
}
body:not(.admin-body) {
    background-color: transparent !important; /* Force transparent body on public site to let slider show through */
}
.bg-slider {
    background-color: #0f172a; /* Basal dark color under images */
}

/* White Frosted Glass Cards */
.ticker-section,
.hero-main,
.sidebar-card,
.news-card,
.sidebar-widget,
.profile-card,
.ad-card,
.article-modal-content {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.1) !important;
    transition: var(--transition-normal);
}

/* Hover effects for white glass cards */
.news-card:hover,
.sidebar-card:hover,
.profile-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(15, 23, 42, 0.15) !important;
}

/* Dark Glassmorphism for Video Cards (Ensures high contrast with white text) */
.video-card {
    background: rgba(11, 25, 44, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    transition: var(--transition-normal);
}
.video-card:hover {
    background: rgba(11, 25, 44, 0.85) !important;
    transform: translateY(-4px);
    border-color: var(--primary-red) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4) !important;
}

/* Dark Glassmorphism for Video Player Modal (Ensures high contrast for white titles/text) */
.video-modal-content {
    background: rgba(5, 12, 22, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7) !important;
}

/* Semi-transparent Glass Styling for Filter Tabs */
.filter-tab {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: var(--primary-blue) !important;
}
.filter-tab.active, .filter-tab:hover {
    background: var(--primary-blue) !important;
    color: var(--text-light) !important;
    border-color: var(--primary-blue) !important;
}

/* Option element within select dropdown should remain solid white for legibility */
#district-filter-select option {
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
}

/* Article modal close button glass aesthetic */
.article-modal-close {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Transparent / Blur elements */
.nav-bar {
    background: rgba(11, 25, 44, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Top bar transparency */
.top-bar {
    background-color: rgba(5, 12, 22, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-red);
}

/* Footer Transparency */
footer {
    background: rgba(11, 25, 44, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp widget semi-transparent gradient override */
.whatsapp-widget {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.82) 0%, rgba(18, 140, 126, 0.82) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Sub-page adjustments */
.profile-list li {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.tehsil-badge-grid span {
    background-color: rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

/* 3. Text Contrast & Readability Enhancements */
.trending-num {
    color: #64748b !important;
}

.footer-about p,
.footer-links-col ul li a,
.app-dl-box p,
.modal-video-desc {
    color: #cbd5e1 !important;
}

.footer-bottom {
    color: #cbd5e1 !important;
}

/* 4. Additional Transparent Layout Adjustments */
.main-header {
    background: transparent !important;
    box-shadow: none !important;
}

.video-section {
    background-color: rgba(5, 12, 22, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
