/* ======== 1. Global Styles & Variables ======== */
:root {
    --primary-color: #172673;  /* Dark Blue from screenshots */
    --secondary-color: #214737; /* Green from hero */
    --light-green-bg: #e6f7f0; /* Light green from FAQ */
    --light-blue-bg: #4285F420;  /* Lighter blue for inputs */
    --text-dark: #222;
    --text-light: #666;
    --bg-light: #ffffff;
    --bg-accent: #f4f7fa;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl; /* Right-to-Left */
}

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

section {
    padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; color: var(--primary-color); }
h3 { font-size: 1.4rem; color: var(--primary-color); }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* ======== 2. Utility Classes (Buttons) ======== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn.btn-light {
    background-color: #fff;
    color: var(--primary-color);
}

.btn.btn-small {
    width: 155px;
    text-align: center;
    border-radius: 41px;
    font-size: 0.9rem;
    padding: 10px;
}
.btn.btn-small:hover {
    width: 155px;
    color: #fff;
    text-align: center;
    border-radius: 41px;
    font-size: 0.9rem;
}
.btn.btn-apply {
    background-color: var(--secondary-color);
}
/* ======== 3. Header ======== */
/* ======== 3. Header ======== */
.header {
    background: #fff;
    padding: 0;
    box-shadow: 0 2px 7px 7px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    /* The header is sticky and below the mobile menu overlay */
    z-index: 1000; 
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    /* Make sure logo is on top of the overlay */
    position: relative; 
    z-index: 1002;
}
.logo img{
    width: 130px;
    height: auto;
}

.nav-links {
    display: none; 
    
    /* --- Mobile menu overlay styles --- */
    position: fixed;
    /* Start overlay from the very top */
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    
    /* Push links down to avoid being hidden by the header */
    padding-top: 100px; /* Adjust this value if your header is taller/shorter */
    
    gap: 30px;
    
    /* Overlay must be ON TOP of the sticky header */
    z-index: 1001; 
}

/* Active state for the mobile menu */
.nav-links.active {
    display: flex; /* Show the menu */
}

.nav-links a {
    font-weight: 700;
    transition: color 0.2s ease;
    font-size: 1.5rem; /* Make links bigger for mobile */
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: block; /* Shown on mobile */
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    position: relative; 
    width: 50px;
    height: 50px;
    
    /* Make sure toggle is ON TOP of the overlay */
    z-index: 1002; 
}

/* Icon toggling styles */
.menu-toggle .fa-times {
    display: none; /* Hide close icon by default */
}

.menu-toggle.active .fa-bars {
    display: none; /* Hide bars icon when active */
}

.menu-toggle.active .fa-times {
    display: block; /* Show close icon when active */
}


/* ======== 11. Responsive Media Queries ======== */

/* Tablet & Desktop */
@media (min-width: 768px) {
    

    .header .container {
        max-width: 90%;
    }
    .nav-links { 
        display: flex; 
        position: static;
        flex-direction: row;
        background: none;
        backdrop-filter: none;
        padding-top: 0;
        gap: 25px;
        z-index: auto; /* Reset z-index */
    }
    
    .nav-links.active {
        display: flex; /* It's always flex on desktop */
    }

    .nav-links a {
        font-size: 1rem; /* Reset font size for desktop */
    }

    .menu-toggle { 
        display: none; /* Hide the hamburger menu on desktop */
    }
    
    .logo {
        z-index: auto; /* Reset logo z-index */
    }
    
    .logo img{
        width: 180px;
        height: auto;
    }
    
}
/* ======== 4. Hero Section ======== */
.hero {
    padding: 10px 0;
    /*background: linear-gradient(90deg, var(--primary-color) 0%, #4ba76b 100%);*/
    background-image: url("../images/mob banner_1.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 625px;
    color: #fff;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 0;
}

.hero-content{
    padding: 20px 0 0;
}
.hero-content h1 {
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
}

.hero-content h1 span {
    font-size: 3rem;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.hero-content .btn-light{
    border-radius: 41px;    
    background-color: var(--secondary-color);
    width: 250px;
    color: #fff !important;
    text-align: center;
    padding: 10px;
}

.hero-image img {
    max-width: 300px;
    border-radius: 15px;
}

/* ======== 5. Form Section ======== */
.form-section {
    text-align: center;
}


.form-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 37px;
    max-width: 900px;
    box-shadow: 0 4px 7px 7px rgba(0, 0, 0, 0.05);
    margin: 30px auto 0;
    padding: 40px 20px 40px;
}

.form-section input {
    width: 100%;
    text-align: right;
    padding: 8px 15px;
    border-radius: 41px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    border: none;
    /* Per your request: lighter blue background */
    background-color: var(--light-blue-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-section input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-section button {
    width: 100%; 
    font-size: 1.1rem;
    margin: 20px auto auto; 
    background-color: #FE8787;
    border-radius: 41px;
    height: 50px;
    padding: 0;
}

/* ======== 6. Services Section ======== */
.services {
    text-align: center;
    z-index: 1;
    position: relative;
}
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%; /* Makes it cover the top half */
    background-color: var(--primary-color);
    border-radius: 30px 30px 0 0;
    z-index: -1; 
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.services-title{
    color: #fff;
}

.service-card {
    background: #fff;
    padding: 20px;
    margin: auto 20px;
    border-radius: 37px;
    box-shadow: 0 5px 7px 7px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 7px 7px rgba(0, 0, 0, 0.08);
}

.service-card .icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
}

.service-card h3, .service-card p{
    color: var(--secondary-color);
}
/* ======== 7. Why Us Section ======== */
.why-us {
    padding: 20px 0 0;
}

.why-us .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: 0;
}

.why-us-image {
    text-align: center;
}

.why-us-image img {
    max-width: 100%;
}

.why-us ul {
    width: 100%;
    margin-top: 40px;
    padding: 0;
}

.why-us ul li {
    display: flex;
    align-items: center;
    width: 95%;
    gap: 0;
    padding: 0 15px;
    box-shadow: 0 4px 7px 7px rgba(0, 0, 0, 0.05);
    border-radius: 37px;
    margin: auto auto 25px auto;
}

.why-us .icon-wrapper {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    color: var(--secondary-color);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}

.why-us .text-content h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 12px;
    text-align: right;
    font-weight: 400;
}

