/* Import Arabic-friendly font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (THEME VARIABLES)
   ============================================ */
:root {
    /* Theme Colors */
    --primary: #2596be;
    --secondary: #26C485;
    --light: #fffffe;
    --dark: #191919;
    --danger: #e54b4b;


    --bg-primary: var(--primary);
    --bg-light: var(--light);
    --bg-dark: var(--dark);
    --bg-secondary: var(--secondary);
    --bg-danger: var(--danger);

    --text-primary: var(--primary);
    --text-dark: var(--dark);
    --text-light: var(--light);
    --text-secondary: var(--secondary);
    --text-danger: var(--danger);

    /* Font Family */
    --font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
    /* RTL for Arabic */
    text-align: right;
    overflow-x: hidden;
}

/* Typography - Apply font to all elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
nav,
button,
a,
input,
textarea,
select,
label {
    font-family: var(--font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.ic-size-24 {
    width: 24px;
    height: 24px;
}

/* ============================================
   SECTIONS
   ============================================ */
section,
.snap-section {
    min-height: 100vh;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 769px) {

    section,
    .snap-section {
        min-height: auto;
        padding: var(--spacing-xl) var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
}

/* Container titles styling */
h2.text-center.mb-lg {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(37, 150, 190, 0.3) 5%, rgba(37, 150, 190, 0.6) 100%); */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    animation: fadeInUp 1.2s ease;
}

/* Hero Slideshow Section */
.hero-slideshow {
    min-height: 50vh;
    position: relative;
    overflow: hidden;
    background-color: rgba(37, 150, 190, 0.1);
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 714;
    background-color: rgba(37, 150, 190, 0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(37, 150, 190, 0.3) 5%, rgba(37, 150, 190, 0.6) 100%); */
    z-index: 1;
}

/* Navigation Arrows */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 150, 190, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slideshow-nav:hover {
    background: rgba(37, 150, 190, 0.25);
    border-color: rgba(37, 150, 190, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slideshow-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 3;
}

.slideshow-prev {
    right: 20px;
}

.slideshow-next {
    left: 20px;
}

/* Dot Indicators */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;

    background: rgba(37, 150, 190, 0.25);
    border-color: rgba(37, 150, 190, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow-dot:hover {
    background: rgba(37, 150, 190, 0.25);
    border-color: rgba(37, 150, 190, 0.3);
    transform: scale(1.2);
}

.slideshow-dot.active {
    background: var(--primary);
    border-color: var(--primary);

    width: 30px;
    border-radius: 6px;
}

.impact-slideshow {
    min-height: auto;
    background: #f8f9fa;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.impact-slideshow .slideshow-container {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
}

.impact-slideshow .slide {
    border-radius: var(--radius-lg);
    background-size: cover;
}

.impact-slideshow .slideshow-nav {
    background: rgba(37, 150, 190, 0.25)
}

.impact-slideshow .slideshow-dot {
    background: rgba(37, 150, 190, 0.25);
    border-color: rgba(37, 150, 190, 0.3);
}

.impact-slideshow .slideshow-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Responsive Design for Slideshow */
@media (max-width: 768px) {
    .hero-slideshow {
        min-height: auto;
    }

    .slideshow-container {
        aspect-ratio: 1280 / 714;
        max-height: 50vh;
    }

    .slideshow-nav {
        width: 40px;
        height: 40px;
    }

    .slideshow-nav svg {
        width: 20px;
        height: 20px;
    }

    .slideshow-prev {
        right: 10px;
    }

    .slideshow-next {
        left: 10px;
    }

    .slideshow-dots {
        bottom: 15px;
        gap: 8px;
    }

    .slideshow-dot {
        width: 10px;
        height: 10px;
    }

    .slideshow-dot.active {
        width: 25px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .slideshow-container {
        max-height: 40vh;
    }
}

/* Statistics Section */
.stats-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1e7a9e 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Days Section */
.days-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--bg-dark);
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.day-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-light);
    transition: var(--transition);
}

.day-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 150, 190, 0.3);
}

.day-card h3,
.day-card h4 {
    color: var(--text-light);
    margin: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background-color: var(--bg-light);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.15);
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    line-height: 1.6;
}

.service-card .btn {
    margin-top: var(--spacing-sm);
}

