:root {
    --primary-gold: #D4AF37;
    --light-gold: #F1D592;
    --dark-gold: #AA8C2C;
    --bg-deep: #050505;
    --bg-card: #111111;
    --royal-blue: #0A192F;
    --accent-blue: #172554;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.15);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

/* --- General Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    /* إلغاء لون التحديد الافتراضي عند اللمس */
    touch-action: manipulation;
    /* تحسين استجابة اللمس ومنع الزوم العشوائي عند الضغط السريع */
}

h1,
h2,
h3 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
}

/* .logo-text removed to prevent conflict with the main-header logo */

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Navigation & Header Styling --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 0;
    transition: var(--transition-fast);
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 2px solid var(--primary-gold);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    text-decoration: none !important;
    color: inherit !important;
}

.logo-text {
    font-family: 'Amiri', serif;
    font-weight: 800;
    font-size: 1.8rem !important;
    background: linear-gradient(to left, #F1D592, #D4AF37, #AA8C2C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #D4AF37;
    margin: 0;
    transition: var(--transition-fast);
    text-decoration: none !important;
    white-space: nowrap !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-white) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link:hover::after {
    width: 100%;
}

 .btn-apply-header {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    height: auto !important;
    border-radius: 30px !important;
    background: linear-gradient(to left, #F1D592, #D4AF37, #AA8C2C) !important;
    color: #000 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
    animation: gold-pulse 2s infinite ease-in-out;
    border: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
}

@keyframes gold-pulse {
    0%, 100% {
        filter: brightness(1.1) drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
    }
    50% {
        filter: brightness(0.9) drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
    }
}

.btn-apply-header:hover {
    animation-play-state: paused;
    transform: translateY(-3px) scale(1.05) !important;
    filter: brightness(1.2) !important;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.6) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--primary-gold);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--primary-gold);
    color: #000;
}

/* Mobile Sidebar Drawer */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #000;
    border-left: 2px solid var(--primary-gold);
    z-index: 3000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.close-menu {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:hover {
    color: var(--primary-gold);
}

.mobile-apply-btn {
    text-align: center;
    margin-top: 20px;
}

/* --- Responsive Form Layouts --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.luxury-form-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 50px 40px;
    border-radius: 40px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .luxury-form-card {
        padding: 30px 20px !important;
        border-radius: 25px !important;
    }
}

@media (max-width: 992px) {
    .main-header {
        padding: 5px 0 !important;
        background: #000 !important;
        border-bottom: 3px solid var(--primary-gold) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

    .header-container {
        display: flex !important;
        flex-direction: row !important;
        /* RTL logic handles the order */
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .logo-text {
        font-size: 1.15rem !important;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        margin: 0 !important;
    }

    .btn-apply-header {
        display: flex !important;
        padding: 6px 15px !important; 
        font-size: 0.8rem !important;
        margin: 0 !important;
        border-radius: 8px !important;
        min-width: 100px;
        justify-content: center;
        background: linear-gradient(to left, #F1D592, #D4AF37, #AA8C2C) !important;
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4) !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .main-header.scrolled {
        background: #000 !important;
        border-bottom: 3px solid var(--primary-gold) !important;
    }
}



/* --- Hero Section --- */
/* --- New Hero Section Structure --- */
.hero-new {
    background: #000;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    /* Reduced since header is gone */
    min-height: auto;
}

.hero-flyer-container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-flyer-img {
    width: 100%;
    height: auto;
    display: block;
    /* تقليل القص لإظهار سطر "حيث يلتقي أهل القرآن" بالكامل */
    clip-path: inset(0 0 26% 0);
    margin-bottom: -25%;
}

.hero-btns-wrapper {
    width: 100%;
    background: #000;
    padding: 10px 20px 80px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 320px;
    align-items: center;
}

.hero-btns .btn {
    width: 100% !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    transition: all 0.3s ease !important;
    animation: premium-pulse 2s infinite ease-in-out;
}

/* حركة نبض قوية وتوهج لجذب الانتباه */
@keyframes premium-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }
}

.hero-btns .btn-primary {
    background: #D4AF37 !important;
    color: #000 !important;
    border: none !important;
}

.hero-btns .btn-secondary {
    background: transparent !important;
    color: #D4AF37 !important;
    border: 2px solid #D4AF37 !important;
}

.hero-btns .btn-nominate-hero {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin-top: 15px;
    animation: text-pulse 3s infinite ease-in-out;
}

@keyframes text-pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 77, 77, 0);
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 77, 77, 0);
    }
}

.hero-btns .btn-nominate-hero i {
    color: #ff4d4d;
    margin-left: 8px;
    filter: drop-shadow(0 0 8px #ff4d4d);
}

.hero-flyer-img {
    width: 100%;
    height: auto;
    display: block;
    /* ضبط القص لضمان ظهور سطر "حيث يلتقي أهل القرآن" بالكامل */
    clip-path: inset(0 0 24% 0);
    margin-bottom: -23%;
}

.hero-btns .btn:hover {
    transform: translateY(-5px) scale(1.08) !important;
    filter: brightness(1.2);
    animation-play-state: paused;
}

.hidden-gallery-item {
    display: none !important;
}

@media (max-width: 768px) {
    .hero-flyer-img {
        clip-path: inset(0 0 24% 0);
        margin-bottom: -23%;
    }

    .hero-btns .btn {
        width: 95% !important;
        height: 55px !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        width: 100% !important;
        height: auto !important;
        min-height: 52px;
    }
}

.btn {
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-slow);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--dark-gold), var(--primary-gold));
    color: #000;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.5);
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: #000;
    transform: translateY(-8px);
}