.why-us .text-content h4 span {
    font-weight: 700;
}

.why-us .text-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* ======== 8. FAQ Section (Swiper) ======== */
.faq {
    background-color: var(--secondary-color);
}

.faq .container{
    max-width: 100%;
}

.faq h2 {
    color: #fff;
    text-align: center;
}

.faq-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px; /* Space for pagination */
}

.faq .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Per your request: "zoom in the active slide" */
    /* Non-active slides are smaller and faded */
    transform: scale(1);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.faq .swiper-slide-active {
    /* Active slide is full size and opaque */
    transform: scale(1);
    opacity: 1;
    z-index: 10;
}

.faq-card {
    background-color: #fff;
    color: var(--text-dark);
    border-radius: 37px;
    padding: 30px;
    width: 100%;
    text-align: center;
    min-height: 250px;
}

.faq-card img{
    width: 68px;
    height: 68px;
    margin: auto;
}

.faq-card h4 {
    color: var(--secondary-color);
    font-size: 30px;
}

/* Swiper pagination styles */
.faq .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    width: 10px;
    height: 10px;
}

.faq .swiper-pagination-bullet-active {
    background-color: #fff;
    width: 12px;
    height: 12px;
}

/* ======== 9. CTA Section ======== */
.cta {
    text-align: center;
}

.cta h2 {
    margin-bottom: 25px;
    font-size: 40px;
}

.cta .btn{
    background-color: var(--secondary-color);
    border-radius: 41px;
    font-size: 18px;
    width: 200px;
}
/* ======== 10. Footer ======== */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    position: relative;
    text-align: center;
    padding: 40px 0;
    min-height: 350px;
}
.footer::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 70px;
    background-image: url("../images/shape2-01 1.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.footer .container{
    max-width: 100%;
    padding: 0;
}
.footer .footer-flex{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    margin: auto 20px;
}
.footer .footer-flex div{
    margin: 10px auto;
    text-align: center;
}

.footer .footer-flex .footer-flex-info{
    max-width: 100%;
}
.footer .footer-flex .footer-flex-info img{
    width: 170px;
    margin: auto;
}

.footer-flex-services, .footer-flex-contact, .footer-flex-social{
    align-self: center;
}
.footer-flex-services ul{
    list-style-type: none;
}
.footer-flex-services ul li{
    text-align: center;
}
.footer-flex-logo img{
    max-width: 120px;
    margin: 10px auto;
}

.footer .sm-container a i{
    color: #fff;
    font-size: 30px;
    margin: auto 5px;
}
.footer h2,h3,h4 {
    color: #ffffff;
    text-align: center;
}
.footer p {
    color: #ffffff;
    margin: 0;
    text-align: center;
}
.footer .copyright {
    text-align: center;
}

/* ======== 11. Responsive Media Queries ======== */

::placeholder {
  font-family: 'Cairo', sans-serif;
  color: #3E3E3E;
}

