.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    opacity: 1;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.hero-bg-dot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url(../images/bg/dot-overlay-tile.png);
    background-repeat: repeat;
    background-size: 5px 5px;
    pointer-events: none;
}

.content.full-height.no-bg-con.video-hero-page {
    height: auto;
}

.hero-wrap.video-hero {
    display: flex;
    min-height: 650px;
    background: #024771;
}

.hero-wrap.video-hero .hero-intro {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 0 0 38%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    min-width: 300px;
    max-width: 560px;
    padding: 32px clamp(24px, 3vw, 48px);
    background: linear-gradient(160deg, #036bab 0%, #024771 55%, #012f4d 100%);
    font-family: var(--bw-font);
    text-align: left;
}

.hero-wrap.video-hero .hero-intro-title {
    margin: 0 0 18px;
    color: #fff;
    font-family: 'Prompt', var(--bw-font);
    font-size: clamp(26px, 2.3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.hero-wrap.video-hero .hero-intro-title::before {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-bottom: 18px;
    border-radius: 2px;
    background: #7cc4f0;
}

.hero-wrap.video-hero .hero-intro-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.7;
    text-align: left;
}

.hero-wrap.video-hero .hero-wrap-image-slider-holder {
    position: relative;
    flex: 1 1 0;
    width: auto;
    height: auto;
    min-width: 0;
    overflow: hidden;
}

@media only screen and (min-width: 1037px) {
    .hero-wrap.video-hero {
        margin-top: 80px;
    }
}

@media only screen and (max-width: 800px) {
    .hero-bg-dot-overlay {
        display: none;
    }

    .hero-wrap.video-hero.office-hero {
        flex-direction: column;
        min-height: 0;
    }

    .hero-wrap.video-hero .hero-intro {
        flex: none;
        min-width: 0;
        max-width: none;
        padding: 24px 20px;
    }

    .hero-wrap.video-hero .hero-intro-text {
        font-size: 15px;
    }

    .hero-wrap.video-hero .hero-wrap-image-slider-holder {
        flex: none;
        order: -1;
        width: 100%;
        height: 240px;
    }
}

.content > section {
    padding: 90px 0;
}

@media only screen and (max-width: 1036px) {
    .content > section {
        padding: 37.5px 0;
    }
}

.office-head {
    margin: 0 0 32px;
    text-align: left;
}

.office-head:after {
    content: '';
    display: table;
    clear: both;
}

.office-head .section-title {
    text-align: left;
}

.office-lead {
    max-width: 860px;
    margin: 20px 0 0;
    color: var(--bw-muted);
    font-size: 17px;
    line-height: 1.9;
}

.office-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    background: #fff;
    box-shadow: var(--bw-shadow-sm);
}

.office-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.office-table th,
.office-table td {
    float: none;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bw-border);
    color: var(--bw-muted);
    line-height: 1.6;
    text-align: left;
    vertical-align: middle;
}

.office-table thead th {
    background: #f1f6fb;
    color: var(--bw-ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.office-table tbody th {
    color: var(--bw-ink);
    font-weight: 600;
    white-space: nowrap;
}

.office-table tbody td:nth-child(2) {
    white-space: nowrap;
}

.office-table tbody tr:last-child th,
.office-table tbody tr:last-child td {
    border-bottom: 0;
}

.office-table tbody tr:hover {
    background: #f8fafc;
}

.office-table .is-unavailable th,
.office-table .is-unavailable td {
    color: #64748b;
}

.office-address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.office-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bw-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.office-map-link:hover {
    color: var(--bw-primary-hover);
    text-decoration: underline;
}

.office-map-link:focus-visible {
    outline: 2px solid var(--bw-accent);
    outline-offset: 2px;
}

.office-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.office-status:before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.office-status--yes {
    background: #dcfce7;
    color: #166534;
}

.office-status--no {
    background: #f1f5f9;
    color: #475569;
}

.office-gallery {
    column-count: 3;
    column-gap: 16px;
}

.office-gallery__item {
    position: relative;
    display: block;
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: var(--bw-radius);
    outline: 0;
    background: var(--bw-border);
    box-shadow: var(--bw-shadow-sm);
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.office-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s var(--bw-ease);
}

.office-gallery__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 28px 16px 12px;
    background: linear-gradient(to top, rgba(1, 25, 41, 0.78) 0%, rgba(1, 25, 41, 0) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    pointer-events: none;
}

.office-gallery__item:after {
    content: '\f00e';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 71, 113, 0.5);
    color: #fff;
    font-family: FontAwesome;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.office-gallery__item:hover img {
    transform: scale(1.05);
}

.office-gallery__item:hover:after,
.office-gallery__item:focus-visible:after {
    opacity: 1;
}

.office-gallery__item:focus-visible {
    outline: 3px solid var(--bw-accent);
    outline-offset: 3px;
}

.office-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px;
    border-radius: 20px;
    background: linear-gradient(135deg, #024771 0%, #0a0856 100%);
    box-shadow: 0 24px 56px rgba(2, 71, 113, 0.28);
    color: #fff;
}

.office-cta__text {
    flex: 1 1 320px;
    min-width: 0;
}

.office-cta__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.25;
}

.office-cta__title strong {
    font-weight: 600;
}

.office-cta__text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.7;
}

.office-cta__actions {
    display: flex;
    flex: 0 1 380px;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.office-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 68px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--bw-ease);
}

.office-contact:hover,
.office-contact:focus-visible {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.office-contact:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.office-contact__icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--bw-primary);
    font-size: 20px;
}

.office-contact__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.office-contact__label {
    font-size: 13px;
    letter-spacing: 0.06em;
    opacity: 0.8;
    text-transform: uppercase;
}

.office-contact__value {
    font-size: 18px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media only screen and (max-width: 767px) {
    .office-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .office-table,
    .office-table tbody,
    .office-table tr,
    .office-table th,
    .office-table td {
        display: block;
        width: 100%;
    }

    .office-table tbody tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--bw-border);
    }

    .office-table tbody tr:last-child {
        border-bottom: 0;
    }

    .office-table tbody th,
    .office-table td {
        padding: 4px 0;
        border: 0;
    }

    .office-table tbody th {
        font-size: 18px;
        white-space: normal;
    }

    .office-table td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        text-align: right;
    }

    .office-address {
        align-items: flex-end;
    }

    .office-table td:before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--bw-ink);
        font-weight: 600;
        text-align: left;
    }

    .office-lead {
        font-size: 16px;
        line-height: 1.85;
    }

    .office-gallery {
        column-count: 2;
        column-gap: 12px;
    }

    .office-gallery__item {
        margin-bottom: 12px;
    }

    .office-cta {
        padding: 32px 22px;
        border-radius: 16px;
    }

    .office-cta__title {
        font-size: 26px;
    }

    .office-cta__actions {
        flex: 1 1 100%;
    }
}

@media only screen and (max-width: 479px) {
    .office-gallery {
        column-count: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .office-contact:hover,
    .office-contact:focus-visible,
    .office-gallery__item:hover img {
        transform: none;
    }
}