.btn-secondary:active {
    transform: scale(0.95);
    background: var(--dark-gold);
}

/* --- Stats Section --- */
.stats {
    padding: 60px 0;
    background: var(--bg-deep);
    position: relative;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    padding: 30px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-slow);
}

.stat-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--primary-gold);
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Mobile Stats Optimization */
@media (max-width: 600px) {
    .grid-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 20px 10px;
        border-radius: 15px;
    }

    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

/* --- About Section --- */
.about {
    padding: 40px 0;
    background: linear-gradient(to bottom, var(--bg-deep), #0a0a0a);
}

.about-grid {
    display: flex;
    justify-content: center;
    text-align: center;
}

.about-content {
    max-width: 1000px;
    width: 100%;
}

.section-header-centered {
    margin-bottom: 30px;
}

.section-header-centered h2 {
    font-size: 3.5rem;
    color: #fff;
    margin: 5px 0;
}

.section-subtitle {
    color: var(--primary-gold);
    font-size: 1.4rem;
    font-family: 'Amiri', serif;
    font-style: italic;
    margin-bottom: 10px;
}

.about-cards-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.about-card {
    background: var(--bg-deep);
    /* الأسود */
    border: 1px solid var(--primary-gold);
    padding: 20px;
    border-radius: 20px;
    text-align: right;
    transition: var(--transition-slow);
    height: fit-content;
    align-self: start;
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0px;
}

.about-card:nth-child(even) {
    background: #fff;
    /* الأبيض */
    border-color: #000;
}

.about-card:nth-child(even) h3,
.about-card:nth-child(even) p,
.about-card:nth-child(even) li {
    color: #000 !important;
}

.about-card:nth-child(even) .card-icon-small {
    color: var(--dark-gold);
}

.card-icon-small {
    font-size: 1.5rem;
    color: var(--primary-gold);
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.about-card h3 {
    font-size: 1.8rem;
    color: #fff;
    border-right: 4px solid var(--primary-gold);
    padding-right: 15px;
    margin-bottom: 0;
}

.about-card p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
}

.check-list i {
    color: var(--primary-gold);
}

.goals-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 25px 30px;
    border-radius: 30px;
    margin-bottom: 30px;
    text-align: right;
}

.goals-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.goals-header h3 {
    font-size: 2.2rem;
    color: var(--primary-gold);
}

.goals-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.goal-item-new {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.goal-item-new:nth-child(odd) {
    background: #000;
    color: #fff;
    border: 1px solid var(--primary-gold);
}

.goal-item-new:nth-child(even) {
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
}

.goal-item-new:nth-child(even) span {
    color: #000;
}

.goal-item-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.goal-item-new::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.5rem;
    color: var(--primary-gold);
}

.goal-item-new:hover {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.about-footer-note {
    text-align: center;
    padding: 30px;
    background: linear-gradient(45deg, var(--dark-gold), var(--primary-gold));
    border-radius: 50px;
    color: #000;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

/* --- Quotes Section --- */
.quotes-section {
    padding: 80px 0;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.02), rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.02));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.quote-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    opacity: 0.5;
    margin-bottom: 15px;
}

.quote-text {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.6;
}

.quote-author {
    display: block;
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Significance Section --- */
.significance-section {
    padding: 30px 0;
    background: var(--bg-deep);
}

.significance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.significance-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition-slow);
}

.significance-item:hover {
    background: rgba(212, 175, 55, 0.03);
    border-color: var(--primary-gold);
    transform: translateY(-10px);
}

.sig-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
}

.significance-item h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light-gold);
}

.significance-item p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.white-significance-item {
    background: #ffffff !important;
    border-color: #000 !important;
}

.white-significance-item h3,
.white-significance-item p {
    color: #000 !important;
}

.white-significance-item .sig-icon {
    color: var(--dark-gold) !important;
}

.significance-outro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-top: 1px solid var(--glass-border);
}

.significance-outro p {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.6;
}


/* --- Categories (Cards) --- */
.categories {
    padding: 40px 0;
    background: #0a0a0a;
}

.upper-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin: 5px 0;
}

.apply-section .section-header h2 {
    color: #1a1a1a;
}

