@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
    /* Primary Dark Theme Colors (Now Default) */
    --primary: #ffffff;
    --primary-hover: #cccccc;
    --bg-color: #0f1015;
    --text-main: #e2e2e8;
    --text-muted: #9aa0a6;
    --card-bg: rgba(30, 32, 40, 0.7);
    --card-border: rgba(255, 255, 255, 0.05);
    
    --glass-bg: rgba(20, 22, 28, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Radii & Layout */
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s ease;
}

/* Light Mode Variables (Optional Override) */
[data-theme="light"] {
    --primary: #222222;
    --primary-hover: #444444;
    --bg-color: #f4f7fa;
    --text-main: #1a1a24;
    --text-muted: #555566;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Arabic', sans-serif;
}

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color var(--transition), color var(--transition);
    line-height: 1.5;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    padding-top: 70px; /* Space for fixed header */
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glass Panel Base */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
}

/* Typography */
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; line-height: 1.3; }
a { text-decoration: none; color: inherit; }
p { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 16px;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .btn-primary {
    color: #000;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .btn-outline:hover {
    color: #000;
}
.btn-outline:active {
    transform: translateY(0) scale(0.98);
}
.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Floating Download Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}
@media (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        left: 20px;
    }
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}
header.scrolled {
    padding: 10px 0;
}
.header-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 2100; /* Higher than overlay (2050) */
    transition: var(--transition);
}
/* Ensure logo and toggle are readable on mobile menu */
body.menu-open .logo {
    color: var(--primary) !important; /* Adapt to theme */
    z-index: 2300;
}
[data-theme="dark"] body.menu-open .logo {
    color: #fff !important;
}
body.menu-open .theme-switch {
    opacity: 0;
    pointer-events: none;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}
.logo i { font-size: 28px; }
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    font-weight: 500;
    transition: color 0.2s;
    font-size: 13px;
    color: var(--text-main);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.theme-switch, .menu-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.theme-switch:hover, .menu-toggle:hover {
    color: var(--primary);
}
.menu-toggle { display: none; }

/* Desktop CTA */
.nav-cta {
    padding: 8px 18px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    padding: 60px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 0, 0.2);
}
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    background: rgba(255, 107, 0, 0.08);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    border: 1px solid rgba(255, 107, 0, 0.15);
    max-width: 100%;
}
.tagline-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
[data-theme="light"] .tagline-icon {
    background: #000;
    color: #fff;
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--primary-hover));
    background-clip: text;
    background-clip: text;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 15px;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-mockup {
    margin-top: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}
.hero-mockup img {
    max-width: 90%;
    margin: 0 auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

/* Official Partner Section */
.hero-partners {
    margin-top: 35px;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.partners-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    opacity: 0.9;
}

.partners-list {
    display: flex !important;
    gap: 12px;
    flex-wrap: wrap;
}

.partner-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(30, 32, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
}

[data-theme="light"] .partner-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a24 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.partner-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #ffffff !important;
}

.partner-item.anime .partner-icon {
    background: #2196f3;
}

.partner-item.drama .partner-icon {
    background: #9c27b0;
}

.partner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .partner-item:hover {
    background: #f8f9fa;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .hero-partners {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .partners-list {
        justify-content: center;
    }
}

/* Backgound Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    max-width: 100%;
}
.shape-1 {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary);
}
.shape-2 {
    bottom: 50px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: #FF0055;
    opacity: 0.2;
}

.what-is-section {
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.what-is-img {
    flex: 0 0 300px;
    text-align: center;
}
.what-is-img img {
    width: 220px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.what-is-img img:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .what-is-section { padding: 30px !important; gap: 30px; }
    .what-is-img { flex: 1; width: 100%; order: -1; }
    .what-is-img img { width: 150px; }
}

/* Sections */
.section-padding { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 28px;
    margin-bottom: 15px;
}
.section-title p {
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 30px;
    text-align: right;
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 12px; font-size: 18px; }
.feature-card p { font-size: 13px; }

