/* General Variables & Reset */
:root {
    --primary: #1D4ED8;
    --secondary: #3B82F6;
    --accent: #F59E0B;
    --bg-dark: #071427;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-rgb: 245, 158, 11;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--glass-border);
}

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

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

.logo-wrapper svg {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Premium Language Selector Dropdown */
.lang-selector {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.15);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    min-width: 140px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.dropdown-menu.open {
    display: flex;
}

.dropdown-menu li {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: left;
}

.dropdown-menu li:hover {
    background: var(--primary);
    color: white;
}

.dropdown-menu li a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #0f172a;
}

.btn-primary:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    min-height: 80dvh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge-accent {
    display: inline-flex;
    align-self: flex-start;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pas-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.pas-problem {
    color: #f1f5f9;
    font-weight: 500;
}

.pas-agitate {
    color: var(--text-muted);
    border-left: 3px solid var(--primary);
    padding-left: 16px;
}

.pas-solve {
    color: #e2e8f0;
    font-weight: 500;
    background: rgba(var(--accent-rgb), 0.04);
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed rgba(var(--accent-rgb), 0.2);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    border: 12px solid #334155;
    border-radius: 40px;
    background-color: #020617;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--accent-rgb), 0.25);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    background: radial-gradient(circle at top, rgba(var(--accent-rgb), 0.15), transparent);
    overflow-y: auto;
}

.phone-screen::-webkit-scrollbar {
    display: none;
}

.phone-app-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Scripture and Hadith Section */
.scripture-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

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

.scripture-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.scripture-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.08);
}

