/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2d7a2d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.loader-content {
    text-align: center;
    color: #ffffff;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-family: 'Noto Sans Arabic', 'Cairo', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    font-family: 'Noto Sans Arabic', 'Cairo', Arial, sans-serif;
    background: 
        linear-gradient(rgba(245, 245, 245, 0.8), rgba(245, 245, 245, 0.8)),
        url('./ep.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    height: 80px;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: auto;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
}

.language-icon {
    font-size: 16px;
}

.language-text {
    font-weight: 500;
}

.language-dropdown {
    position: relative;
    display: inline-block;
    width: 160px;
    height: 45px;
}

.language-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 10px 15px;
    position: relative;
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    direction: ltr;
    font-family: Arial, 'Segoe UI', Tahoma, sans-serif;
}

.language-dropdown-btn:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.language-dropdown-btn:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.language-dropdown-btn.active {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    border-radius: 8px 8px 0 0;
}

.globe-icon {
    font-size: 16px;
    color: #666666;
    margin-right: 8px;
}

.selected-language {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
    text-align: left;
    font-family: Arial, 'Segoe UI', Tahoma, sans-serif;
}

.dropdown-arrow {
    font-size: 12px;
    color: #666666;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.language-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    margin-top: 4px;
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.language-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option:active {
    background-color: #e3f2fd;
}

.language-option.selected {
    background-color: #e3f2fd;
    color: #2c3e50;
    font-weight: 600;
}

.flag-icon {
    font-size: 16px;
    margin-right: 10px;
}

.language-option[data-lang="ar"] .flag-icon {
    margin-right: 0;
    margin-left: 10px;
}

.language-text {
    font-size: 14px;
    font-weight: 400;
    color: #2c3e50;
    flex: 1;
    text-align: left;
    font-family: Arial, 'Segoe UI', Tahoma, sans-serif;
}

.language-option[data-lang="ar"] .language-text {
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
    text-align: right;
}

/* Main Content Styles */
.main {
    background: 
        linear-gradient(rgba(245, 245, 245, 0.85), rgba(245, 245, 245, 0.8)),
        url('./epp.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 80px);
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo-container {
    margin-bottom: 40px;
    text-align: center;
}

.main-logo {
    width: 200px;
    height: auto;
}

.main-title {
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.4;
}

.subtitle {
    font-size: 16px;
    color: #666666;
    text-align: center;
    margin-bottom: 50px;
}

/* Services Container */
.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    width: 100%;
    margin-bottom: 40px;
}



/* Service Buttons - New Design */
.service-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    height: 80px;
    padding: 20px 25px;
    margin: 0 auto;
    position: relative;
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    direction: rtl;
    font-family: 'Noto Sans Arabic', 'Cairo', Arial, sans-serif;
    outline: none;
}

.service-button:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.service-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Back Arrow */
.back-arrow {
    font-size: 20px;
    color: #666666;
    font-weight: normal;
    cursor: pointer;
    padding: 5px;
    min-width: 30px;
    text-align: center;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    text-align: center;
    padding-right: 10px;
    padding-left: 10px;
}

/* Button Title */
.button-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
    font-family: 'Noto Sans Arabic', 'Cairo', Arial, sans-serif;
}

/* Button Subtitle */
.button-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #7f8c8d;
    line-height: 1.4;
    font-family: 'Noto Sans Arabic', 'Cairo', Arial, sans-serif;
}

/* Button Icon */
.button-icon {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
    line-height: 1;
}

/* Support Link */
.support-link {
    margin-top: 40px;
    text-align: center;
}

.support-text {
    font-size: 14px;
    color: #2d7a2d;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.support-text:hover {
    color: #236623;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main {
        padding: 40px 15px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .services-container {
        gap: 20px;
    }
    
    .service-button {
        max-width: 380px;
    }
    
    .header {
        padding: 10px 15px;
    }
}

/* Mobile responsive for language dropdown */
@media (max-width: 480px) {
    .language-dropdown {
        width: 140px;
        height: 40px;
    }
    
    .language-dropdown-btn {
        height: 40px;
        padding: 8px 12px;
    }
    
    .selected-language {
        font-size: 13px;
    }
    
    .language-text {
        font-size: 13px;
    }
    
    .language-option {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .services-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .service-button {
        height: 70px;
        padding: 15px 20px;
    }
    
    .button-title {
        font-size: 16px;
    }
    
    .button-subtitle {
        font-size: 13px;
    }
    
    .button-icon {
        font-size: 28px;
    }
    
    .back-arrow {
        font-size: 18px;
    }
    
    .header {
        padding: 10px 15px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 10px 0;
    }
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
} 
