@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@300;400;600&family=Merriweather:wght@300;400&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #0f1117;
    --bg-card: #181c26;
    --bg-header: #0c0e16;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --text-primary: #e8e6f0;
    --text-secondary: #a09ab8;
    --text-muted: #6b6585;
    --border: #2a2640;
    --card-hover: #1e2232;
    --tag-bg: #1e1b2e;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
}

#page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.03em;
}

.logo span {
    color: var(--accent-light);
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

nav.main-nav a:hover {
    color: var(--accent-light);
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--accent-light);
}

.hero {
    background: linear-gradient(135deg, #12102a 0%, #1a1232 50%, #0f1117 100%);
    padding: 72px 24px 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-tag {
    display: inline-block;
    background: var(--tag-bg);
    border: 1px solid var(--border);
    color: var(--accent-light);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    max-width: 720px;
    margin: 0 auto 16px;
    line-height: 1.3;
}

.hero p {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 56px 0;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    direction: rtl;
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
    direction: rtl;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-link {
    font-size: 0.82rem;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.card-link:hover {
    color: var(--accent);
}

.featured-section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

.featured-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.featured-main img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.featured-main-body {
    padding: 32px;
}

.featured-main-body .card-tag {
    font-size: 0.75rem;
}

.featured-main-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.35;
    direction: rtl;
}

.featured-main-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    direction: rtl;
    margin-bottom: 20px;
}

.featured-main-body a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    gap: 16px;
    padding: 16px;
    transition: border-color 0.2s;
    text-decoration: none;
}

.sidebar-card:hover {
    border-color: var(--accent);
}

.sidebar-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-card-text .card-tag {
    margin-bottom: 6px;
}

.sidebar-card-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    direction: rtl;
}

.info-strip {
    background: linear-gradient(90deg, #1a1232 0%, #130f24 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0 0 56px;
}

.info-item {
    text-align: center;
}

.info-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-light);
    display: block;
    margin-bottom: 6px;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    direction: rtl;
}

.contact-section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    direction: rtl;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    direction: rtl;
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-detail a,
.contact-detail span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    direction: rtl;
}

.contact-detail a:hover {
    color: var(--accent-light);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.contact-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    direction: rtl;
    text-align: right;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    direction: rtl;
    text-align: right;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Source Sans 3', sans-serif;
    transition: border-color 0.2s;
    direction: rtl;
    text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--accent-light);
}

.form-success {
    display: none;
    text-align: center;
    color: #6ee7b7;
    font-size: 0.9rem;
    direction: rtl;
    margin-top: 12px;
}

footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    padding: 48px 24px 24px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    direction: rtl;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 10px;
    transition: color 0.2s;
    direction: rtl;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--accent-light);
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1530;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 28px;
    max-width: 560px;
    width: calc(100% - 48px);
    z-index: 1000;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    direction: rtl;
    flex: 1;
}

.cookie-text a {
    color: var(--accent-light);
    text-decoration: none;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-accept:hover {
    background: var(--accent-light);
}

.btn-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    transition: border-color 0.2s, color 0.2s;
}

.btn-reject:hover {
    border-color: var(--text-muted);
    color: var(--text-secondary);
}

.page-hero {
    background: linear-gradient(135deg, #12102a 0%, #0f1117 100%);
    padding: 56px 24px 40px;
    border-bottom: 1px solid var(--border);
}

.page-hero .hero-tag {
    margin-bottom: 16px;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    max-width: 760px;
    line-height: 1.3;
    direction: rtl;
}

.page-hero .meta {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    direction: rtl;
}

.page-hero .meta span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.article-content .lead-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    display: block;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 16px;
    direction: rtl;
}

.article-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 28px 0 12px;
    direction: rtl;
}

.article-content p {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.85;
    direction: rtl;
    margin-bottom: 20px;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.article-content ul,
.article-content ol {
    color: var(--text-secondary);
    font-size: 0.95rem;
    direction: rtl;
    padding-right: 24px;
    margin-bottom: 20px;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-content a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content blockquote {
    border-right: 3px solid var(--accent);
    padding: 16px 20px 16px 0;
    margin: 28px 0;
    direction: rtl;
}

.article-content blockquote p {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-style: italic;
}

.article-disclaimer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 40px;
    font-size: 0.82rem;
    color: var(--text-muted);
    direction: rtl;
}

.related-articles {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.page-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.page-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    direction: rtl;
}

.page-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 32px 0 14px;
    direction: rtl;
}

.page-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    direction: rtl;
    margin-bottom: 18px;
}

.page-content ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    direction: rtl;
    padding-right: 24px;
    margin-bottom: 18px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.page-content a {
    color: var(--accent-light);
}

.updated-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    direction: rtl;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .info-strip {
        grid-template-columns: repeat(3, 1fr);
        padding: 28px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .info-strip {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    nav.main-nav {
        display: none;
    }
    .burger-btn {
        display: flex;
    }
    .hero {
        padding: 48px 24px 40px;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: right;
    }
    .cookie-btns {
        width: 100%;
        justify-content: flex-end;
    }
}
