/* ═══════════════════════════════════════════════════
   Course123.in — Main Stylesheet
   Mobile First | Hindi Font | SEO Optimized
   ═══════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────── */
:root {
    --primary:    #4f46e5;
    --primary-dk: #4338ca;
    --secondary:  #0f172a;
    --accent:     #f59e0b;
    --success:    #10b981;
    --danger:     #ef4444;
    --bg:         #ffffff;
    --bg-alt:     #f8fafc;
    --text:       #1e293b;
    --text-muted: #64748b;
    --border:     #e2e8f0;
    --radius:     10px;
    --radius-sm:  6px;
    --shadow:     0 2px 12px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 24px rgba(0,0,0,0.12);
    --max-width:  1200px;
    --font-hindi: 'Hind', 'Noto Sans Devanagari', sans-serif;
    --font-head:  'Poppins', 'Hind', sans-serif;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }

/* ── Base Typography ──────────────────────────────── */
body {
    font-family: var(--font-hindi);
    color: var(--text);
    line-height: 1.75;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    line-height: 1.3;
    color: var(--secondary);
    font-weight: 700;
}
h1 { font-size: clamp(22px, 5vw, 36px); }
h2 { font-size: clamp(18px, 4vw, 28px); margin-top: 2rem; margin-bottom: .75rem; }
h3 { font-size: clamp(16px, 3vw, 22px); margin-top: 1.5rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .25rem; }

/* ── Utilities ────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section-title { font-size: clamp(18px, 3.5vw, 26px); margin-bottom: 20px; color: var(--secondary); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.see-all { font-size: 14px; color: var(--primary); font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* ── Skip Link ────────────────────────────────────── */
.skip-link {
    position: absolute; top: -100%; left: 0;
    background: var(--primary); color: white;
    padding: 8px 16px; z-index: 9999; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ── Reading Progress ─────────────────────────────── */
#reading-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999; width: 0%; transition: width 0.15s ease;
    border-radius: 0 2px 2px 0;
}

/* ══ HEADER ══════════════════════════════════════════ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-spacer { height: 65px; }

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

.site-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--secondary);
}
.logo-icon { font-size: 28px; }
.logo-text strong {
    display: block; font-size: 20px; font-family: var(--font-head);
    line-height: 1.1;
}
.logo-text small { font-size: 11px; color: var(--text-muted); display: block; }
.logo-accent { color: var(--primary); }

/* Desktop Nav */
.main-nav { display: none; }
@media (min-width: 1024px) {
    .main-nav { display: flex; }
    .main-nav ul { display: flex; gap: 4px; list-style: none; align-items: center; }
    .main-nav a {
        display: block; padding: 8px 12px; border-radius: var(--radius-sm);
        font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap;
        transition: background .15s, color .15s;
    }
    .main-nav a:hover { background: var(--bg-alt); color: var(--primary); }
    .nav-cta a { background: var(--primary); color: white !important; }
    .nav-cta a:hover { background: var(--primary-dk) !important; }

    /* Dropdown */
    .has-dropdown { position: relative; }
    .dropdown {
        display: none; position: absolute; top: calc(100% + 4px); left: 0;
        background: white; border: 1px solid var(--border); border-radius: var(--radius);
        box-shadow: var(--shadow-md); min-width: 200px; z-index: 100;
    }
    .dropdown li { list-style: none; }
    .dropdown a { padding: 10px 16px; display: block; font-size: 13px; }
    .has-dropdown:hover .dropdown { display: block; }
}

/* Hamburger */
.hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 1024px) { .hamburger { display: none; } }

