* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fff1f1;
    position: relative;
    overflow-x: hidden;
    
} 


/*-------------------------------programs------------------------------------------------*/

.section-6 {
    max-width: 1200px;
    margin:20px 150px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
   
}

.main-content {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
    margin-top: 98px;
}

.sidebar {
    width: 300px;
    margin-top: 98px;
}

.featured-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.featured-image img {
    width: 100%;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #00b3e6, #4caf50);
    padding: 20px;
    text-align: center;
}

.image-overlay h2 {
    color: white;
    font-size: 32px;
    line-height: 1.2;
}

.image-overlay .subtitle {
    color: #ffff00;
    font-size: 28px;
    font-weight: bold;
}




.post-meta {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #555;
    font-size: 14px;
}

.post-meta .date,
.post-meta .author,
.post-meta .read-time {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
    color: #00b3e6;
}

h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.archives {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.archives h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.archives select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 16px;
}

.tags {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.tags h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #ff0000;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: #a70000;
}

 /* Back to Top Button */
 .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #ff0000;
    color: white;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 100;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #a70000;
    transform: translateY(-3px);
}

/*-----------------------------------------------reviews-------------------------------*/

.six {
    background-color: #fff;
}

.section-7 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.section-7 .testimonial-header {
    margin-bottom: 40px;
}

.section-7 .testimonial-label {
    color: #8BC34A;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-7 .testimonial-title {
    color: #333;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
}

.section-7 .testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 460px;
}

.section-7 .testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.section-7 .testimonial-card {
    min-width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
}

.section-7 .testimonial-item {
    flex: 1;
    background-color: #f8f7ff;
    border-radius: 15px;
    padding: 30px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-7 .testimonial-item.active {
    opacity: 1;
    transform: translateY(0);
}

.section-7 .stars {
    color: #FFD700;
    font-size: 24px;
    margin-bottom: 20px;
}

.section-7 .testimonial-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.section-7 .testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.section-7 .author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #6C5CE7;
    margin-bottom: 15px;
}

.section-7 .author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-7 .author-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.section-7 .author-location {
    color: #6C5CE7;
    font-size: 14px;
}

.section-7 .slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.section-7 .slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.section-7 .slider-dot.active {
    background-color: #6C5CE7;
}

/*---------------------------------------------------image gallery---------------------------------------------*/
 

        .sectiongallery {
            background-color: #f5f5f5;
            padding: 20px;
        }

        h1 {
            text-align: center;
            font-size: 2.5rem;
            color: #0a2540;
            margin-bottom: 40px;
            font-weight: bold;
        }

        .gallery-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            grid-gap: 20px;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            height: 240px;
            background-color: #fff;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .gallery-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .gallery-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .gallery-item:hover .gallery-image {
            transform: scale(1.1);
        }

        .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            color: white;
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .overlay {
            transform: translateY(0);
        }

        .overlay h3 {
            margin-bottom: 5px;
            font-size: 18px;
        }

        .overlay p {
            font-size: 14px;
            opacity: 0.8;
        }

        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .lightbox.active {
            opacity: 1;
            pointer-events: auto;
        }

        .lightbox-content {
            max-width: 80%;
            max-height: 80%;
        }

        .lightbox-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .close-lightbox {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 30px;
            cursor: pointer;
        }

        .nav-buttons {
            position: absolute;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
        }

        .nav-button {
            color: white;
            font-size: 30px;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
        }


/*----------------------------------------------------media query---------------------------------------------------*/



