@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;600;700&family=Merriweather:wght@400;700&family=Source+Sans+3:wght@300;400;600&family=Playfair+Display:wght@700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark: #0c1520;
    --bg-card: #111e2d;
    --bg-accent: #162436;
    --gold: #c8973a;
    --gold-light: #e2b45a;
    --text-primary: #e8edf3;
    --text-secondary: #8fa3b8;
    --text-muted: #5a7289;
    --border: #1e3048;
    --border-light: #243d56;
    --radius: 10px;
    --radius-lg: 18px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

.urdu { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; }

/* PAGE LOADER */
#page-loader {
    position: fixed; inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.loader-ring {
    width: 52px; height: 52px;
    border: 4px solid var(--border-light);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--text-secondary); font-size: 13px; letter-spacing: 1px; }

/* HEADER */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12, 21, 32, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 66px; gap: 20px;
}
.site-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--gold) 0%, #a06820 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    color: #fff; font-family: 'Playfair Display', serif;
}
.logo-text { line-height: 1.2; }
.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px; color: var(--text-primary); font-weight: 700;
}
.logo-tagline {
    font-size: 10px; color: var(--text-muted);
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
}

/* DESKTOP NAV */
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav a {
    color: var(--text-secondary); font-size: 14px; font-weight: 400;
    padding: 8px 14px; border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.desktop-nav a:hover { background: var(--bg-accent); color: var(--text-primary); }
.desktop-nav a.active { color: var(--gold); }

/* BURGER */
.burger-btn {
    background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--text-primary);
    display: none; flex-direction: column; gap: 5px;
}
.burger-btn span {
    display: block; width: 24px; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
    display: none; position: fixed; inset: 66px 0 0 0;
    background: rgba(12,21,32,0.98); z-index: 99;
    padding: 24px; overflow-y: auto;
    flex-direction: column; gap: 8px;
    transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
    color: var(--text-primary); font-size: 18px; padding: 14px 20px;
    border-radius: 8px; border-bottom: 1px solid var(--border);
    font-family: 'Noto Nastaliq Urdu', serif; direction: rtl;
    transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--bg-accent); }
.mobile-menu-section { color: var(--gold); font-size: 12px; letter-spacing: 1px; padding: 14px 20px 6px; text-transform: uppercase; }

/* HERO */
.hero {
    background: linear-gradient(135deg, #0c1520 0%, #162436 50%, #0f1d2e 100%);
    padding: 70px 24px 60px;
    border-bottom: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(200,151,58,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(200,151,58,0.12); border: 1px solid rgba(200,151,58,0.3);
    padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
    font-size: 12px; color: var(--gold); letter-spacing: 0.5px;
}
.hero-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: clamp(24px, 4vw, 38px); line-height: 1.4;
    color: var(--text-primary); margin-bottom: 16px; direction: rtl;
}
.hero-desc {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 16px; color: var(--text-secondary);
    direction: rtl; line-height: 1.9;
}
.hero-img-wrap {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    position: relative;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12,21,32,0.5) 0%, transparent 60%);
}

/* SECTION */
.section { padding: 60px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 36px; }
.section-label {
    font-size: 11px; color: var(--gold); letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: clamp(20px, 3vw, 28px); color: var(--text-primary);
    direction: rtl;
}
.section-divider {
    width: 48px; height: 3px;
    background: linear-gradient(to left, var(--gold), transparent);
    border-radius: 2px; margin-top: 12px;
    margin-right: 0; margin-left: auto;
}

/* ARTICLE GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.articles-grid.featured {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
}
.articles-grid.featured .card:first-child {
    grid-row: span 2;
}

/* CARD */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    display: flex; flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-light);
}
.card-img {
    width: 100%; aspect-ratio: 16/9; overflow: hidden;
    position: relative;
}
.card-img.tall { aspect-ratio: 3/4; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-cat {
    font-size: 11px; color: var(--gold); letter-spacing: 1px;
    background: rgba(200,151,58,0.1); padding: 3px 10px; border-radius: 4px;
    font-weight: 600;
}
.card-date { font-size: 12px; color: var(--text-muted); }
.card-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 17px; line-height: 1.5; color: var(--text-primary);
    direction: rtl;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--gold-light); }
