/* section 1 */
/* =========================
   HERO SECTION FINAL FIX
========================= */
body {
    font-family: 'Onest', sans-serif;
}

.hero-section {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
}

/* Top bar */
.hero-top {
    position: absolute;
    top: 20px;
    left: 7%;
    right: 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    font-size: clamp(18px, 3vw, 32px);
    font-family: Abhaya Libre;
}

.hero-logo {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.hero-contact-btn {
    background: #fff;
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
}

/* Slide */
.hero-slide {
    position: relative;
    min-height: 600px;
    padding: 80px 0 0px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(220,0,0,0.95) 0%,
        rgba(220,0,0,0.85) 5%,
        rgba(220,0,0,0.65) 45%,
        rgba(220,0,0,0.35) 65%,
        rgba(0,0,0,0) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-desc {
    color: #f5f5f5;
    font-size: 16px;
}

.hero-btn {
    background: #111;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 500;
}

.hero-btn:hover {
    background: #333;
}

/* Image kanan */
.hero-image {
    max-height: 560px;
    position: relative;
    z-index: 2;
}

/* Owl dots */
.owl-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
}

/* section 2 */
.benefit-card {
    position: relative;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s ease;

    /* Background image setup */
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 220px;
    background-color: #fff;
}

.benefit-card .icon {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 3;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.divider {
    height: 2px;
    width: 100%;
    background: #dc3545;
    margin: 35px 0;
}

/* section 3 */
.step-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: #111;
    position: relative;
    z-index: 2;
}

/* line positioning */
.step-line {
    position: absolute;
    right: -35%;
    top: 50%;
    transform: translateY(-50%);
}

.step-line img {
    width: 100%;
    max-width: none;
}

/* section 4 */
.partner-logo {
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* section 5 */
.testimonial-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    margin: 10px;
    transition: 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.testimonial-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 14px;
    color: #555;
    min-height: 70px;
}

.testimonial-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: 15px;
}

/* Owl Dots */
.testimonial-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.testimonial-carousel .owl-dot span {
    background: #ddd !important;
}

.testimonial-carousel .owl-dot.active span {
    background: #dc3545 !important;
}

/* section 6 */
.custom-accordion .accordion-item {
    background: #f1f3f5;
    border: none;
    border-radius: 14px;
    margin-bottom: 15px;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background: transparent;
    font-weight: 600;
    box-shadow: none;
    padding: 20px;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: #000;
}

/* Remove default arrow */
.custom-accordion .accordion-button::after {
    display: none;
}

/* Custom icon circle */
.custom-accordion .accordion-button {
    position: relative;
    padding-right: 70px;
}

.custom-accordion .accordion-button::before {
    content: "+";
    position: absolute;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.3s ease;
}

/* Change to X when active */
.custom-accordion .accordion-button:not(.collapsed)::before {
    content: "×";
}

/* Body styling */
.custom-accordion .accordion-body {
    padding: 0 20px 20px 20px;
    color: #555;
    font-size: 14px;
}

/* section 7 */
.cta-wrapper {
    position: relative;
    background: #666;
    border-radius: 20px;
    padding: 60px 20px;
    overflow: hidden;
}

/* Background pattern */
.cta-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/banner_cta.png');
    background-size: cover;
    opacity: 0.25;
}

/* Form Card */
.cta-form-card {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Custom input */
.custom-input {
    border: none;
    border-bottom: 2px solid #eee;
    border-radius: 0;
    padding: 12px 5px;
    box-shadow: none;
}

.custom-input:focus {
    border-color: #dc3545;
    box-shadow: none;
}

/* Button */
.custom-btn {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* section 8 */
.contact-bar-wrapper {
    background: #f5f5f5;
}

.contact-bar {
    background: #e32626;
    border-radius: 20px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-left,
.contact-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
}

.contact-icon {
    width: 38px;
    height: 38px;
    background: #fff;
    color: #e32626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Divider */
.contact-divider {
    width: 1px;
    height: 40px;
    border-left: 1px dashed rgba(255,255,255,0.5);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width: 768px) {
    /* section 1 */
    .hero-slide {
        min-height: auto;
        padding: 80px 0 0px;
        text-align: center;
    }

    .hero-top {
        left: 7%;
        right: 7%;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(220,0,0,0.95) 20%,
            rgba(220,0,0,0.7) 60%,
            rgba(0,0,0,0) 100%
        );
    }

    .hero-image {
        margin-top: 30px;
        max-height: 280px;
    }

    /* section 2 */
    .benefit-card {
        padding: 22px;
        background-size: 140px;
        background-position: top right;
    }

    .benefit-card h5 {
        font-size: 16px;
    }

    .benefit-card p {
        font-size: 14px;
    }

    .benefit-card .icon {
        top: 18px;
        right: 18px;
    }

    .icon-img {
        width: 32px;
        height: 32px;
    }

    .divider {
        width: 40px;
        margin: 12px 0;
    }

    /* section 3*/
    .step-number {
        font-size: 36px;
    }

    /* setion 4 */
    .partner-logo {
        max-height: 40px;
    }

    /* section 5 */
    .testimonial-text {
        font-size: 13px;
    }

    /* section 6 */
    .custom-accordion .accordion-button {
        font-size: 14px;
        padding: 16px;
    }

    /* section 7 */
    .cta-wrapper {
        padding: 40px 15px;
    }

    .cta-form-card {
        padding: 25px;
    }

    /* section 8 */
    .contact-bar {
        flex-direction: column;
        text-align: center;
    }

    .contact-divider {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}