:root {
    --brand-deep: #082c43;
    --brand-aqua: #4ea7b7;
    --brand-ink: #193140;
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--brand-ink);
    background:
        radial-gradient(circle at top left, rgba(78, 167, 183, 0.08), transparent 28%),
        linear-gradient(180deg, #fcfeff 0%, #f5f9fb 100%);
    overflow-x: hidden;
}

.container,
.container-fluid {
    padding-left: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), calc(var(--safe-left) + 1rem));
    padding-right: max(calc(var(--bs-gutter-x, 1.5rem) * 0.5), calc(var(--safe-right) + 1rem));
}

a {
    text-decoration: none;
}

.site-navbar {
    padding: 0.35rem 0;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
    background: #2f75b7;
}

.site-navbar.is-scrolled {
    background: rgba(47, 117, 183, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(8, 44, 67, 0.14);
    padding: 0.28rem 0;
}

.nav-shell {
    padding-left: clamp(1rem, 2.4vw, 2.2rem);
    padding-right: clamp(1rem, 2.4vw, 2.2rem);
}

.navbar-brand {
    color: #fff;
    margin-right: 1.25rem;
}

.brand-panel {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 40px;
    padding: 0;
    background: transparent;
}

.brand-logo {
    width: 128px;
    max-width: 100%;
    height: auto;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-copy strong {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-copy small {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.05rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
    font-size: 0.94rem;
    padding-inline: 0.75rem !important;
}

.nav-link:hover,
.nav-link:focus {
    color: #fff;
}

.btn-brand {
    background: #00bfff;
    color: #fff;
    border: none;
    border-radius: 999px;
    box-shadow: none;
    padding: 0.62rem 1.2rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    background: #00a6df;
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.28);
}

.btn:focus-visible,
.hero-control:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.22rem rgba(0, 191, 255, 0.3);
}

.hero-section {
    position: relative;
}

.hero-slide {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 760px;
    padding: 6rem 0 4rem;
}

.hero-panel {
    max-width: 560px;
}

.hero-section h1,
.hero-title {
    max-width: 860px;
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: x-large;
    line-height: 1.16;
    font-family: Arial, sans-serif;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.hero-text {
    max-width: 560px;
    margin-bottom: 1.7rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.7;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-light {
    color: #fff;
    border: none;
    border-radius: 999px;
    background: #00bfff;
    padding: 0.8rem 1.35rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.hero-actions .btn-light:hover,
.hero-actions .btn-light:focus {
    color: #fff;
    background: #00a6df;
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.28);
}

.hero-control {
    top: 50%;
    bottom: auto;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    opacity: 1;
}

.carousel-control-prev.hero-control {
    left: 2rem;
}

.carousel-control-next.hero-control {
    right: 2rem;
}

.hero-control:hover,
.hero-control:focus {
    background: rgba(0, 191, 255, 0.72);
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.22);
}

.section-space {
    padding: 4rem 0;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--brand-aqua);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker-warm {
    color: #f07d00;
}

.section-text {
    color: rgba(25, 49, 64, 0.78);
    font-size: 1.02rem;
    line-height: 1.85;
}

.simple-about {
    max-width: 980px;
    margin: 0 auto;
}

.simple-about-title {
    font-size: x-large;
    text-transform: none;
}

.simple-about-text {
    max-width: 100%;
    font-size: 1.04rem;
    line-height: 1.9;
    text-align: justify;
}

.cards-section {
    padding-top: 0;
}

.resource-card {
    height: 100%;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #fff;
    border: 1px solid rgba(8, 44, 67, 0.1);
    box-shadow: 0 16px 34px rgba(8, 44, 67, 0.08);
}

.resource-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eaf2f5;
}

.resource-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.resource-body {
    min-height: 248px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem;
}

.resource-body h3 {
    margin-bottom: 0.9rem;
    color: #2f75b7;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.resource-body p {
    margin-bottom: 1.5rem;
    color: rgba(25, 49, 64, 0.82);
    font-size: 1rem;
    line-height: 1.75;
    text-align: left;
    text-wrap: pretty;
}

.resource-body .btn {
    margin-top: auto;
}

.site-footer {
    padding: 1.4rem 0 2rem;
    background: #071f2f;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .site-navbar {
        background: rgba(47, 117, 183, 0.96);
        backdrop-filter: blur(16px);
    }

    .nav-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-collapse {
        margin-top: 0.7rem;
        padding: 1rem;
        border-radius: 1.25rem;
        background: rgba(255, 255, 255, 0.1);
    }

    .section-space {
        padding: 3.25rem 0;
    }
}

@media (max-width: 767.98px) {
    .container,
    .container-fluid {
        padding-left: max(1rem, calc(var(--safe-left) + 0.85rem));
        padding-right: max(1rem, calc(var(--safe-right) + 0.85rem));
    }

    .brand-panel {
        min-height: auto;
        gap: 0.6rem;
    }

    .brand-logo {
        width: 98px;
    }

    .brand-copy strong {
        font-size: 0.74rem;
    }

    .brand-copy small {
        font-size: 0.42rem;
    }

    .hero-slide {
        min-height: 480px;
        align-items: flex-end;
    }

    .hero-section h1 {
        font-size: 1.6rem;
        line-height: 1.18;
    }

    .hero-title {
        font-size: 1.45rem;
        line-height: 1.18;
    }

    .hero-content {
        max-width: 100%;
        padding: 6.4rem 0 4.2rem;
    }

    .hero-panel {
        max-width: calc(100% - 1.2rem);
    }

    .hero-text {
        max-width: 92%;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .hero-control {
        top: auto;
        bottom: 1.2rem;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .carousel-control-prev.hero-control {
        left: 1rem;
    }

    .carousel-control-next.hero-control {
        right: 1rem;
    }

    .resource-body {
        min-height: 220px;
        padding: 1.35rem;
    }

    .resource-body h3 {
        font-size: 1.65rem;
    }
}
