/* programme.css specific rules - ZIGZAG LAYOUT */

.feature-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff, #f9fbfd);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(10, 25, 47, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.4s ease;
}

.feature-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.1);
}

/* On alternating items, reverse the flex direction */
.feature-section:nth-child(even) {
    flex-direction: row-reverse;
    background: linear-gradient(145deg, #f9fbfd, #ffffff);
}

.feature-content {
    flex: 1;
    min-width: 300px;
}

.feature-content h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-content h3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.6), transparent);
}

.feature-content ul {
    list-style: none;
}

.feature-content ul li {
    padding: 15px 15px 15px 40px;
    background: rgba(10, 25, 47, 0.02);
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.feature-content ul li:hover {
    background: rgba(10, 25, 47, 0.05);
    transform: translateX(5px);
}

.feature-content ul li::before {
    content: '★';
    position: absolute;
    top: 15px;
    left: 12px;
    color: var(--gold);
    font-size: 1.2rem;
}

.feature-images {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Gallery Grid for larger image lists within the feature */
.gallery-grid {
    flex-wrap: wrap;
    justify-content: center;
}

.feature-images img, .gallery-grid img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(10, 25, 47, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img {
    max-width: calc(50% - 10px);
    height: 180px; 
}

/* specific health grid */
.health-grid img {
    max-width: calc(33.333% - 11px);
    height: 120px;
}

.feature-images img:hover, .gallery-grid img:hover, .health-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.3);
    z-index: 10;
}

@media screen and (max-width: 900px) {
    .feature-section, .feature-section:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
}
@media screen and (max-width: 768px) {
    .health-grid img {
        max-width: calc(50% - 8px);
        height: 100px;
    }
    .gallery-grid img {
        height: 120px;
    }
}
