
/* 
   ==========================================================================
   || Landing Styles
   || Project: Website Kabupaten Gianyar
   || File: public/assets/css/landing.css
   ========================================================================== 
*/



/* 
   --------------------------------------------------------------------------
   || 1. Struktur Organisasi Carousel
   --------------------------------------------------------------------------
*/

/* Organization members carousel */
#anggotaCarousel .carousel-inner {
    width: 100%;
}

/* Override legacy carousel transforms from style.css */
#anggotaCarousel .carousel-item {
    transform: none !important;
}

/* Preserve Bootstrap's normal slide visibility */
#anggotaCarousel .carousel-item:not(.active):not(.carousel-item-start):not(.carousel-item-end) {
    display: none;
}
#anggotaCarousel .carousel-item.active,
#anggotaCarousel .carousel-item-next,
#anggotaCarousel .carousel-item-prev {
    display: block;
}

/* Keep the member grid properly aligned */
#anggotaCarousel .carousel-item > .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

/* Keep cards within their Bootstrap columns */
#anggotaCarousel .carousel-item .card {
    width: 100%;
    height: 100%;
}

/* Preserve the avatar's circular shape and image proportions */
#anggotaCarousel .symbol.symbol-circle {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
    display: inline-block;
}
#anggotaCarousel .symbol.symbol-circle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Carousel controls */
#anggotaCarousel {
    position: relative;
    padding: 0 45px;
}
#anggotaCarousel .carousel-control-prev,
#anggotaCarousel .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 5;
}
#anggotaCarousel .carousel-control-prev {
    left: 0;
}
#anggotaCarousel .carousel-control-next {
    right: 0;
}
#anggotaCarousel .caro-control {
    background-color: #A00;
    background-size: 60% 60%;
    border-radius: 6px;
}

/* Keep controls visible on hover */
#anggotaCarousel .carousel-control-prev:hover,
#anggotaCarousel .carousel-control-next:hover {
    opacity: 0.85;
}


/* 
   --------------------------------------------------------------------------
   || 2. Layanan Carousel
   --------------------------------------------------------------------------
*/



/* =========================================================
   LAYANAN SECTION
   ========================================================= */

.layanan-section {
    overflow: hidden;
}

.layanan-section-title {
    color: #181c32;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.layanan-section-divider {
    width: 64px;
    margin: 0 auto;
    border: 0;
    border-top: 4px solid #a00000;
    border-radius: 4px;
    opacity: 1;
}

/* =========================================================
   SERVICE CARD
   ========================================================= */

.layanan-card {
    position: relative;
    min-height: 240px;
    background: #fff;
    border: 1px solid #eee2e2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(65, 20, 20, 0.04);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Institution logo in the top-right corner */

.layanan-card-logo {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #fff8f8;
    border: 1px solid #f3e5e5;
    border-radius: 10px;
    pointer-events: none;
}

.layanan-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card body */

.layanan-card .card-body {
    min-height: 238px;
    padding: 2.5rem 1.25rem 3rem;
    gap: 1rem;
}

/* Centered service icon container */
.layanan-card-icon {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a00000;
    background-color: #fff0f0;
    border: none;
    border-radius: 22px;
    box-shadow: none;
    font-size: 2.5rem;
    transform: none;
    transition: background-color 0.10s linear;
}

/* Font Awesome 5.15.3 icon */

.layanan-card-icon i {
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

/* Service title */

.layanan-card-title {
    max-width: 100%;
    color: #181c32;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.layanan-card-title a {
    color: inherit;
    text-decoration: none;
}

/* Bottom-right arrow container */
.layanan-card-arrow {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b909a;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    pointer-events: none;
    transition: color 0.25s ease;
}

.layanan-card-arrow i {
    display: inline-block;
    color: inherit;
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}


/* =========================================================
   HOVER AND KEYBOARD INTERACTION
   ========================================================= */

.layanan-card:hover {
    transform: translateY(-4px);
    border: none;
    box-shadow: 0 10px 24px rgba(100, 0, 0, 0.08);
}

/* Turn the icon container maroon and the icon white */
.layanan-card:hover .layanan-card-icon {
    color: #fff;
    background-color: #a00000;
    border: none;
    box-shadow: none;
    transform: none;
}

.layanan-card:hover .layanan-card-icon i {
    color: #fff;
}

/* Change text and arrow to maroon on card hover */
.layanan-card:hover .layanan-card-arrow {
    color: #a00000;
}
.layanan-card:hover .layanan-card-arrow i {
    transform: translateX(4px);
}

/* Keyboard focus */
.layanan-card:focus-within {
    outline: none;
    border-color: #a00000;
    box-shadow: 0 0 0 2px rgba(160, 0, 0, 0.18);
}
.layanan-card:focus-within .layanan-card-arrow {
    color: #a00000;
}

/* Divider hover */
.layanan-card:hover .layanan-card-divider {
    width: 200px;
    opacity: 1;
}

.layanan-card:hover .layanan-card-logo {
    background-color: none;
}


/* =========================================================
   CAROUSEL CONTROLS
   ========================================================= */

.layanan-carousel {
    padding: 0 42px;
}

.layanan-control {
    width: 36px;
    height: 44px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background-color: #a00000;
    border-radius: 8px;
    opacity: 0.9;
}

.layanan-control:hover {
    opacity: 1;
}

.layanan-control.carousel-control-prev {
    left: 0;
}

.layanan-control.carousel-control-next {
    right: 0;
}

/* Center a single card on the final slide */

.layanan-carousel .carousel-item > .row > .col-lg-4:only-child {
    max-width: 33.333333%;
}

/* =========================================================
   LAYANAN CARD DIVIDER
   ========================================================= */
.layanan-card-divider {
    width: 150px;
    height: 3px;
    flex-shrink: 0;
    margin-top: 1rem;
    background-color: #a00000;
    border-radius: 10px;
    opacity: 0.75;
    transition: width 0.15s ease, opacity 0.15s ease;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .layanan-carousel .carousel-item > .row > .col-lg-4:only-child {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .layanan-section-title {
        font-size: 1.65rem;
    }

    .layanan-carousel {
        padding: 0 30px;
    }

    .layanan-card {
        min-height: 210px;
    }

    .layanan-card .card-body {
        min-height: 208px;
        padding: 2.25rem 1rem 2.75rem;
    }

    .layanan-card-logo {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .layanan-card-icon {
        width: 66px;
        height: 66px;
        border-radius: 19px;
        font-size: 1.75rem;
    }

    .layanan-card-title {
        font-size: 0.95rem;
    }

    .layanan-control {
        width: 28px;
        height: 40px;
    }

    .layanan-card-divider {
        margin-top: 0.75rem;
    }

    .layanan-card-arrow {
        right: 14px;
        bottom: 14px;
        font-size: 0.75rem;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    
}





/* 
   --------------------------------------------------------------------------
   || 2. Responsive Adjustments
   -------------------------------------------------------------------------- 
*/


/* 
   --------------------------------------------------------------------------
   || 3. Accessibility
   -------------------------------------------------------------------------- 
*/
