:root {
    --ia-blue: #0b5f8a;
    --ia-blue-dark: #103b57;
    --ia-cyan: #2ca9d6;
    --ia-sand: #f4f8fb;
    --ia-paper: #ffffff;
    --ia-ink: #172331;
    --ia-muted: #536575;
    --ia-border: #d8e6ee;
    --ia-shadow: 0 18px 45px rgba(16, 59, 87, .10);
}

body {
    color: var(--ia-ink);
    background: var(--ia-sand);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--ia-blue);
    text-underline-offset: .18em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ia-ink);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.12;
}

.site-topbar {
    background: var(--ia-blue-dark);
    color: #dbeafe;
    font-size: .875rem;
    font-weight: 600;
}

.site-topbar a,
.site-footer a {
    color: inherit;
}

.site-navbar {
    border-bottom: 1px solid var(--ia-border);
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 59, 87, .05);
}

.navbar-brand img {
    width: 280px;
    max-width: 70vw;
    height: auto;
}

.navbar {
    --bs-navbar-padding-y: .95rem;
}

.navbar-nav {
    gap: .35rem;
}

.navbar-nav .nav-link {
    border-radius: 999px;
    color: #31475a;
    font-weight: 650;
    padding: .45rem .8rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--ia-blue);
    background: #eaf6fb;
}

.dropdown-menu {
    border: 1px solid var(--ia-border);
    border-radius: 8px;
    box-shadow: var(--ia-shadow);
}

#slideshow {
    position: relative;
    width: 100%;
    height: clamp(320px, 48vw, 620px);
    overflow: hidden;
    background: var(--ia-blue-dark);
}

#slideshow > div {
    display: none;
    position: absolute;
    inset: 0;
}

#slideshow:not(.is-ready) > div:first-child,
#slideshow > div.active {
    display: block;
}

#slideshow img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.78);
}

#slideshow .slide_text {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    z-index: 2;
    width: min(900px, calc(100% - 2rem));
    padding: 0;
    color: #fff;
    background: transparent;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .72);
}

.carousel {
    position: relative;
    overflow: hidden;
    background: var(--ia-blue-dark);
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    display: none;
    position: relative;
    width: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    display: block;
    width: 100%;
}

.carousel-caption {
    position: absolute;
    color: #fff;
    z-index: 2;
}

.hero-slide,
.hero-fallback {
    min-height: clamp(360px, 48vw, 650px);
    background: linear-gradient(135deg, #0f344d, #0ea5e9);
}

.hero-fallback-image {
    background-position: center;
    background-size: cover;
}

.hero-slide img {
    height: clamp(360px, 48vw, 650px);
    object-fit: cover;
    filter: brightness(.78);
}

.hero-caption {
    position: absolute;
    right: auto;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    width: min(1320px, calc(100% - 2rem));
    text-align: center;
    z-index: 2;
    color: #fff;
}

.hero-caption h2,
.hero-fallback h1 {
    max-width: 820px;
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 4rem);
    font-weight: 800;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .44);
}

.hero-caption h2 {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .72);
}

#text_bar {
    width: 100%;
    background: #fff;
}

#text_bar .screen_width,
.content-band > .container,
.content-band > .container-xl {
    width: min(1320px, calc(100% - 2rem));
    margin-right: auto;
    margin-left: auto;
}

#text_bar .main_block,
#text_bar .div_wide_left {
    max-width: 100%;
}

#text_bar .main_block > h1,
#text_bar .main_block > p,
#text_bar .main_block > div,
#text_bar .div_wide_left > h1,
#text_bar .div_wide_left > p {
    max-width: 920px;
}

#text_bar .main_block img,
#text_bar .div_wide_left img {
    max-width: 100%;
    height: auto;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10%;
    min-width: 48px;
    border: 0;
    color: #fff;
    background: transparent;
    opacity: .75;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.content-band {
    background:
        radial-gradient(circle at top left, rgba(44, 169, 214, .13), transparent 34rem),
        var(--ia-sand);
}

.content-body img {
    max-width: 100%;
    height: auto;
}

.content-body h1 {
    max-width: 980px;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.content-body p {
    max-width: 920px;
    margin-bottom: 1.25rem;
    color: #27394a;
    font-size: 1.05rem;
}

.content-body table {
    width: 100%;
}

.intro-layout {
    margin-bottom: 2rem;
}

.section-kicker {
    margin-bottom: .65rem;
    color: var(--ia-blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.35rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.75rem, 2.5vw, 2.45rem);
}

.cards-section + .cards-section {
    margin-top: 4rem !important;
}

.info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(157, 183, 198, .6);
    border-radius: 8px;
    background: var(--ia-paper);
    box-shadow: 0 8px 22px rgba(16, 59, 87, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.info-card:hover {
    border-color: rgba(44, 169, 214, .75);
    box-shadow: var(--ia-shadow);
    transform: translateY(-3px);
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ia-blue), var(--ia-cyan));
}