.decorative-line {
    width: 100px;
    height: 4px;
    background: var(--primary-gold);
    margin: 15px auto;
    border-radius: 5px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.glass-card {
    background: var(--bg-deep);
    /* الأسود */
    padding: 30px 25px;
    border-radius: 25px;
    border: 1px solid var(--primary-gold);
    text-align: center;
    transition: var(--transition-slow);
    backdrop-filter: blur(10px);
}

.glass-card:nth-child(even) {
    background: #fff;
    /* الأبيض */
    border-color: #000;
}

.glass-card:nth-child(even) h3,
.glass-card:nth-child(even) p {
    color: #000 !important;
}

.glass-card p {
    color: var(--text-gray);
    font-size: 1.05rem;
}

/* --- Honoring Section --- */
.honoring {
    padding: 40px 0;
    position: relative;
    background: linear-gradient(rgba(10, 25, 47, 0.92), rgba(5, 5, 5, 0.98)), url('sheikh_sitting.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- Custom File Upload Styling --- */
.custom-file-upload {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 55px;
}

.custom-file-upload:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: #d4af37;
    transform: translateY(-2px);
}

.custom-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-text {
    font-size: 0.95rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.file-text i {
    font-size: 1.2rem;
    color: #d4af37;
}

.custom-file-upload.has-file {
    border-style: solid;
    background: rgba(40, 167, 69, 0.05);
    border-color: #28a745;
}

.custom-file-upload.has-file .file-text {
    color: #fff;
}

.submit-btn:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Animations for progress */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s infinite linear;
}

.honoring-text {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.4rem;
    line-height: 2;
}

.relative-z {
    position: relative;
    z-index: 5;
}

.gold-text {
    color: var(--primary-gold) !important;
}

.gold-bg {
    background: var(--primary-gold) !important;
}

.honoring-text {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.4rem;
    line-height: 2;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.benefit-item {
    background: rgba(212, 175, 55, 0.15);
    padding: 15px 35px;
    border-radius: 50px;
    border: 1px solid var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.benefit-item i {
    color: var(--primary-gold);
}

/* --- Special Awards --- */
.special-awards {
    margin-top: 80px;
}

.special-title {
    font-size: 2.2rem;
    color: var(--primary-gold);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.special-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
}

.awards-flex {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.award-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 320px;
    min-height: 300px;
    height: auto;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    margin: 10px;
}


.award-card:hover {
    transform: scale(1.05);
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-gold);
}

.award-icon-box {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.award-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.award-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- Contact Section --- */
/* --- Contact Section (Shiny & Attractive) --- */
.contact {
    padding: 30px 0 60px 0;
    background: #050505;
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--primary-gold);
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: drift 15s linear infinite;
}

@keyframes drift {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 40px;
    border-radius: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Shiny Border Effect */
.contact-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
            transparent 20%,
            var(--primary-gold) 40%,
            #fff 50%,
            var(--primary-gold) 60%,
            transparent 80%);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 62px;
    opacity: 0.3;
    animation: shimmer-border 4s linear infinite;
}

@keyframes shimmer-border {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.contact-info h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info p {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 22px 30px;
    border-radius: 20px;
    color: #fff;
    font-size: 1.15rem;
    outline: none;
    transition: all 0.4s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.btn-primary.w-full {
    background: linear-gradient(45deg, var(--dark-gold), var(--primary-gold), var(--dark-gold));
    background-size: 200% auto;
    color: #000;
    font-size: 1.3rem;
    padding: 20px;
    animation: shine-btn 3s linear infinite;
}

@keyframes shine-btn {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shadow-gold {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.contact-form input:active,
.contact-form textarea:active {
    background: rgba(255, 255, 255, 0.05);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.detail-card {
    text-align: center;
    padding: 25px;
    background: var(--bg-deep);
    /* الأسود */
    border-radius: 20px;
    border: 1px solid var(--primary-gold);
}

.detail-card a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 700;
}

/* --- Footer --- */
.footer {
    background: #050505;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-branding {
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.social-links-circle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links-circle a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-links-circle a:hover {
    background: var(--primary-gold);
    color: #000;
    transform: rotate(360deg);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.designer-credit {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

.designer-name {
    color: var(--primary-gold);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    margin: 0 5px;
    position: relative;
    display: inline-block;
}

.designer-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.designer-name:hover::after {
    transform: scaleX(1);
}

.heart-icon {
    color: #ff4d4d;
    margin-right: 5px;
    filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.5));
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .goals-grid-new {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
        background: #ffffff;
    }

    .nav-links {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 5px 0;
        width: 100%;
        justify-content: center;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for Chrome/Safari */
    }

    .nav-links li {
        white-space: nowrap;
    }

    .nav-toggle {
        display: none;
        /* Hide hamburger menu since links are visible */
    }

    .logo-text {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .border-nav {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .hero-title {
        font-size: 2.4rem;
        /* Reduced to ensure one line on mobile */
    }

    .hero-subtitle-new {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .section-header h2,
    .section-header-centered h2 {
        font-size: 2.2rem;
    }

    .contact-info h2 {
        font-size: 2.8rem;
    }

    .about {
        padding: 80px 0;
    }

    .about-card {
        padding: 25px;
    }

    .goals-wrapper {
        padding: 30px 20px;
    }

    .contact-card {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .contact-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .benefit-item {
        width: 100%;
        justify-content: center;
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
    }

    .quote-text {
        font-size: 1.3rem;
    }

    .hero-content::before {
        font-size: 5.5vw !important;
        /* Smaller for mobile to ensure it fits on one line */
    }

    /* Fix background images for mobile */
    .hero,
    .honoring {
        background-attachment: scroll !important;
    }

    #instructionsPanel {
        padding: 20px !important;
        margin-bottom: 30px !important;
        border-radius: 15px !important;
    }
    #instructionsPanel h2 {
        font-size: 1.6rem !important;
    }
    #instructionsPanel .instruction-steps h3 {
        font-size: 1.1rem !important;
    }
    #instructionsPanel .instruction-steps p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    #instructionsPanel i.fa-scroll {
        font-size: 2.5rem !important;
        margin-bottom: 10px !important;
    }
    #instructionsPanel .instruction-steps span {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.9rem !important;
        margin-top: 3px !important;
    }
}

/* --- Registration Section (Apply) --- */
.apply-section {
    padding: 60px 0 20px 0;
    background: #f8f9fa;
}

.apply-container {
    max-width: 900px;
    margin: 0 auto;
}

.apply-card {
    background: #ffffff;
    /* أبيض صريح للبطاقة */
    padding: 35px 25px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.form-header h2 {
    color: #1a1a1a;
}

.form-header p {
    color: #666;
    font-size: 1.2rem;
}

.apply-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 20px;
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group.full-width {
    grid-column: span 2;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.custom-file-upload {
    position: relative;
    width: 100%;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fdfdfd;
    border: 2px dashed #ddd;
    border-radius: 12px;
    transition: var(--transition-fast);
    text-align: center;
    min-height: 100px;
}

.custom-file-upload:hover .file-label {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
}

.file-label i {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.file-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.custom-file-upload.has-file .file-label {
    border-color: #2e7d32;
    background: rgba(46, 125, 50, 0.05);
}

.custom-file-upload.has-file .file-label i {
    color: #2e7d32;
}

/* OCR Action Styles */
.input-with-action {
    position: relative;
    display: flex;
    gap: 10px;
}

.input-group input {
    background: #fefefe;
    border: 1px solid #ddd;
    padding: 15px 20px;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 1rem;
    transition: var(--transition-fast);
    width: 100%;
}

.input-group input:focus {
    border-color: var(--primary-gold);
    background: #fff;
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

/* OCR Action Styles */
.input-with-action {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-action input {
    flex: 1;
}

.action-btn {
    background: linear-gradient(45deg, var(--dark-gold), var(--primary-gold));
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.ocr-status {
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--dark-gold);
    background: rgba(212, 175, 55, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.ocr-loader i {
    margin-left: 5px;
}

/* File Upload Styles */
.file-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.file-upload-item {
    position: relative;
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition-fast);
}

.file-upload-item:hover {
    border-color: var(--primary-gold);
    background: #fff;
}

.file-upload-item input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.file-custom-btn {
    margin-top: 15px;
    color: var(--primary-gold);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-custom-btn i {
    font-size: 2rem;
}

/* Level Selection */
.level-selection {
    margin-bottom: 50px;
}

.level-selection h3 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    justify-items: stretch;
}

.level-btn {
    cursor: pointer;
    position: relative;
    width: 100%;
}

.level-btn input {
    position: absolute;
    opacity: 0;
}

.level-content {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #eee;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-fast);
    height: 100%;
    width: 100%;
    flex-grow: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.level-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.level-desc {
    font-size: 0.95rem;
    color: #777;
}

.level-btn input:checked+.level-content {
    background: #fffdf5;
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.level-btn input:checked+.level-content .level-title {
    color: var(--primary-gold);
}

.form-footer {
    text-align: center;
}

.submit-btn {
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.4rem;
    padding: 20px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, var(--dark-gold), var(--primary-gold));
}

.form-note {
    color: var(--text-gray);
    font-style: italic;
    font-size: 0.95rem;
}

/* --- Form Notes Box --- */
.form-notes-box {
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.form-notes-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: #00BFFF;
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #00BFFF;
}

.notes-header i {
    font-size: 1.5rem;
}

.notes-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.notes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.notes-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.notes-list li i {
    color: #00BFFF;
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.notes-list li.note-warning {
    color: #ff4d4d;
    font-weight: 700;
    grid-column: span 2;
    border-top: 1px solid rgba(255, 77, 77, 0.2);
    padding-top: 10px;
    margin-top: 5px;
}

.notes-list li.note-warning i {
    color: #ff4d4d;
}

@media (max-width: 768px) {
    .notes-list li {
        font-size: 0.95rem;
    }
}


@media (max-width: 768px) {
    .apply-card {
        padding: 30px 15px;
    }

    .apply-form .form-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .input-group,
    .input-group.full-width {
        width: 100% !important;
        grid-column: auto !important;
    }

    .input-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .input-group input,
    .input-group select {
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
        height: 50px !important;
    }

    .submit-btn {
        width: 100% !important;
        font-size: 1.2rem;
        padding: 18px;
        border-radius: 12px;
    }

    .levels-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --- Countdown Timer --- */
.countdown-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at center, #111 0%, var(--bg-deep) 100%);
    z-index: 10;
    overflow: hidden;
}

.countdown-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/black-paper.png');
    /* Subtle texture */
    opacity: 0.2;
    pointer-events: none;
}

.countdown-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.countdown-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 40px;
    font-family: 'Amiri', serif;
    position: relative;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-slow);
}

.countdown-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
}

.countdown-item span {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    /* Solid fallback color */
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Tajawal', sans-serif;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    background: linear-gradient(to bottom, #fff, var(--primary-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    animation: numberPulse 2s infinite ease-in-out;
}

@keyframes numberPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
    }
}

.countdown-item label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 600;
}

.countdown-divider {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    margin-bottom: 30px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

@media (max-width: 600px) {
    .countdown-card {
        padding: 30px 15px;
        border-radius: 25px;
    }

    .countdown-grid {
        gap: 8px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px 5px;
    }

    .countdown-item span {
        font-size: 2rem;
    }

    .countdown-title {
        font-size: 1.5rem;
    }
}

/* --- Loader --- */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Admin Panel Extra Styles --- */
.admin-tabs {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.admin-tabs .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
    border-radius: 8px;
}

.admin-tabs .btn-primary {
    background: var(--primary-gold);
    color: #000;
}

.admin-tabs .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    color: #aaa;
}

.admin-tabs .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.registrations-table td {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .admin-tabs {
        flex-direction: column;
        width: 100%;
    }
}

/* --- PWA Install Banner --- */
.pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(26, 45, 30, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 15px 20px;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    direction: rtl;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pwa-icon-small {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.pwa-text {
    display: flex;
    flex-direction: column;
}

.pwa-text strong {
    color: #d4af37;
    font-size: 1rem;
    margin-bottom: 2px;
}

.pwa-text span {
    color: #ccc;
    font-size: 0.85rem;
}

.pwa-install-btn-banner {
    background: #d4af37 !important;
    color: #000 !important;
    font-weight: 800 !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 50px !important;
    white-space: nowrap;
    border: none !important;
    cursor: pointer;
}

.pwa-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

@media (max-width: 600px) {
    .pwa-banner {
        bottom: 15px;
        left: 10px;
        right: 10px;
        padding: 12px;
    }
    .pwa-text span {
        display: none;
    }
}


/* --- Mother Gallery --- */
.mother-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 0;
    justify-content: center;
    padding: 0;
}

.mother-img-wrapper {
    position: relative;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    transition: var(--transition-fast);
    aspect-ratio: 3/4;
}

.mother-img-wrapper:last-child {
    max-width: 240px;
}

.mother-img-wrapper.landscape {
    aspect-ratio: 4/3;
}

.mother-img-wrapper.portrait {
    aspect-ratio: 3/4;
}

.mother-img-wrapper.single-img {
    max-width: 250px;
    flex: none;
}



.mother-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: none;
}

.img-overlay span {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mother-img-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
    z-index: 10;
}

.mother-img-wrapper:hover .mother-img {
    transform: scale(1.1);
}

.mother-img-wrapper:hover .img-overlay {
    opacity: 1;
}

@media (max-width: 480px) {
    .mother-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px;
        margin-bottom: 0;
        justify-content: center;
        padding: 0;
    }

    .mother-img-wrapper {
        max-width: 100%;
        width: 100%;
        flex: none;
    }
}

/* --- Competition Gallery Section --- */
.competition-gallery {
    padding: 60px 0;
    background: #050505;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary-gold);
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
    transition: var(--transition-slow);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 images per row on mobile */
        gap: 10px;
        /* Smaller gap on mobile */
    }
}

/* --- Loyalty Touch Section --- */
.loyalty-touch {
    margin-top: 80px;
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.loyalty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
    justify-items: center;
}

.loyalty-item {
    text-align: center;
    max-width: 250px;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px 20px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-slow);
}

.loyalty-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--primary-gold);
    transform: translateY(-10px);
}

.loyalty-img-box {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-gold);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.loyalty-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    /* Respectful tone */
    transition: var(--transition-slow);
}

.loyalty-item:hover .loyalty-img {
    filter: grayscale(0);
}

.loyalty-name {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    /* Ensure name is on one line */
}

.loyalty-p {
    font-size: 1rem;
    color: var(--primary-gold);
    font-family: 'Amiri', serif;
}

.loyalty-img.top-focus {
    object-position: top center;
}

.gallery-item.hidden {
    display: none !important;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border: 3px solid var(--primary-gold);
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
    animation: zoom 0.4s ease-out;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-gold);
}

