/* Override responsive styles untuk menjaga banner tetap seperti desktop di tablet dan mobile */
#hero.hero-3 {
    position: relative;
    height: auto !important;
    overflow: hidden;
}

/* Hero Slider Styles */
#hero .hero-slider {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

#hero .hero-slider .swiper-wrapper {
    height: auto;
}

#hero .hero-slider .swiper-slide {
    height: auto;
    position: relative;
}

#hero .th-hero-bg {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: auto;
}

#hero .th-hero-bg img {
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: 100%;
    width: 100%;
}

/* Hero Inner - harus di atas slider */
#hero .hero-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none; /* Ensure clicks pass through to the slider */
}

/* Remove padding that forces height */
#hero .hero-style3 {
    padding: 0 !important;
    display: none;
}

/* Make slides clickable */
#slide1, #slide2 {
    cursor: pointer;
}

/* Navigation Arrows */
#hero .hero-slider-next,
#hero .hero-slider-prev {
    color: var(--theme-color, #04CE78);
    background: #ffffff;
    width: 60px;
    height: 60px;
    /* Center vertically */
    margin-top: -30px; /* Half of height */
    
    border-radius: 50%;
    transition: all 0.4s ease;
    z-index: 20; /* Ensure on top of everything */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Flex center for icon */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Remove default swiper styles that might interfere */
    line-height: 1;
    padding: 0;
}

#hero .hero-slider-next:hover,
#hero .hero-slider-prev:hover {
    background: var(--theme-color, #04CE78);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(4, 206, 120, 0.4);
    transform: scale(1.1);
}

/* Hide default Swiper arrows */
#hero .hero-slider-next::after,
#hero .hero-slider-prev::after {
    content: none !important;
    display: none !important;
}

/* Style for Iconify icons */
#hero .hero-slider-next iconify-icon,
#hero .hero-slider-prev iconify-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Pagination */
#hero .hero-slider-pagination {
    bottom: 30px !important;
}

#hero .hero-slider-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#hero .hero-slider-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--theme-color, #04CE78);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 1299px) {
    #hero.hero-3 {
        border-radius: 50px !important;
    }
    #hero .hero-style3 {
        padding: 276px 0 446px 0 !important;
    }
}

@media (max-width: 1199px) {
    #hero.hero-3 {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 991px) {
    #hero.hero-3 {
        margin-bottom: 0 !important;
        height: auto !important; /* Allow height to adjust */
    }
    #hero .hero-style3 {
        padding: 0 !important; /* Remove padding that forces height */
        display: none; /* Hide empty container if not needed */
    }
    #hero .hero-slider {
        position: relative; /* Make relative so it takes space */
        height: auto;
    }
    #hero .hero-slider .swiper-wrapper {
        height: auto;
    }
    #hero .hero-slider .swiper-slide {
        height: auto;
    }
    #hero .hero-slider .swiper-slide .th-hero-bg {
        width: 100%;
        position: relative; /* Relative */
        height: auto;
        inset: auto;
    }
    #hero .th-hero-bg img {
        height: auto; /* Auto height */
        width: 100%;
        object-fit: contain; /* Ensure full image is visible */
        margin-left: 0; /* Remove shift */
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    #hero .hero-style3 {
        padding: 0 !important;
        display: none;
    }
    #hero.hero-3 {
        margin-bottom: 5px !important;
    }
    /* Hide navigation arrows on mobile */
    #hero .hero-slider-next,
    #hero .hero-slider-prev {
        display: none;
    }
}

@media (max-width: 575px) {
    #hero .hero-style3 {
        padding: 0 !important;
    }
    #hero.hero-3 {
        border-radius: 15px !important;
        height: auto !important;
    }
    #hero .hero-slider {
        height: auto;
    }
    /* Adjust pagination position on mobile */
    #hero .hero-slider-pagination {
        bottom: 15px !important;
    }
}

