.location-categories {
    background-color: #f9fafb;
    padding: 3rem 0;
}

.location-text {
    font-weight: 300;
    font-size: 1.2rem;
}

.location-overlay .location-text {
    color: white;
    text-align: center;
    position: relative; /* Ensure text stays in place */
}

    .location-overlay .location-text h3 {
        font-size: 1rem; /* Font size */
        font-weight: 600;
    }

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.location-title {
    text-align: center;
    margin-bottom: 2rem;
}

    .location-title h1 {
        font-size: 1.5rem;
        font-weight: bold;
    }

.location-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 0.5rem;
    grid-template-areas:
        "gweru bulawayo harare"
        "mutare mutare harare"; /* Harare now extends vertically */
}

.location-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 100px; /* Height for smaller cards */
}

.location-large-card {
    grid-area: mutare;
    height: 320px; /* Height of the Mutare card */
    grid-column: span 2; /* Span across two columns */
}

.location-harare-card {
    grid-area: harare;
    height: 500px; /* Height to match the combined height of the smaller cards and Mutare card */
    grid-column: span 1; /* Span across one column */
}

.location-gweru-card {
    grid-area: gweru;
}

.location-bulawayo-card {
    grid-area: bulawayo;
}

.location-card-image {
    display: block;
    height: 100%;
    padding-bottom: 50%; /* Aspect ratio */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    position: relative; /* Make sure this is set */
}

    .location-card-image:hover {
        transform: scale(1.025); /* Zoom effect */
    }

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.location-card-image:hover .location-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.location-text {
    color: white;
    text-align: center;
}

    .location-text h3 {
        font-size: 1rem; /* Font size */
        font-weight: 600;
    }

    .location-text span {
        font-size: 0.75rem; /* Font size */
    }

@media (max-width: 1024px) {
    .location-columns {
        grid-template-columns: 1fr; /* Single column layout */
        grid-template-areas:
            "gweru"
            "bulawayo"
            "harare"
            "mutare"; /* All cards in a single column */
    }

    .location-card,
    .location-large-card,
    .location-harare-card {
        height: 200px; /* Consistent height for all cards in mobile view */
    }

    .location-large-card {
        grid-area: mutare;
        grid-column: auto; /* Remove the span on mobile */
    }

    .location-card-image {
        padding-bottom: 60%; /* Adjust aspect ratio */
    }
}

.full-width-heading {
    width: 100%;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}


.images-sliding-overlay {

}

.images-sliding-overlay > a {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.images-sliding-overlay .caption {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    transition: all 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0s;
}

.images-sliding-overlay .caption-before {
    background-size: 100%;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.8) 100%);
}

.images-sliding-overlay .caption-inner {
    position: absolute;
    padding: 1.5rem;
    text-align: center;
    max-height: 250px;
    overflow: auto;
    font-size: 1rem;
    font-weight: 500;
    line-height: 22px;
    width: 100%;
}

.images-sliding-overlay .caption-before .caption-inner {
    color: #fff;
    bottom: 0;
    left: 0;
}

.images-sliding-overlay .caption-after {
    background-color: rgba(255, 255, 255, 0.9);
    left: 100%;
    color: #555;
}

.images-sliding-overlay .caption-after .caption-inner {
    top: 50%;
    transform: translate(0, -50%);
}

.w-fifth {
    width: 20%;
}

.w-quarter {
    width: 25%;
}

.w-third {
    width: 33%;
}

.w-half {
    width: 50%;
}

.images-fixed-overlay > a {
    display: block;
    position: relative;
    height: 346px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    margin-bottom: 1.5rem;
}

.images-fixed-overlay > a::before {
    transition: all 0.2s ease-out;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    content: '';
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .3;
}

.images-fixed-overlay > a:hover::before {
    opacity: 0.1;
}

.images-fixed-overlay .caption {
    text-align: center;
    position: absolute;
    top: 50%;
    right: inherit;
    bottom: inherit;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;
}

.branches > div {
    border-radius: 6px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    margin-bottom: 1.5rem;
}

.branches img {
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}

.branches .branch-details {
    padding: 0.75rem 1rem 1rem 1rem;
}

@media(min-width: 768px){

    .branches {
        display: flex;
        justify-content: space-between;
    }

    .branches > div {
        margin-left: 8px;
        margin-right: 8px;
        margin-bottom: 0;
    }

    .branches > div:first-child {
        margin-left: 0;
    }

    .branches > div:last-child {
        margin-right: 0;
    }


    .full-width-heading {
        font-size: 28px;
        margin-bottom: 3rem;
    }

    .images-sliding-overlay {
        display: flex;
        justify-content: space-between;
    }
    
    .images-sliding-overlay > a {
        margin-left: 8px;
        margin-right: 8px;
        margin-bottom: 0;
    }

    .images-sliding-overlay > a:first-child {
        margin-left: 0;
    }

    .images-sliding-overlay > a:last-child {
        margin-right: 0;
    }
        
    .w-fifth-md {
        width: 20%;
    }

    .w-quarter-md {
        width: 25%;
    }

    .w-third-md {
        width: 33%;
    }

    .w-half-md {
        width: 50%;
    }

    .images-fixed-overlay {
        display: flex;
        justify-content: space-between;
    }

    .images-fixed-overlay > a {
        margin-bottom: 0;
    }

    .images-fixed-overlay > a:first-child {
        width: 33%;
    }

    .images-fixed-overlay > a:last-child {
        width: 66%;
    }
    
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-weight: normal;
    src: url('/content/fonts/inter/Inter-Light.ttf') format('truetype');
    font-display: swap;
}


@font-face {
    font-family: 'IBM Plex Sans';
    font-weight: 500;
    src: url('/content/fonts/inter/Inter-Medium.ttf') format('truetype');
    font-display: swap;
}