/* --- Floating Header Navigation Style --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding: 8px 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-btns {
    display: flex;
    gap: 12px;
}

.btn-nav {
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-apply-now {
    background: var(--primary-gold);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-nominate {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-nominate:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
    transform: translateY(-2px);
}

.nav-logo .gold-text {
    background: linear-gradient(to right, #d4af37, #f1d592);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Amiri', serif;
    font-weight: 900;
    letter-spacing: 1px;
}

/* --- Blinking Glow Animation --- */
@keyframes blinkGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
        background: #fff;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }
}

.blink-glow {
    animation: blinkGlow 2s infinite ease-in-out;
}

@media (max-width: 768px) {
    .nav-logo {
        display: none;
    }

    .nav-flex {
        justify-content: center;
        padding: 0 10px;
    }

    .nav-btns {
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .btn-nav {
        padding: 9px 12px;
        font-size: 0.78rem;
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .btn-nav {
        font-size: 0.7rem;
        padding: 8px 10px;
        gap: 4px;
    }
}

@media (max-width: 600px) {

    /* Fix for modal alignment */
    .seat-modal {
        padding: 10px;
        left: 0;
        right: 0;
        margin: auto;
    }

    .seat-modal-content {
        width: 100% !important;
        margin: auto;
        padding: 25px 15px;
    }
}

/* --- Winners History Section --- */
.winners-history {
    padding: 60px 0;
    background: var(--bg-deep);
}

.winners-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.winners-toggle-btn {
    padding: 18px 45px;
    font-size: 1.25rem;
    font-weight: 800;
    transition: all 0.5s ease;
    border-radius: 50px;
}

.winners-toggle-btn:hover {
    transform: scale(1.05);
    background: var(--primary-gold);
    color: #000;
}

.winners-board-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 50px 30px;
    margin-top: 20px;
}

.winners-board-content .winners-intro-text {
    font-family: 'Amiri', serif !important;
    font-size: 1.6rem !important;
    font-style: italic !important;
    color: var(--primary-gold) !important;
    margin: 20px auto !important;
    text-align: center !important;
    max-width: 800px !important;
}

.winners-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.level-winner-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 30px;
    transition: all 0.4s ease;
}