/* Content Blocks for "Why ASD Player" */
.content-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}
.content-text { flex: 1; }
.content-text h3 { font-size: 26px; margin-bottom: 20px; }
.content-text ul { list-style: none; margin-top: 20px; }
.content-text ul li {
    position: relative;
    padding-right: 35px;
    margin-bottom: 12px;
    font-size: 14px;
}
.content-text ul li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    background: rgba(255, 107, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.content-img { flex: 1; text-align: center; }
.content-img img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* App Info Box (Download Page) */
.app-info-card {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px;
    margin-bottom: 50px;
    align-items: center;
}
.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .app-icon {
    color: #000;
}
.app-details { flex: 1; min-width: 250px; }
.app-details h2 { font-size: 32px; margin-bottom: 10px; }
.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.meta-item {
    background: rgba(136, 136, 136, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.downloader-code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px dashed var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}
.dl-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}
.dl-buttons-wrapper .btn { width: 100%; }

/* Steps */
.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    font-weight: 800;
    opacity: 0.05;
    line-height: 1;
    color: var(--primary);
    pointer-events: none;
}
.step-card {
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
}
.step-badge {
    background: var(--primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
}
[data-theme="dark"] .step-badge { color: #000; }

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review-card { padding: 30px; }
.stars { color: #f59e0b; margin-bottom: 10px; }
.review-text { font-style: italic; margin-bottom: 20px; }
.reviewer { display: flex; align-items: center; gap: 15px; }
.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Footer Container */
footer {
    margin-top: auto;
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}
.footer-col h3 { margin-bottom: 25px; font-size: 20px; position: relative; padding-bottom: 10px; }
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.footer-col.about p { margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
.footer-col ul li a i { font-size: 12px; color: var(--primary); }
.footer-col ul li a:hover { color: var(--primary); padding-right: 5px; }
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 15px;
}

/* Toast */
#toast-box {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1000;
}
.toast {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-weight: 600;
    margin-top: 15px;
    padding: 15px 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--glass-shadow);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(16px);
}
.toast.show { transform: translateX(0); opacity: 1; }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container { width: 92%; }
}

@media (max-width: 991px) {
    .content-block { flex-direction: column; text-align: center; gap: 30px; }
    .content-text ul li { text-align: right; }
    .hero h1 { font-size: 40px; }
    .hero-mockup img { max-width: 100%; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color); /* Adapt to theme */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        z-index: 2200; /* Higher than header (2100) */
        gap: 20px;
        text-align: center;
        overflow-y: auto;
    }
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.4s ease;
    }
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .nav-links li {
        width: 80%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-links li a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 20px;
        font-size: 24px;
        font-weight: 700;
        color: var(--text-main);
        border-radius: 15px;
        transition: var(--transition);
    }
    .nav-links li a i {
        font-size: 24px;
        color: var(--primary);
    }
    .nav-links li a:hover, .nav-links li a.active {
        background: rgba(255, 107, 0, 0.1);
        color: var(--primary);
        transform: scale(1.05);
    }
    [data-theme="dark"] .nav-links li a:hover, [data-theme="dark"] .nav-links li a.active {
        color: #fff;
    }

    /* Prevent body scrolling when menu is open */
    body.menu-open {
        overflow: hidden !important;
    }

    /* Transparent Overlay Layer */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2050;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links.active { display: flex; }
    
    .menu-toggle { display: block; z-index: 2201; }
    
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 14px; padding: 0 10px; }
    
    .section-padding { padding: 40px 0; }
    .section-title h2 { font-size: 24px; }
    
    .features-grid, .reviews-grid, .footer-grid, .blog-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
    .footer-col {
        width: 100% !important;
        margin-bottom: 30px;
    }
    
    .app-info-card { padding: 25px; flex-direction: column; text-align: center; }
    .app-icon { width: 100px; height: 100px; font-size: 50px; margin: 0 auto; }
    .app-meta { justify-content: center; }
    .dl-buttons-wrapper { width: 100%; }
    
    .footer-col h3::after { right: 50%; transform: translateX(50%); }
    .footer-col { text-align: center; }
    .social-links { justify-content: center; }
    .footer-col ul li a { justify-content: center; }
    
    .article-header h1 { font-size: 28px; }
    .article-body { padding: 25px 15px; }
    
    .glass { padding: 25px !important; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .hero-tagline { font-size: 13px; padding: 8px 15px; }
    .badge { font-size: 12px; }
    .btn { width: 100%; padding: 12px 20px; font-size: 15px; }
    .nav-container { padding: 0 10px; }
    .logo { font-size: 20px; }
}