/* Tablet */
@media (min-width: 768px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }

    .nav-links { display: flex; }
    .menu-toggle { display: none; }

    .hero{
        background-image: url("../images/banner.webp");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        min-height: 700px;        
    }
    .hero .container {
        flex-direction: row;
        text-align: right;
        justify-content: space-between;
    }
    .hero-content { flex: 1; margin-top: 6vw; padding: 0; }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content h1 span {
        font-size: 6rem;
    }
    
    .hero-content p {
        font-size: 1.6rem;
    }
    
    .hero-content .btn-light{
        width: 300px;
        margin-top: 1.5rem;
        font-size: 20px;
        padding: 10px;
    }    
    
    .hero-image { flex: 0.8; }
    .hero-image img { max-width: 100%; }

    .form-section .container{
       max-width: 90%; 
    }
    .form-section form {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 90%;
        padding: 40px 100px;
    }
    .form-section input {
        flex: 1 1 45%; /* Two inputs per row */
        margin: 20px 2%;
        padding: 15px;
    }
    .form-section button {
        flex: 0 0 50%;  
        margin: 20px auto;
        width: 45%; 
    }

    .services::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60%; /* Makes it cover the top half */
        background-color: var(--primary-color);
        border-radius: 70px 70px 0 0;
        z-index: -1; 
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        padding: 30px 20px;
        margin: auto;
    }

    .why-us{
        padding: 0;
    }
    .why-us .container {
        flex-direction: row-reverse;
        padding: 0;
    }
    .why-us ul li {
        width: 80%;
        padding: 0;
        background-color: #fff;
        margin: auto 0 25px auto;
        gap: 20px;
    }

    .why-us .text-content h4 {
        font-size: 18px;
        text-align: center;
    }
    .why-us-content { flex: 1; text-align: right; transform: translateX(50px); }
    .why-us-content h2 { font-size: 60px; }
    .why-us-image { flex: 1; }
    .why-us-image img { max-width: 100%; }

    /* Per your request: 1 slide on mobile (default), 2 on tablet */
    .faq .swiper-slide {
        /* On desktop, make ALL slides small by default */
        transform: scale(0.85);
        opacity: 0.5;
    }
    
    .faq .swiper-slide-next {
        /* Make the CENTER slide (the next one) BIG */
        transform: scale(1);
        opacity: 1;
        z-index: 10;
    }
    .cta h2 {
        font-size: 60px;
    }
    
    .cta .btn{
        font-size: 20px;
        width: 300px;
    } 
    
    .footer {
        background-color: var(--primary-color);
        color: #fff;
        position: relative;
        text-align: center;
        padding: 40px 0;
        min-height: 350px;
    }
    .footer::before{
        content: '';
        position: absolute;
        bottom: 0;
        right: -3%;
        width: 400px;
        height: 150px;
        background-image: url("../images/shape2-01 1-1.png");
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .footer::after{
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 400px;
        height: 150px;
        background-image: url("../images/shape2-01 1.png");
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .footer .container{
        max-width: 100%;
        padding: 0 20px;
    }
    .footer .footer-flex{
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: row;
        margin: auto 20px;
    }
    .footer .footer-flex div{
        margin: 0 20px;
    }
    
    .footer .footer-flex .footer-flex-info{
        max-width: 30%;
    }
    .footer .footer-flex .footer-flex-info img{
        width: 200px;
        margin: 0;
    }
    
    .footer-flex-services, .footer-flex-contact, .footer-flex-social{
        margin: auto 20px;
        align-self: center;
    }
    .footer-flex-services ul{
        list-style-type: none;
    }
    .footer-flex-services ul li{
        text-align: right;
    }
    .footer-flex-logo img{
        max-width: 120px;
        margin: 10px auto;
    }
    
    .footer .sm-container a i{
        color: #fff;
        font-size: 30px;
        margin: auto 5px;
    }
    .footer h2,h3,h4 {
        color: #ffffff;
        text-align: right;
    }
    .footer p {
        color: #ffffff;
        margin: 0;
        text-align: right;
    }
    .footer .copyright {
        text-align: center;
    }
    
}



/* Desktop */
@media (min-width: 1024px) {
    section { padding: 80px 0; }

    .hero { padding: 100px 0; }
    .hero-content { flex: 0.6; }
    .hero-image { flex: 0.4; }
    .hero-image img { max-width: 400px; }

    .services-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 on desktop */
    }
    
    /* Per your request: 3 slides on desktop */
    .faq-swiper {
         /* We use 'auto' and width to show 3 centered slides */
         /* The JS part will handle this better with `slidesPerView` */
    }
}

@media (min-width: 1624px) {

    .hero{
        min-height: 880px;
    }
    .why-us ul li {
        width: 65%;
    }
    
}