/* Syrian Flag Design */
:root {
    --syrian-green: #228B22;
    --syrian-white: #ffffff;
    --syrian-black: #000000;
    --syrian-red: #FF0000;
    --card-blue: #1e40af;
    --card-blue-light: #3b82f6;
    --card-blue-dark: #1e3a8a;
}

/* Syrian Flag Background */
.syrian-flag-background {
    background: 
        linear-gradient(to bottom,
            var(--syrian-green) 0%,
            var(--syrian-green) 33.33%,
            var(--syrian-white) 33.33%,
            var(--syrian-white) 66.66%,
            var(--syrian-black) 66.66%,
            var(--syrian-black) 100%
        );
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Enhanced Star Design with CSS */
.syrian-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.syrian-star {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--syrian-red);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
    animation: starTwinkle 3s ease-in-out infinite alternate;
}

.syrian-star:nth-child(1) {
    top: 45%;
    left: 20%;
}

.syrian-star:nth-child(2) {
    top: 50%;
    left: 50%;
}

.syrian-star:nth-child(3) {
    top: 55%;
    left: 80%;
}

/* Star Twinkle Animation */
@keyframes starTwinkle {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7)) brightness(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotate(90deg);
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.9)) brightness(1.3);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 1)) brightness(1.5);
    }
}

/* Star Glow Effect */
.syrian-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: starGlow 2s ease-in-out infinite alternate;
}

