/* ==========================================================================
   NUR ISLAMIC ACADEMY - OFFICIAL ISLAMIC EMERALD & GOLD DESIGN SYSTEM
   ========================================================================== */

:root {
    /* 🌿 Islamic Emerald Green Palette */
    --primary: #065f46;            /* Rich Emerald Islamic Green */
    --primary-light: #059669;      /* Vibrant Mint / Light Emerald */
    --primary-dark: #022c22;       /* Deep Forest Islamic Midnight Green */
    --primary-midnight: #011a14;   /* Opulent Dark Green for Footers & Headers */
    --primary-subtle: rgba(6, 95, 70, 0.08);
    --primary-border: rgba(6, 95, 70, 0.16);

    /* ✨ Royal Islamic Gold Palette */
    --accent: #d4af37;             /* Royal Metallic Gold */
    --accent-light: #f5d061;       /* Radiant Sunnah Gold */
    --accent-dark: #996515;        /* Deep Antique Bronze Gold */
    --accent-subtle: rgba(212, 175, 55, 0.12);
    --accent-border: rgba(212, 175, 55, 0.35);

    /* 🏷️ Compatibility Aliases across Legacy Files */
    --theme-green: #065f46;
    --theme-dark: #022c22;
    --theme-gold: #d4af37;
    --p-green: #065f46;
    --p-green-light: #059669;
    --p-yellow: #d4af37;
    --admin-green: #065f46;
    --admin-yellow: #d4af37;

    /* 🏛️ Surfaces & Neutrals */
    --white: #ffffff;
    --bg-soft: #f4f8f5;            /* Soft Sage / Mint-Tinted Off-White */
    --bg-color: #f4f8f5;
    --bg-light: #f4f8f5;
    --text-dark: #0f241d;          /* Deep Forest-Tinted Charcoal for Readability */
    --text-muted: #4e6b60;         /* Soft Evergreen Gray for Secondary Text */
    --border-light: #d8e5de;       /* Harmonious Greenish Gray Border */

    /* 🎨 Gradients & Effects */
    --green-gradient: linear-gradient(135deg, #022c22 0%, #065f46 100%);
    --green-gradient-vibrant: linear-gradient(135deg, #065f46 0%, #0d9488 100%);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f5d061 50%, #b8860b 100%);
    --gold-gradient-hover: linear-gradient(135deg, #f5d061 0%, #d4af37 100%);
    --hero-overlay: linear-gradient(135deg, rgba(2, 44, 34, 0.94) 0%, rgba(1, 26, 20, 0.98) 100%);
    --footer-gradient: linear-gradient(135deg, #011a14 0%, #022c22 100%);

    /* 🌟 Shadows */
    --gold-shadow: 0 10px 25px rgba(212, 175, 55, 0.28);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.4);
    --green-shadow: 0 12px 30px rgba(6, 95, 70, 0.15);
    --card-shadow: 0 8px 24px rgba(6, 95, 70, 0.06);
    --card-shadow-hover: 0 18px 40px rgba(6, 95, 70, 0.14);
}

/* Base Body & Reset */
body {
    background-color: var(--bg-soft);
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
}

::selection {
    background-color: var(--accent);
    color: var(--primary-dark);
}

/* Custom Islamic Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #edf3ef;
}
::-webkit-scrollbar-thumb {
    background: #c5a43b;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn-islamic-gold,
.btn-gold {
    background: var(--gold-gradient) !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border-radius: 50px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-islamic-gold:hover,
.btn-gold:hover {
    background: var(--gold-gradient-hover) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: var(--gold-shadow) !important;
}

.btn-islamic-green,
.btn-green {
    background: var(--green-gradient) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    border: 1px solid var(--accent) !important;
    box-shadow: 0 4px 15px rgba(6, 95, 70, 0.25) !important;
    transition: all 0.3s ease !important;
    border-radius: 50px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-islamic-green:hover,
.btn-green:hover {
    background: var(--accent) !important;
    color: var(--primary-dark) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: var(--gold-shadow) !important;
}

.btn-islamic-outline-gold {
    background: transparent !important;
    color: var(--accent) !important;
    font-weight: 700 !important;
    border: 2px solid var(--accent) !important;
    border-radius: 50px;
    padding: 8px 22px;
    transition: 0.3s ease;
    text-decoration: none;
}

.btn-islamic-outline-gold:hover {
    background: var(--accent) !important;
    color: var(--primary-dark) !important;
    box-shadow: var(--gold-shadow) !important;
}

/* ==========================================================================
   ISLAMIC BADGES & ACCENTS
   ========================================================================== */
.badge-gold {
    background: var(--accent-subtle) !important;
    color: var(--accent-dark) !important;
    border: 1px solid var(--accent-border) !important;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.badge-green {
    background: var(--primary-subtle) !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary-border) !important;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
}

/* Golden Islamic Section Divider */
.islamic-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px auto 35px;
    width: 100%;
    max-width: 220px;
}

.islamic-divider::before,
.islamic-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.islamic-divider i {
    color: var(--accent);
    font-size: 16px;
}

/* ==========================================================================
   ISLAMIC CARD SYSTEM
   ========================================================================== */
.card-islamic {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card-islamic:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--card-shadow-hover);
}

.card-islamic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-islamic:hover::before {
    opacity: 1;
}

/* Arabesque subtle pattern background */
.bg-arabesque {
    background-color: var(--primary-midnight);
    background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Forms & Inputs styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}

/* Breadcrumbs & Hero Headers */
.islamic-hero {
    background: var(--hero-overlay), url('https://www.transparenttextures.com/patterns/arabesque.png');
    padding: 90px 0 70px;
    color: var(--white);
    text-align: center;
    border-bottom: 5px solid var(--accent);
    position: relative;
}

.islamic-hero h1 {
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.islamic-hero .arabic-subtitle {
    font-family: 'Amiri', serif;
    color: var(--accent-light);
    font-size: 1.8rem;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}
