:root {
    --pal-black: #1a1a1a;
    --pal-white: #ffffff;
    --pal-green: #1a7a3a;
    --pal-red: #b31b1b;
    --pal-light-green: #e8f5e9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fafafa;
    color: #222;
}

/* Header – dark with subtle green gradient and red border */
.header-box {
    background: linear-gradient(145deg, #1a2a1a, #0d1f0d);
    border-radius: 20px;
    padding: 30px;
    border: 3px solid var(--pal-red);
}

/* All text in header is white – force with !important */
.header-box h1, 
.header-box h2, 
.header-box h4, 
.header-box p {
    color: #FFFFFF !important;
}
.header-box .arabic {
    color: #FFFFFF !important;
}

/* Header hr – green */
.header-box hr {
    border-color: var(--pal-green);
    border-width: 2px;
}

/* All section headings – black with green underline */
h2, h3 {
    color: var(--pal-black) !important;
    border-bottom: 3px solid var(--pal-green);
    padding-bottom: 8px;
    font-weight: 600;
}

/* Make h3 a bit smaller than h2 */
h3 {
    font-size: 1.5rem;
}

/* Cards – white with green left border */
.card {
    border-left: 5px solid var(--pal-green);
    background: var(--pal-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.card .card-body {
    color: #222;
}

/* Buttons */
.btn-primary {
    background-color: var(--pal-green);
    border-color: var(--pal-green);
}
.btn-primary:hover {
    background-color: #0f5f2a;
    border-color: #0f5f2a;
}
.btn-outline-primary {
    color: var(--pal-green);
    border-color: var(--pal-green);
}
.btn-outline-primary:hover {
    background-color: var(--pal-green);
    color: var(--pal-white);
}
.btn-danger {
    background-color: var(--pal-red);
    border-color: var(--pal-red);
}
.btn-danger:hover {
    background-color: #8a1414;
    border-color: #8a1414;
}

/* Section cards in admin */
.section-card {
    background: var(--pal-white);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}
.section-card h3 {
    border-bottom: 2px solid var(--pal-green);
    padding-bottom: 8px;
}

/* Message box – soft green background, dark text */
.message-box {
    background: var(--pal-light-green);
    color: var(--pal-black);
    border-radius: 10px;
    border: 1px solid var(--pal-green);
}
.message-box .lead {
    font-weight: bold;
}

/* List group items */
.list-group-item {
    border-left: 4px solid var(--pal-green);
}

/* Footer links */
footer a {
    color: var(--pal-black);
}
footer a:hover {
    color: var(--pal-red);
}

/* ========== Quote box styles ========== */
.quote-box {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border-radius: 15px;
    border-left: 6px solid var(--pal-green);
    border-right: 6px solid var(--pal-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 25px;
    transition: all 0.3s ease;
}
.quote-box:hover {
    box-shadow: 0 6px 20px rgba(26, 122, 58, 0.15);
}
.quote-arabic {
    font-size: 1.8rem;
    font-family: 'Amiri', 'Times New Roman', serif;
    color: #1a5a2a;
    line-height: 1.8;
    font-weight: 500;
}
.quote-translation {
    font-weight: 500;
    font-size: 1.1rem;
    color: #1a2a1a;
    margin-top: 8px;
}
.quote-reference {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}
.quote-narrator {
    font-size: 0.85rem;
    color: #888;
    margin-top: 3px;
}
.quote-title {
    color: var(--pal-green);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--pal-green);
    display: inline-block;
    padding-bottom: 5px;
}
