/* Custom CSS for lsp-dks */

/* Blog page layout improvements */
.card-berita {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.konten-berita {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.konten-berita .btn {
    margin-top: auto;
}

/* Index page layout improvements */
.portfolio-item {
    aspect-ratio: 1 / 1;
}

.portfolio-item .img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

/* Header Carousel Styles */
.masthead .carousel {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.0833%; /* Aspect Ratio 673 / 1200 */
    background: #2c3e50;
}

.masthead .carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.masthead .carousel-item {
    height: 100%; /* Make item fill the carousel-inner */
}

.masthead .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.masthead.masthead-with-carousel {
    padding: 0;
    height: 100vh; /* Set masthead to full viewport height */
}

/* Override aspect-ratio sizing when carousel is active */
.masthead.masthead-with-carousel .carousel {
    height: 100%; /* Make carousel fill the masthead */
    padding-bottom: 0; /* Remove aspect ratio padding */
}

/* Reusable Back/View All Button */
.back-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem; /* Changed from margin-bottom to margin-top for spacing */
    transition: background-color 0.3s;
}

.back-button:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}