.level-winner-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.level-card-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.level-card-header h3 {
    color: var(--primary-gold);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.winners-list {
    list-style: none;
    padding: 0;
}

.winner-li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.winner-li:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rank-1 {
    background: gold;
    color: #000;
    box-shadow: 0 0 15px gold;
}

.rank-2 {
    background: silver;
    color: #000;
    box-shadow: 0 0 10px silver;
}

.rank-3 {
    background: #CD7F32;
    color: #fff;
    box-shadow: 0 0 10px #CD7F32;
}

.rank-other {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.winner-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Response Fix for Section Header */
.winners-board-content .section-header h2 {
    font-size: 2.8rem;
    color: #fff;
}

@media (max-width: 768px) {
    .winners-board-content {
        padding: 30px 15px;
    }

    .winners-board-content .section-header h2 {
        font-size: 2.2rem;
    }

    .winner-name {
        font-size: 1rem;
    }
}

/* --- 2026 Elite Preloader V3 --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #000 70%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loader-content-v3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-icon-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.spinner-ring-1 {
    width: 100%;
    height: 100%;
    border-top: 2px solid #D4AF37;
    border-right: 2px solid rgba(212, 175, 55, 0.2);
    animation: spinner-spin 2s linear infinite;
}

.spinner-ring-2 {
    width: 80%;
    height: 80%;
    border-bottom: 2px solid #F1D592;
    border-left: 2px solid rgba(241, 213, 146, 0.2);
    animation: spinner-spin-reverse 1.5s linear infinite;
}

.spinner-ring-3 {
    width: 60%;
    height: 60%;
    border: 1px dashed rgba(212, 175, 55, 0.6);
    animation: spinner-spin 3s linear infinite;
}

.loader-icon {
    font-size: 3.5rem;
    color: #D4AF37;
    animation: icon-pulse 2s infinite alternate ease-in-out;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.loader-text-v3 {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #D4AF37;
    background: linear-gradient(to right, #F1D592, #D4AF37, #AA8C2C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    letter-spacing: 2px;
    opacity: 0;
    animation: fade-up 1s ease forwards 0.5s;
}

.loader-progress-bar {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: fade-up 1s ease forwards 0.8s;
}

.loader-progress-fill {
    position: absolute;
    top: 0;
    right: 0; /* RTL alignment */
    height: 100%;
    background: linear-gradient(90deg, transparent, #D4AF37, #F1D592, #D4AF37, transparent);
    background-size: 200% 100%;
    width: 0%;
    animation: progress-load 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, progress-glow 1.5s linear infinite;
}

@keyframes progress-load {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes progress-glow {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes spinner-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinner-spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes icon-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 20px rgba(212, 175, 55, 1)); }
}

@keyframes fade-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Intense Fire Glowing Animation (نار عالية وتطفي) --- */
@keyframes fireShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes intenseFirePulse {
    0% { 
        box-shadow: 0 0 10px #ff4500, 0 0 20px #ff4500, inset 0 0 5px rgba(255, 255, 255, 0.3);
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 40px #ff0000, 0 0 70px #ff4500, 0 0 100px #eb984e, inset 0 0 15px rgba(255, 255, 255, 0.6);
        transform: scale(1.15); /* نبضة قوية */
        filter: brightness(1.5); /* تطفي وتنور بقوة */
    }
    100% { 
        box-shadow: 0 0 10px #ff4500, 0 0 20px #ff4500, inset 0 0 5px rgba(255, 255, 255, 0.3);
        transform: scale(1);
        filter: brightness(1);
    }
}

.btn-apply-header {
    background: linear-gradient(120deg, #c0392b 0%, #e67e22 25%, #f1c40f 50%, #e67e22 75%, #c0392b 100%) !important;
    background-size: 250% auto !important;
    color: #fff !important; /* لون أبيض ليليق مع النار */
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid #fff !important;
    border-radius: 50px !important;
    padding: 12px 35px !important;
    animation: fireShimmer 2s linear infinite, intenseFirePulse 1.2s ease-in-out infinite !important;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.btn-apply-header:hover {
    transform: translateY(-5px) scale(1.2) !important;
    filter: brightness(1.3);
    box-shadow: 0 0 80px #ff4500 !important;
}

#preloader {
    z-index: 10000;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    background: #128C7E !important;
}

/* ==========================================================================
   New Dynamic Nomination System & Terms Modal Styles
   ========================================================================== */

.nomination-hero-container {
    max-width: 1000px;
    margin: 40px auto 0 auto;
    padding: 0 15px;
}

.nomination-card-wrapper {
    background: linear-gradient(145deg, rgba(18, 30, 24, 0.95), rgba(10, 20, 15, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.08);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.nomination-card-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #00b894, #e84393, #d4af37);
    background-size: 300% 100%;
    animation: goldShimmer 6s ease infinite;
}

.nomination-header {
    text-align: center;
    margin-bottom: 30px;
}

.nomination-header h3 {
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nomination-header p {
    color: #b0c4de;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Nomination Category Selectors (3 Cards) */
.nomination-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.nom-type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.nom-type-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.nom-type-card.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(0, 184, 148, 0.12));
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(212, 175, 55, 0.1);
}

.nom-type-card[data-type="teacher-female"].active {
    background: linear-gradient(135deg, rgba(232, 67, 147, 0.15), rgba(212, 175, 55, 0.12));
    border-color: #e84393;
    box-shadow: 0 10px 30px rgba(232, 67, 147, 0.25), inset 0 0 15px rgba(232, 67, 147, 0.1);
}

.nom-type-card[data-type="quran-family"].active {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.18), rgba(212, 175, 55, 0.15));
    border-color: #00b894;
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.25), inset 0 0 15px rgba(0, 184, 148, 0.1);
}

