/* Responsive adjustments */
@media (max-width: 991.98px) {
    /* Bootstrap's lg breakpoint */
    .navbar-logo {
        width: 120px; /* Slightly smaller on medium devices */
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .display-1 {
        font-size: 3rem;
    }

    .carousel-caption {
        padding-top: 160px;
        align-items: flex-start;
    }

    #header-carousel .carousel-item {
        position: relative;
        min-height: fit-content;
    }

    #header-carousel .carousel-item img {
        position: relative;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .flex-direction {
        flex-direction: column-reverse;
        row-gap: 20px;
        padding-inline: 35px;
    }

    .border-white {
        border-color: #f1f1f1 !important;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem; /* 32px */
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem; /* 28px */
        line-height: 1.3;
    }

    h3 {
        font-size: 1.5rem; /* 24px */
        line-height: 1.3;
    }

    h4 {
        font-size: 1.25rem; /* 20px */
        line-height: 1.4;
    }

    h5 {
        font-size: 1.125rem; /* 18px */
        line-height: 1.4;
    }

    h6 {
        font-size: 1rem; /* 16px */
        line-height: 1.4;
    }

    p {
        font-size: 1rem; /* 16px */
        line-height: 1.5;
    }

    small {
        font-size: 0.875rem; /* 14px */
        line-height: 1.5;
    }
}

@media (max-width: 575.98px) {
    /* Bootstrap's sm breakpoint */
    .navbar-logo {
        width: 100px; /* Even smaller on mobile devices */
    }

    .display-1 {
        font-size: 2.7rem;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0 0;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

@media (max-width: 1366.98px) and (min-width: 991.98px) and (orientation: landscape) {
    .bg-img {
        width: 115% !important;
    }
}