@media (max-width: 480px) {
    #hero .hero-style3 {
        margin-top: 20px;
        padding: 0 !important;
    }
    #hero .hero-slider .swiper-slide .th-hero-bg {
        width: 100%;
        left: 0;
        right: 0;
        height: auto;
        margin-top: 20px;
        padding: 2px;
        border-radius: 15px;
    }
    #hero .th-hero-bg img {
        object-fit: contain;
        margin-left: 0%;
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

@media (max-width: 375px) {
    #hero .hero-style3 {
        padding: 0 !important;
    }
    #hero .th-hero-bg img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
        min-width: 100%;
        max-width: 100%;
        transform: none;
        margin-left: 0;
    }
    /* Smaller pagination on very small screens */
    #hero .hero-slider-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    #hero .hero-slider-pagination .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* Responsive gambar direktur di about section */
#about-sec .img-box1 .img1 {
    position: relative;
    overflow: hidden;
    height: auto;
    border-radius: 20px;
}

#about-sec .img-box1 .img1 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Desktop - ukuran normal */
@media (min-width: 1200px) {
    #about-sec .img-box1 {
        max-width: 100%;
    }
    #about-sec .img-box1 .img1 img {
        max-height: 730px;
        object-fit: cover;
    }
}

/* Tablet besar */
@media (max-width: 1199px) and (min-width: 992px) {
    #about-sec .img-box1 {
        max-width: 90%;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #about-sec .img-box1 .img1 img {
        max-height: 450px;
        object-fit: cover;
    }
}

/* Tablet */
@media (max-width: 991px) {
    #about-sec .img-box1 {
        max-width: 65% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #about-sec .img-box1 .img1 {
        margin-bottom: 20px;
    }
    #about-sec .img-box1 .img1 img {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        border-radius: 15px;
    }
}

/* Mobile besar */
@media (max-width: 767px) {
    #about-sec .img-box1 {
        max-width: 75% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #about-sec .img-box1 .img1 {
        margin-bottom: 20px;
    }
    #about-sec .img-box1 .img1 img {
        width: 100%;
        max-height: 350px;
        object-fit: cover;
        border-radius: 15px;
    }
}

/* Mobile sedang */
@media (max-width: 575px) {
    #about-sec .img-box1 {
        max-width: 85% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #about-sec .img-box1 .img1 {
        margin-bottom: 15px;
    }
    #about-sec .img-box1 .img1 img {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
        border-radius: 12px;
    }
}

/* Mobile kecil */
@media (max-width: 480px) {
    #about-sec .img-box1 {
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        height: auto;
    }
    #about-sec .img-box1 .img1 {
        /* Fixed negative margin issue */
        margin-bottom: 20px;
    }
    #about-sec .img-box1 .img1 img {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
        border-radius: 10px;
    }
}

/* Mobile sangat kecil */
@media (max-width: 375px) {
    #about-sec .img-box1 {
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #about-sec .img-box1 .img1 {
        margin-bottom: 10px;
    }
    #about-sec .img-box1 .img1 img {
        width: 100%;
        max-height: 250px;
        object-fit: cover;
        border-radius: 10px;
    }
}

/* Responsive about-info section - Overlay Style */
#about-sec .about-info {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: right;
    z-index: 2;
    max-width: 80%;
    margin-top: 0;
}

#about-sec .about-info .box-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: #1a1a1a;
    line-height: 1.2;
    font-size: 16px;
}

#about-sec .about-info .box-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Adjust overlay for smaller screens */
@media (max-width: 991px) {
    #about-sec .about-info {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }
}

@media (max-width: 575px) {
    #about-sec .about-info {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        border-radius: 12px;
    }
    #about-sec .about-info .box-title {
        font-size: 14px;
    }
    #about-sec .about-info .box-text {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    #about-sec .about-info {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        border-radius: 10px;
    }
    #about-sec .about-info .box-title {
        font-size: 12px;
        margin-bottom: 2px;
    }
    #about-sec .about-info .box-text {
        font-size: 10px;
    }
}