.nom-type-card .card-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 12px auto;
    transition: all 0.3s ease;
}

.nom-type-card[data-type="teacher-female"] .card-icon {
    background: rgba(232, 67, 147, 0.12);
    color: #e84393;
}

.nom-type-card[data-type="quran-family"] .card-icon {
    background: rgba(0, 184, 148, 0.12);
    color: #00b894;
}

.nom-type-card.active .card-icon {
    transform: scale(1.12);
}

.nom-type-card h5 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.nom-type-card p {
    color: #a0aec0;
    font-size: 0.85rem;
    margin: 0;
}

.nom-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4af37;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nom-type-card.active .nom-type-badge {
    opacity: 1;
    transform: scale(1);
}

/* Dynamic Form Input Container */
.nomination-fields-area {
    position: relative;
    min-height: 200px;
    transition: all 0.35s ease;
}

.form-step-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-step-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.input-group-custom {
    margin-bottom: 20px;
    position: relative;
}

.input-group-custom label {
    display: block;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group-custom label span.required-star {
    color: #ff4757;
    margin-right: 4px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
    padding-right: 45px !important;
}

.form-control-custom {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.form-control-custom:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.form-control-custom::placeholder {
    color: #718096;
}

select.form-control-custom option {
    background: #1a202c;
    color: #ffffff;
}

.field-hint {
    font-size: 0.85rem;
    color: #cbd5e0;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-hint i {
    color: #d4af37;
}

/* Quranic Family Dynamic Children Section */
.children-section-header {
    background: rgba(0, 184, 148, 0.08);
    border: 1px dashed rgba(0, 184, 148, 0.3);
    border-radius: 14px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.children-section-header h6 {
    color: #00b894;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.children-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.child-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 184, 148, 0.25);
    border-radius: 16px;
    padding: 18px;
    position: relative;
    transition: all 0.3s ease;
}

.child-card-item:hover {
    border-color: #00b894;
    background: rgba(0, 184, 148, 0.05);
}

.child-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 184, 148, 0.18);
    color: #00b894;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.submit-btn-wrapper {
    margin-top: 28px;
    text-align: center;
}

.btn-nominate-submit {
    width: 100%;
    max-width: 450px;
    padding: 15px 30px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #0d1b1e;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-nominate-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #f39c12, #d4af37);
}

.btn-nominate-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Terms Modal Popup (15 Seconds Lock for Quranic Family)
   ========================================================================== */

.terms-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5, 12, 9, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.terms-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terms-modal-content {
    background: linear-gradient(145deg, #0d1b3e, #0a1628, #0f1e45);
    border: 1px solid rgba(180, 150, 60, 0.45);
    border-radius: 24px;
    max-width: 580px;
    width: 100%;
    padding: 30px 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(70, 100, 200, 0.18), inset 0 1px 0 rgba(212, 175, 55, 0.12);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.terms-modal-overlay.active .terms-modal-content {
    transform: scale(1);
}

.terms-modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 60, 130, 0.35), rgba(180, 150, 60, 0.18));
    color: #d4af37;
    border: 2px solid rgba(212, 175, 55, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px auto;
    box-shadow: 0 0 25px rgba(100, 130, 220, 0.25), 0 0 12px rgba(212, 175, 55, 0.2);
}

.terms-modal-content h4 {
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.terms-list-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: right;
    margin: 20px 0;
}

.terms-list-box p {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.terms-list-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-list-box ul li {
    color: #cbd5e0;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.terms-list-box ul li i {
    color: #5b8dee;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.terms-timer-wrapper {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffd700;
    font-weight: 600;
    font-size: 0.95rem;
}

.timer-countdown-num {
    background: #d4af37;
    color: #0a1610;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    animation: pulse 1s infinite;
}

.btn-terms-accept {
    width: 100%;
    padding: 14px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1a3a8f, #2a52b8, #1e40af);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(26, 58, 143, 0.4);
}

.btn-terms-accept:disabled {
    background: rgba(255, 255, 255, 0.06);
    color: #718096;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.btn-terms-accept:not(:disabled):hover {
    background: linear-gradient(135deg, #1e45aa, #3060cc, #2348c0);
    box-shadow: 0 10px 25px rgba(26, 58, 143, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* Responsive Rules for Nomination Section */
@media (max-width: 768px) {
    .nomination-types-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nomination-card-wrapper {
        padding: 24px 16px;
        border-radius: 18px;
    }
    
    .nomination-header h3 {
        font-size: 1.5rem;
    }

    .children-cards-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Clean Crisp White Form Theme & Definitions Section
   ========================================================================== */

/* Definition Cards Section (Above Form) */
.nomination-definitions-wrapper {
    max-width: 1000px;
    margin: 40px auto 30px auto;
    padding: 0 15px;
}

.definitions-header {
    text-align: center;
    margin-bottom: 25px;
}

.definitions-header h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
}

.definitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.def-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.def-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #1b5e20);
}

.def-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: #d4af37;
}

.def-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    color: #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.def-card[data-def="female"] .def-card-icon {
    background: rgba(232, 67, 147, 0.12);
    color: #e84393;
}

.def-card[data-def="family"] .def-card-icon {
    background: rgba(0, 184, 148, 0.12);
    color: #00b894;
}

.def-card h4 {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.def-card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* Crisp White Form Container */
.nomination-card-wrapper-white {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 35px 30px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
    position: relative;
    overflow: hidden;
}

.nomination-card-wrapper-white .nomination-header h3 {
    color: #1a202c !important;
}

.nomination-card-wrapper-white .nomination-header p {
    color: #718096 !important;
}

/* Selector Cards in White Theme */
.nomination-card-wrapper-white .nom-type-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
}

.nomination-card-wrapper-white .nom-type-card h5 {
    color: #1a202c;
}

.nomination-card-wrapper-white .nom-type-card p {
    color: #718096;
}

.nomination-card-wrapper-white .nom-type-card:hover {
    background: #ffffff;
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.nomination-card-wrapper-white .nom-type-card.active {
    background: #fffdf5;
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.nomination-card-wrapper-white .input-group-custom label {
    color: #2d3748 !important;
}

.nomination-card-wrapper-white .form-control-custom {
    background: #f8fafc !important;
    border: 1px solid #cbd5e0 !important;
    color: #1a202c !important;
}

.nomination-card-wrapper-white .form-control-custom:focus {
    background: #ffffff !important;
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

.nomination-card-wrapper-white .form-control-custom::placeholder {
    color: #a0aec0 !important;
}

.nomination-card-wrapper-white .input-with-icon i {
    color: #b8860b !important;
}

.nomination-card-wrapper-white select.form-control-custom option {
    background: #ffffff !important;
    color: #1a202c !important;
}

.nomination-card-wrapper-white .field-hint {
    color: #718096 !important;
}

.nomination-card-wrapper-white .child-card-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.nomination-card-wrapper-white .child-card-item:hover {
    border-color: #00b894 !important;
    background: #ffffff !important;
}

/* ==========================================================================
   Welcome Nomination Selection Modal ("ماذا تريد أن ترشّح؟")
   ========================================================================== */

.welcome-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 20, 15, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.welcome-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.welcome-modal-content {
    background: #ffffff;
    border-radius: 28px;
    max-width: 650px;
    width: 100%;
    padding: 35px 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-modal-overlay.active .welcome-modal-content {
    transform: scale(1);
}

.welcome-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.welcome-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.welcome-modal-header {
    margin-bottom: 25px;
}

.welcome-modal-header .welcome-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #b8860b;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-modal-header h3 {
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.welcome-modal-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.welcome-choices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.welcome-choice-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.welcome-choice-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: #d4af37;
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.welcome-choice-card .choice-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    color: #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 12px auto;
}

.welcome-choice-card[data-choice="female"] .choice-icon {
    background: rgba(232, 67, 147, 0.12);
    color: #e84393;
}

.welcome-choice-card[data-choice="family"] .choice-icon {
    background: rgba(0, 184, 148, 0.12);
    color: #00b894;
}

.welcome-choice-card h5 {
    color: #1a202c;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.welcome-choice-card p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================================================
   Full Mobile Responsiveness & Overflow Prevention for Nomination Form
   ========================================================================== */

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 768px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .nomination-hero-container {
        padding: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .nomination-card-wrapper-white {
        padding: 20px 14px !important;
        border-radius: 20px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.06) !important;
    }

    .nomination-header h3 {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
    }

    .nomination-header p {
        font-size: 0.88rem !important;
    }

    .nomination-types-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .nom-type-card {
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }

    .nom-type-card h5 {
        font-size: 1.05rem !important;
    }

    .input-group-custom {
        margin-bottom: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .input-group-custom label {
        font-size: 0.9rem !important;
    }

    .form-control-custom {
        font-size: 0.9rem !important;
        padding: 12px 14px !important;
        padding-right: 42px !important;
        height: auto !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 12px !important;
    }

    .form-control-custom::placeholder {
        font-size: 0.82rem !important;
    }

    .input-with-icon i {
        font-size: 1rem !important;
        right: 14px !important;
    }

    .btn-nominate-submit {
        width: 100% !important;
        padding: 16px 14px !important;
        font-size: 1.05rem !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
    }

    .definitions-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .def-card {
        padding: 18px 14px !important;
        border-radius: 16px !important;
    }

    .def-card h4 {
        font-size: 1.15rem !important;
    }

    .def-card p {
        font-size: 0.88rem !important;
        line-height: 1.65 !important;
    }

    .welcome-modal-content {
        padding: 25px 16px !important;
        border-radius: 22px !important;
        max-width: 94% !important;
        box-sizing: border-box !important;
    }

    .welcome-modal-header h3 {
        font-size: 1.4rem !important;
    }

    .welcome-choices-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .welcome-choice-card {
        padding: 16px 12px !important;
        border-radius: 16px !important;
    }

    .welcome-choice-card h5 {
        font-size: 1.05rem !important;
    }

    /* Prevent sticky header nav button from overlapping header text on narrow mobile screens */
    .nav-actions {
        gap: 6px !important;
    }

    .nav-actions .btn-nominate-nav {
        font-size: 0.78rem !important;
        padding: 6px 10px !important;
        border-radius: 20px !important;
    }
}

