.link-unstyled,
.link-unstyled:link,
.link-unstyled:hover {
    color: inherit;
    text-decoration: inherit;
}

html {
    scroll-padding-top: 164px;
}

body {
    background: linear-gradient(180deg, var(--bs-dark) 0%, var(--bs-dark) 16%, #D4CD3F 16%);
    padding-top: 116px;
}

#slogan {
    color: #D4CD3F;
    font-weight: bold;
    background-color: var(--bs-dark);
    border: none;
}

h1 {
    font-weight: 800;
}

.info-card {
    border: none;
}

.writing-cards {
    margin-top: 1.5rem;
}

.writing-cards-heading {
    font-size: 0.875rem;
    letter-spacing: 0.04em;
}

.writing-card {
    background-color: #fff;
    border: 1px solid rgba(33, 37, 41, 0.15);
    border-radius: 0.375rem;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.writing-card:hover {
    border-color: rgba(33, 37, 41, 0.35);
    box-shadow: 0 0.125rem 0.5rem rgba(33, 37, 41, 0.08);
}

.writing-card-title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
}

.writing-card-client {
    display: block;
    font-size: 0.875rem;
    color: rgba(33, 37, 41, 0.75);
}

.writing-card-link {
    display: block;
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #212529;
}

.alpha-green {
    color: #D4CD3F;
}

.card {
    max-width: 1200px;
}

.navbar div {
    max-width: calc(1200px + 3rem);
}

.portrait {
    max-width: 150px;
    min-width: 50px;
}

.carousel-image {
    max-height: 50vh;
    max-width: 19vw;
}

.carousel-container {
    position: relative;
}

.carousel-container h3 {
    margin-bottom: 1rem;
}

.brandImage {
    width: 40%;
    margin: auto;
}

.brandImageMobile {
    max-width: 50vw;
    min-width: 18vh;
    max-height: 18vh;
}

.carousel-container .overlay-color,
.carousel-container .overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.carousel-container:hover .overlay-color,
.carousel-container:hover .overlay {
    opacity: 1;
    visibility: visible;
}

.carousel-container:hover .overlay {
    pointer-events: auto;
}

.overlay-color {
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%, 0);
    z-index: 2;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.carousel-container:hover .overlay {
    transform: translate(-50%, 0);
}

.carousel-item {
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item img {
    transition: transform 0.4s ease;
}

.carousel-container:hover img {
    transform: scale(1.02);
}

.text-justify {
    text-align: justify;
    text-align-last: justify;
    max-height: 50vh;
    overflow: scroll;
}

.carousel-control-next,
.carousel-control-prev {
    width: 5%;
}

.accordion-button:not(.collapsed) {
    color: #212529;
    background-color: #fff;
}

.navLogo {
    height: 12vw;
    max-height: 90px;
}

/* Client logo marquee */
.client-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.client-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: marquee-scroll 55s linear infinite;
}

.client-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    height: 20vh;
}

.client-marquee-item img {
    max-height: 18vh;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

@keyframes marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-marquee-track {
        animation: none;
    }

    .carousel-item,
    .carousel-container .overlay-color,
    .carousel-container .overlay,
    .carousel-item img {
        transition: none;
    }
}

@media (max-width: 991.98px) {
    .carousel-image {
        max-width: 80vw;
    }

    .client-marquee-item {
        height: 16vh;
        padding: 0.75rem 1.5rem;
    }

    .client-marquee-item img {
        max-height: 14vh;
        max-width: 140px;
    }
}
