﻿/* ==========================================================================
   KILINOCHCHI NEWS - MODERN DIGITAL NEWSPAPER STYLESHEET (MOBILE-FIRST)
   ========================================================================== */

/* 1. RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #991b1b;
    --primary-dark: #7f1d1d;
    --primary-light: #fef2f2;
    --accent: #d97706;
    --accent-dark: #b45309;
    --dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-heading: 'Mukta Malar', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, sans-serif;
    --article-font-size: 1.15rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* 2. TOP BAR */
.top-bar {
    background-color: #1e293b;
    color: #94a3b8;
    font-size: 0.82rem;
    border-bottom: 1px solid #334155;
    padding: 6px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-links a {
    color: #cbd5e1;
}

.top-bar-links a:hover {
    color: var(--white);
}

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

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

/* 3. SITE HEADER */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.brand-logo {
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.header-ad {
    display: none;
}

@media (min-width: 768px) {
    .header-ad {
        display: block;
        max-width: 480px;
    }
    .ad-banner {
        max-height: 70px;
        border-radius: var(--radius-sm);
        object-fit: contain;
    }
}

/* 4. PRIMARY NAVIGATION */
.main-nav {
    background-color: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

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

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn .bar {
    width: 24px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 14px;
    display: block;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: #fef08a;
    border-bottom-color: #fef08a;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.search-trigger-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.search-trigger-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 900px) {
    .mobile-menu-btn {
        display: none;
    }
    .nav-menu {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* Mobile Drawer */
@media (max-width: 899px) {
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 52px;
        left: 0;
        width: 100%;
        background-color: #1e293b;
        padding: 12px 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid #334155;
    }
    .nav-link {
        padding: 12px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-link:hover, .nav-link.active {
        background-color: #334155;
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
}

/* 5. BREAKING NEWS TICKER */
.breaking-ticker-wrap {
    background-color: #fff1f2;
    border-bottom: 2px solid #fecdd3;
    padding: 8px 0;
}

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

.ticker-badge {
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ticker-badge::before {
    content: "🚨";
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-text {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    animation: tickerScroll 25s linear infinite;
}

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

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 6. MAIN CONTENT WRAPPER */
.site-main {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 48px;
}

/* 7. HERO SECTION */
.hero-section {
    margin-bottom: 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.8fr 1fr;
    }
}

.hero-main-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.hero-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0f172a;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.hero-badge, .card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.hero-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.meta-row {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--dark);
}

.hero-summary {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more-btn {
    align-self: flex-start;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-top: auto;
}

/* Sub-featured stack */
.hero-sub-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 540px) and (max-width: 899px) {
    .hero-sub-stack {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-sub-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sub-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0f172a;
}

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

.hero-sub-card:hover .sub-img {
    transform: scale(1.04);
}

.sub-content {
    padding: 14px;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 6px;
    color: var(--dark);
}

/* 8. MAIN TWO-COLUMN LAYOUT */
.main-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .main-layout-grid {
        grid-template-columns: 2.3fr 1fr;
    }
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.view-all-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.view-all-link:hover {
    color: var(--primary);
}

/* News Cards Grid */
.news-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

@media (min-width: 600px) {
    .news-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #e2e8f0;
}

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

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

.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--dark);
}

.card-excerpt {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
}

/* Category Block */
.category-block {
    margin-top: 36px;
}

.category-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .category-cards-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cat-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.cat-img-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #e2e8f0;
}

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

.cat-card-body {
    padding: 12px;
}

.cat-meta-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cat-card-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 4px;
}

/* 9. SIDEBAR WIDGETS */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

/* Popular list */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.popular-rank {
    width: 32px;
    height: 32px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.popular-details {
    flex: 1;
}

.popular-cat {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.popular-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 2px 0 4px;
}

.popular-views {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Category Sidebar List */
.sidebar-cat-list {
    list-style: none;
}

.sidebar-cat-list li {
    border-bottom: 1px solid var(--border);
}

.sidebar-cat-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

.cat-count {
    background-color: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Sidebar Ad */
.ad-widget {
    padding: 10px;
    text-align: center;
}

.sidebar-ad-img {
    border-radius: var(--radius-sm);
    width: 100%;
}

/* Info Widget */
.info-widget-body {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
}

.info-contact {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f8fafc;
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
}

/* 10. ARTICLE SINGLE VIEW */
.breadcrumb-nav {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-current {
    color: var(--dark);
    font-weight: 600;
}

.article-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .article-main-grid {
        grid-template-columns: 2.3fr 1fr;
    }
}

.article-core {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .article-core {
        padding: 36px;
    }
}

.article-cat-badge {
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 12px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 2.2rem;
    }
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.author-link {
    color: var(--primary);
    font-weight: 600;
}

/* Font Resizer Tools */
.font-resizer-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.font-btn {
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-weight: 700;
    cursor: pointer;
    min-width: 32px;
    min-height: 32px;
    transition: all 0.2s;
}

.font-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Social Share Bar */
.social-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.share-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    min-height: 40px;
}

.share-btn:hover {
    opacity: 0.9;
    color: var(--white);
}

.share-wa { background-color: #25d366; }
.share-tg { background-color: #0088cc; }
.share-fb { background-color: #1877f2; }
.share-tw { background-color: #000000; }
.share-native { background-color: #475569; }

/* Article Media */
.article-featured-image-wrap {
    margin: 20px 0 28px;
}

.article-featured-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.image-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Article Body Typography */
.article-body-content {
    font-family: var(--font-body);
    font-size: var(--article-font-size);
    line-height: 1.85;
    color: #24292e;
    margin-bottom: 32px;
}

.article-body-content p {
    margin-bottom: 1.5em;
}

.article-body-content h2, .article-body-content h3 {
    font-family: var(--font-heading);
    margin: 1.4em 0 0.6em;
    color: var(--dark);
}

.article-body-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    background-color: var(--primary-light);
    margin: 1.5em 0;
    font-style: italic;
}

/* Author Box */
.article-author-card {
    display: flex;
    gap: 16px;
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 36px;
}

.author-avatar-ph {
    width: 56px;
    height: 56px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.author-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.author-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Related Section */
.related-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--dark);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-card {
    display: flex;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.related-img-wrap {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
}

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

.related-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
}

.related-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.related-headline {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 2px;
}

/* 11. ARCHIVE / CATEGORY / SEARCH / PAGES */
.archive-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    border-left: 5px solid var(--primary);
}

.archive-label {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin: 6px 0;
}

.archive-description {
    color: #475569;
    font-size: 0.95rem;
    max-width: 700px;
}

.archive-count {
    display: inline-block;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Static Pages */
.static-page-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .static-page-card {
        padding: 44px;
    }
}

.static-page-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 16px;
    margin-bottom: 28px;
}

.static-page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.static-page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.static-page-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.static-page-body h2 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin: 1.4em 0 0.5em;
    font-size: 1.4rem;
}

.static-page-body h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin: 1.2em 0 0.4em;
    font-size: 1.15rem;
}

.static-page-body ul {
    margin-left: 20px;
    margin-bottom: 1.5em;
}

.contact-details-box {
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.4rem;
}

/* Pagination Nav */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.page-link {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.page-link:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* 12. ERROR PAGES */
.error-page-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 60px 24px;
    border: 1px solid var(--border);
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.error-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 16px 0 10px;
}

.error-msg {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-home {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
}

.btn-home:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* 13. SITE FOOTER */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    margin-top: auto;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr;
    }
}

.footer-logo {
    max-width: 240px;
    margin-bottom: 16px;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.footer-contact-info {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-heading {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
    display: inline-block;
}

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

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    background-color: #020617;
    border-top: 1px solid #1e293b;
    padding: 16px 0;
    font-size: 0.82rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-subtext {
    color: var(--accent);
    font-weight: 600;
}

/* 14. SEARCH MODAL */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 1.05rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-submit-btn {
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.search-close-x {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
}