.hero-section {
    min-height: 100vh;
    position: relative;
}

.hero-section .carousel-item {
    min-height: 100vh;
    position: relative; /* ensure absolute children position relative to each slide */
}

/* Center hero content (buttons/title) at the bottom center of each carousel slide on larger screens */
.carousel-item .hero-content {
    position: absolute;
    bottom: 45%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1.25rem 1rem;
    max-width: 900px;
    width: calc(100% - 4rem);
    z-index: 2; /* ensure above background overlays */
    box-sizing: border-box;
    text-align: center;
}
/* carousel controls use default Bootstrap styling (custom alignment removed) */

.hero-section .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-section .btn-responsive {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-section .btn-responsive:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tablet styles */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-section .carousel-item {
        min-height: 80vh;
    }

    .hero-section .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-section .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-section .btn-responsive {
        font-size: 0.95rem;
        padding: 0.7rem 1.3rem;
    }
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
    }

    .hero-section .carousel-item {
        min-height: 70vh;
    }

    .hero-section .hero-content {
        padding: 1rem 0.5rem;
        text-align: center;
    }

    .hero-section .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .hero-section .btn-responsive {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .hero-section .gap-2 {
        gap: 0.5rem !important;
    }
}

/* On small screens position hero content higher to avoid overlapping controls */
@media (max-width: 767.98px) {
    .carousel-item .hero-content {
        position: absolute;
        bottom: 30%;
        transform: translateX(-50%);
        padding: 1rem 0.5rem;
        width: calc(100% - 1rem);
    }
}

/* Small mobile styles */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-section .carousel-item {
        min-height: 60vh;
    }

    .hero-section .hero-content {
        padding: 0.75rem 0.25rem;
    }

    .hero-section .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-section .btn-responsive {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        width: 100%;
        max-width: 280px;
    }

    .hero-section .gap-2 {
        gap: 0.25rem !important;
    }
}

/* Carousel controls responsiveness */
@media (max-width: 767.98px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1rem;
        height: 1rem;
    }
}

/* Carousel indicators responsiveness */
@media (max-width: 767.98px) {
    .carousel-indicators {
        bottom: 1rem;
    }

    .carousel-indicators button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin: 0 3px;
    }
}

/* Mobile responsiveness for taman cards */
@media (max-width: 767.98px) {
    .taman-card-mobile {
        margin: 0 auto 1rem auto;
    }
}

/* Mobile responsiveness for informasi cards */
@media (max-width: 767.98px) {
    .informasi-card-mobile {
        margin: 0 auto 1rem auto;
        max-width: 100%;
    }

    .informasi-card .card-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .informasi-card .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .informasi-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Extra small mobile responsiveness for informasi cards */
@media (max-width: 575.98px) {
    .informasi-card-mobile {
        margin: 0 auto 0.75rem auto;
    }

    .informasi-card .card-title {
        font-size: 1rem;
        line-height: 1.2;
    }

    .informasi-card .card-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .informasi-card .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .informasi-card .card-header {
        padding: 0.75rem;
    }

    .informasi-card .card-body {
        padding: 0.75rem;
    }
}

/* Ensure proper responsive display for jadwal section */
@media (max-width: 767.98px) {
    .desktop-table-view {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .mobile-card-view {
        display: none !important;
    }
}
