/* Program Section */
.programsec-section {
    background: #f8f9fa; /* Light grey background */
    padding: 0 0 3rem 0; /* Top and bottom padding */
}

/* Inner padding */
.programsec-padding {
    padding: 0 0 20px 0;
}

/* Title customization */
.programsec-title h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hover Effect */
.programsec-title h1:hover {
    color: #007bff;
    transition: color 0.3s ease-in-out;
}

/* Content Padding */
.programsec-content {
    padding: 15px 0;
}

/* Carousel Customization */
.custom-carousel {
    max-width: 700px;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

/* Default Carousel Images (Rectangular) */
.custom-carousel img {
    width: 100%;
    height: 500px; /* Default height */
    object-fit: cover;
    border-radius: 20px;
}

/* Dark Overlay */
.custom-carousel .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

/* Carousel Caption */
.custom-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    bottom: 30px;
}

/* Carousel Buttons */
.custom-carousel .btn-primary {
    background: #ff9800;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

.custom-carousel .btn-primary:hover {
    background: #ff5722;
}

/* Hover Zoom Effect */
.custom-carousel .carousel-item img {
    transition: transform 0.4s ease-in-out;
}

.custom-carousel .carousel-item:hover img {
    transform: scale(1.05);
}

/* Ensure Consistent Border Radius */
.custom-carousel .carousel-inner {
    border-radius: 20px;
}



/* ========================== */
/* Responsive Design Settings */
/* ========================== */

/* Tablet & Small Desktops (992px and below) */
@media screen and (max-width: 992px) {
    .radiosec-padding {
        padding: 5rem 0;
    }

    .radiosec-title h2 {
        font-size: 2rem;
    }

    .radiosec-title h4 {
        font-size: 1.3rem;
    }

    .programsec-title h1 {
        font-size: 30px;
    }

    .custom-carousel {
        max-width: 600px;
    }

    .custom-carousel img {
        height: 400px;
    }
}

@media screen and (max-width: 576px) {
    .radiosec-padding {
        padding: 3rem 0;
    }

    .radiosec-title h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .radiosec-title h4 {
        font-size: 1rem;
        text-align: center;
    }

    .programsec-title h1 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 15px;
    }

    .programsec-section {
        padding: 0 0 2rem 0; /* Reduced bottom padding */
    }

    .programsec-content {
        padding: 10px 0; /* Reduced padding */
    }

    .custom-carousel {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 15px; /* Slightly reduced radius */
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2); /* Lighter shadow */
    }

    /* Optimized Image for Small Devices */
    .custom-carousel img {
        height: 70vw; /* Makes it more proportional but not completely square */
        max-height: 350px; /* Slightly reduced max-height */
        border-radius: 15px;
    }

    .custom-carousel .carousel-caption {
        font-size: 12px;
        padding: 8px;
        bottom: 15px; /* Move caption up slightly */
        max-width: 90%;
        margin: 0 auto;
        left: 5%;
        right: 5%;
    }

    .custom-carousel .carousel-caption h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .custom-carousel .carousel-caption p {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .custom-carousel .btn-primary {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Make overlay consistent with new border radius */
    .custom-carousel .overlay {
        border-radius: 15px;
    }

    /* Ensure consistent border radius */
    .custom-carousel .carousel-inner {
        border-radius: 15px;
    }

    /* Make carousel controls more accessible */
    .carousel-control-prev, .carousel-control-next {
        width: 10%;
    }

    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Make indicators smaller */
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* Additional breakpoint for very small devices */
@media screen and (max-width: 400px) {
    .custom-carousel img {
        height: 80vw;
    }
    
    .custom-carousel .carousel-caption {
        bottom: 10px;
        padding: 5px;
    }
    
    .custom-carousel .carousel-caption h3 {
        font-size: 14px;
    }
    
    .custom-carousel .carousel-caption p {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .custom-carousel .btn-primary {
        font-size: 10px;
        padding: 4px 8px;
    }
}