/*-------------------------------programs-query------------------------------------------------*/
@media (max-width: 768px) {
    .section-6 {
        flex-direction: column;
    }
    
    .main-content {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .sidebar {
        width: 100%;
    }
}



/* Large Screens (Desktops and large laptops) */
@media (min-width: 1201px) {
    .section-6 {
        margin: 40px auto;
        max-width: 1400px;
    }
    
    .main-content {
        margin-right: 40px;
    }
    
    .sidebar {
        width: 350px;
    }
    
    .image-overlay h2 {
        font-size: 38px;
    }
    
    .image-overlay .subtitle {
        font-size: 32px;
    }
    
    h1 {
        font-size: 32px;
    }
}

/* Medium Screens (Tablets and smaller laptops) */
@media (min-width: 769px) and (max-width: 1200px) {
    .section-6 {
        margin: 20px 50px;
        padding: 15px;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .image-overlay h2 {
        font-size: 28px;
    }
    
    .image-overlay .subtitle {
        font-size: 24px;
    }
    
    .post-meta {
        flex-wrap: wrap;
    }
    
    .post-meta .date, .post-meta .author, .post-meta .read-time {
        margin-bottom: 8px;
    }
}

/* Small Screens (Mobile devices) */
@media (max-width: 768px) {
    .section-6 {
        margin: 10px;
        padding: 10px;
    }
    
    .image-overlay {
        padding: 15px;
    }
    
    .image-overlay h2 {
        font-size: 24px;
    }
    
    .image-overlay .subtitle {
        font-size: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-meta .date, .post-meta .author, .post-meta .read-time {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

/* Extra Small Screens (Small mobile devices) */
@media (max-width: 480px) {
    .section-6 {
        margin: 5px;
        padding: 5px;
    }
    
    .image-overlay {
        padding: 10px;
    }
    
    .image-overlay h2 {
        font-size: 20px;
    }
    
    .image-overlay .subtitle {
        font-size: 16px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .tag {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .archives h2, .tags h2 {
        font-size: 20px;
    }
}


/*-----------------------------------------------reviews query-------------------------------*/

/* Large screens (Desktop) - 1024px and above */
@media screen and (min-width: 1024px) {
    .section-7 {
        padding: 60px 20px;
    }
    
    .section-7 .testimonial-title {
        font-size: 42px;
    }
    
    .section-7 .testimonial-slider {
        height: 460px;
    }
    
    .section-7 .testimonial-card {
        gap: 30px;
    }
    
    .section-7 .testimonial-item {
        padding: 30px;
        max-width: 350px;
    }
}

/* Medium screens (Tablets) - Between 768px and 1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .section-7 {
        padding: 50px 15px;
    }
    
    .section-7 .testimonial-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .section-7 .testimonial-slider {
        height: 420px;
    }
    
    .section-7 .testimonial-card {
        gap: 20px;
    }
    
    .section-7 .testimonial-item {
        padding: 25px;
        max-width: 300px;
    }
    
    .section-7 .author-image {
        width: 70px;
        height: 70px;
    }
}

/* Small screens (Mobile phones) - Less than 768px */
@media screen and (max-width: 767px) {
    .section-7 {
        padding: 40px 15px;
    }
    
    .section-7 .testimonial-label {
        font-size: 16px;
    }
    
    .section-7 .testimonial-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .section-7 .testimonial-slider {
        height: auto;
    }
    
    .section-7 .testimonial-card {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .section-7 .testimonial-item {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Extra small screens (Small mobile phones) - Less than 480px */
@media screen and (max-width: 479px) {
    .section-7 {
        padding: 30px 10px;
    }
    
    .section-7 .testimonial-header {
        margin-bottom: 25px;
    }
    
    .section-7 .testimonial-label {
        font-size: 14px;
    }
    
    .section-7 .testimonial-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .section-7 .testimonial-item {
        padding: 20px 15px;
    }
    
    .section-7 .stars {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .section-7 .author-image {
        width: 60px;
        height: 60px;
    }
    
    .section-7 .author-name {
        font-size: 16px;
    }
    
    .section-7 .author-location {
        font-size: 12px;
    }
}

/* Target devices around 430px width */
@media screen and (max-width: 430px) {
    .section-7 .testimonial-title {
        font-size: 24px;
    }
    
    .section-7 .testimonial-text {
        font-size: 14px;
    }
    
    .section-7 .testimonial-item {
        padding: 15px 12px;
    }
    
    .section-7 .author-image {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .section-7 .slider-dot {
        width: 10px;
        height: 10px;
    }
}

/*---------------------------------------------------image gallery query---------------------------------------------*/
 /* Large Screens (992px to 1199px) */
        @media (min-width: 992px) and (max-width: 1199px) {
            .gallery {
                grid-template-columns: repeat(3, 1fr);
                grid-gap: 25px;
            }
            
            .gallery-item {
                height: 260px;
            }
            
            h1 {
                font-size: 2.7rem;
                margin-bottom: 45px;
            }
        }
        
        /* Medium Screens (768px to 991px) */
        @media (min-width: 768px) and (max-width: 991px) {
            .gallery {
                grid-template-columns: repeat(3, 1fr);
                grid-gap: 20px;
            }
            
            .gallery-item {
                height: 220px;
            }
            
            h1 {
                font-size: 2.5rem;
                margin-bottom: 40px;
            }
            
            .overlay h3 {
                font-size: 16px;
            }
            
            .overlay p {
                font-size: 13px;
            }
        }
        
        /* Small Screens (576px to 767px) */
        @media (min-width: 576px) and (max-width: 767px) {
            .gallery {
                grid-template-columns: repeat(2, 1fr);
                grid-gap: 15px;
            }
            
            .gallery-item {
                height: 200px;
            }
            
            h1 {
                font-size: 2.2rem;
                margin-bottom: 30px;
            }
            
            .overlay h3 {
                font-size: 15px;
            }
            
            .overlay p {
                font-size: 12px;
            }
            
            .nav-button {
                width: 35px;
                height: 35px;
                font-size: 22px;
            }
        }
        
        /* Extra Small Screens (575px and below) */
        @media (max-width: 575px) {
            .gallery {
                grid-template-columns: repeat(1, 1fr);
                grid-gap: 15px;
            }
            
            .gallery-item {
                height: 200px;
            }
            
            h1 {
                font-size: 2rem;
                margin-bottom: 25px;
            }
            
            .overlay {
                padding: 15px;
            }
            
            .overlay h3 {
                font-size: 14px;
                margin-bottom: 3px;
            }
            
            .overlay p {
                font-size: 12px;
            }
            
            .nav-button {
                width: 30px;
                height: 30px;
                font-size: 18px;
            }
            
            .close-lightbox {
                top: 10px;
                right: 10px;
                font-size: 24px;
            }
        }
        
        /* For very small phones */
        @media (max-width: 320px) {
            .gallery-item {
                height: 180px;
            }
            
            h1 {
                font-size: 1.8rem;
                margin-bottom: 20px;
            }
        }