/* Blog Enhanced UI */
.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}
.blog-search-wrap {
    position: relative;
    width: 100%;
}
.blog-search-wrap i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
}
.blog-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(136, 136, 136, 0.05);
    color: var(--text-main);
    font-size: 16px;
    transition: var(--transition);
}
.blog-search-input:focus {
    outline: none;
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: #ff6b00;
    color: white;
    border-color: #ff6b00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

/* Featured Card */
/* Grid and List Layouts */
.blog-grid {
    display: grid !important;
    gap: 30px !important;
    margin-top: 40px;
}

.blog-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 769px) {
    .blog-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
    }
    
    .blog-list .blog-card-wrapper {
        flex-direction: row !important;
        align-items: center;
    }
    
    .blog-list .blog-image {
        width: 300px !important;
        height: 200px !important;
        flex-shrink: 0;
    }
    
    .blog-list .blog-content {
        padding: 30px !important;
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
    .blog-list .blog-image {
        height: 180px !important;
    }
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eee;
    height: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.blog-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255,107,0,0.3);
}

[data-theme="dark"] .blog-card {
    background: #1a1c23;
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .blog-card:hover {
    border-color: var(--primary);
}

.blog-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.blog-cat-pill {
    background: #fff3e0;
    color: #ff6b00;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

[data-theme="dark"] .blog-cat-pill {
    background: rgba(255, 107, 0, 0.1);
    color: #ff9d5c;
}

.blog-date {
    font-size: 13px;
    color: #888;
}

/* Blog Image Wrapper */
.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0f2f5;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-card:hover .blog-title {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #ff6b00;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-read-more {
    gap: 15px;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-image {
        height: 180px;
    }
    .blog-content {
        padding: 20px;
    }
}

/* Download Page Specific */
.download-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.dl-card {
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}
.dl-card:hover { transform: translateY(-10px); }
.dl-card-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--primary);
}
.dl-card h3 { font-size: 24px; margin-bottom: 15px; }
.dl-card p { margin-bottom: 30px; }

