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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 80px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out, background 0.3s ease;
    will-change: transform;
}

.header.hide-on-scroll,
.header.hidden {
    transform: translateY(-100%);
}

.navbar {
    padding: 0;
    height: 100%;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: stretch;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0 1.5rem;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    background: #0088cc !important;
    color: #fff !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 1rem;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* ===== MAIN CONTENT STRUCTURE ===== */
.main-content {
    margin-top: 80px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    color: #0088cc;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #666;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 4rem 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #0088cc;
    margin-bottom: 1rem;
}

.services-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, calc(50% - 1rem)));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.service-item {
    text-align: left;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-item div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    width: 100%;
}

.service-item i.fas {
    color: #cc0000;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
}

.service-icon img {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

.service-item h3 {
    color: #0088cc;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
    width: 100%;
}

.service-item div p {
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

.service-item > div {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}




/* ===== ADDITIONAL INFO SECTION ===== */
.additional-info {
    padding: 4rem 0;
    background: #f8f9fa;
}

.additional-info .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.additional-info .hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.additional-info .hero-text h1 {
    color: #0088cc;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.additional-info .hero-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.additional-info .service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.additional-info .service-features div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.additional-info .service-features i.fas {
    color: #cc0000;
    margin-right: 0.8rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.additional-info .service-features p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.service-features i.fas {
    color: #cc0000;
    margin-right: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.service-features p {
    margin: 0;
    display: inline;
    vertical-align: middle;
}

/* ===== PARTNERSHIP SECTION ===== */
.partnership {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    color: white;
}

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

.partnership-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #fff;
}

.partnership h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.partnership p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ===== MEDICAL ASSISTANCE PAGE ===== */
.medical-assistance {
    padding: 4rem 0;
}

.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.intro-text h2 {
    color: #0088cc;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.intro-text p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.packages {
    margin-bottom: 3rem;
}

.package-row {
    margin-bottom: 3rem;
}

.package-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    background: #fff;
}

.package-content.reverse {
    grid-template-columns: 2fr 1fr;
}

.package-content.reverse .package-image {
    order: 2;
}

.package-content.reverse .package-info {
    order: 1;
}

.package-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.package-info h3 {
    color: #0088cc;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.package-info ul {
    list-style: none;
    padding: 0;
}

.package-info li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.package-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.conclusion {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.conclusion p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-section p {
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2,
.contact-form h2 {
    color: #0088cc;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
}

.contact-item i {
    font-size: 1.5rem;
    color: #0088cc;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0088cc;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005580 0%, #003d5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,136,204,0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #0088cc;
}

.footer-info p {
    margin: 0;
    color: #ccc;
}

/* ===== VIDEO SECTION ===== */
.responsive-video-container {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    background: #fff;
}

.responsive-video-container video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.video-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    color: rgb(20, 50, 90);
    z-index: 2;
}

.rtl-video .video-overlay-text {
    left: auto;
    right: 0;
    text-align: right;
}

.video-overlay-text h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.video-overlay-text p {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===== LANGUAGE DROPDOWN ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.dropdown-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #eee;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* ===== RTL & ARABIC SUPPORT ===== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .package-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .service-features i {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .contact-item i {
    margin-left: 15px;
    margin-right: 0;
}

[lang="ar"] {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
}

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 {
    font-weight: bold;
    line-height: 1.4;
}

.rtl-video video {
    transform: translate(-50%, -50%) scaleX(-1);
}

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

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1000px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white !important;
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 0;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 1.5rem 0;
        height: auto;
        margin: 0;
        position: relative;
    }
    
    .nav-link:hover,
    .nav-link:focus,
    .nav-link.active {
        background: #0088cc !important;
        color: #fff !important;
    }
    
    .nav-link:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content,
    .intro-section,
    .package-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .package-content.reverse .package-image,
    .package-content.reverse .package-info {
        order: unset;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .services h2,
    .partnership h2 {
        font-size: 2rem;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .responsive-video-container {
        height: auto;
        aspect-ratio: 16/7.4;
    }
    
    .responsive-video-container video {
        position: relative;
        object-fit: contain;
    }
    
    .video-overlay-text {
        width: 100%;
        padding: 40px;
    }
    
    .video-overlay-text h1 {
        font-size: 2rem;
    }
    
    .video-overlay-text p {
        font-size: 1.5rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 10px;
    }
    
    .dropdown-link {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
}





/* ===== FULL-WIDTH BLUE SELECTION FOR ARABIC MOBILE NAVBAR ===== */
@media (max-width: 1000px) {
    [dir="rtl"] .nav-menu {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    [dir="rtl"] .nav-link {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 1.5rem 0;
        margin: 0;
        position: relative;
    }

    /* Full-width blue background on hover/active */
    [dir="rtl"] .nav-link:hover,
    [dir="rtl"] .nav-link:focus,
    [dir="rtl"] .nav-link.active {
        background-color: #0088cc !important;
        color: white !important;
    }

    /* Active indicator centered at bottom */
    [dir="rtl"] .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background-color: white;
        border-radius: 2px;
    }

    /* Optional: Add transition for smooth hover effect */
    [dir="rtl"] .nav-link {
        transition: all 0.3s ease;
    }
}




@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}



@media (max-width: 768px) {
    .additional-info .hero-content {
        grid-template-columns: 1fr;
    }
    
    .additional-info .hero-image {
        order: -1;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}



@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero,
    /*.services,*/
    .partnership,
    .medical-assistance,
    .contact-content {
        padding: 2rem 0;
    }
    
   /* .service-item,*/
    .package-content,
    .conclusion {
        padding: 1.5rem;
    }
}


.error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: none;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Loading spinner styles */
.spinner {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* reCAPTCHA container */
#recaptcha-container {
    margin: 15px 0;
}

/* Error message styling */
.error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: none;
}

/* Alert messages */
.alert {
    padding: 15px;
    margin: 20px 0;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Loading state */
.spinner {
    display: none;
    margin-left: 8px;
}

.spinner .fa-spinner {
    animation: fa-spin 1s infinite linear;
}

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

/* Submit button loading state */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}