/* Mobile Menu */
.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
    background: white; width: min(320px, 85vw); height: 100%;
    overflow-y: auto; padding: 16px 0; box-shadow: var(--shadow-md);
}
.mobile-menu ul { list-style: none; }
.mobile-menu a {
    display: block; padding: 12px 20px; font-size: 15px; color: var(--text);
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { background: var(--bg-alt); color: var(--primary); }

/* ══ BREAKING TICKER ═════════════════════════════════ */
.breaking-ticker {
    background: var(--secondary); color: white;
    display: flex; align-items: center; overflow: hidden; height: 36px;
}
.ticker-label {
    background: var(--danger); padding: 0 14px; height: 100%;
    display: flex; align-items: center; font-size: 12px; font-weight: 700;
    white-space: nowrap; flex-shrink: 0;
}
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-items {
    display: flex; white-space: nowrap;
    animation: ticker 30s linear infinite;
}
.ticker-item {
    color: rgba(255,255,255,0.85); font-size: 13px; padding: 0 32px;
    flex-shrink: 0;
}
.ticker-item:hover { color: var(--accent); }
.ticker-item::before { content: '•'; margin-right: 12px; color: var(--accent); }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ══ HERO SECTION ════════════════════════════════════ */
.hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fef9ee 100%);
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}
.hero-content { max-width: 680px; }
.hero-badge {
    display: inline-block; background: white; border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
    color: var(--primary); margin-bottom: 16px; box-shadow: var(--shadow);
}
.hero-title { font-size: clamp(28px, 6vw, 48px); line-height: 1.2; margin-bottom: 16px; }
.hero-title .highlight { color: var(--primary); }
.hero-desc { font-size: 17px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }

.hero-search {
    display: flex; gap: 8px;
    background: white; border: 2px solid var(--border);
    border-radius: 50px; padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow-md); max-width: 560px;
}
.hero-search input {
    flex: 1; border: none; outline: none; font-size: 15px;
    font-family: var(--font-hindi); background: transparent;
}
.hero-search button {
    background: var(--primary); color: white; border: none;
    padding: 10px 20px; border-radius: 40px; cursor: pointer;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: background .15s;
}
.hero-search button:hover { background: var(--primary-dk); }

.hero-stats {
    display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap;
}
.stat strong { display: block; font-size: 22px; color: var(--primary); font-family: var(--font-head); }
.stat span   { font-size: 12px; color: var(--text-muted); }

/* ══ CONTENT LAYOUT ══════════════════════════════════ */
.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
}
@media (min-width: 1024px) {
    .content-layout { grid-template-columns: 1fr 300px; }
}

/* ══ CATEGORY GRID ═══════════════════════════════════ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 640px)  { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }

.category-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px;
    transition: all .2s; text-decoration: none; color: var(--text);
}
.category-card:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-card:hover .cat-arrow { color: white; }
.cat-icon { font-size: 24px; flex-shrink: 0; }
.category-card div strong { display: block; font-size: 14px; font-weight: 600; }
.category-card div small  { font-size: 12px; color: var(--text-muted); }
.category-card:hover small { color: rgba(255,255,255,0.8); }
.cat-arrow { margin-left: auto; font-size: 16px; color: var(--text-muted); flex-shrink: 0; }

/* ══ POSTS GRID ══════════════════════════════════════ */
.posts-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .posts-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .posts-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* Post Card */
.post-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img-link img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body   { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat    { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--primary); letter-spacing: .5px; }
.card-title  { font-size: 16px; margin: 6px 0; line-height: 1.4; flex: 1; }
.card-title a { color: var(--secondary); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }
.card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-top: auto; }

/* ══ HUB SECTION ═════════════════════════════════════ */
.hub-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (min-width: 768px) { .hub-grid { grid-template-columns: repeat(4, 1fr); } }

.hub-card {
    border-radius: var(--radius); padding: 20px;
    display: flex; flex-direction: column; gap: 8px;
    text-decoration: none; transition: transform .2s, box-shadow .2s;
    color: white;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: white; }
