/* ===== RESET & BASIC STYLES ===== */


a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== MODERN FULL-IMAGE BACKGROUND SLIDER ===== */
.main-slider {
    margin-top: 20px;
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background-color: #f5dac8;
}

.main-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* تراز محتوا به راست در ساختار راست‌چین */
    padding: 40px 60px;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 65%;
    margin-right: 20px;
    z-index: 3;
    text-align: right;
}

.slide-badge {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-content h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.slide-content p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.slide-btn {
    background-color: white;
    color: #ef7e41;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slide-btn:hover {
    background-color: #fbfbfb;
    transform: scale(1.03);
}

/* دکمه‌های ناوبری اسلایدر */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: white;
    color: #ef7e41;
}

.slider-arrow.prev {
    right: 20px;
}

.slider-arrow.next {
    left: 20px;
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s, width 0.3s;
}

.slide-dot.active {
    background-color: white;
    width: 24px;
    border-radius: 10px;
}




/* ===== HERO SECTION ===== */
.hero {
    background-color: rgba(252, 239, 232, 0.85); /* Slightly transparent to show body gradient */
    box-shadow: 0 10px 30px rgba(239, 126, 65, 0.2);
    margin: 20px 0;
    border-radius: 0 0 40px 40px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column-reverse; /* Puts text on top on mobile */
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(215, 107, 60, 0.05);
}

.hero-content {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.hero-content h1 {
    font-size: 1.6rem;
    color: #a85b2d;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #ef7e41;
    color: #fff;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #ef7e41;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #d96a30;
}

.btn-outline {
    background-color: #fff;
    color: #ef7e41;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #ef7e41;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #ef7e41;
    color: #fff;
}

.hero-image {
    width: 100%;
    max-width: 350px;
    height: 250px;
    background-color: #f5dac8;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f9d65e;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #333;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    opacity: 0.9;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 40px 20px;
    text-align: center;
    /* Added a soft white/transparent card-like background for the whole section */
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(239, 126, 65, 0.2);
}

.features h2 {
    color: #d86f3b;
    font-size: 2rem;
    margin-bottom: 10px;
}

.features-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding: 0 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 200px;
    height: 200px;
    border-radius: 80% 50% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: #fff;
}

.feature-icon > img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: inherit;
}

.icon-yellow { background-color: #f9d65e; }
.icon-orange { background-color: #fad2a8; color: #d86f3b; }
.icon-blue { background-color: #b1dbea; }

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

    /* ===== NEW "LEARNING" SECTION (IMAGE SECTION) ===== */
.learning-section {
    padding: 40px 0;
    position: relative;
}

.learning-wrapper {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 30px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(239, 126, 65, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: visible;
}

.learning-left {
    width: 100%;
    display: flex;
    justify-content: center;
}

.image-blob {
    width: 100%;
    max-width: 300px;
    height: 280px;
    background-color: #f7daca;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(215, 107, 60, 0.1);
    transition: transform 0.3s ease;
}

.image-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.learning-right {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.learning-title {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 800;
}

.learning-desc {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.8;
}

.learning-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.learning-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    text-align: left; /* Left align text items for visual balance */
}

.item-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.icon-yellow-item { background-color: #f9d65e; }
.icon-blue-item { background-color: #b1dbea; }

.learning-item h5 {
    font-size: 1rem;
    margin-bottom: 3px;
    color: #222;
}

.learning-item p {
    font-size: 0.8rem;
    color: #888;
}


.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef7e41, #f9d65e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item span {
    font-size: 0.75rem;
    color: #666;
    display: block;
}
.contact-item strong {
    font-size: 1rem;
    color: #222;
}

/* Giraffe Illustration Wrapper */
.giraffe-wrapper {
    position: absolute;
    bottom: -20px;
    left: -10px; 
    width: 100px;
    z-index: 1;
    display: none; /* Hidden on mobile */
}

.giraffe-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}



/* ===== EXPERT INSTRUCTORS SECTION (SLIDER) ===== */
.instructors-section > .container {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 30px rgba(239, 126, 65, 0.2);
    padding: 30px 0;
    border-radius: 40px;
}
.instructors-section {
    padding: 40px 0;
    position: relative;
}

.instructors-header {
    text-align: center;
    margin-bottom: 30px;
}

.instructors-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.instructors-header p {
    color: #888;
    font-size: 0.9rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    justify-content: center;
}

/* THE FIX: Ensure wrapper hides overflow */
.instructors-grid-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    padding: 10px 5px;
}

/* THE CRITICAL FIX: Force no-wrap and take full width */
.instructors-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    justify-content: end;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    width: 100%;
}

.instructor-card {
    background-color: #fff;
    padding: 25px 20px 20px;
    border-radius: 20px;
    width: 280px; /* Fixed width for accurate JS calculation */
    flex: 0 0 auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.instructor-img-wrapper {
    width: 130px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.instructor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-teal { background-color: #0d9488; }
.bg-blue { background-color: #3b82f6; }
.bg-pink { background-color: #f472b6; }

.instructor-card h4 {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 5px;
}

.instructor-role {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    display: block;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.social-icons a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #ef7e41;
    color: #fff;
}

/* ===== SLIDER ARROWS ===== */
.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #eee;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.slider-btn:hover {
    background-color: #ef7e41;
    color: #fff;
    border-color: #ef7e41;
}

.slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: #999;
    border-color: #eee;
}

/* ===== RESPONSIVE DESIGN (TABLET & DESKTOP) ===== */
@media (min-width: 768px) {
    .hero {
        flex-direction: row; /* Put text and image side by side */
        padding: 60px 40px;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        height: auto;
        border-radius: 0 0 60px 60px;
    }

    .hero-content {
        width: 50%;
        text-align: right; 
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-image {
        width: 45%;
        height: 350px;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }


    /* Learning Section Desktop */
    .learning-wrapper {
        flex-direction: row;
        align-items: center;
        padding: 40px;
        gap: 50px;
    }

    .learning-left {
        width: 40%;
        justify-content: center;
    }

    .image-blob {
        width: 100%;
        max-width: 350px;
        height: 320px;
    }

    .learning-right {
        width: 60%;
        text-align: right;
        padding-left: 40px; /* Space for Giraffe */
    }

    .learning-items {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 50% 50%;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

    .learning-item {
        flex: 1 1 150px;
        text-align: right;
    }
    
    .learning-contact {
        justify-content: flex-start;
        width: auto;
    }

    .giraffe-wrapper {
        display: block;
        width: 120px;
        left: auto;
        right: -30px;
        bottom: 20px;
    }

    /* Instructors Desktop */
    .instructors-grid {
        flex-wrap: nowrap;
    }
    
    .instructor-card {
        width: 280px; /* Consistent width for slider */
    }
    
    .instructors-header h2 {
        font-size: 2.2rem;
    }

}

@media (max-width: 480px) {
    .instructor-card {
        width: 220px; /* Smaller for very small screens */
    }
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .instructors-grid-wrapper {
        max-width: 100%;
    }
}