/* ============================================
   TOP NAVIGATION
   ============================================ */
.top-nav {
    background-color: var(--bg-light);
    padding: var(--spacing-sm) var(--spacing-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: var(--transition);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(37, 150, 190, 0.1);
}

.nav-link.active {
    color: var(--text-primary);
    background-color: rgba(37, 150, 190, 0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo {
    height: 64px;
    width: auto;
    transition: var(--transition);
}

.nav-logo-link:hover .nav-logo {
    opacity: 0.8;
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    align-items: center;
    justify-content: center;
}

.nav-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

/* ============================================
   DROPDOWN MENU (LARGE SCREENS ONLY)
   ============================================ */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.5;
    height: 100%;
}

.nav-dropdown-toggle:hover {
    background-color: rgba(37, 150, 190, 0.1);
}

.nav-dropdown-toggle svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + var(--spacing-xs));
    right: 0;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: var(--spacing-xs) 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    margin: 0;
}

.nav-dropdown-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    font-family: var(--font-family);
    font-size: 1rem;
    cursor: pointer;
}

.nav-dropdown-link:hover {
    background-color: rgba(37, 150, 190, 0.1);
    color: var(--text-primary);
}

.nav-dropdown-link.logout {
    color: #dc3545;
}

.nav-dropdown-link.logout:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Services dropdown specific styling */
.services-dropdown {
    display: flex;
    align-items: center;
}

.services-dropdown .nav-dropdown-toggle {
    color: var(--text-light);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    height: auto;
}

.services-dropdown .nav-dropdown-toggle:hover {
    color: var(--text-primary);
    background-color: rgba(37, 150, 190, 0.1);
}

.services-dropdown.active .nav-dropdown-toggle {
    color: var(--text-primary);
    background-color: rgba(37, 150, 190, 0.2);
}

.nav-dropdown-link.active {
    background-color: rgba(37, 150, 190, 0.1);
    color: var(--text-primary);
    font-weight: 600;
}

/* Hide dropdown on mobile, show regular links */
@media (max-width: 768px) {
    .nav-dropdown {
        display: none;
    }

    .mobile-logout,
    .mobile-services-link {
        display: block;
    }
}

/* Hide mobile logout and services links on large screens */
@media (min-width: 769px) {

    .mobile-logout,
    .mobile-services-link {
        display: none;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font-family);
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
    line-height: 1.2;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--bg-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #1e7a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 150, 190, 0.3);
}

.btn-light {
    background-color: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-light:hover {
    background-color: var(--text-primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 150, 190, 0.2);
}

.btn-pill {
    border-radius: var(--radius-pill);
}


.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #1e7a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 68%, 46%, 0.3);
}


.btn-primary-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-primary-outline:hover {
    background-color: var(--bg-primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 150, 190, 0.2);
}



.btn-secondary-outline {
    background-color: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

.btn-secondary-outline:hover {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 196, 133, 0.3);
}


.btn-danger-outline {
    background-color: transparent;
    color: var(--text-danger);
    border: 2px solid var(--text-danger);
}

.btn-danger-outline:hover {
    background-color: var(--bg-danger);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 75, 75, 0.3);
}



/* ============================================
   FORMS AND INPUTS
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-group.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select {
    font-family: var(--font-family);
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 400px;
}

input::placeholder,
textarea::placeholder {
    color: #999;
    opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-left: var(--spacing-xs);
    cursor: pointer;
}


/* ============================================
   LOADSCREEN
   ============================================ */
.loadscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loadscreen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(37, 150, 190, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: var(--text-light);
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
}

/* ============================================
   COMMITMENT SECTION
   ============================================ */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.commitment-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.commitment-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.15);
}

.commitment-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    filter: grayscale(0%);
    transition: var(--transition);
}

.commitment-card:hover .commitment-icon {
    transform: scale(1.1);
}

.commitment-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.3rem;
}

.commitment-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: var(--spacing-md) 0;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e7a9e 100%);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.4);
}

.step-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

.process-connector {
    flex: 1;
    height: 3px;
    background: linear-gradient(to left, var(--primary), rgba(37, 150, 190, 0.3));
    margin: 30px 10px 0;
    position: relative;
    top: -30px;
}

/* ============================================
   MISSION SECTION
   ============================================ */
