/* ============================================================
   PAGES CSS - تنسيقات مشتركة لصفحات المحتوى
   Privacy, Terms, FAQ
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
    --red: #8B0000;
    --red-dark: #6b0000;
    --gold: #D4AF37;
    --gold-dark: #c9a227;
    --black: #111111;
    --dark: #1a1a2e;
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border: #e9ecef;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 50px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Page Hero - موحد لكل الصفحات ===== */
.page-hero {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark) 60%, var(--red) 130%);
    overflow: hidden;
    color: white;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(139, 0, 0, 0.25) 0%, transparent 45%),
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #f8f9fa, transparent);
    pointer-events: none;
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.hero-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold);
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
}

.hero-badge i {
    font-size: 14px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
    background: linear-gradient(135deg, #ffffff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Breadcrumb */
.hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
}

.hero-breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-breadcrumb a:hover {
    color: white;
}

.hero-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.hero-breadcrumb .current {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ===== Page Content Layout ===== */
.page-section {
    padding: 70px 0 90px;
    background: var(--bg-light);
    position: relative;
}

.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* ===== Sidebar TOC ===== */
.sidebar-toc {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
}

.toc-header {
    background: linear-gradient(135deg, var(--black), var(--dark));
    color: white;
    padding: 22px 25px;
    position: relative;
}

.toc-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--red));
}

.toc-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-header h4 i {
    color: var(--gold);
    font-size: 16px;
}

.toc-header .toc-count {
    margin-right: auto;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.toc-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.toc-body::-webkit-scrollbar {
    width: 5px;
}

.toc-body::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.toc-body::-webkit-scrollbar-track {
    background: transparent;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    line-height: 1.4;
}

.toc-list a .num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--bg-light);
    color: var(--text-light);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}

.toc-list a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--red);
}

.toc-list a:hover .num {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-dark);
}

.toc-list a.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(139, 0, 0, 0.05));
    color: var(--red);
    font-weight: 700;
}

