/* Tentang Kami (About) page fixes
   Scope: only when .about-kami is present
*/

.about-kami {
    /* keep page consistent with other terms pages */
}

/* Add proper spacing between sections for better visual hierarchy */
.about-kami #pembayaran,
.about-kami #topup,
.about-kami #layanan,
.about-kami #relationship {
    padding-top: clamp(48px, 6vh, 80px) !important;
    padding-bottom: clamp(48px, 6vh, 80px) !important;
}

/* Extra spacing for first section after hero */
.about-kami #pembayaran {
    padding-top: clamp(60px, 8vh, 100px) !important;
}

/* Fix nested row gutter overflow on some breakpoints */
.about-kami #pembayaran .row > .row {
    margin-left: 0;
    margin-right: 0;
}

/* Hero section image: prevent oversized rendering */
.about-kami .about-hero-image {
    width: 100% !important;
    max-width: 520px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Vision / Mission icon circle: proper sizing and spacing */
.about-kami .p-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.about-kami .p-round svg {
    width: 32px !important;
    height: 32px !important;
}

/* Vision/Mission text layout improvements */
.about-kami .onest-semibold.size-24 {
    margin-bottom: 8px;
    line-height: 1.3;
}

.about-kami .be-vietnam-pro-regular {
    line-height: 1.6;
}

.about-kami .vision-mission-description {
    font-size: clamp(1rem, 2.6vw, 1.3rem);
    font-weight: 400;
}

/* Better spacing for vision/mission rows */
.about-kami #topup .row[style*="margin-top: 2%"] {
    margin-top: 32px !important;
}

/* Carousel controls: smaller + cleaner on mobile */
.about-kami .carousel-control-prev,
.about-kami .carousel-control-next {
    width: 44px;
}

.about-kami .carousel-control-prev-icon,
.about-kami .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Remove forced negative margins from inline svg styles in relationship */
.about-kami .icon-mobile {
    margin-top: 0 !important;
}

/* Improve partner carousel spacing */
.about-kami .carousel {
    margin-top: 32px;
}

/* Ensure carousel controls are visible */
.about-kami .carousel-control-prev,
.about-kami .carousel-control-next {
    opacity: 0.8;
}

.about-kami .carousel-control-prev:hover,
.about-kami .carousel-control-next:hover {
    opacity: 1;
}

/* Standardize logo heights for uniform appearance */
.about-kami .logo-outline {
    height: 80px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
}

/* Add white outline to partner/bank logos - optimized for performance */
.about-kami .logo-outline {
    filter: 
        drop-shadow(1px 0px 0px #fff)
        drop-shadow(-1px 0px 0px #fff)
        drop-shadow(0px 1px 0px #fff)
        drop-shadow(0px -1px 0px #fff)
        drop-shadow(0 2px 4px rgba(255,255,255,0.3));
    will-change: auto;
}

.about-kami .logo-outline:hover {
    filter: 
        drop-shadow(1px 0px 0px #fff)
        drop-shadow(-1px 0px 0px #fff)
        drop-shadow(0px 1px 0px #fff)
        drop-shadow(0px -1px 0px #fff)
        drop-shadow(0 3px 6px rgba(255,255,255,0.4));
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .about-kami .logo-outline {
        height: 60px !important;
        max-width: 90px !important;
    }
}

/* Better spacing for heading groups */
.about-kami .size-headline {
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Relationship box improvements */ 

.about-kami .relationship-box {
    padding: 40px 20px !important;
    margin-top: 40px;
}

/* Layanan section improvements */
.about-kami #layanan .box-layanan {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-kami #layanan .box-layanan:hover {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .about-kami #pembayaran,
    .about-kami #topup,
    .about-kami #layanan,
    .about-kami #relationship {
        padding-top: clamp(32px, 5vh, 48px) !important;
        padding-bottom: clamp(32px, 5vh, 48px) !important;
        padding-left: clamp(16px, 6vw, 28px) !important;
        padding-right: clamp(16px, 6vw, 28px) !important;
    }
    
    .about-kami #pembayaran {
        padding-top: clamp(40px, 6vh, 60px) !important;
    }
    .about-kami .about-hero-image {
        max-width: 360px;
    }

    .about-kami .p-round {
        width: 48px;
        height: 48px;
    }

    .about-kami .p-round svg {
        width: 24px !important;
        height: 24px !important;
    }

    .about-kami #layanan .row-layanan {
        margin: 20px 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