.version-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
[data-theme="dark"] .version-badge { color: #000; }

.specs-table {
    width: 100%;
    margin-top: 30px;
    text-align: right;
    font-size: 13px;
}
.specs-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

.downloader-code-box {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 20px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px dashed #ff6b00;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.downloader-logo { width: 35px; border-radius: 6px; }
.downloader-text { color: #ff6b00; font-weight: 800; font-size: 16px; }
.downloader-number { font-size: 22px; margin-right: 5px; }

@media (max-width: 768px) {
    .download-page-grid { grid-template-columns: 1fr; gap: 20px; }
    .dl-card { padding: 30px; }
    .downloader-code-box { flex-direction: column; text-align: center; gap: 10px; }
}

/* Article specific */
.article-header { text-align: center; margin-bottom: 40px; max-width: 900px; margin: 0 auto 40px; }
.article-header span.badge { background: #ff6b00 !important; color: white !important; padding: 5px 15px; border-radius: 50px; font-size: 14px; font-weight: bold; }
.article-meta { justify-content: center; margin-top: 15px; }
.article-body, .article-main, .content-clean {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.article-body h2, .article-content h2 { margin: 45px 0 20px; font-size: 22px; color: #ff6b00; font-weight: 800; }
.article-body h3, .article-content h3 { margin: 35px 0 15px; font-size: 19px; font-weight: 700; color: #ff8533; }
.article-body p, .article-content p { margin-bottom: 22px; font-size: 16px; line-height: 1.85; color: var(--text-main); opacity: 0.85; }
.article-body p strong, .article-content p strong { color: #e66000; font-weight: 700; }
.article-body ul, .article-body ol, .article-content ul, .article-content ol { margin: 0 0 25px 25px; padding-right: 20px; font-size: 16px; line-height: 1.85; opacity: 0.85; }
.article-body li, .article-content li { margin-bottom: 15px; }
.article-body li strong, .article-content li strong { color: #e66000; }

[data-theme="dark"] .article-body p strong, 
[data-theme="dark"] .article-content p strong,
[data-theme="dark"] .article-body li strong,
[data-theme="dark"] .article-content li strong { 
    color: #ff9d5c; 
}
.article-body img, .article-content img { max-width: 100%; border-radius: 15px; margin: 40px 0; box-shadow: 0 15px 45px rgba(0,0,0,0.12); border: 1px solid var(--glass-border); }

/* Article Specific Interactive Elements */
.article-main .btn-primary {
    background: #ff6b00;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.25);
}
.article-main .btn-primary:hover {
    background: #e66000;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
}
.article-main .btn-outline {
    border-color: #ff6b00;
    color: #ff6b00;
}
.article-main .btn-outline:hover {
    background: #ff6b00;
    color: #fff !important;
}
.article-main a:not(.btn) {
    color: #ff8533;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 600;
}
.article-main a:not(.btn):hover {
    color: #ff6b00;
    text-decoration-thickness: 2px;
}

/* Article Components */
.info-box {
    background: rgba(34, 102, 255, 0.05);
    border-right: 4px solid #2266ff;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.7;
}
.warning-box {
    background: rgba(255, 70, 70, 0.05);
    border-right: 4px solid #ff4646;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    font-size: 16px;
}
.code-display {
    background: #f39c12;
    color: #000;
    font-size: 42px;
    font-weight: 800;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 15px 30px rgba(243,156,18,0.2);
}
[data-theme="dark"] .info-box { background: rgba(34, 102, 255, 0.1); }
[data-theme="dark"] .warning-box { background: rgba(255, 70, 70, 0.1); }

/* Step-by-Step Fixes for Articles */
.step-fix {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    background: rgba(255, 107, 0, 0.04);
    padding: 30px;
    border-radius: 18px;
    border-right: 5px solid var(--primary);
    transition: var(--transition);
}
.step-fix:hover {
    background: rgba(255, 107, 0, 0.07);
    transform: translateX(-5px);
}
.step-icon {
    font-size: 32px;
    color: #ff6b00;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
[data-theme="dark"] .step-fix {
    background: rgba(255, 107, 0, 0.08);
}
[data-theme="dark"] .step-fix:hover {
    background: rgba(255, 107, 0, 0.12);
}

/* Pros and Cons Boxes */
.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.pros-cons-box {
    padding: 30px;
    border-radius: 18px;
    transition: var(--transition);
}
.pros-cons-box:hover {
    transform: translateY(-5px);
}
.pros-cons-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.pros { 
    background: rgba(46, 204, 113, 0.05); 
    border-right: 5px solid #2ecc71; 
}
.cons { 
    background: rgba(231, 76, 60, 0.05); 
    border-right: 5px solid #e74c3c; 
}
[data-theme="dark"] .pros { background: rgba(46, 204, 113, 0.1); }
[data-theme="dark"] .cons { background: rgba(231, 76, 60, 0.1); }

/* Installation Method Boxes */
.method-box {
    margin-bottom: 40px;
    background: rgba(136, 136, 136, 0.05);
    padding: 30px;
    border-radius: 18px;
    border-top: 4px solid #ff6b00;
    transition: var(--transition);
}
.method-box:hover {
    transform: translateY(-5px);
    background: rgba(136, 136, 136, 0.08);
}
.method-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #ff6b00;
    font-weight: 800;
}
.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    text-align: right;
}
.step-num {
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}
[data-theme="light"] .step-num {
    background: #ff6b00;
}
[data-theme="dark"] .method-box {
    background: rgba(255, 255, 255, 0.03);
}

.article-divider {
    height: 1px;
    background: linear-gradient(to left, transparent, var(--glass-border), transparent);
    margin: 50px 0;
    border: none;
}

/* Article Table Styling */
.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 35px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.article-content thead {
    background: #ff6b00;
}
.article-content thead th {
    color: #ffffff !important;
    padding: 18px 15px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}
.article-content tbody td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 14px;
}
.article-content tbody tr:last-child td {
    border-bottom: none;
}
.article-content tbody tr:nth-child(even) {
    background: rgba(136, 136, 136, 0.03);
}
[data-theme="dark"] .article-content tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}
.toc-box {
    background: rgba(136, 136, 136, 0.05);
    padding: 25px;
    border-radius: var(--radius);
    margin: 30px 0;
    border-right: 4px solid var(--primary);
}
.toc-box h3 { margin-top: 0; margin-bottom: 15px; }
.toc-box ul { list-style: none; padding: 0; margin: 0; }
.toc-box ul li { margin-bottom: 10px; }
.toc-box ul li a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; transition: 0.2s; }
.toc-box ul li a:hover { text-decoration-color: var(--primary); }

/* Download Counter styling */
.download-counter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    padding: 15px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}
.counter-num { font-size: 32px; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 5px; }
.counter-label { font-size: 14px; color: var(--text-muted); }

/* --- Blog Enhanced UX Styles --- */

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumbs a { transition: var(--transition); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { opacity: 0.5; }

/* Sticky Article Layout */
@media (min-width: 1200px) {
    .article-container {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 40px;
        align-items: start;
    }
    .sticky-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Enhanced TOC */
.toc-box {
    margin: 0 0 30px 0;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}
.toc-box h3 { font-size: 16px; margin-bottom: 15px; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }
.toc-box ul li { margin-bottom: 8px; font-size: 13px; }

/* Copy Code Component */
.copy-code-box {
    background: #111;
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 18px;
    margin: 20px 0;
    border: 1px solid var(--glass-border);
}
.copy-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
}
.copy-btn:hover { background: var(--primary-hover); transform: scale(1.05); }

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.related-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}
.related-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.related-card img { width: 100%; height: 120px; object-fit: cover; }
.related-card-content { padding: 15px; }
.related-card-content h4 { font-size: 14px; margin-bottom: 5px; }

/* Navigation Buttons */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}
.nav-side-btn {
    flex: 1;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition);
}
.nav-side-btn:hover { background: var(--glass-bg); border-color: var(--primary); transform: translateY(-3px); }
.nav-label { font-size: 11px; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.nav-title { font-size: 14px; font-weight: 600; }

/* Toast Notifications */
#toast-box {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
.toast {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 15px 25px;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* FAQ & Support Components */
.faq-category-title {
    font-size: 24px;
    font-weight: 800;
    margin: 50px 0 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6b00;
    display: inline-block;
}
.faq-item {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 40px;
    transition: var(--transition);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-size: 20px;
    font-weight: 800;
    color: #ff6b00;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.faq-answer {
    font-size: 16px;
    line-height: 1.9;
    opacity: 0.95;
    color: var(--text-main);
}

/* Troubleshooting Components */
.problem-card {
    margin-bottom: 40px;
    padding: 35px;
    background: rgba(136, 136, 136, 0.05);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
[data-theme="dark"] .problem-card {
    background: rgba(255, 255, 255, 0.03);
}
.problem-card:hover {
    transform: translateY(-5px);
    background: rgba(136, 136, 136, 0.08);
}
.problem-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: #ff6b00;
    font-size: 22px;
    font-weight: 800;
}
.solution-step {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    line-height: 1.7;
}
.step-number {
    background: #ff6b00;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
}
.warning-box {
    background: rgba(255, 107, 0, 0.08);
    border-right: 5px solid #ff6b00;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-main);
}
