html, body {
    height: 100%;
}

body {
    padding-top: 70px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    color: gray;
    font-size: small;
    flex-shrink: 0;
}

.img-fluid {
    width: 98%;
    height: auto;
}

.img-fluid-ps {
    width: 200px;
    height: 200px;

}

#previewContainer .preview-item {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#previewContainer .preview-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#previewContainer img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.preview-item .remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.preview-item .remove-btn:hover {
    background-color: rgba(255, 0, 0, 1);
}

.card {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-h {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-ps {
    background-color: #f3f4f6;
    color: #222;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
}

.card-img-h {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    height: auto;
    display: block;
}

.card-img-pi {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: auto;
    display: block;
}

.card-body {
    padding: 0.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 50px;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 350;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* maksimal 2 baris */
    line-clamp: 2;              /* standar properti untuk kompatibilitas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;          /* agar semua judul rata, 2 baris */
    line-height: 1.4em;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.08);
    transform: translateY(-2px) scale(1.02);
    transition: box-shadow 0.2s, transform 0.2s;
}

a .card, a .card * {
    cursor: pointer;
}

@media (hover: none) and (pointer: coarse) {
    .card:active {
        box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.08);
        transform: scale(0.98);
        filter: brightness(0.96);
        transition: none;
    }
}

.btn-outline-primary {
    align-self: flex-end;
}

.container-fluid-inner {
    padding-left: 4rem;
    padding-right: 4rem;
}

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

.mySwiper img {
    cursor: pointer;
    object-fit: cover;
}

.mySwiper .swiper-slide-thumb-active img {
    border: 3px solid green;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper-outer {
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.mySwiper2 {
    height: 100%;
}

.mySwiper {
    height: auto;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

.mySwiper .swiper-slide {
    width: 20%;
    opacity: 0.65;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
}

.swiper-slide img {
    object-fit: cover
}

.mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;

}

.mySwiper2 .swiper-slide {
    aspect-ratio: 4 / 5;
    width: 100%;
    height: auto; /* biar responsif */
    display: flex;
    justify-content: center;
    align-items: center;
}

.mySwiper2 .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

@media (max-width: 576px) {
    .text, p, .justify-text {
        text-align: left !important;
    }
    .container-fluid-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .mySwiper2 .swiper-slide {
        aspect-ratio: 4 / 5;
    }
    .mySwiper .swiper-slide {
        aspect-ratio: 1 / 1;
    }
}