@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@0;1&family=Noto+Sans+Devanagari:wght@300;400;500;600;700;900&display=swap');

/* Shared CSS & Theme Variables */
:root {
    --bg: #000000;
    --bg-matte: #0a0a0a;
    --bg-card: rgba(18, 18, 18, 0.85);
    --accent: #E1AD01;
    --accent-blue: #58CCED;
    --accent-glow: rgba(225, 173, 1, 0.35);
    --text-main: #ffffff;
    --text-muted: #d1d1d1; /* Brightened for better visibility */
    --border: rgba(255, 255, 255, 0.15);
    --nav-bg: rgba(0, 0, 0, 0.88);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: rgba(0, 0, 0, 0.7);
    --hero-overlay: radial-gradient(circle, rgba(0,0,0,0.5) 0%, transparent 75%);
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-matte: #f4f4f4;
    --bg-card: rgba(255, 255, 255, 0.95);
    --accent: #b88a00;
    --accent-blue: #007bbd;
    --accent-glow: rgba(184, 138, 0, 0.2);
    --text-main: #1a1a1a; /* Darker for better Day Mode legibility */
    --text-muted: #555555; /* Better contrast for captions */
    --border: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.96);
    --shadow: rgba(0, 0, 0, 0.1);
    --hero-overlay: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 75%);
}

/* Global Legibility Enhancement */
html {
    background: var(--bg);
    color: var(--text-main);
}

body {
    background: transparent;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

.article-body p {
    text-shadow: none; /* Keep article body text sharp and clean */
    line-height: 1.9; /* Slightly increased for better readability */
    margin-bottom: 1.8rem;
}

/* ── NAVIGATION ── */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg) !important;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0 2rem !important;
    transition: background 0.4s;
    display: flex !important;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

#headerBlackHole {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 1.7rem !important;
    text-decoration: none;
    color: var(--text-main) !important;
    font-weight: bold;
    white-space: nowrap;
}

.logo span {
    color: var(--accent) !important;
    font-family: 'Noto Sans Devanagari', sans-serif !important;
}

.menu-tabs {
    display: flex !important;
    gap: 18px !important;
    list-style: none !important;
    margin-left: 28px !important;
}

.menu-tabs li a {
    text-decoration: none !important;
    color: var(--text-main) !important;
    font-weight: 500 !important;
    font-size: 0.92rem !important;
    opacity: 0.8;
    transition: var(--transition);
    white-space: nowrap;
}

.menu-tabs li a:hover, .menu-tabs li a.active {
    color: var(--accent) !important;
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
    transition: var(--transition);
}

#theme-toggle:hover {
    background: var(--accent);
    color: #000;
}

.subscribe-nav-btn {
    background: var(--accent);
    border: none;
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    color: #000;
    font-size: 0.85rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
    transition: var(--transition);
    white-space: nowrap;
}

.subscribe-nav-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ── SEARCH BAR ── */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 15px;
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    position: absolute;
    right: 40px;
    outline: none;
}

.search-input.expanded {
    width: 200px;
    opacity: 1;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DROPDOWN MENU ── */
.mobile-menu {
    display: none;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 999;
    left: 0;
}

.mobile-menu.open {
    max-height: 80vh;
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-menu ul {
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mobile-menu ul li a {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a:hover { color: var(--accent); padding-left: 8px; }

/* ── NEWSLETTER ── */
.newsletter-section {
    background: var(--bg-matte);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 3rem 2rem; /* Compact padding */
    text-align: center;
    margin: 2.5rem auto; /* Compact margin to match sections */
    max-width: 1100px;
    position: relative;
    z-index: 10;
}

.newsletter-section h2 {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--text-main);
    margin-bottom: 0;
}

.newsletter-subtitle {
    color: var(--text-muted);
    margin: 0.8rem 0 0;
}

.newsletter-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 1.8rem auto;
    max-width: 600px;
    flex-wrap: wrap;
}

.newsletter-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    flex: 1;
    min-width: 220px;
    font-size: 0.95rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
    outline: none;
    transition: border 0.3s;
}

.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-muted); }

.subscribe-btn {
    background: var(--accent); /* Harmonized with brand Gold */
    color: #000;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
    transition: var(--transition);
}

.subscribe-btn:hover { opacity: 0.85; transform: translateY(-2px); }

.newsletter-footer {
    color: var(--accent-blue);
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ── FOOTER ── */
footer {
    background: var(--bg-matte);
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem 2rem; /* Compact top padding */
    position: relative;
    z-index: 10;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-col h4 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-top: 0;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .menu-tabs { display: none !important; }
    .hamburger { display: flex !important; }
    .mobile-menu { display: block !important; }
}

@media (max-width: 768px) {
    .nav-inner { height: 62px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .subscribe-nav-btn { display: none; }
    .newsletter-section { margin: 2rem 1.5rem; border-radius: 20px; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.4rem !important; }
    #headerBlackHole { width: 40px; height: 40px; }
}

/* ── COMMON LAYOUT ── */
.hero {
    min-height: 50vh; /* Default for category pages */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--hero-overlay);
}

/* Homepage specific "Perfect Anchor" height */
.home-page .hero {
    height: 100vh;
    padding: 70px 2rem 0;
}

.ticker-wrap {
    margin-top: -45px; /* Pull ticker up into the 100vh fold */
    position: relative;
    z-index: 20;
}

.hero h1 {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: clamp(2.4rem, 7vw, 4.8rem); /* Slightly more responsive */
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 4px 30px var(--shadow);
    color: var(--text-main);
}

.hero h1 .hindi-line {
    display: block;
    color: var(--accent);
    font-size: 0.62em;
    margin-top: 14px;
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero p {
    color: var(--text-muted);
    margin-top: 2rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    font-weight: 500;
    text-shadow: 0 2px 10px var(--shadow);
}

.section {
    padding: 2.5rem 2rem 0; /* Brought sections closer to each other */
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    color: var(--text-main);
    text-shadow: 0 2px 10px var(--shadow);
}

/* ── CARDS & GRIDS ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; /* Compact grid gap */
}

.clickable-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="light"] .clickable-card {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.clickable-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 8px 35px var(--accent-glow);
}

