/* ======== 1. Global Styles & Variables ======== */
:root {
    --primary-color: #82222E;  /* Dark Blue from screenshots */
    --secondary-color: #D9D9D9; /* 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;
}

/* Base styles for new page sections */
.values, .why-us-2, .stats, .partners {
    padding: 60px 0;
}

.about-hero {
    text-align: center;
    padding: 0;
}
.about-hero .about-info{
    padding: 0;
}
.about-hero .container{
    max-width: 100%;
}
.about-hero h2 {
    color: #fff;
    font-size: 60px;
    padding: 200px 0;
    background-image: url("../images/about us mob.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-content {
    text-align: center;
    padding: 25px 0;
}

.about-content .text-block p {
    padding: 25px;
    border-radius: 0;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 18px;
    text-align: center;
    color: var(--primary-color);
}


/* Values Section */
.values {
    padding-top: 80px; /* More padding for card to float over edge */
    position: relative;
    background-color: var(--secondary-color);
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
}

.value-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 0;
    text-align: right;
}

.value-card .icon-wrapper {
    margin: 0 auto 15px;
    display: grid;
    place-items: right;
    font-size: 1.5rem;
}

.value-card .icon-wrapper img {
    width: 100px;
    height: 100px;
} 

.value-card h3 {
    color: var(--primary-color);
    font-size: 30px;
    text-align: right;
}

.value-card p {
    font-size: 18px;
}

.value-card li {
    font-size: 18px;
    
}

/* Why Us 2 Section (similar to original why-us but with specific content) */
.why-us-2 {
    padding: 80px 0 0;
}

.why-us-2 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: right;
    gap: 0;
}

.why-us-2-content {
    flex: 1;
    max-width: 700px;
    text-align: center;
}

.why-us-card{
    background-color: var(--secondary-color);
    padding: 40px 20px 10px;
    min-height: 300px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-us-2-content h2 {
    color: var(--primary-color);
    font-size: 25px;
    text-align: right;
    padding-right: 20px;
}

.why-us-2-content p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 15px;
    padding: 10px 20px;
    font-weight: 300;
    text-align: right;
    
}

.why-us-2-image {
    flex: 1;
    position: relative;
    text-align: center;
    min-height: 39rem;
    width: 100%;
    background-color: var(--primary-color);
    margin-bottom: 50px;
}
.why-us-2-image::before{
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    background-image: url("../images/phone2.webp");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    transform: scale(1.1) translateY(-4%);
}

.why-us-2-image img {
    max-width: 100%; /* Adjusted for mobile view */
    border-radius: 0;
}
/* Stats Section */
.stats {
    background-color: var(--secondary-color); /* Dark blue background */
    color: #000;
    text-align: center;
    padding: 40px 0 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 2 columns on mobile */
    gap: 30px;
}

.stat-item .number {
    font-size: 50px;
    font-weight: 900;
    margin-bottom: 0;
    color: #000; /* Green for numbers */
}

.stat-item .label {
    font-weight: 700;
    color: #000;
    font-size: 20px;
    margin: 0;
}

/* Partners Section */
.partners {
    text-align: center;
    padding: 30px 0 60px;
}

.partners h3 {
    color: #000;
    margin-bottom: 30px;
    font-size: 60px;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 logos per row on mobile */
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.partners-grid img {
    max-width: 120px; /* Adjust logo size for mobile */
    height: auto;
}


/* =========================================== */
/* Responsive Media Queries for new_page_styles.css */
/* =========================================== */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .about-hero{
        padding: 0;
    }

    .about-hero h2 {
        font-size: 80px;
        padding: 5vw 3vw;
        background-image: url("../images/about us 1.webp");
    }
    .about-content {
        width: 70%;
        margin: auto;
        padding: 25px;
    }
    
    .about-content .text-block p {
        text-align: center;
    }
    


    
    .values-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet/desktop */
    }

    .why-us-2 {
        padding: 60px 0;
    }
    .why-us-2 .container {
        flex-direction: row-reverse;
        justify-content: space-between;
        max-width: 90%;
        gap: 30px;
    }
    .why-us-2-content {
        flex: 1;
        max-width: 50%; /* Adjusted for side-by-side layout */
        text-align: right;
    }
    .why-us-card{
        background-color: var(--secondary-color);
        padding: 40px 20px 10px;
        min-height: 300px;
        margin: 20px auto;
    }    

    .why-us-2-content h2 {
        font-size: 30px;
        padding-right: 30px;
    }    
    .why-us-2-content p {
        font-size: 18px;
        padding: 20px 30px 20px 10px;
    }
    .why-us-2-image {
        flex: 1;
        max-width: 50%;
        margin-bottom: 0;
    }
    .why-us-2-image::before{
        position: absolute;
        bottom: 5%;
        left: 0;
        content: '';
        background-image: url("../images/phone2.webp");
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        transform: scale(1.2);
    }    
    .why-us-2-image img {
        max-width: 100%;
    }

    .stats{
        padding: 60px 0;
    }
    .stats-grid {
        grid-template-columns: repeat(1, 1fr); /* 4 columns on tablet/desktop */
    }
    .stat-item .number {
        font-size: 56px;
    }
    .stat-item .label {
        font-size: 24px;
        font-weight: 400;
    }    

    .partners{
        padding: 60px 0;
    }
    .partners-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 logos per row */
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .partners-grid img {
        max-width: 250px; /* Larger logos on desktop */
        margin: 30px 10px;
    }
}
