 /* --- BRANDING & VARIABLES --- */
    :root {
        --doc-primary: #2563EB; /* AiPSoft Blue */
        --doc-primary-dark: #1D4ED8;
        --doc-secondary: #0F172A; /* Deep Navy */
        --doc-bg-light: #F8FAFC; 
        --doc-bg-gray: #F1F5F9;
        --doc-text-main: #1E293B;
        --doc-text-muted: #64748b;
        --doc-border: #E2E8F0;
        --doc-gradient: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
    }

    .doc-wrapper {
        font-family: 'Lexend', sans-serif;
        color: var(--doc-text-main);
        background: #ffffff;
        line-height: 1.6;
        overflow-x: hidden;
    }

    .doc-container { 
        max-width: 1200px; 
        margin: 0 auto; 
        padding: 0 24px; 
        position: relative;
        z-index: 2;
    }

    /* --- TYPOGRAPHY & UTILITIES --- */
    .doc-title {
        font-size: 3.5rem;
        font-weight: 800;
        color: var(--doc-secondary);
        margin-bottom: 20px;
        letter-spacing: -0.02em;
        line-height: 1.15;
    }
    
    .doc-subtitle {
        font-size: 1.2rem;
        color: var(--doc-text-muted);
        max-width: 750px;
        margin: 0 auto 30px;
        line-height: 1.6;
    }

    .doc-section-title {
        font-size: 2.25rem;
        font-weight: 800;
        color: var(--doc-secondary);
        margin-bottom: 15px;
        letter-spacing: -0.02em;
        text-align: center;
    }

    .doc-badge {
        display: inline-flex;
        align-items: center;
        padding: 6px 16px;
        background: #eff6ff;
        color: var(--doc-primary);
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
        border: 1px solid rgba(37, 99, 235, 0.2);
    }

    /* --- BUTTONS --- */
    .doc-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 32px;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        gap: 10px;
        transition: all 0.3s ease;
        text-decoration: none !important;
        font-size: 1rem;
        border: none;
    }
    
    .doc-btn-primary { 
        background: var(--doc-primary); 
        color: white !important; 
        box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4); 
    }
    .doc-btn-primary:hover { 
        background: var(--doc-primary-dark); 
        transform: translateY(-2px); 
        box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5); 
    }

    .doc-btn-outline { 
        background: white; 
        border: 2px solid var(--doc-border); 
        color: var(--doc-secondary) !important; 
    }
    .doc-btn-outline:hover { 
        border-color: var(--doc-primary); 
        color: var(--doc-primary) !important; 
        background: var(--doc-bg-light); 
        transform: translateY(-2px); 
        box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05); 
    }

    /* --- HERO SECTION --- */
    .doc-hero {
        padding: 140px 0 100px;
        text-align: center;
        background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 100%);
        border-bottom: 1px solid var(--doc-border);
        position: relative;
    }

    .doc-hero-bg {
        position: absolute;
        inset: 0;
        background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
        background-size: 30px 30px;
        opacity: 0.3;
        z-index: 0;
        mask-image: radial-gradient(circle at center top, black, transparent 80%);
        -webkit-mask-image: radial-gradient(circle at center top, black, transparent 80%);
    }

    .doc-hero-content {
        position: relative;
        z-index: 2;
    }

    /* Fake Search Bar for Visuals */
    .doc-search-visual {
        max-width: 600px;
        margin: 40px auto 0;
        display: flex;
        align-items: center;
        background: white;
        border: 1px solid var(--doc-border);
        border-radius: 50px;
        padding: 10px 10px 10px 25px;
        box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
        transition: 0.3s;
    }
    .doc-search-visual:hover {
        border-color: var(--doc-primary);
        box-shadow: 0 25px 50px -10px rgba(37, 99, 235, 0.15);
    }
    .doc-search-visual i { color: #94a3b8; font-size: 1.2rem; }
    .doc-search-visual input {
        border: none;
        flex: 1;
        padding: 10px 15px;
        font-family: inherit;
        font-size: 1.05rem;
        color: var(--doc-text-main);
        outline: none;
        background: transparent;
    }
    .doc-search-visual .doc-search-btn {
        background: var(--doc-primary);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 40px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }
    .doc-search-visual .doc-search-btn:hover { background: var(--doc-primary-dark); }

    /* --- DOCUMENTATION CATEGORIES --- */
    .doc-categories {
        padding: 100px 0;
        background: var(--doc-bg-white);
    }

    .doc-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
        margin-top: 50px;
    }

    .doc-card {
        background: white;
        border: 1px solid var(--doc-border);
        border-radius: 16px;
        padding: 35px 30px;
        transition: all 0.3s ease;
        text-decoration: none !important;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .doc-card:hover {
        transform: translateY(-5px);
        border-color: var(--doc-primary);
        box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.1);
    }

    .doc-icon {
        width: 60px;
        height: 60px;
        background: var(--doc-bg-light);
        color: var(--doc-primary);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        margin-bottom: 20px;
        transition: 0.3s;
    }

    .doc-card:hover .doc-icon {
        background: var(--doc-primary);
        color: white;
    }

    .doc-card h3 {
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--doc-secondary);
        margin-bottom: 12px;
    }

    .doc-card p {
        font-size: 0.95rem;
        color: var(--doc-text-muted);
        margin-bottom: 25px;
        flex-grow: 1;
    }

    .doc-card-link {
        font-weight: 700;
        color: var(--doc-primary);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
        transition: gap 0.2s;
    }

    .doc-card:hover .doc-card-link {
        gap: 12px;
    }

    /* --- CTA SECTION --- */
    .doc-cta {
        margin: 0 0 100px 0;
        background: var(--doc-gradient);
        border-radius: 24px;
        padding: 80px 40px;
        text-align: center;
        color: white;
        position: relative;
        overflow: hidden;
        box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.3);
    }
    
    .doc-cta-bg {
        position: absolute;
        top: -100px; left: -100px; width: 300px; height: 300px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
    }
    
    .doc-cta h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; color: white; position: relative; z-index: 2; }
    .doc-cta p { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 35px; position: relative; z-index: 2; max-width: 600px; margin-left: auto; margin-right: auto; }

    /* Responsive */
    @media (max-width: 991px) {
        .doc-title { font-size: 2.75rem; }
        .doc-grid { grid-template-columns: 1fr 1fr; }
        .doc-search-visual { flex-direction: column; padding: 10px; border-radius: 24px; gap: 10px; }
        .doc-search-visual input { text-align: center; width: 100%; padding: 10px; }
        .doc-search-visual .doc-search-btn { width: 100%; border-radius: 14px; }
        .doc-search-visual i { display: none; }
    }

    @media (max-width: 640px) {
        .doc-hero { padding: 100px 0 60px; }
        .doc-title { font-size: 2.25rem; }
        .doc-grid { grid-template-columns: 1fr; }
    }


    /* Breadcrumbs (Uses rs- class to match PHP, but rm- variables for theme) */
    .rs-breadcrumbs {
        display: flex;
        align-items: center;
        justify-content: center; /* Centered to match the restaurant hero */
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 25px;
        color: var(--rm-text-muted); 
        flex-direction: <?php echo ($lang == 'ar') ? 'row-reverse' : 'row'; ?>; /* RTL Support */
    }

    .rs-breadcrumbs a {
        color: #2563EB; /* Changed to standard AiPSoft bright blue */
        text-decoration: none;
        transition: color 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-direction: <?php echo ($lang == 'ar') ? 'row-reverse' : 'row'; ?>; /* RTL Support */
    }

    .rs-breadcrumbs a:hover {
        color: var(--rm-food-red); /* Restaurant red on hover */
        text-decoration: underline;
    }

    .rs-breadcrumbs .rs-separator {
        color: #94a3b8;
        font-size: 0.8rem;
        transform: <?php echo ($lang == 'ar') ? 'rotate(180deg)' : 'none'; ?>; /* Flip arrows for Arabic */
    }

    .rs-breadcrumbs .rs-current {
        color: var(--rm-text-main); 
    }  