/* index.css - الأنماط الخاصة بالصفحة الرئيسية فقط */

/* --- Main Slider --- */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 95%;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.slide-content {
    padding: 40px;
    max-width: 50%;
    z-index: 2;
    flex: 1;
}

.slide-image {
    max-width: 40%;
    z-index: 1;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* الصور المتأقلمة مع جميع الأجهزة */
.slide-image img {
    max-width: 100%;
    max-height: clamp(250px, 50vh, 500px);
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    object-fit: contain;
}

.slide h3 {
    font-size: 32px;
    color: #9cca3f;
    margin-bottom: 16px;
}

.slide p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: #9cca3f;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(255,255,255,0.9);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* --- Partners Slider --- */
.partners-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin: 60px 0;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.partners-title {
    text-align: center;
    font-size: 32px;
    color: #9cca3f;
    margin-bottom: 40px;
}

.partners-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.partner-logo {
    flex: 0 0 20%;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.partner-logo img {
    max-width: 100%;
    max-height: clamp(40px, 8vh, 80px);
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    object-fit: contain;
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partners-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.partner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.partner-dot.active {
    background-color: #9cca3f;
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 48px;
    align-items: center;
    padding: 48px 0;
}

.hero-left h2 {
    font-size: 64px;
    line-height: 1;
    margin: 0 0 18px;
    font-weight: 800;
    color: var(--green);
}

.hero-left p {
    font-size: 18px;
    color: rgba(35, 51, 51, 0.85);
    max-width: 650px;
}

.cta {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #73a01a;
    color: #73a01a;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.cta:hover {
    background: #73a01a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(115, 160, 26, 0.3);
}

.cta:active {
    transform: translateY(1px);
}

.hero-illus {
    display: flex;
    justify-content: center;
}

.hero-illus img {
    max-width: 100%;
    max-height: clamp(300px, 50vh, 500px);
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    object-fit: contain;
}

.hero-illus img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

/* --- About Section --- */
.about {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
}

.about .text {
    flex: 1;
}

.about h3 {
    font-size: 28px;
    margin: 0 0 12px;
    color: var(--green);
}

.about p {
    margin: 0;
    color: rgba(35, 51, 51, 0.85);
    line-height: 1.7;
}

.about .illus {
    width: 320px;
}

.about .illus img {
    max-width: 100%;
    max-height: clamp(200px, 40vh, 350px);
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    object-fit: contain;
}

/* --- Vision & Goals --- */
.vision {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 36px 0;
}

.card {
    background: var(--white);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    min-height: 150px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--orange));
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.card h4 {
    margin: 0 0 10px;
    color: var(--orange);
}

.card p {
    margin: 0;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.card-icon {
    font-size: 34px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.card-icon img {
    max-width: 100%;
    max-height: clamp(80px, 15vh, 150px);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Testimonials --- */
.testimonials {
    padding: 60px 0;
    background: rgba(46, 90, 172, 0.03);
    border-radius: 16px;
    margin: 60px 0;
}

.testimonials h3 {
    font-size: 32px;
    margin: 0 0 40px;
    color: var(--green);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    color: rgba(0, 0, 0);
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}

.author-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(35, 51, 51, 0.6);
}

.news-date {
    color: rgba(35, 51, 51, 0.6);
    font-size: 14px;
    margin-top: 10px;
}

/* --- Responsive Design - للصفحة الرئيسية --- */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr 420px;
    }
    
    .hero-left h2 {
        font-size: 48px;
    }
    
    /* Partners slider for medium screens */
    .partner-logo {
        flex: 0 0 25%;
    }
    
    .slide-image img {
        max-height: clamp(220px, 45vh, 450px);
    }
}

@media (max-width: 900px) {
    /* Partners slider for tablets */
    .partner-logo {
        flex: 0 0 33.33%;
    }
    
    .slide-image img {
        max-height: clamp(200px, 40vh, 400px);
    }
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-illus {
        order: 2;
    }
    
    .about {
        flex-direction: column;
    }
    
    .vision {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-image img {
        max-height: clamp(180px, 35vh, 350px);
    }
}

@media (max-width: 768px) {
    .slider-container {
        margin: 30px auto;
        width: 100%;
        border-radius: 0;
    }
    
    .slider {
        height: auto;
        min-height: 400px;
    }
    
    .slide {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        height: auto;
        min-height: 400px;
    }
    
    .slide-content {
        max-width: 100%;
        padding: 20px;
        order: 2;
    }
    
    .slide-image {
        max-width: 100%;
        order: 1;
        margin-bottom: 20px;
    }
    
    /* تعديل max-height للهواتف */
    .slide-image img {
        max-height: clamp(150px, 30vh, 300px);
    }
    
    .slide h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .slide p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    /* Partners slider for small tablets */
    .partner-logo {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .slider {
        min-height: 350px;
    }
    
    .slide {
        min-height: 350px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide h3 {
        font-size: 20px;
    }
    
    .slide p {
        font-size: 14px;
    }
    
    .cta {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* تعديل إضافي للهواتف الصغيرة */
    .slide-image img {
        max-height: clamp(120px, 25vh, 250px);
    }
    
    .partner-logo {
        flex: 0 0 100%;
    }
    
    .partners-title {
        font-size: 24px;
    }
    
    .partner-logo img {
        max-height: clamp(30px, 6vh, 60px);
    }
    
    .about .illus img {
        max-height: clamp(150px, 30vh, 250px);
    }
    
    .card-icon img {
        max-height: clamp(60px, 12vh, 120px);
    }
}

@media (max-width: 360px) {
    .slider {
        min-height: 300px;
    }
    
    .slide {
        min-height: 300px;
    }
    
    .slide-content {
        padding: 10px;
    }
    
    .slide h3 {
        font-size: 18px;
    }
    
    .slide p {
        font-size: 13px;
    }
    
    .slide-image img {
        max-height: clamp(100px, 20vh, 200px);
    }
    
    .hero-illus img {
        max-height: clamp(200px, 40vh, 300px);
    }
}