/* 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: clamp(20px, 4vw, 24px);
}

.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: 700px;
    position: relative;
    z-index: 2;
}

/* Owl dots */
.owl-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
}

/* section 2 */
.benefit-card-header h2 {
    font-size: clamp(28px, 6vw, 48px);
}

.benefit-card-header p {
    font-size: clamp(16px, 2.5vw, 20px);
}

.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 h5 {
    font-size: clamp(20px, 4vw, 24px);
}

.benefit-card p {
    font-size: clamp(16px, 2.5vw, 20px);
}

.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-item-header h2{
    font-size: clamp(28px, 6vw, 48px);
}

.step-item-header p {
    font-size: clamp(16px, 2.5vw, 20px);
}

.step-wrapper {
    position: relative;
    display: flex;
}

.step-number {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    color: #111;
    position: relative;
    z-index: 2;
}

.step-item h6 {
    font-size: clamp(20px, 4vw, 24px);
}

.step-item p {
    font-size: clamp(14px, 2.2vw, 18px);
}

/* line positioning */
.step-line {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.step-line img {
    width: 100%;
    max-width: none;
}

/* section 4 */
.partner-header h6{
    font-size: clamp(20px, 4vw, 24px);
}

.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-header h2 {
    font-size: clamp(28px, 6vw, 48px);
}

.testimonial-header p {
    font-size: clamp(20px, 4vw, 24px);
}

.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-card h6 {
    font-size: clamp(20px, 3vw, 27px);
}

.testimonial-text {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #555;
    min-height: 70px;
}

.testimonial-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: 15px;
}

.rating-stars {
    color: #ffc107;
    font-size: 2rem;
    margin-left: 5px;
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
}

.rating-stars::before {
  content: '★★★★★';
  letter-spacing: 3px;
  background: linear-gradient(90deg, #ffc107 var(--percent), #e9ecef var(--percent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    display: block;
}

/* 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 */
.faq-header h2{
    font-size: clamp(28px, 6vw, 48px);
}

.faq-header p{
    font-size: clamp(20px, 4vw, 24px);
}

.accordion-header button{
    font-size: clamp(20px, 4vw, 24px);
}

.accordion-body {
    font-size: clamp(14px, 2.2vw, 18px);
}

.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: 80px !important; 
    display: flex;
    align-items: center;
    text-align: left;
}

.custom-accordion .accordion-button::before {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    width: 36px;
    height: 36px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: 0.3s ease;
    flex-shrink: 0;
}

/* 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: clamp(14px, 2.2vw, 18px);
    width: 100%;
}

/* section 7 */
.section-register-now h3{
    font-size: clamp(28px, 6vw, 48px);
}

.section-register-now p{
    font-size: clamp(20px, 4vw, 24px);
}
/*.cta-wrapper {
    position: relative;
    background: #666;
    border-radius: 20px;
    padding: 60px 20px;
    overflow: hidden;
}*/

/* Form Card */
.cta-form-card {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    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;
}

.cta-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: all 0.3s ease;
}

.cta-floating img {
    width: 170px;
}

.footer-bottom-txt {
    font-size: clamp(20px, 4vw, 24px);
}

/* Hover */
.cta-floating:hover {
    transform: translateY(-3px);
}

.konten-section {
  text-align: center;
  padding: 40px 20px;
}

.konten-carousel .item {
  padding: 10px;
}

.card {
  background: #ddd;
/*  height: 371px;*/
  height: auto;
  border-radius: 10px;
  position: relative;
}

.center-card .avatar {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #fff;
}

/* active center effect */
.owl-item.center .card {
  transform: scale(1.05);
  background: #ccc;
}

/* dots */
.owl-dots {
  margin-top: 15px;
}

.owl-dot span {
  background: #ccc !important;
}

.owl-dot.active span {
  background: red !important;
}

.video-container {
    max-width: 400px;
    margin: 20px auto;
}

/* =========================
   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: 380px;
    }

    /* 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-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .step-item p, h6 {
        text-align: center;
    }

    .step-number {
        font-size: 36px;
    }

    /* setion 4 */
    .partner-logo {
        max-height: 40px;
    }

    /* section 5 */


    .testimonial-carousel .owl-stage-outer {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .testimonial-carousel .owl-dots {
        text-align: center;
        margin-top: 15px;
    }

    .testimonial-carousel .owl-dot span {
        width: 6px;
        height: 6px;
        background: #ccc;
        border-radius: 50%;
        display: block;
        margin: 5px;
    }

    .testimonial-carousel .owl-dot.active span {
        background: #ff3b3b;
    }

    /* section 6 */
    .custom-accordion .accordion-button {
        font-size: 14px;
        padding: 16px;
    }

    /* section 7 */
    .cta-wrapper {
        padding: 40px 15px;
    }

    .cta-form-card {
        padding: 25px;
    }

    .accordion-header button{
        width: 100%;
    }

    /* section 8 */
    .contact-bar {
        flex-direction: column;
        text-align: center;
    }

    .contact-divider {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .cta-floating {
        right: 15px;
        bottom: 15px;
        padding: 12px 18px;
        font-size: 14px;
    }

    .card {
/*      height: 180px;*/
        height: auto;
    }
}