.toc-list a.active .num {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.toc-footer {
    padding: 15px 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-footer i {
    color: var(--gold);
}

/* ===== Main Content ===== */
.content-wrapper {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Intro Card */
.content-intro {
    padding: 35px 40px;
    background: linear-gradient(135deg, #fffdf5 0%, #fff9e6 100%);
    border-bottom: 3px solid var(--gold);
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.intro-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
    position: relative;
}

.intro-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 25px;
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

.intro-text h2 {
    font-size: 1.5rem;
    color: var(--black);
    margin: 0 0 12px;
    font-weight: 800;
    line-height: 1.3;
}

.intro-text p {
    color: var(--text-light);
    line-height: 1.9;
    margin: 0 0 10px;
    font-size: 15px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.intro-text a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted var(--red);
}

.intro-text a:hover {
    color: var(--gold-dark);
    border-color: var(--gold-dark);
}

/* ===== Content Blocks ===== */
.content-blocks {
    padding: 45px 40px;
}

.content-block {
    padding-bottom: 45px;
    margin-bottom: 45px;
    border-bottom: 2px solid var(--border);
    scroll-margin-top: 100px;
    position: relative;
}

.content-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.block-num {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 900;
    color: var(--gold-dark);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
    border: 2px solid rgba(212, 175, 55, 0.35);
    padding: 8px 14px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.block-title h3 {
    font-size: 1.4rem;
    color: var(--black);
    margin: 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
}

.block-title h3 i {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.25);
}

.content-block > p {
    color: var(--text);
    line-height: 1.95;
    font-size: 15px;
    margin: 0 0 18px;
}

.content-block strong {
    color: var(--black);
    font-weight: 700;
}

.content-block h4 {
    font-size: 1.05rem;
    color: var(--black);
    margin: 28px 0 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-block h4 i {
    color: var(--gold);
    font-size: 17px;
}

/* ===== Lists ===== */
.check-list,
.x-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li,
.x-list li {
    position: relative;
    padding: 14px 55px 14px 20px;
    color: var(--text);
    line-height: 1.8;
    font-size: 14.5px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.check-list li:hover,
.x-list li:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}

.check-list li {
    border-right-color: #10b981;
}

.x-list li {
    border-right-color: #ef4444;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.x-list li::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.check-list li strong,
.x-list li strong {
    color: var(--black);
}

/* ===== Info Box ===== */
.info-box {
    display: flex;
    gap: 15px;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 22px 0;
    font-size: 14.5px;
    line-height: 1.8;
    align-items: flex-start;
}

.info-box i {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box.info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-right: 4px solid #3b82f6;
    color: #1e40af;
}

.info-box.info i { color: #3b82f6; }

.info-box.warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-right: 4px solid #f59e0b;
    color: #92400e;
}

.info-box.warning i { color: #f59e0b; }

.info-box.success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-right: 4px solid #10b981;
    color: #065f46;
}

.info-box.success i { color: #10b981; }

.info-box strong {
    color: inherit;
    font-weight: 800;
}

/* ===== Card Grids ===== */
.card-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Feature Card */
.feature-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--red));
    transition: width 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.feature-card:hover::before {
    width: 100%;
}

.feature-card .icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.icon-wrap.icon-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.icon-wrap.icon-red { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.icon-wrap.icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-wrap.icon-green { background: linear-gradient(135deg, #10b981, #059669); }
.icon-wrap.icon-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-wrap.icon-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.icon-wrap.icon-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.icon-wrap.icon-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.feature-card h5 {
    font-size: 15.5px;
    color: var(--black);
    font-weight: 800;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ===== Timeline ===== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 25px 0;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 25px;
    border-radius: var(--radius-sm);
    background: white;
    border: 2px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.timeline-item:hover {
    transform: translateX(-8px);
    box-shadow: var(--shadow-md);
}

.timeline-item.timeline-full { border-color: #10b981; }
.timeline-item.timeline-half { border-color: #f59e0b; }
.timeline-item.timeline-none { border-color: #ef4444; }

.timeline-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.timeline-full .timeline-icon { background: linear-gradient(135deg, #10b981, #059669); }
.timeline-half .timeline-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.timeline-none .timeline-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }

.timeline-content h5 {
    font-size: 16px;
    color: var(--black);
    font-weight: 800;
    margin: 0 0 6px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.timeline-content strong {
    color: var(--red);
    font-weight: 800;
}

/* ===== Stats Bar ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: -50px 0 40px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.stat-card .stat-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 22px;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    transform: rotate(-10deg) scale(1.05);
}

.stat-card .stat-info h5 {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 0 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-info span {
    font-size: 17px;
    color: var(--black);
    font-weight: 800;
    display: block;
}

/* ===== Contact CTA ===== */
.contact-cta {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--black), var(--dark));
    border-radius: var(--radius);
    margin-top: 45px;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-cta .cta-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 38px;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.35);
    position: relative;
    z-index: 1;
}

.contact-cta .cta-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact-cta h3 {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin: 0 0 22px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-cta.primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
}

.btn-cta.primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
    color: var(--black);
}

.btn-cta.whatsapp {
    background: #25d366;
    color: white;
}

.btn-cta.whatsapp:hover {
    background: #1ebe5b;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-cta.outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
    background: transparent;
}

.btn-cta.outline:hover {
    background: white;
    color: var(--black);
    border-color: white;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .page-hero { padding: 90px 0 70px; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .page-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-toc {
        position: static;
        max-height: none;
    }
    
    .toc-body { max-height: 300px; }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -30px;
    }
    
    .content-intro { padding: 28px 25px; }
    .content-blocks { padding: 35px 25px; }
    
    .card-grid.cols-3,
    .card-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cta { padding: 30px 25px; }
}

@media (max-width: 576px) {
    .page-hero { padding: 70px 0 55px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-badge { font-size: 11px; padding: 7px 14px; }
    
    .content-intro {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 25px 20px;
    }
    
    .intro-icon { width: 60px; height: 60px; font-size: 25px; }
    .intro-text h2 { font-size: 1.25rem; }
    
    .content-blocks { padding: 25px 18px; }
    
    .block-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .block-title h3 { font-size: 1.1rem; }
    .block-title h3 i { width: 32px; height: 32px; font-size: 14px; }
    
    .card-grid.cols-2,
    .card-grid.cols-3,
    .card-grid.cols-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card { padding: 15px; gap: 10px; }
    .stat-card .stat-icon { width: 44px; height: 44px; font-size: 18px; }
    .stat-card .stat-info span { font-size: 14px; }
    
    .check-list li,
    .x-list li {
        padding: 12px 48px 12px 15px;
        font-size: 13.5px;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .contact-cta {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .cta-buttons { justify-content: center; width: 100%; }
    .btn-cta { flex: 1; justify-content: center; min-width: 140px; }
}