.mission-content {
    max-width: 1000px;
    margin: 0 auto;
}

.mission-text {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.mission-lead {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

.mission-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.highlight-item {
    background-color: var(--bg-light);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.15);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition);
}

.highlight-item:hover .highlight-icon {
    transform: scale(1.15) rotate(5deg);
}

.highlight-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.highlight-item p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   SECURITY FEATURES
   ============================================ */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.security-badge {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.security-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #1e7a9e);
    transform: scaleX(0);
    transition: var(--transition);
}

.security-badge:hover::before {
    transform: scaleX(1);
}

.security-badge:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.15);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition);
}

.security-badge:hover .badge-icon {
    transform: scale(1.1);
}

.security-badge h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.security-badge p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   FORUM SECTION
   ============================================ */
.forum-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.forum-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.forum-text h2 {
    color: var(--text-primary);
    text-align: right;
    font-size: 2.2rem;
}

.forum-text p {
    color: var(--text-dark);
    text-align: right;
    line-height: 1.8;
}

.forum-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
    text-align: right;
}

.forum-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

.forum-cta {
    margin-top: var(--spacing-lg);
}

.forum-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    position: relative;
}

.forum-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1e7a9e 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
    transition: var(--transition);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.forum-card:first-child {
    grid-column: 1 / -1;
}

.forum-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.4);
}

.forum-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.forum-card p {
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* ============================================
   SPONSORS SECTION
   ============================================ */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: var(--spacing-xl) auto 0;
    padding: 0 var(--spacing-md);
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
    min-height: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sponsor-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.15);
}

