:root {
    --emerald: #2ecc71;
    --emerald-dark: #1e8449;
    --gold: #f1c40f;
    --gold-dark: #d4ac0d;
    --cream: #fbf9f6;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

.text-emerald { color: var(--emerald-dark) !important; }
.bg-emerald { background-color: var(--emerald-dark) !important; color: white !important; }
.btn-emerald { background-color: var(--emerald-dark); color: white; border: none; }
.btn-emerald:hover { background-color: #145a32; color: white; }

.text-gold { color: var(--gold-dark) !important; }
.bg-gold { background-color: var(--gold) !important; color: #212529 !important; }
.btn-gold { background-color: var(--gold); color: #212529; border: none; }
.btn-gold:hover { background-color: var(--gold-dark); color: white; }

.bg-cream { background-color: var(--cream) !important; }

/* Stylized Brand: M, W, A in vibrant gold (#dfa708), rest in rich forest green (#238656) as specified */
.brand-title {
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    letter-spacing: 0.2px;
    font-weight: 700;
}
.brand-cap {
    color: #dfa708 !important;
    font-weight: 900 !important;
}
.brand-rest {
    color: #238656 !important;
    font-weight: 700 !important;
}
.brand-tagline-sub {
    font-size: 0.72rem;
    color: #555555;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Social embed container styling */
.social-feed-container {
    min-height: 480px;
    max-height: 540px;
    overflow-y: auto;
    border-radius: 12px;
}

/* Fixed Background / Parallax Hovering Effect across home page */
body {
    background-color: #f7f9f7;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../img/hero3.jpg') center center / cover no-repeat fixed;
    opacity: 0.08; /* Subtle background photo hovering effect */
    z-index: -1;
    pointer-events: none;
}

/* Hero Carousel Deck */
.hero-carousel {
    position: relative;
    overflow: hidden;
}
.hero-slide {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0 80px;
}
/* Subtle dark-gradient overlay ensuring text pops without heavy green clash */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 34, 22, 0.72) 0%, rgba(20, 50, 32, 0.82) 100%);
    z-index: 1;
}
.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Semi-translucent sections hovering over fixed page background */
.bg-cream {
    background-color: rgba(251, 249, 246, 0.94) !important;
    backdrop-filter: blur(4px);
}
.bg-white-translucent {
    background-color: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(4px);
}
.bg-light-translucent {
    background-color: rgba(248, 249, 250, 0.93) !important;
    backdrop-filter: blur(4px);
}

/* Cards */
.card-programme {
    border-top: 4px solid var(--gold) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.card-programme:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
}
.card-programme img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    text-align: right;
}
html[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}