.card-excerpt {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 14px; color: var(--text-secondary);
    direction: rtl; line-height: 1.8; flex: 1;
}
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--border);
    margin-top: auto;
}
.read-more {
    font-size: 13px; color: var(--gold);
    display: flex; align-items: center; gap: 6px;
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
}
.read-more::before { content: '←'; font-size: 16px; }
.read-time { font-size: 12px; color: var(--text-muted); }

/* ARTICLE PAGE */
.article-page { padding: 40px 24px 70px; }
.article-container { max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 32px; }
.article-breadcrumb {
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 20px; direction: rtl;
    font-family: 'Noto Nastaliq Urdu', serif;
}
.article-breadcrumb a { color: var(--gold); }
.article-cat-bar {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.article-h1 {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: clamp(22px, 4vw, 34px);
    line-height: 1.4; color: var(--text-primary);
    direction: rtl; margin-bottom: 20px;
}
.article-meta {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px; background: var(--bg-accent);
    border-radius: var(--radius); border: 1px solid var(--border);
    flex-wrap: wrap;
}
.article-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.article-feat-img {
    width: 100%; border-radius: var(--radius-lg); overflow: hidden;
    margin-bottom: 32px; box-shadow: var(--shadow);
    aspect-ratio: 16/9;
}
.article-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl; font-size: 17px; line-height: 2;
    color: var(--text-primary);
}
.article-body h2 {
    font-size: 22px; color: var(--gold-light);
    margin: 36px 0 14px; padding-right: 16px;
    border-right: 3px solid var(--gold);
}
.article-body h3 {
    font-size: 18px; color: var(--text-primary);
    margin: 28px 0 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol {
    margin: 14px 0 18px 0; padding-right: 28px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
    border-right: 3px solid var(--gold);
    padding: 14px 20px; margin: 24px 0;
    background: var(--bg-accent); border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary); font-style: italic;
}
.article-body a { color: var(--gold); }
.article-body a:hover { text-decoration: underline; }
.info-box {
    background: var(--bg-accent); border: 1px solid var(--border-light);
    border-right: 3px solid var(--gold);
    padding: 18px 22px; border-radius: var(--radius);
    margin: 24px 0;
}
.info-box-title {
    font-size: 15px; color: var(--gold); margin-bottom: 10px; font-weight: 700;
}

/* SIDEBAR */
.article-layout {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
}
.sidebar-widget {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px; margin-bottom: 24px;
}
.widget-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 16px; color: var(--gold); margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
    direction: rtl;
}
.related-item {
    display: flex; gap: 12px; margin-bottom: 14px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border);
    direction: rtl;
}
.related-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-thumb {
    width: 70px; height: 54px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; }
.related-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 13px; color: var(--text-primary); direction: rtl; line-height: 1.5;
}
.related-title a { color: inherit; }
.related-title a:hover { color: var(--gold); }
.related-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* STATIC PAGES */
.static-page { padding: 50px 24px 80px; }
.static-container { max-width: 820px; margin: 0 auto; }
.static-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: clamp(24px, 3.5vw, 34px);
    color: var(--text-primary); direction: rtl; margin-bottom: 10px;
}
.static-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.static-body {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl; font-size: 16px; line-height: 2;
    color: var(--text-secondary);
}
.static-body h2 {
    font-size: 20px; color: var(--gold-light);
    margin: 32px 0 12px; padding-right: 14px;
    border-right: 3px solid var(--gold);
    color: var(--text-primary);
}
.static-body p { margin-bottom: 16px; }
.static-body ul { padding-right: 24px; margin-bottom: 16px; }
.static-body li { margin-bottom: 8px; }