.sponsor-image {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.sponsor-item:hover .sponsor-image {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copyright {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.text-ar-justify {
    direction: rtl;
    text-align: justify;
}

.text-subtitle {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.text-primary {
    color: var(--text-primary);
}

.text-dark {
    color: var(--text-dark);
}

.text-light {
    color: var(--text-light);
}

.bg-primary {
    background-color: var(--bg-primary);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-light {
    background-color: var(--bg-light);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.p-sm {
    padding: var(--spacing-sm);
}

.p-md {
    padding: var(--spacing-md);
}

.p-lg {
    padding: var(--spacing-lg);
}

/* ============================================
   RESPONSIVE DESIGN (MOBILE FRIENDLY)
   ============================================ */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .top-nav {
        background-color: var(--bg-light);
    }

    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-brand {
        position: relative;
        width: 100%;
        justify-content: space-between;
        margin-bottom: var(--spacing-xs);
    }

    .nav-logo {
        height: 80px;
    }

    .nav-toggle {
        display: flex;
        color: var(--text-dark);
    }

    .nav-toggle svg {
        color: var(--text-dark);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-md);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        text-align: center;
        padding: var(--spacing-sm);
        color: var(--text-dark);
    }

    .nav-link.active {
        color: var(--text-primary);
    }

    section,
    .snap-section {
        padding: var(--spacing-md);
        min-height: auto;
    }

    /* any cointainer inside snap-section add margin-top: 5em; */
    .snap-section .container {
        margin-top: 5em !important;
    }

    .btn {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .days-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sponsors-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0;
    }

    .sponsor-item {
        min-height: 120px;
    }

    .sponsor-image {
        max-height: 100px;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .process-timeline {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: center;
    }

    .process-step {
        flex: none;
        width: 100%;
        max-width: 300px;
    }

    .process-connector {
        flex: none;
        width: 3px;
        height: 40px;
        margin: 0 auto;
        top: 0;
        background: linear-gradient(to bottom, var(--primary), rgba(37, 150, 190, 0.3));
    }

    .mission-highlights {
        grid-template-columns: 1fr;
    }

    .security-features {
        grid-template-columns: 1fr;
    }

    .forum-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .forum-text h2 {
        text-align: center;
        font-size: 1.8rem;
    }

    .forum-text p {
        text-align: center;
    }

    .forum-features {
        text-align: center;
    }

    .forum-visual {
        grid-template-columns: 1fr;
    }

    .forum-card:first-child {
        grid-column: 1;
    }

    /* Table responsive styles */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.9rem;
        min-width: 600px;
    }

    thead th,
    tbody td,
    tbody th {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }

    .table-actions {
        flex-direction: column;
        width: 100%;
    }

    .table-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .top-nav {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .nav-logo {
        height: 70px;
    }

    .nav-brand {
        margin-bottom: var(--spacing-sm);
    }

    .footer {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .days-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Table styles for very small screens */
    table {
        font-size: 0.85rem;
        min-width: 500px;
    }

    thead th,
    tbody td,
    tbody th {
        padding: var(--spacing-xs);
        font-size: 0.85rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .top-nav,
    .footer,
    .loadscreen,
    .btn {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }
}


/* ============================================
   SECTION ANIMATIONS
   ============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Section animation states */
section.snap-section,
section:not(.hero-section):not(.stats-section):not(.hero-slideshow) {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.snap-section.animate-in,
section:not(.hero-section):not(.stats-section):not(.hero-slideshow).animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.8s ease forwards;
}

section.snap-section.animate-out,
section:not(.hero-section):not(.stats-section).animate-out {
    animation: slideOutDown 0.6s ease forwards;
}

/* ============================================
TABLE 
============================================ */
.page-container {
    padding: var(--spacing-xl) 0;
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.page-header h1 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    direction: rtl;
    text-align: right;
    font-family: var(--font-family);
}

thead {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1e7a9e 100%);
    color: var(--text-light);
}

thead th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.table th,
.table td {
    padding: var(--spacing-md);
    text-align: right;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.table th {
    background: var(--primary-color, #2596be);
    color: white;
    font-weight: 600;
}

.table tr:hover {
    background: rgba(38, 197, 133, 0.1);
}

.table td {
    max-width: 200px;
    word-wrap: break-word;
}

.description-cell {
    max-width: 300px;
}

.attachments-cell {
    max-width: 250px;
}



tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

tbody tr:hover {
    background-color: var(--bg-light);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: right;
    color: var(--text-dark);
    vertical-align: middle;
}

tbody th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
    vertical-align: middle;
}

tfoot {
    background-color: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

tfoot td,
tfoot th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

/* Table variants */
.table-striped tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-child(even):hover {
    background-color: rgba(37, 150, 190, 0.08);
}

.table-bordered {
    border: 2px solid #e0e0e0;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #e0e0e0;
}

.table-hover tbody tr {
    cursor: pointer;
}

.table-hover tbody tr:hover {
    background-color: rgba(37, 150, 190, 0.1);
    transform: scale(1.01);
}

/* Table responsive wrapper */
.table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-wrapper table {
    margin: 0;
    box-shadow: none;
}

/* Table actions */
.table-actions {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.table-actions .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
    margin: 0;
}

/* Table empty state */
.table-empty {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: #999;
    font-style: italic;
}

/* Table header alignment utilities */
.table-header-center thead th {
    text-align: center;
}

.table-header-left thead th {
    text-align: left;
}

/* Table cell alignment utilities */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.form-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
}

.inline-form {
    display: inline-block;
}

.form-inline-fields {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}


.no-data {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary, #666);
}

.confidential-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    background: #dc3545;
    color: white;
}

.attachment-link {
    color: var(--primary-color, #2596be);
    text-decoration: none;
    margin-left: 5px;
}

.attachment-link:hover {
    text-decoration: underline;
}

.ongoing-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    background: #28a745;
    color: white;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

.dashboard-container {
    padding: var(--spacing-xl) 0;
}

.dashboard-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.dashboard-header h1 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.stat-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text-light);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #2596be);
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.stat-card .stat-label {
    font-size: 1.2rem;
    color: var(--text-light);
}


/* ============================================
   ADMIN REPORTS LINKS
   ============================================ */
.admin-reports-links {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--bg-primary, #2596be);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-reports-links h2 {
    text-align: center;
    color: white;
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.reports-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.report-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: white;
    color: var(--text-primary, #2596be);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.report-link-btn:hover {
    background: #B5EF8A;
    border-color: #B5EF8A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.report-link-btn.active {
    background: #7FC29B;
    color: #000;
    border-color: #7FC29B;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.report-link-btn.active:hover {
    background: #B5EF8A;
    border-color: #B5EF8A;
}

.report-link-btn .icon {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .reports-buttons-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }

    .report-link-btn {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }

    .admin-reports-links {
        padding: var(--spacing-md);
    }
}

/* ============================================
   MODAL 
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: min(520px, 90vw);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}