
@font-face {
    font-family: 'Washrab';
    src: url('/fonts/washrab.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Arabic Quran font */
@font-face {
    font-family: 'KFGQPC Uthman Taha Naskh';
    src: url('/assets/fonts/KFGQPC Uthman Taha Naskh Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
html, body, h1, h2, h3, h4, h5, h6,
button, input, select, textarea,
.navbar-links a {
    font-family: 'Washrab', 'Noto Serif Ethiopic', 'Noto Sans Ethiopic', 'Abyssinica SIL', 'Nyala', 'Kefa', serif !important;
}
/* Ensure Font Awesome icons use their own font families */
.fa, .fas, .far, .fal, .fat, .fab, .fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-brands {
    font-family: var(--fa-style-family, 'Font Awesome 6 Free') !important;
    font-weight: var(--fa-style, 900) !important;
}
.fa-brands { font-family: 'Font Awesome 6 Brands' !important; font-weight: 400 !important; }

/* Global Arabic text styling for all pages */
.arabic-text, [lang="ar"], [dir="rtl"] {
    font-family: 'KFGQPC Uthman Taha Naskh', 'Traditional Arabic', 'Arabic Typesetting', serif !important;
}
:root { --accent: #14b8a6; --accent-2: #06b6d4; --deep: #0f172a; }
/* Header uses the same page background with gradient */
header {
    background-image: linear-gradient(180deg, rgba(242, 222, 26, 0.65) 0%, rgba(27, 127, 27, 0.65) 60%), url('/assets/img/color-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: sticky; /* override theme absolute header to prevent overlap */
    top: 0;
    z-index: 1000;
}
/* Global page background using image + yellow→green gradient overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(180deg, rgba(242, 222, 26, 0.65) 0%, rgba(27, 127, 27, 0.65) 60%),
        url('/assets/img/color-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}
header::after { content: none; }
/* header .top-bar { padding: 8px 0; } */
/* header .bottom-bar { padding: 12px 0; } */
header .navbar-links > li > a { padding: 10px 14px; font-size: 25px; }
header .content-header h4 { font-size: 14px; line-height: 1.2; margin: 0; }

/* Harmonize nav with page accents */
/* Shared hero band background (header + slider wrapper) */
.hero-band-bg {
    background-image: linear-gradient(180deg, rgba(242, 222, 26, 0.65) 0%, rgba(27, 127, 27, 0.65) 60%), url('/assets/img/color-bg.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.navbar-links li a { 
    color: #e5e7eb; 
    transition: all .3s ease;
    position: relative;
    padding: 10px 14px;
}
.navbar-links li a:hover {
    color: #fbc50b;
}
/* Active state for navigation links */
.navbar-links li a.active {
    color: #fbc50b;
    font-weight: 600;
}
.navbar-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 14px;
    right: 14px;
    height: 3px;
    background: linear-gradient(90deg, rgba(242, 222, 26, 0.8), rgba(27, 127, 27, 0.8));
    border-radius: 2px;
}

/* Admin dropdown styling */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, rgba(242, 222, 26, 0.95), rgba(27, 127, 27, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-dropdown .dropdown a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 8px;
}

.navbar-dropdown .dropdown a:hover {
    color: #fbc50b;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Chevron rotation on hover */
.navbar-dropdown:hover a i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Top bar admin dropdown styling */
.admin-dropdown {
    position: relative;
}

.admin-dropdown .navbar-dropdown a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.admin-dropdown .navbar-dropdown a:hover {
    color: #fbc50b;
    background: rgba(255, 255, 255, 0.1);
}

.admin-dropdown .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(242, 222, 26, 0.95), rgba(27, 127, 27, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.admin-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown .dropdown a {
    display: block;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 6px;
}

.admin-dropdown .dropdown a:hover {
    color: #fbc50b;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

/* Mobile header improvements */
@media (max-width: 768px) {
    /* Hide top bar on mobile for cleaner look */
    .top-bar { display: none !important; }
    
    /* Mobile navigation styling */
    .mobile-nav {
        background: linear-gradient(180deg, rgba(242, 222, 26, 0.65) 0%, rgba(27, 127, 27, 0.65) 60%), url('/assets/img/color-bg.jpg');
        background-size: cover;
        background-position: center;
        backdrop-filter: blur(10px);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
    }
    
    .mobile-nav ul {
        padding: 0 20px;
        margin: 0;
    }
    
    .mobile-nav ul li {
        margin: 8px 0;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav ul li:hover {
        background: rgba(242, 222, 26, 0.2);
        transform: translateX(5px);
    }
    
    .mobile-nav ul li a {
        display: block;
        padding: 12px 20px;
        color: #ffffff;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .mobile-nav ul li a:hover {
        color: #fbc50b;
        background: rgba(242, 222, 26, 0.1);
    }
    
    /* Mobile active state */
    .mobile-nav ul li a.active {
        color: #fbc50b;
        background: rgba(242, 222, 26, 0.15);
        font-weight: 600;
        border-left: 4px solid #fbc50b;
    }
    
    /* Mobile hamburger menu button */
    .bar-menu {
        background: linear-gradient(135deg, rgba(242, 222, 26, 0.9), rgba(27, 127, 27, 0.9));
        border-radius: 12px;
        padding: 12px 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .bar-menu:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    
    .bar-menu i {
        color: #ffffff;
        font-size: 20px;
    }
    
    /* Mobile logo area */
    .res-log {
        text-align: center;
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    /* Close button styling */
    #res-cross {
        position: absolute;
        top: 15px;
        right: 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 18px;
        transition: all 0.3s ease;
    }
    
    #res-cross:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }
    
    /* Bottom bar mobile improvements */
    .bottom-bar {
        padding: 15px 0;
    }
    
    .two-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }
}

/* Reveal-on-scroll helper */
.reveal-card { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal-card.in-view { opacity: 1; transform: translateY(0); }