.card-tag {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arabic-quote {
    font-family: 'Amiri', serif;
    font-size: 28px;
    line-height: 1.6;
    text-align: right;
    color: #ffffff;
    margin: 12px 0;
}

.translation-quote {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    padding: 100px 0;
}

.download-box {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 32px;
    padding: 64px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.download-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.download-text {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
    line-height: 1.6;
}

.store-buttons {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px 28px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.store-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.store-btn.disabled:hover {
    transform: none;
    border-color: var(--glass-border);
    box-shadow: none;
}

.store-icon {
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-btn-text span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn-text strong {
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background-color: rgba(15, 23, 42, 0.4);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-main);
}

/* RTL Layout Adjustments (Arabic) */
html[dir="rtl"] .dropdown-menu {
    left: 0;
    right: auto;
}

html[dir="rtl"] .dropdown-menu li {
    text-align: right;
}

html[dir="rtl"] .arabic-quote {
    text-align: left;
}

html[dir="rtl"] .pas-agitate {
    border-left: none;
    border-right: 3px solid var(--primary);
    padding-left: 0;
    padding-right: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .badge-accent {
        align-self: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .scripture-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 16px 24px;
        gap: 16px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Mockup Components */
.mock-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
}

.mock-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

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

.mock-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-align: left;
}

.mock-item.completed {
    color: #f8fafc;
}

.mock-item.completed .check-box {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mock-item.pending {
    color: var(--text-muted);
}

.check-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.stats-title {
    font-size: 11px;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 10px;
}

.bar-chart {
    display: flex;
    justify-content: space-between;
    height: 80px;
    align-items: flex-end;
    gap: 4px;
}

.chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bar.active {
    background: var(--accent);
}

.bar-label {
    font-size: 9px;
    color: var(--text-muted);
    position: absolute;
    bottom: -15px;
}

.circular-display {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 120px;
}

.ring-svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
}

.ring-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-text h4 {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.ring-text p {
    font-size: 9px;
    color: var(--text-muted);
}

.bookmark-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.bookmark-label {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
}

.bookmark-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bookmark-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 24px;
    color: white;
    margin-bottom: 4px;
}

.translit-text {
    font-size: 12px;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 2px;
}

.translation-text {
    font-size: 11px;
    color: var(--text-muted);
}

.counter-display {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.counter-btn {
    width: 100%;
    background: var(--accent);
    color: #0f172a;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.time-display-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
}

.time-icon {
    font-size: 24px;
}

.time-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.time-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.mock-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.tab {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
}

.matsurat-arabic {
    font-family: 'Amiri', serif;
    font-size: 16px;
    color: white;
}

.mock-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
}

.doa-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.star-fav {
    color: var(--accent);
}

.doa-arabic {
    font-family: 'Amiri', serif;
    font-size: 18px;
    color: white;
    margin-bottom: 6px;
}

.doa-translation {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}

.rakaat-counter {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.rakaat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
}

.rakaat-lbl {
    font-size: 14px;
    color: var(--text-muted);
}

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

.rawatib-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.rawatib-item.done {
    color: white;
}

.pray-detail {
    color: var(--accent);
}

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.grid-app-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.grid-app-item span {
    font-size: 11px;
    color: var(--text-muted);
}

.project-preview-card {
    text-align: left;
}

.proj-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 9px;
    color: var(--accent);
    margin-bottom: 8px;
}

.proj-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.proj-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tag-cloud {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-cloud span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-muted);
}

/* ==========================================================================
   Blog & Article Layout Styles
   ========================================================================== */

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 24px 24px 0;
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.5;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumb span[aria-current="page"] {
    color: var(--text-main);
    font-weight: 500;
}

/* Single-Column Blog / Article Hero */
.hero:has(> .hero-container > .hero-content:only-child),
.hero:has(.article-meta),
.hero:has(.article-answer),
.breadcrumb + .hero {
    min-height: auto;
    padding: 40px 0 24px;
}

.hero-container:has(> .hero-content:only-child) {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.hero-content:only-child {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-content:only-child .hero-title {
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.25;
    letter-spacing: -0.6px;
    margin-top: 8px;
}

.hero-content:only-child .pas-solve:not(.article-answer) {
    font-size: 17px;
    line-height: 1.6;
    margin-top: 8px;
}

/* Article Meta (Author, Date, Reading Time) */
.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin: 12px 0 18px;
    flex-wrap: wrap;
}

.article-meta time {
    color: var(--text-muted);
}

/* Article Hero Banner */
.article-banner {
    margin: 20px 0 24px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.02);
}

.article-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Answer-First / Summary Lead Callout */
.article-answer {
    font-size: 17px;
    line-height: 1.75;
    color: #e2e8f0;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.035);
    border-left: 3px solid var(--accent);
    border-radius: 0 14px 14px 0;
    padding: 18px 22px;
    margin: 16px 0 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

html[dir="rtl"] .article-answer {
    border-left: none;
    border-right: 3px solid var(--accent);
    border-radius: 14px 0 0 14px;
}

/* Main Article Body */
.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    font-size: 17px;
    line-height: 1.8;
    color: #cbd5e1;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.4px;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    line-height: 1.35;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.2px;
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.article-body a:hover {
    opacity: 0.85;
}

.article-body strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Table of Contents */
.toc {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px 26px;
    margin: 24px 0 40px;
    backdrop-filter: blur(8px);
}

.toc strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.toc ol {
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html[dir="rtl"] .toc ol {
    padding-left: 0;
    padding-right: 20px;
}

.toc li {
    color: var(--text-muted);
    font-size: 15px;
}

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--accent);
}

/* Article Lists */
.article-body ul,
.article-body ol,
.article-list {
    margin: 16px 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html[dir="rtl"] .article-body ul,
html[dir="rtl"] .article-body ol,
html[dir="rtl"] .article-list {
    margin-left: 0;
    margin-right: 24px;
}

.article-body li,
.article-list li {
    color: #cbd5e1;
    line-height: 1.65;
}

/* Article Data Table */
.article-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 36px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.article-table caption {
    caption-side: top;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

html[dir="rtl"] .article-table caption {
    text-align: right;
}

.article-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
}

html[dir="rtl"] .article-table th {
    text-align: right;
}

.article-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

html[dir="rtl"] .article-table td {
    text-align: right;
}

.article-table tbody tr:last-child td {
    border-bottom: none;
}

.article-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

/* Article Inline CTA */
.download-box.article-cta {
    margin: 56px auto !important;
    padding: 44px 28px !important;
    border-radius: 24px !important;
    max-width: 100% !important;
    background: radial-gradient(circle at top, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.02) 70%);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* FAQ Section */
.faq {
    margin: 56px 0;
}

.faq h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
}

.faq details {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.faq details[open] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq summary {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq details p {
    margin-top: 12px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* Prev / Next Navigation */
.prev-next {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin: 56px 0;
    flex-wrap: wrap;
}

.prev-next .btn {
    flex: 1 1 280px;
    text-align: center;
    white-space: normal;
    height: auto;
    min-height: 48px;
    padding: 14px 20px;
    line-height: 1.4;
    font-size: 14px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.prev-next .btn:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

/* Related Articles Section */
.related {
    margin: 56px 0 24px;
}

.related .section-header {
    text-align: left;
    margin-bottom: 20px;
}

html[dir="rtl"] .related .section-header {
    text-align: right;
}

.related .section-title {
    font-size: 24px;
    margin-bottom: 0;
    letter-spacing: -0.4px;
}

.related .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.related .feature-card {
    padding: 22px;
    border-radius: 16px;
}

.related .feature-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 0;
}

.related .feature-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related .feature-title a:hover {
    color: var(--accent);
}

/* Blog Index Cards & Meta */
.features-grid.article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-card.article-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 20px;
}

.article-card-thumb-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-card-thumb-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.article-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.article-card .feature-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card .feature-title a:hover {
    color: var(--accent);
}

.bookmark-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}

.features .download-box {
    margin-top: 64px;
}

/* Brand Link Reset */
.brand a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}

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

.feature-title a:hover {
    color: var(--accent);
}

/* Responsive Overrides for Mobile */
@media (max-width: 968px) {
    .hero-content:only-child {
        text-align: left;
    }
    .hero-content:only-child .badge-accent {
        align-self: flex-start;
    }
    html[dir="rtl"] .hero-content:only-child {
        text-align: right;
    }
    html[dir="rtl"] .hero-content:only-child .badge-accent {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .hero:has(> .hero-container > .hero-content:only-child),
    .hero:has(.article-meta),
    .hero:has(.article-answer),
    .breadcrumb + .hero {
        padding: 28px 0 16px;
    }

    .hero-content:only-child .hero-title {
        font-size: 26px;
    }

    .article-body {
        padding: 16px 16px 60px;
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 22px;
        margin-top: 36px;
    }

    .article-body h3 {
        font-size: 18px;
        margin-top: 24px;
    }

    .article-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .prev-next {
        flex-direction: column;
    }

    .prev-next .btn {
        flex: 1 1 100%;
    }

    .breadcrumb {
        font-size: 13px;
        padding: 16px 16px 0;
    }
}


/* Consent banner (analytics) */
:root {
    --consent-h: 0px;
}
body {
    padding-bottom: var(--consent-h);
}
.consent-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-muted);
}
.consent-banner[hidden] {
    display: none !important;
}
.consent-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px;
}
@media (min-width: 640px) {
    .consent-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.consent-banner__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.consent-banner__text a {
    color: var(--accent);
    font-weight: 600;
}
.consent-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.consent-banner__btn {
    min-width: 8rem;
    min-height: 44px;
    border-radius: 999px;
    padding: 0.6em 1.4em;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-main);
}
.consent-banner__btn--primary {
    background: var(--accent);
    border-color: transparent;
    color: #0f172a;
}

/* Landing FAQ */
.landing-faq {
    padding: 64px 0;
}
.landing-faq .section-header {
    margin-bottom: 32px;
}
.landing-faq details {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--bg-card);
}
.landing-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}
.landing-faq details p {
    margin: 12px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}


