body {
    padding-top: 48px;
}

/* Smooth hover effect for brand logo */
.navbar-brand img {
    transition: opacity 0.3s ease;
}

.navbar-brand img:hover {
    opacity: 0.75;
}

/* Unified font size for UI elements */
.navbar-nav .nav-link,
.navbar-text,
.btn,
.dropdown-menu {
    font-size: 0.9rem;
}

.dropdown-menu {
    min-width: 230px;
    max-width: 320px;
}

.dropdown-item.truncate {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item[aria-expanded="true"] i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.collapse.ps-3 {
    max-height: 300px;
    overflow-y: auto;
}

#background-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#background-carousel .carousel-item img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* Dark overlay mask for carousel images */
.carousel-mask {
    position: relative;
}

.carousel-mask::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.title-in-background {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}