.card-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.8rem;
}

/* ── PROGRESS BARS ── */
.progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 0.8rem;
    overflow: hidden;
}

[data-theme="light"] .progress-bar {
    background: rgba(0, 0, 0, 0.08);
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 1.8s ease;
    width: 0;
    border-radius: 10px;
}

/* ── FEATURED GRID ── */
.featured-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr; /* Balanced main and side columns */
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr; /* Stack on mobile/tablet */
    }
    .side-news {
        grid-template-rows: auto;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.featured-main {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.featured-img {
    height: 320px; /* Refined main image height */
    background: url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?auto=format&fit=crop&q=80&w=1000') center/cover no-repeat;
}

.featured-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .tag {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    margin: 10px 0 8px;
    line-height: 1.3;
    color: var(--text-main);
    text-shadow: 0 2px 10px var(--shadow);
}

.featured-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

.side-news {
    display: grid;
    grid-template-rows: repeat(3, 1fr); /* 3 news perfectly fit side height */
    gap: 1rem;
}

.side-news .clickable-card {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-news h4 {
    font-size: 0.95rem; /* Slightly smaller for tighter grid */
    line-height: 1.4;
    margin: 0;
}

/* ── UTILITIES ── */
.highlight-blue {
    color: var(--accent-blue);
    font-weight: 700;
}

.read-more-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more-btn:hover {
    background: var(--accent);
    color: #000;
}

.full-article-content {
    display: none;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    animation: fadeUp 0.4s ease;
    text-align: left;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    transform: scale(1.1);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

    .side-news {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .side-news .clickable-card {
        flex: 1;
        min-width: 200px;
    }
}

/* ── LEGAL CONTENT ── */
.legal-content {
    max-width: 850px;
    margin: 8rem auto 6rem;
    padding: 0 2rem;
    line-height: 1.8;
}

.legal-content h1 {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--text-main);
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ── TAGS ── */
.tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
/* ── UTILITIES ── */
.loading-box {
    text-align: center;
    padding: 3rem;
    opacity: 0.5;
}

.text-muted-mt {
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.text-accent-blue-mt {
    color: var(--accent-blue);
    font-weight: 700;
    margin-top: 0.5rem;
}

.support-link {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.qr-img-large {
    width: 100%;
    border-radius: 15px;
    margin: 1.5rem 0;
    border: 5px solid #fff;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    cursor: pointer;
    border: 1px solid var(--border);
    background: none;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
}

.upi-display {
    margin-top: 0.5rem;
    font-family: monospace;
    opacity: 0.8;
    color: var(--text-main);
}

.support-confirm-btn {
    background: var(--accent);
    color: #000 !important;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
}

.external-pay-link-btn {
    display: none;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: none;
}

/* ── UTILITIES ── */
.loading-box {
    text-align: center;
    padding: 3rem;
    opacity: 0.5;
}

.text-muted-mt {
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.text-accent-blue-mt {
    color: var(--accent-blue);
    font-weight: 700;
    margin-top: 0.5rem;
}

.support-link {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.qr-img-large {
    width: 100%;
    border-radius: 15px;
    margin: 1.5rem 0;
    border: 5px solid #fff;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    cursor: pointer;
    border: 1px solid var(--border);
    background: none;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
}

.upi-display {
    margin-top: 0.5rem;
    font-family: monospace;
    opacity: 0.8;
    color: var(--text-main);
}

.support-confirm-btn {
    background: var(--accent);
    color: #000 !important;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
}

.side-news-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.footer-support-p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-content-main {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    padding: 2.5rem;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-title {
    color: var(--accent);
}

.no-decoration {
    text-decoration: none;
}

.center-loading { text-align: center; padding: 3rem; opacity: 0.5; }
.text-muted { color: var(--text-muted) !important; }
.text-accent-bold { color: var(--accent) !important; font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.opacity-50 { opacity: 0.5; }

/* ── ABOUT PAGE ── */
.about-section {
    max-width: 900px;
    margin: 0 auto 6rem;
    text-align: center;
}

.mission-vision-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mission-vision-card {
    padding: 2.5rem;
    text-align: left;
}

.mission-vision-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.support-section {
    max-width: 900px;
    margin: 0 auto 6rem;
    text-align: center;
}

.support-card {
    margin: 0;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 40px;
    box-shadow: 0 0 30px var(--accent-glow);
}

.support-card h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.support-card p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.support-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}


.about-text-extra {
    margin-top: 2rem;
}


