/* Reverting to the FIRST Professional Layout - Royal Blue & Gold */
:root {
    --primary-color: #1a2b4c; /* Midnight Blue */
    --accent-color: #c5a059;  /* Gold */
    --text-color: #333;
    --light-grey: #f4f4f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #e5e7eb;
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* A4 Page Setup */
.page {
    width: 210mm;
    height: 297mm;
    padding: 20mm;
    margin: 15mm auto;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media print {
    @page { size: A4; margin: 0; }
    body { background: none; }
    .page { margin: 0; box-shadow: none; page-break-after: always; width: 210mm; height: 297mm; border: none; }
    .no-print { display: none !important; }
}

/* Cover Page */
.cover {
    background-color: var(--primary-color) !important;
    color: white !important;
    justify-content: center;
    text-align: center;
}

.gold-border {
    position: absolute;
    top: 10mm; left: 10mm; right: 10mm; bottom: 10mm;
    border: 2px solid var(--accent-color);
}

.logo-box {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    border: 1px solid var(--accent-color);
    padding: 20px;
    display: inline-block;
    margin-bottom: 50px;
}

.cover h1 { font-size: 3.5rem; margin-bottom: 10px; }
.cover .ar { font-family: 'Amiri', serif; }
.cover .en { font-family: 'Playfair Display', serif; font-weight: 400; }
.divider { width: 100px; height: 3px; background: var(--accent-color); margin: 30px auto; }
.cover-footer { position: absolute; bottom: 30mm; width: 100%; left: 0; font-size: 1rem; }

/* Inner Page Header */
.page-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px; margin-bottom: 25px;
    display: flex; justify-content: space-between; align-items: center;
}

.page-num { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--accent-color); font-weight: bold; }
.header-title { font-size: 0.8rem; text-transform: uppercase; color: var(--primary-color); letter-spacing: 2px; }

/* Bilingual Split Layout (The Original Pro) */
.bilingual-container {
    display: flex;
    flex: 1;
    gap: 40px;
}

.side { width: 50%; }
.ar-side, .ar-section, .ar-only { direction: rtl; text-align: right; }
.ar-side { border-left: 1px solid #eee; padding-left: 20px; }
.en-side, .en-section, .en-only { direction: ltr; text-align: left; font-family: 'Inter', sans-serif; }

.section-title { color: var(--accent-color); font-size: 0.85rem; text-transform: uppercase; margin-bottom: 10px; border-bottom: 1px solid var(--accent-color); display: inline-block; }
.article-title { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 10px; line-height: 1.3; font-weight: bold; }
.highlight { background: var(--primary-color) !important; color: white !important; padding: 5px 10px; }
.content { font-size: 1rem; line-height: 1.8; text-align: justify; }

/* Shared Visuals */
.img-placeholder-box {
    margin-top: 20px; width: 100%; height: 180px;
    background: var(--light-grey) !important; border: 1px solid var(--accent-color);
    display: flex; align-items: center; justify-content: center; color: #999; font-size: 0.7rem;
}

/* Export Panel */
.control-panel { position: fixed; top: 15px; left: 50%; transform: translateX(-50%); background: white; padding: 10px 25px; border-radius: 50px; z-index: 1000; display: flex; gap: 15px; border: 2px solid var(--accent-color); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.control-panel button { padding: 8px 20px; border-radius: 20px; border: none; cursor: pointer; font-weight: bold; font-family: 'Cairo'; background: var(--primary-color); color: white; }
.btn-w { background: var(--accent-color) !important; }