@keyframes starGlow {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Content Overlay */
.syrian-flag-background .container,
.syrian-flag-background .header,
.syrian-flag-background .hero,
.syrian-flag-background .services,
.syrian-flag-background .centers,
.syrian-flag-background .contact,
.syrian-flag-background .footer {
    position: relative;
    z-index: 10;
}

/* Enhanced Text Visibility for All Flag Colors */
.syrian-flag-background .hero-subtitle,
.syrian-flag-background .card-title,
.syrian-flag-background .card-description,
.syrian-flag-background .centers-description,
.syrian-flag-background .value-title,
.syrian-flag-background .value-description {
    /* Strong text shadow for better visibility on all backgrounds */
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* Specific styling for hero title */
.syrian-flag-background .hero-title {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    /* Add outline for better visibility */
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.8);
    text-stroke: 2px rgba(0, 0, 0, 0.8);
}

/* Enhanced text colors for different sections */
.syrian-flag-background .hero-subtitle {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.syrian-flag-background .card-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.syrian-flag-background .card-description {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.syrian-flag-background .centers-description {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.syrian-flag-background .value-title {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.syrian-flag-background .value-description {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* Button Enhancements for Better Visibility */
.syrian-flag-background .btn,
.syrian-flag-background .btn-modern {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(0, 0, 0, 0.3);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.syrian-flag-background .btn:hover,
.syrian-flag-background .btn-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* Action Cards Enhancement with Blue Backgrounds */
.syrian-flag-background .action-card {
    background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-light) 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
}

.syrian-flag-background .action-card:hover {
    background: linear-gradient(135deg, var(--card-blue-dark) 0%, var(--card-blue) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
}

/* Card Icon Enhancement */
.syrian-flag-background .action-card .card-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 1rem;
    margin-bottom: 1rem;
}

.syrian-flag-background .action-card .card-icon i {
    color: white;
    font-size: 2rem;
}

/* Centers Section Enhancement */
.syrian-flag-background .centers-section {
    background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-light) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 2rem 0;
    color: white;
}

.syrian-flag-background .centers-button {
    background: linear-gradient(135deg, #228B22, #32CD32);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.syrian-flag-background .centers-button:hover {
    background: linear-gradient(135deg, #32CD32, #228B22);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Value Section Enhancement */
.syrian-flag-background .value-section {
    background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-light) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 2rem 0;
    color: white;
}

.syrian-flag-background .value-section .value-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.syrian-flag-background .value-section .value-icon i {
    color: white;
    font-size: 2rem;
}

/* Modal Enhancements for Syrian Flag Background */
.syrian-flag-background .modal {
    z-index: 3000;
}

.syrian-flag-background .modal-content {
    background: white;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 15px;
    width: 95%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 3px solid var(--card-blue);
    /* Ensure proper scrolling */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--card-blue) #f1f5f9;
}

.syrian-flag-background .modal-content::-webkit-scrollbar {
    width: 8px;
}

.syrian-flag-background .modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.syrian-flag-background .modal-content::-webkit-scrollbar-thumb {
    background: var(--card-blue);
    border-radius: 4px;
}

.syrian-flag-background .modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--card-blue-dark);
}

/* Modal Form Enhancements */
.syrian-flag-background .modal h2 {
    color: var(--card-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.syrian-flag-background .modal .form-group {
    margin-bottom: 1.5rem;
}

.syrian-flag-background .modal label {
    color: var(--card-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.syrian-flag-background .modal input,
.syrian-flag-background .modal select,
.syrian-flag-background .modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    /* Ensure inputs are editable */
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    /* Remove any potential restrictions */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Ensure proper cursor */
    cursor: text;
}

.syrian-flag-background .modal input:focus,
.syrian-flag-background .modal select:focus,
.syrian-flag-background .modal textarea:focus {
    outline: none;
    border-color: var(--card-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
    /* Ensure focus state is visible */
    background: white;
    color: #000;
}

/* Specific input types */
.syrian-flag-background .modal input[type="text"],
.syrian-flag-background .modal input[type="email"],
.syrian-flag-background .modal input[type="tel"],
.syrian-flag-background .modal input[type="password"],
.syrian-flag-background .modal input[type="date"] {
    /* Ensure these inputs are fully editable */
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    /* Remove any potential CSS restrictions */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    /* Ensure proper text color */
    color: #000 !important;
    /* Ensure proper background */
    background: white !important;
}

/* Remove any potential pointer-events restrictions */
.syrian-flag-background .modal .form-group {
    pointer-events: auto;
}

.syrian-flag-background .modal .form-row {
    pointer-events: auto;
}

/* Ensure form is interactive */
.syrian-flag-background .modal form {
    pointer-events: auto;
}

.syrian-flag-background .modal .btn-modern {
    background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-light) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.syrian-flag-background .modal .btn-modern:hover {
    background: linear-gradient(135deg, var(--card-blue-dark) 0%, var(--card-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

/* Form Row Layout */
.syrian-flag-background .modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Gender Selection Styles */
.syrian-flag-background .modal .radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.syrian-flag-background .modal .radio-label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    overflow: visible;
}

.syrian-flag-background .modal .radio-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--card-blue);
}

.syrian-flag-background .modal .radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.syrian-flag-background .modal .gender-icon {
    font-size: 32px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    display: block;
    line-height: 1;
}

.syrian-flag-background .modal .radio-label:hover .gender-icon {
    transform: scale(1.1);
    z-index: 6;
}

.syrian-flag-background .modal .radio-text {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    margin-top: 5px;
    position: relative;
    z-index: 5;
}

.syrian-flag-background .modal .radio-label:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, var(--card-blue), var(--card-blue-dark));
    border-color: var(--card-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.3);
}

.syrian-flag-background .modal .radio-label:has(input[type="radio"]:checked) .gender-icon,
.syrian-flag-background .modal .radio-label:has(input[type="radio"]:checked) .radio-text {
    color: white;
    position: relative;
    z-index: 5;
}

.syrian-flag-background .modal .radio-label:has(input[type="radio"]:checked)::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    color: var(--card-blue);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Error Messages */
.syrian-flag-background .modal .error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 500;
    padding: 0.25rem 0;
    border-radius: 0.25rem;
    background-color: rgba(220, 53, 69, 0.1);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-left: 3px solid #dc3545;
}

.syrian-flag-background .modal .error-message.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}

/* Password Strength Validation */
.syrian-flag-background .modal .password-strength {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
}

.syrian-flag-background .modal .strength-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.syrian-flag-background .modal .strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.syrian-flag-background .modal .strength-fill.weak {
    background-color: #dc3545;
    width: 25%;
}

.syrian-flag-background .modal .strength-fill.fair {
    background-color: #ffc107;
    width: 50%;
}

.syrian-flag-background .modal .strength-fill.good {
    background-color: #17a2b8;
    width: 75%;
}

.syrian-flag-background .modal .strength-fill.strong {
    background-color: #28a745;
    width: 100%;
}

.syrian-flag-background .modal .strength-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-align: center;
}

.syrian-flag-background .modal .password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    color: #6c757d;
}

.syrian-flag-background .modal .password-requirements li {
    margin-bottom: 0.25rem;
    padding-left: 1.25rem;
    position: relative;
}

.syrian-flag-background .modal .password-requirements li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.syrian-flag-background .modal .password-requirements li.valid::before {
    content: '✓';
    color: #28a745;
}

.syrian-flag-background .modal .requirement-status {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-left: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.syrian-flag-background .modal .requirement-status.valid {
    color: #28a745;
    transform: scale(1.1);
}

.syrian-flag-background .modal .requirement-status.invalid {
    color: #dc3545;
}

/* Responsive Design for Stars */
@media (max-width: 768px) {
    .syrian-star {
        width: 24px;
        height: 24px;
    }
    
    .syrian-star::before {
        width: 48px;
        height: 48px;
    }
    
    .syrian-flag-background .modal-content {
        width: 98%;
        max-width: none;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .syrian-flag-background .modal .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .syrian-flag-background .modal .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .syrian-star {
        width: 20px;
        height: 20px;
    }
    
    .syrian-star::before {
        width: 40px;
        height: 40px;
    }
    
    .syrian-flag-background .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }
}

/* Flag Wave Effect */
.syrian-flag-background {
    animation: flagWave 15s ease-in-out infinite;
}

@keyframes flagWave {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

/* Additional Star Effects */
.syrian-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -2;
    animation: starPulse 4s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Animation for error messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Banner Styles */
.welcome-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--card-blue), var(--card-blue-dark));
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
    border-bottom: 3px solid var(--syrian-red);
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.welcome-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.welcome-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-text p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.welcome-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Adjust header position when banner is shown */
.welcome-banner + .header {
    margin-top: 80px;
}

/* Responsive welcome banner */
@media (max-width: 768px) {
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .welcome-text h3 {
        font-size: 1.1rem;
    }
    
    .welcome-text p {
        font-size: 0.9rem;
    }
    
    .welcome-icon {
        font-size: 1.5rem;
    }
}

/* Hero Section Welcome Message */
.welcome-message {
    background: linear-gradient(135deg, var(--card-blue), var(--card-blue-light));
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.welcome-message .welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.welcome-message h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-message p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.welcome-message .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.welcome-message .btn-success:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive welcome message */
@media (max-width: 768px) {
    .welcome-message {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .welcome-message h3 {
        font-size: 1.3rem;
    }
    
    .welcome-message p {
        font-size: 1rem;
    }
    
    .welcome-message .welcome-icon {
        font-size: 2.5rem;
    }
}

/* Syrian ID Icon Styles */
.syid-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

.citadel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.citadel-container:hover .syid-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive icon */
@media (max-width: 768px) {
    .syid-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .syid-icon {
        width: 50px;
        height: 50px;
    }
}

/* Team Section Styles */
.team-section {
    background: linear-gradient(135deg, var(--card-blue), var(--card-blue-light));
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

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

.team-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: teamIconPulse 2s ease-in-out infinite;
}

.team-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.team-description {
    text-align: right;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.team-description p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.team-intro {
    font-weight: 600;
    font-size: 1.2rem;
}

.team-locations {
    font-style: italic;
}

.team-mission {
    font-weight: 500;
}

.team-support {
    font-weight: 600;
    color: #ff9800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.team-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.highlight-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4caf50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight-item h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.highlight-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

@keyframes teamIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Responsive team section */
@media (max-width: 768px) {
    .team-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .team-title {
        font-size: 1.6rem;
    }
    
    .team-description p {
        font-size: 1rem;
    }
    
    .team-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-item {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 1.5rem 1rem;
    }
    
    .team-title {
        font-size: 1.4rem;
    }
    
    .team-description p {
        font-size: 0.95rem;
    }
}

/* Video Section Styles */
.video-section {
    background: linear-gradient(135deg, var(--card-blue-light), var(--card-blue));
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

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

.video-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #4caf50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: videoIconPulse 2s ease-in-out infinite;
}

.video-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.video-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.video-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.video-wrapper iframe {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.video-wrapper:hover iframe {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.video-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4caf50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

@keyframes videoIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Responsive video section */
@media (max-width: 768px) {
    .video-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .video-title {
        font-size: 1.6rem;
    }
    
    .video-description {
        font-size: 1rem;
    }
    
    .video-wrapper iframe {
        height: 300px;
    }
    
    .video-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 1.5rem 1rem;
    }
    
    .video-title {
        font-size: 1.4rem;
    }
    
    .video-description {
        font-size: 0.95rem;
    }
    
    .video-wrapper iframe {
        height: 250px;
    }
}

/* Enhanced Gender Icons - Fix for overlapping elements */
.syrian-flag-background .modal .gender-icon {
    /* Ensure icons are always visible */
    position: relative;
    z-index: 5;
    display: block;
    line-height: 1;
    /* Prevent any text wrapping issues */
    white-space: nowrap;
    /* Ensure proper spacing */
    margin: 0 auto 8px auto;
    /* Ensure icons are not clipped */
    overflow: visible;
    /* Prevent any background interference */
    background: transparent;
}

/* Select Dropdown Styles */
.syrian-flag-background .modal .form-select,
.syrian-flag-background .modal select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    /* Ensure proper display */
    display: block;
    box-sizing: border-box;
}

.syrian-flag-background .modal .form-select:hover,
.syrian-flag-background .modal select:hover {
    border-color: var(--card-blue);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.syrian-flag-background .modal .form-select:focus,
.syrian-flag-background .modal select:focus {
    outline: none;
    border-color: var(--card-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.syrian-flag-background .modal .form-select option,
.syrian-flag-background .modal select option {
    padding: 8px 12px;
    font-size: 16px;
    background: white;
    color: #333;
}

.syrian-flag-background .modal .form-select option:checked,
.syrian-flag-background .modal select option:checked {
    background: var(--card-blue);
    color: white;
}

.syrian-flag-background .modal .form-select option:hover,
.syrian-flag-background .modal select option:hover {
    background: var(--card-blue-light);
    color: white;
}

.syrian-flag-background .modal .radio-label {
    /* Ensure proper stacking context */
    isolation: isolate;
    /* Ensure proper positioning for child elements */
    position: relative;
    /* Prevent any clipping of child elements */
    overflow: visible;
}

.syrian-flag-background .modal .radio-label input[type="radio"] {
    /* Ensure radio button doesn't interfere with icon display */
    z-index: 1;
}

/* Fix for mobile devices */
@media (max-width: 768px) {
    .syrian-flag-background .modal .gender-icon {
        font-size: 28px;
    }
    
    .syrian-flag-background .modal .radio-label:has(input[type="radio"]:checked)::before {
        top: 6px;
        right: 6px;
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .syrian-flag-background .modal .form-select,
    .syrian-flag-background .modal select {
        font-size: 16px;
        padding: 14px 16px;
    }
    
    .syrian-flag-background .modal .form-select option,
    .syrian-flag-background .modal select option {
        font-size: 16px;
        padding: 10px 12px;
    }
}