/* CONTACT FORM */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 14px; color: var(--text-secondary); direction: rtl;
    margin-bottom: 8px;
}
.form-control {
    width: 100%; background: var(--bg-accent);
    border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 12px 16px; color: var(--text-primary);
    font-size: 15px; outline: none; direction: rtl;
    font-family: 'Noto Nastaliq Urdu', serif;
    transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-submit {
    background: linear-gradient(135deg, var(--gold) 0%, #a06820 100%);
    border: none; color: #fff; padding: 14px 36px;
    border-radius: var(--radius); cursor: pointer; font-size: 16px;
    font-family: 'Noto Nastaliq Urdu', serif; direction: rtl;
    font-weight: 600; letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.contact-info-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.contact-info-title {
    font-family: 'Noto Nastaliq Urdu', serif; font-size: 18px;
    color: var(--text-primary); direction: rtl; margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.contact-info-item {
    display: flex; gap: 14px; align-items: flex-start;
    margin-bottom: 18px; direction: rtl;
}
.contact-info-icon {
    width: 36px; height: 36px; background: rgba(200,151,58,0.12);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 16px; flex-shrink: 0;
}
.contact-info-text { font-size: 14px; color: var(--text-secondary); font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; }
.contact-info-text strong { color: var(--text-primary); display: block; margin-bottom: 2px; }

/* FOOTER */
footer {
    background: #080f18; border-top: 1px solid var(--border);
    padding: 48px 24px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo-name { font-size: 18px; margin-bottom: 10px; }
.footer-desc {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 14px; color: var(--text-muted); direction: rtl;
    line-height: 1.8; margin-top: 12px;
}
.footer-col-title {
    font-size: 13px; color: var(--gold); letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 16px; font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 14px; color: var(--text-muted); direction: rtl; display: block;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 13px; color: var(--text-muted); direction: rtl;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--gold); }

/* COOKIE BANNER */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--bg-card); border-top: 1px solid var(--border-light);
    padding: 18px 24px; display: none;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
}
#cookie-banner.visible { display: block; }
.cookie-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-text {
    flex: 1; font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 14px; color: var(--text-secondary); direction: rtl; line-height: 1.7;
}
.cookie-text a { color: var(--gold); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie {
    padding: 9px 22px; border-radius: 6px; border: none;
    cursor: pointer; font-size: 14px; font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    transition: opacity 0.2s;
}
.btn-cookie:hover { opacity: 0.85; }
.btn-accept { background: var(--gold); color: #fff; }
.btn-reject { background: var(--bg-accent); color: var(--text-secondary); border: 1px solid var(--border-light); }

/* DISCLAIMER */
.disclaimer-bar {
    background: rgba(200,151,58,0.07); border-bottom: 1px solid rgba(200,151,58,0.15);
    padding: 8px 24px; text-align: center;
}
.disclaimer-bar p {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 12px; color: var(--text-muted); direction: rtl;
    max-width: 900px; margin: 0 auto;
}

/* BREADCRUMBS */
.breadcrumb-bar { padding: 14px 24px; border-bottom: 1px solid var(--border); }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 8px; direction: rtl; flex-wrap: wrap; }
.breadcrumb li { list-style: none; font-size: 13px; color: var(--text-muted); }
.breadcrumb li a { color: var(--text-muted); }
.breadcrumb li a:hover { color: var(--gold); }
.breadcrumb li::after { content: '/'; margin-right: 8px; color: var(--border-light); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--text-secondary); }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    font-size: 14px; border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
}
.pagination a:hover { background: var(--bg-accent); color: var(--text-primary); }
.pagination .active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* NOTICE */
.form-success {
    background: rgba(40,180,80,0.1); border: 1px solid rgba(40,180,80,0.3);
    color: #5dd88a; padding: 14px 18px; border-radius: var(--radius);
    font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; font-size: 15px;
    margin-bottom: 20px; display: none;
}
.form-success.show { display: block; }

/* TAGS */
.tag {
    display: inline-block; padding: 4px 12px;
    background: rgba(200,151,58,0.1); border: 1px solid rgba(200,151,58,0.2);
    border-radius: 20px; font-size: 12px; color: var(--gold);
    font-family: 'Noto Nastaliq Urdu', serif; direction: rtl;
    margin: 4px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-img-wrap { display: none; }
}
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .burger-btn { display: flex; }
    .mobile-menu { display: flex; }
    .articles-grid { grid-template-columns: 1fr; }
    .articles-grid.featured { grid-template-columns: 1fr; }
    .articles-grid.featured .card:first-child { grid-row: auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cookie-inner { flex-direction: column; }
}
@media (max-width: 480px) {
    .section { padding: 40px 16px; }
    .hero { padding: 40px 16px; }
    header { padding: 0 16px; }
}