.hub-card h3 { font-size: 15px; }
.hub-card p  { font-size: 13px; opacity: .85; flex: 1; }
.hub-card span { font-size: 13px; font-weight: 700; opacity: .9; }
.hub-dm   { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.hub-para { background: linear-gradient(135deg, #0891b2, #0e7490); }
.hub-it   { background: linear-gradient(135deg, #059669, #047857); }
.hub-ff   { background: linear-gradient(135deg, #d97706, #b45309); }

/* ══ SIDEBAR ═════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px;
}
.widget-search {
    display: flex; overflow: hidden;
    background: white; border: 2px solid var(--border);
    border-radius: var(--radius); padding: 0;
}
.widget-search input {
    flex: 1; border: none; padding: 10px 14px;
    font-size: 14px; outline: none; font-family: var(--font-hindi);
}
.widget-search button {
    background: var(--primary); color: white; border: none;
    padding: 10px 14px; cursor: pointer; font-size: 16px;
}
.widget-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--secondary); }

.sidebar-post-list { list-style: none; padding: 0; }
.sidebar-post-item {
    padding: 8px 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px;
}
.sidebar-post-item:last-child { border: none; }
.sidebar-post-item a { color: var(--text); line-height: 1.4; }
.sidebar-post-item a:hover { color: var(--primary); }
.post-rank {
    background: var(--primary); color: white;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.with-thumb { align-items: center; }
.thumb-link img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.post-views { color: var(--text-muted); font-size: 11px; display: block; }

.cat-list { list-style: none; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 4px; font-size: 13px; color: var(--text);
}
.cat-list a:hover { color: var(--primary); }
.cat-count {
    background: var(--border); border-radius: 12px;
    padding: 1px 8px; font-size: 11px; color: var(--text-muted);
}

.sticky-ad { position: sticky; top: 80px; }
.widget-newsletter { background: linear-gradient(135deg, #eff6ff, #f0fdf4); }
.newsletter-form-mini { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form-mini input {
    padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-hindi);
}
.newsletter-form-mini button {
    background: var(--primary); color: white; border: none;
    padding: 10px; border-radius: var(--radius-sm); cursor: pointer;
    font-size: 14px; font-weight: 600;
}

/* ══ ARTICLE CONTENT ═════════════════════════════════ */
.article-content { line-height: 1.8; }
.article-content h2 { border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content th { background: var(--primary); color: white; padding: 10px 12px; text-align: left; }
.article-content td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.article-content tr:nth-child(even) { background: var(--bg-alt); }
.article-content blockquote {
    border-left: 4px solid var(--primary); padding: 12px 20px;
    background: var(--bg-alt); margin: 16px 0; border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.auto-link { color: var(--primary); text-decoration: underline dotted; }

/* ══ COURSE REVIEW COMPONENTS ════════════════════════ */
.trending-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff7ed; color: #c2410c;
    border: 1px solid #fed7aa;
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 600; margin-bottom: 16px;
}

.course-title { margin-bottom: 16px; }

.quick-summary {
    background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: var(--radius); padding: 20px; margin: 20px 0;
}
.quick-summary h2 { margin-top: 0; font-size: 18px; color: var(--primary); }
.summary-list { list-style: none; padding: 0; }
.summary-list li {
    padding: 8px 0; border-bottom: 1px solid #dbeafe; font-size: 15px;
}
.summary-list li:last-child { border: none; }

.author-box {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin: 20px 0;
}
.author-box img, .author-avatar {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.author-avatar {
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700;
}
.author-info strong { display: block; font-size: 15px; }
.author-creds { display: block; font-size: 13px; color: var(--text-muted); }
.post-updated { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; }

.post-meta-bar {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-muted); margin: 12px 0 20px;
    padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

.table-of-contents {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin: 20px 0;
}
.table-of-contents h3 { font-size: 15px; margin-top: 0; margin-bottom: 10px; }
.table-of-contents ol { margin-bottom: 0; }
.table-of-contents a { color: var(--primary); font-size: 14px; }

.featured-image { width: 100%; border-radius: var(--radius); margin-bottom: 20px; aspect-ratio: 16/9; object-fit: cover; }

/* Institutes Table */
.institutes-section { margin: 24px 0; }
.table-responsive { overflow-x: auto; }
.institutes-table { width: 100%; border-collapse: collapse; }
.institutes-table th { background: var(--primary); color: white; padding: 10px 14px; text-align: left; }
.institutes-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.institutes-table tr:nth-child(even) { background: var(--bg-alt); }

/* CTA */
.enroll-cta {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe; border-radius: var(--radius);
    padding: 24px; margin: 28px 0; text-align: center;
}
.cta-content h3 { margin-top: 0; color: var(--primary); }
.btn-enroll {
    display: inline-block; background: var(--primary); color: white;
    padding: 14px 32px; border-radius: 50px; font-size: 16px; font-weight: 700;
    text-decoration: none; margin: 14px 0 8px; transition: all .2s;
    box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}
.btn-enroll:hover { background: var(--primary-dk); transform: translateY(-2px); color: white; box-shadow: 0 6px 20px rgba(79,70,229,0.4); }
.btn-secondary {
    display: inline-block; background: transparent;
    color: var(--primary); border: 2px solid var(--primary);
    padding: 10px 24px; border-radius: 50px; font-size: 14px;
    font-weight: 600; text-decoration: none; transition: all .2s;
}
.btn-secondary:hover { background: var(--primary); color: white; }
.disclaimer-small { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Job Roles */
.job-roles-section { margin: 24px 0; }
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px; list-style: none; padding: 0; margin-top: 12px;
}
.roles-grid li {
    background: var(--bg-alt); padding: 10px 14px;
    border-radius: var(--radius-sm); font-size: 14px;
    border-left: 3px solid var(--primary);
}

/* Full Form */
.answer-box {
    background: #f0fdf4; border-left: 4px solid var(--success);
    padding: 20px 24px; margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 18px; line-height: 1.6;
}
.full-form-highlight { color: var(--success); font-size: 20px; }
.article-path { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.article-path a { color: var(--primary); }
.fullform-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.ff-card {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px;
    color: var(--text); transition: all .15s;
}
.ff-card:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Fees */
.fees-summary { margin: 20px 0; }
.fees-table { width: 100%; border-collapse: collapse; }
.fees-table th { background: var(--primary); color: white; padding: 10px 14px; text-align: left; }
.fees-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.fees-table tr:nth-child(even) { background: var(--bg-alt); }
.fee-govt td { color: var(--success); }
.fee-private td:nth-child(2) { color: var(--danger); }
.fees-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.scholarship-box {
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: var(--radius); padding: 20px; margin: 24px 0;
}
.scholarship-list { list-style: none; padding: 0; }
.scholarship-list li {
    padding: 12px 0; border-bottom: 1px solid #fde68a; display: flex;
    flex-wrap: wrap; gap: 4px; align-items: baseline;
}
.scholarship-list li:last-child { border: none; }
.scholarship-list strong { width: 100%; font-size: 15px; }
.scholarship-list span  { font-size: 13px; color: var(--text-muted); flex: 1; }
.scholarship-list a     { font-size: 13px; font-weight: 600; color: var(--primary); }

/* Share Buttons */
.share-buttons {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    padding: 16px 0; margin: 20px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.share-buttons span { font-size: 14px; font-weight: 600; }
.share-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-wa { background: #dcfce7; color: #166534; }
.share-tg { background: #dbeafe; color: #1e40af; }
.share-tw { background: #f0f9ff; color: #0369a1; }

/* FAQ */
.faq-section { margin: 28px 0; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
    padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 15px;
    list-style: none; background: var(--bg-alt);
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--primary); background: #eff6ff; }
.faq-answer { padding: 16px; font-size: 14px; line-height: 1.7; }

/* Related Posts */
.related-posts { margin: 28px 0; }
.related-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    margin-top: 12px;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }
.related-card {
    display: flex; flex-direction: column; gap: 6px;
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; font-size: 13px; color: var(--text); transition: all .15s;
}
.related-card:hover { border-color: var(--primary); color: var(--primary); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card span { padding: 8px; line-height: 1.4; }
.related-card small { padding: 0 8px 8px; color: var(--text-muted); font-size: 11px; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; color: var(--text-muted); }
.breadcrumbs li::after { content: '›'; }
.breadcrumbs li:last-child::after { content: ''; color: var(--text); }
.breadcrumbs a { color: var(--primary); }

/* Category Header */
.category-header { padding: 20px 0 8px; }
.category-header h1 { margin-bottom: 8px; }
.cat-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 8px; }
.cat-meta { font-size: 13px; color: var(--text-muted); }

/* Comments */
.comments-area { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--border); }
.comments-list { margin-bottom: 28px; }
.comments-list h4 { margin-bottom: 16px; }
.comment-item {
    display: flex; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.comment-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex-shrink: 0;
}
.comment-author { font-size: 14px; font-weight: 600; }
.comment-date { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.comment-text { font-size: 14px; margin-top: 4px; }
.comment-note { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea {
    padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px;
    font-family: var(--font-hindi); transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
}
.btn-comment {
    background: var(--primary); color: white; border: none;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; cursor: pointer; align-self: flex-start;
    transition: background .15s;
}
.btn-comment:hover { background: var(--primary-dk); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error   { background: #fee2e2; color: #991b1b; }

/* ══ SEARCH PAGE ═════════════════════════════════════ */
.search-page { padding: 32px 0; }
.search-query { color: var(--primary); }
.search-form-main { display: flex; gap: 8px; margin: 16px 0 24px; }
.search-form-main input {
    flex: 1; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font-hindi);
}
.search-form-main input:focus { outline: none; border-color: var(--primary); }
.search-form-main button {
    background: var(--primary); color: white; border: none;
    padding: 12px 24px; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 15px; font-weight: 600;
}
.results-count { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.no-results { text-align: center; padding: 40px 0; }
.popular-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.popular-cats a { background: var(--bg-alt); padding: 6px 16px; border-radius: 20px; font-size: 13px; border: 1px solid var(--border); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 13px; color: var(--text); }
.tag:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ══ PAGINATION ══════════════════════════════════════ */
.pagination { margin: 32px 0; }
.pagination ul { display: flex; gap: 6px; list-style: none; justify-content: center; flex-wrap: wrap; }
.pagination a {
    display: block; padding: 8px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
    transition: all .15s;
}
.pagination a:hover, .pagination a.active {
    background: var(--primary); color: white; border-color: var(--primary);
}

/* ══ NEWSLETTER STRIP ════════════════════════════════ */
.newsletter-strip {
    background: linear-gradient(135deg, var(--secondary), #1e3a5f);
    color: white; padding: 32px 0;
}
.newsletter-inner {
    display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.newsletter-text h3 { color: white; font-size: 20px; margin-bottom: 4px; }
.newsletter-text p  { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; }
.newsletter-form {
    display: flex; gap: 8px; flex: 1; min-width: 280px;
}
.newsletter-form input {
    flex: 1; padding: 10px 16px; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-hindi);
}
.newsletter-form button {
    background: var(--accent); color: white; border: none;
    padding: 10px 20px; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 14px; font-weight: 700;
    white-space: nowrap; transition: background .15s;
}
.newsletter-form button:hover { background: #d97706; }

/* ══ FOOTER ══════════════════════════════════════════ */
.site-footer { background: var(--secondary); color: rgba(255,255,255,0.85); }
.footer-main { padding: 48px 0 32px; }
.footer-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-logo { font-size: 22px; font-weight: 800; color: white; font-family: var(--font-head); display: block; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-about p  { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.footer-social   { display: flex; gap: 10px; }
.footer-social a { font-size: 20px; text-decoration: none; transition: transform .15s; }
.footer-social a:hover { transform: scale(1.2); }
.footer-col h4 { color: white; font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a  { color: rgba(255,255,255,0.65); font-size: 13px; }
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer { margin-top: 16px; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); padding: 10px 12px; }
.footer-disclaimer p { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0; text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; }
.footer-credit   { font-size: 12px !important; margin-top: 4px !important; }

/* ══ AD BANNER ═══════════════════════════════════════ */
.ad-banner { margin: 24px 0; min-height: 90px; }

/* ══ SCROLL TO TOP ═══════════════════════════════════ */
.scroll-top {
    position: fixed; bottom: 24px; right: 20px; z-index: 500;
    background: var(--primary); color: white;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    cursor: pointer; font-size: 18px; font-weight: 700;
    box-shadow: var(--shadow-md); transition: all .2s;
    display: none; align-items: center; justify-content: center;
}
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--primary-dk); transform: translateY(-3px); }

/* ══ EMPTY STATE ═════════════════════════════════════ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ══ FONT FACE ═══════════════════════════════════════ */
@font-face {
    font-family: 'Hind';
    font-display: swap;
    src: url('/assets/fonts/hind-regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Hind';
    font-display: swap;
    src: url('/assets/fonts/hind-semibold.woff2') format('woff2');
    font-weight: 600 700;
}

/* ══ PRINT ═══════════════════════════════════════════ */
@media print {
    .site-header, .site-footer, .sidebar, .ad-banner,
    .share-buttons, .scroll-top, .reading-progress,
    .breaking-ticker, .newsletter-strip { display: none !important; }
    .content-layout { grid-template-columns: 1fr !important; }
    body { font-size: 12pt; }
}
