/* Section-specific Styles */

/* ESEN Content Section */
.esen-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.esen-description {
    flex: 1;
}

.esen-video {
    flex: 1;
    max-width: 400px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.esen-video::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.esen-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Programs Section */
.programs-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.programs-description {
    flex: 1;
    text-align: left;
}

.programs-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.learn-more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.learn-more-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.program-highlight {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.program-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.program-highlight h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.program-highlight p {
    color: var(--text-color);
}

/* Testimonials Section - Image Gallery */
.testimonials-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: stretch;
}

.testimonial-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    aspect-ratio: 3/4;
    flex: 0 0 300px;
    max-width: 300px;
}

.testimonial-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.testimonial-image:hover img {
    transform: scale(1.1);
}

/* Hover effect for better visibility */
.testimonial-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(240, 100, 73, 0.1));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.testimonial-image:hover::before {
    opacity: 1;
}

/* Why Choose ESEN Section */
#why-choose-esen {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(20, 40, 70, 0.8));
    padding: 80px 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-choose-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-choose-card:hover::before {
    transform: scaleX(1);
}

.why-choose-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.why-choose-card:hover::after {
    left: 100%;
}

.why-choose-card:hover {
    transform: translateY(-15px);
    border-color: var(--secondary-color);
    box-shadow: 0 25px 50px rgba(100, 255, 218, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.why-choose-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(100, 255, 218, 0.3));
    transition: all 0.3s ease;
}

.why-choose-card:hover .why-choose-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(100, 255, 218, 0.5));
}

.why-choose-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.why-choose-card:hover h3 {
    color: #ffffff;
}

.why-choose-card p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .why-choose-card {
        padding: 1.5rem;
    }
    
    .why-choose-icon {
        font-size: 2.5rem;
    }
}

/* Partner Logos Section */
#partner-logos {
    padding: 25px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.logo-slider {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.logo-slide {
    flex: 0 0 auto;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.partner-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-slide:hover .logo-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* About Page Specific Styles */
.about-hero {
    padding-top: 120px; /* Add padding top for navbar */
}

.about-title {
    margin-bottom: 3rem;
}

.vision-mission-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vision-mission-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vision-mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vision-mission-card:hover::before {
    transform: scaleX(1);
}

.vision-mission-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(100, 255, 218, 0.3));
    transition: all 0.3s ease;
}

.vision-mission-card:hover .card-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(100, 255, 218, 0.5));
}

.vision-mission-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.vision-mission-card:hover h3 {
    color: #ffffff;
}

.vision-mission-card p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CEO Section Styles */
.ceo-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.ceo-text {
    flex: 1;
    padding-right: 2rem;
}

.ceo-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.download-cv {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.download-cv:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.ceo-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ceo-photo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.ceo-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.2);
}

/* Gallery Styles */
.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.gallery {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item {
    min-width: 100%;
    display: none;
    transition: all 0.5s ease;
}

.gallery-item.active {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 255, 218, 0.8);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-button:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.4);
}

.gallery-button-prev {
    left: -25px;
}

.gallery-button-next {
    right: -25px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Responsive Styles for Sections */
@media (max-width: 768px) {
    .about-hero {
        padding-top: 100px;
    }
    
    .vision-mission-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vision-mission-card {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .vision-mission-card h3 {
        font-size: 1.5rem;
    }
    
    .ceo-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .ceo-text {
        padding-right: 0;
        order: 1;
    }
    
    .ceo-image {
        order: 2;
    }
    
    .ceo-photo {
        max-width: 300px;
    }
    
    .gallery-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-button-prev {
        left: -20px;
    }
    
    .gallery-button-next {
        right: -20px;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    /* Testimonials Gallery Mobile */
    .testimonials-gallery {
        gap: 1.5rem;
    }
    
    .testimonial-image {
        flex: 0 0 250px;
        max-width: 250px;
        aspect-ratio: 3/4;
    }
    
    .programs-content {
        flex-direction: column;
        gap: 2rem;
    }
    .programs-description,
    .program-highlight {
        flex: none;
        width: 100%;
    }
    
    .esen-content {
        flex-direction: column;
        gap: 2rem;
    }
    .esen-video {
        max-width: 100%;
    }
    
    .logo-slider {
        flex-wrap: wrap;
    }
    .logo-slide {
        margin: 10px;
    }
    .logo-circle {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .testimonials-gallery {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-image {
        flex: 0 0 auto;
        max-width: 280px;
        width: 100%;
        aspect-ratio: 3/4;
    }
}