.info-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfeef5;
}

.info-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.info-card-media-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fbfd, #e9f5fa);
}

.info-card-media-logo img {
    width: auto;
    max-width: 88%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.info-card:hover .info-card-media img {
    transform: scale(1.04);
}

.info-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.45rem;
}

.info-card h2 {
    margin-bottom: .65rem;
    font-size: clamp(1.3rem, 2vw, 1.55rem);
}

.info-card .content-body {
    flex: 1;
}

.info-card .content-body p {
    margin-bottom: 0;
    color: var(--ia-muted);
    font-size: .98rem;
    line-height: 1.55;
}

.info-card-body > p {
    flex: 1;
    margin-bottom: 0;
    color: var(--ia-muted);
    font-size: .98rem;
    line-height: 1.55;
}

.btn-primary {
    --bs-btn-bg: var(--ia-blue);
    --bs-btn-border-color: var(--ia-blue);
    --bs-btn-hover-bg: #084c70;
    --bs-btn-hover-border-color: #084c70;
    --bs-btn-border-radius: 999px;
    --bs-btn-font-weight: 700;
    align-self: flex-start;
    padding: .62rem 1rem;
}

.ad-slot {
    min-height: 280px;
    border: 1px dashed #b8c7d4;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(16, 59, 87, .04);
}

.ad-slot .adsbygoogle {
    display: block;
    width: 100%;
    min-height: 250px;
}

.ad-slot-error {
    background: #fff7ed;
}

.ad-label {
    display: block;
    margin-bottom: .5rem;
    color: #64748b;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.breadcrumb {
    --bs-breadcrumb-divider: ">";
    color: var(--ia-muted);
    font-size: .92rem;
}

.harbour-facts {
    padding: 1.5rem;
    border: 1px solid rgba(157, 183, 198, .6);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 59, 87, .05);
}

.harbour-facts dl {
    margin: 0;
}

.harbour-fact-row {
    display: grid;
    grid-template-columns: minmax(150px, 240px) 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--ia-border);
}

.harbour-fact-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.harbour-fact-row:last-child {
    padding-bottom: 0;
}

.harbour-fact-row dt {
    color: var(--ia-muted);
    font-weight: 800;
}

.harbour-fact-row dd {
    margin: 0;
    color: var(--ia-ink);
    font-weight: 600;
}

.harbour-side-card {
    padding: 1.5rem;
    border: 1px solid rgba(157, 183, 198, .6);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--ia-shadow);
}

.harbour-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbfd, #e9f5fa);
}

.harbour-logo-box img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.harbour-side-card h2 {
    margin-bottom: .25rem;
}

.harbour-place {
    margin-bottom: 1.25rem;
    color: var(--ia-muted);
    font-weight: 600;
}

.vhf-sign {
    width: 128px;
    margin-top: 1.25rem;
    border: 4px solid #dc2626;
    border-radius: 8px;
    color: #dc2626;
    font-weight: 800;
    text-align: center;
}

.vhf-sign span {
    display: block;
    line-height: 1;
}

.vhf-sign .vhf-number {
    font-size: 3rem;
}

.site-footer {
    background: var(--ia-blue-dark);
    color: #dbeafe;
}

.site-footer ul {
    padding-left: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: .35rem;
}

.accordion-button:not(.collapsed) {
    color: var(--ia-blue-dark);
    background: #e0f2fe;
}

.py-lg-6 {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

@media (max-width: 991.98px) {
    .site-topbar .container-xl {
        align-items: center;
        text-align: center;
    }

    .navbar-brand img {
        width: 230px;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }

    .navbar-nav .nav-link {
        border-radius: 8px;
        padding: .7rem .85rem;
    }

    .hero-slide,
    .hero-fallback,
    .hero-slide img,
    #slideshow {
        min-height: 420px;
        height: 420px;
    }

    .hero-caption,
    #slideshow .slide_text {
        bottom: 10%;
        width: min(680px, calc(100% - 2rem));
    }

    .content-band {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .site-topbar {
        font-size: .82rem;
    }

    .site-topbar .mx-2 {
        display: none;
    }

    .site-topbar nav {
        display: none;
    }

    .navbar-brand img {
        width: 210px;
    }

    .hero-slide,
    .hero-fallback,
    .hero-slide img,
    #slideshow {
        min-height: 360px;
        height: 360px;
    }

    .hero-caption h2,
    .hero-fallback h1,
    #slideshow .slide_text {
        font-size: clamp(1.85rem, 10vw, 2.7rem);
        line-height: 1.08;
    }

    .content-body h1 {
        font-size: 2rem;
    }

    .info-card-body {
        padding: 1.2rem;
    }

    .harbour-facts,
    .harbour-side-card {
        padding: 1.2rem;
    }

    .harbour-fact-row {
        grid-template-columns: 1fr;
        gap: .3rem;
    }
}
