/* Responsive enhancements preserving exact template colors */
html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Keep active slider caption visible without requiring hover (essential on mobile/touch) */
#heroCarousel .carousel-item.active .slider-caption {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 991.98px) {
    .slider-item {
        height: 440px;
        padding: 24px 16px;
    }

    .slider-caption {
        padding: 20px;
        max-width: 100%;
    }

    .slider-caption h3 {
        font-size: 1.5rem;
    }

    .slider-caption p {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .slider-item {
        height: 360px;
        padding: 16px 12px;
    }

    .ribbon-container {
        max-width: 100%;
        height: 64px;
        margin: 12px auto;
    }

    .ribbon-background,
    .ribbon-foreground {
        height: 44px;
        transform: skewX(-12deg);
    }

    .ribbon-foreground {
        left: 12px;
        width: 44px;
    }

    .ribbon-text {
        left: 70px;
        font-size: 1.15rem;
        transform: translateY(-75%);
    }

    .jenjang-box {
        width: 100px;
        padding: 12px;
    }

    .jenjang-text {
        font-size: 2rem;
    }

    .video-background-section {
        height: 42vh !important;
        min-height: 240px;
    }
}

.lpm-hero, .lppm-hero {
    background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
    color: #fff;
    padding: 72px 0;
    text-align: center;
}

.tracer-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15) !important;
}
