/* ======== 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;
}

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

.about-hero {
    text-align: center;
    padding: 0 0 60px;
}
.about-hero .about-info{
    padding: 0;
}
.about-hero .container{
    max-width: 100%;
}
.about-hero h2 {
    color: #fff;
    font-size: 60px;
    padding: 5vh;
    background: linear-gradient(90deg, rgba(23, 54, 115, 1) 20%, rgba(82, 177, 103, 1) 80%);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: right;
    box-shadow: 0px 4px 7px 7px rgba(0,0,0,0.05);
    -webkit-box-shadow: 0px 4px 7px 7px rgba(0,0,0,0.05);
    -moz-box-shadow: 0px 4px 7px 7px rgba(0,0,0,0.05);     
    padding: 25px 0;
    border-radius: 37px;
}

.about-content .text-block {
    flex: 1;
    max-width: 700px; /* Limit width for readability */
}

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

.about-content .image-block {
    flex: 0.8;
    min-width: 200px; /* Ensure image block has some width */
    max-width: 300px;
}

.about-content .image-block img {
    border-radius: 0 37px 37px 0;
    transform: rotate(90deg);
}


/* 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: 37px;
    text-align: center;
    box-shadow: 0px 4px 7px 7px rgba(0,0,0,0.05);
    -webkit-box-shadow: 0px 4px 7px 7px rgba(0,0,0,0.05);
    -moz-box-shadow: 0px 4px 7px 7px rgba(0,0,0,0.05);       
}

.value-card .icon-wrapper {
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    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: center;
}

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

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

/* 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;
}

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

.why-us-2-content h2 {
    color: var(--primary-color);
    font-size: 60px;
}

.why-us-2-content p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 37px;
    box-shadow: 0px 4px 7px 7px rgba(0,0,0,0.05);
    -webkit-box-shadow: 0px 4px 7px 7px rgba(0,0,0,0.05);
    -moz-box-shadow: 0px 4px 7px 7px rgba(0,0,0,0.05);      
}

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

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

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

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

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

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

.partners h3 {
    color: var(--primary-color);
    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 0 80px;
    }

    .about-hero h2 {
        font-size: 80px;
        padding: 5vw;
        margin-bottom: 40px;
    }
    .about-content {
        flex-direction: row-reverse;
        text-align: right;
        width: 90%;
        margin: auto;
        padding: 25px;
        justify-content: center;
    }
    .about-content .text-block {
        order: 1; /* Place text block on the right */
    }
    
    .about-content .text-block p {
        text-align: right;
    }
    
    .about-content .image-block {
        order: 2; /* Place image block on the left */
    }
    .about-content .image-block img {
        transform: rotate(0deg);
    }    

    .values{
        background-color: unset;
    }
    .values::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 55%; /* Makes it cover the top half */
        background-color: var(--secondary-color);
        border-radius: 30px 30px 0 0;
        z-index: -1; 
    }
    .values-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet/desktop */
    }

    .why-us-2 {
        padding: 0 0;
    }
    .why-us-2 .container {
        flex-direction: row-reverse;
        justify-content: space-between;
        max-width: 90%;
    }
    .why-us-2-content {
        flex: 1;
        max-width: 50%; /* Adjusted for side-by-side layout */
        text-align: right;
    }

    .why-us-2-content h2 {
        font-size: 50px;
        padding-right: 40px;
    }    
    .why-us-2-content p {
        font-size: 20px;
        padding: 20px 40px 20px 10px;
    }
    .why-us-2-image {
        flex: 1;
        max-width: 50%;
    }
    .why-us-2-image img {
        max-width: 100%;
    }
    .whyus-desktop-image{
        display: block;
    }
    .whyus-mobile-image{
        display: none;
    }

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

    .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;
    }
}
