/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    padding: 20px;
    background: rgba(0, 119, 190, 0.7); /* PADI blue with transparency */
    border-radius: 8px;
}

.slide-caption h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.slide-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #ff6b00;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e55a00;
}

/* Carousel Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Navigation Arrows */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 119, 190, 0.8); /* PADI blue */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    
    .slide-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
        max-width: 90%;
        padding: 15px;
    }
    
    .slide-caption h1 {
        font-size: 1.8rem;
    }
    
    .slide-caption p {
        font-size: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 300px;
    }
    
    .slide-caption h1 {
        font-size: 1.5rem;
    }
    
    .slide-caption p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Main Content */
.main-content {
    padding: 40px 20px;
}

.main-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-content h2 {
    color: #0077be; /* PADI blue */
    margin-bottom: 20px;
    text-align: center;
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


/* ===== CHOOSE A COURSE SECTION ===== */
.choose-course {
    padding: 80px 0;
    background: #f8f9fa;
    max-width: 1200px;
    text-align: center;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 50px;
    font-weight: 700;
    color: #222;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    color: #ff9a3d;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.course-content h4 {
    font-size: 1.05rem;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
}

.course-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.course-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 18px 0;
}

/* ===== DESKTOP LAYOUT ===== */
@media (min-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
