/* Import Arabic font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

/* Variables */
:root {
    --primary-color: #1B3B8C;
    --secondary-color: #E6E9F0;
    --accent-color: #FF4081;
    --text-color: #333;
    --light-text: #666;
    --border-color: #E1E1E1;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 90px;
    font-family: 'Cairo', sans-serif;
    text-align: right;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--primary-color);
    padding: 8px 0;
    color: #fff;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact-info {
    display: flex;
    align-items: center;
}

.header-contact-info .phone-number {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.header-contact-info .phone-number:hover {
    opacity: 0.9;
}

.header-contact-info .phone-number i {
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-left: -10px; /* Move slightly to the left */
     margin-top: 5px; /* Move slightly to the down */
    
}

.social-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Header Styles */
.main-header {
    padding: 15px 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* Hero Section Styles */
.hero-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Statistics Section Styles */
.statistics-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    background-color: #fff;
    position: fixed;
    top: 90px; /* Adjust to match header height */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    padding-bottom: 140px;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(27, 59, 140, 0.1);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-list a::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 12px;
    transition: width 0.3s ease;
}

.mobile-nav-list a:hover::after,
.mobile-nav-list a.active::after {
    width: 30px;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    color: var(--primary-color);
    background-color: rgba(27, 59, 140, 0.05);
    padding-right: 25px;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Emergency Indicator */
.emergency-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 64, 129, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-left: 15px;
    position: relative;
}

.emergency-indicator i {
    color: #FF4081;
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.emergency-indicator span {
    color: #FF4081;
    font-size: 0.85rem;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tooltip styles */
.emergency-tooltip {
    position: absolute;
    bottom: -40px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(27, 59, 140, 0.95);
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 1000;
}

.emergency-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 50%;
    transform: translateX(50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(27, 59, 140, 0.95);
}

.emergency-indicator:hover .emergency-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -45px;
}

/* Mobile Menu Emergency Section */
.mobile-menu-emergency {
    background: linear-gradient(45deg, var(--primary-color), #2850b8);
    padding: 20px;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-emergency .emergency-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-menu-emergency .emergency-title i {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.mobile-menu-emergency .emergency-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.mobile-menu-emergency .emergency-phone {
    background: var(--accent-color);
    color: #fff;
    padding: 8px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
}

.mobile-menu-emergency .emergency-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
}

.mobile-menu-emergency .emergency-phone i {
    font-size: 1rem;
}

/* Mobile Styles for Top Bar */
@media (max-width: 768px) {
    .top-bar {
        padding: 5px 0;
    }

    .top-bar .container {
        padding: 0 10px;
    }

    .header-contact-info {
        gap: 8px;
    }

    .header-contact-info .phone-number {
        font-size: 0.9rem;
        gap: 4px;
    }

    .header-contact-info .phone-number span {
        display: none;
    }

    .emergency-indicator {
        padding: 4px 8px;
        margin-left: 8px;
        gap: 4px;
    }

    .emergency-indicator span {
        font-size: 0.8rem;
    }

    .emergency-indicator i {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1px;
        background: rgba(255, 255, 255, 0.1);
        padding: 2px 4px;
        border-radius: 15px;
        margin-left: -5px;
    }

    .social-link {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        background-color: transparent;
    }

    .social-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: none;
    }

    .emergency-tooltip {
        display: none;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .social-links {
        padding: 2px;
        margin-left: -3px;
    }

    .social-link {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }

    /* Hide YouTube icon on very small screens */
    .social-link.youtube {
        display: none;
    }

    .header-contact-info .phone-number {
        font-size: 0.85rem;
    }

    .emergency-indicator {
        padding: 3px 6px;
    }
}

/* Ultra Small Devices */
@media (max-width: 320px) {
    .social-links {
        padding: 1px 2px;
        margin-left: -2px;
    }

    .social-link {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }

    /* Hide TikTok icon on ultra small screens */
    .social-link.tiktok {
        display: none;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    margin-right: 20px;
    display: inline-block;
    margin-top: 1px;
    
}

.current-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    min-width: 150px;
    display: none;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.language-switcher.open .lang-dropdown {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    background: #f0f0f0;
    pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 10px;
    }
    
    .current-lang span {
        display: none;
    }
    
    .current-lang {
        padding: 5px;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #e6e9f0;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.loader-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 16px rgba(27,59,140,0.08);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 