:root{
    --brand-navy: #152544;       /* background */
    --brand-aqua: #30dcc8;       /* primary accent */
    --brand-teal: #37aee0;       /* secondary accent */
    --brand-text: #ffffff;
    --card-dark: #0f1f3a;
}

html, body {
    height: 100%;
}

body{ background: var(--brand-navy); color: var(--brand-text); font-family: 'Poppins', sans-serif; }

h1, h2, h3 {
    font-weight: 700;
}

h4, h5, h6 {
    font-weight: 600;
}

p, li, span {
    font-weight: 400;
}

.small, small {
    font-weight: 300;
}
a {
    color: var(--brand-aqua);
}
a:hover {
    text-decoration: none;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar{ background: rgba(9,18,36,.65); backdrop-filter: blur(6px); }

.navbar .navbar-toggler {
    color: var(--brand-aqua);
}
.navbar .navbar-toggler-icon {
    background-color: var(--brand-aqua);
    border-radius: 4px;
}

/* Navbar dropdown */
.navbar .dropdown-menu {
    background: rgba(9,18,36,.95);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .75rem;
    padding: .5rem 0;
}

.navbar .dropdown-item {
    color: var(--brand-text);
    font-weight: 400;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(48,220,200,.15);
    color: var(--brand-aqua);
}
.navbar .dropdown-toggle {
    position: relative;
}
.navbar .dropdown-toggle::after {
    position: absolute;
    top: 19px;
}
.navbar .nav-item .nav-link {
    color: #fff;
}
.navbar .nav-item .nav-link:hover, .navbar .nav-item .nav-link.active {
    color: var(--brand-aqua);
}

main {
    flex: 1;
    padding-bottom: 3rem;
}

/* Buttons in brand colors */
.btn-aqua{ background: var(--brand-aqua); color:#000; border: none; }
.btn-aqua:hover{ filter: brightness(.95); color:var(--brand-aqua); border: solid 1px var(--brand-aqua); }
.btn-outline-aqua{ color: var(--brand-aqua); border-color: var(--brand-aqua); }
.btn-outline-aqua:hover{ background: var(--brand-aqua); color:#000; }

/* Breadcrumbs */
.breadcrumb-dark {
    --bs-breadcrumb-divider-color: rgba(255,255,255,.4);
}
.breadcrumb-dark .breadcrumb-item a {
    color: var(--brand-aqua);
    text-decoration: none;
}
.breadcrumb-dark .breadcrumb-item.active {
    color: rgba(255,255,255,.65);
}

/* Hero */
.hero{
    position: relative;
    min-height: 520px;
    background:
            linear-gradient(90deg, rgba(25,45,80,.85) 0%, rgba(25,45,80,.35) 60%, rgba(25,45,80,.10) 100%),
            url("./img/hero-bg.jpg") center/cover no-repeat; /* TODO: replace with your thematic image */
    border-radius: 1.25rem;
}
.hero::after{ /* soft glow blobs */
    content:"";
    position:absolute; inset:0;
    background:
            radial-gradient(600px 300px at 20% 30%, rgba(48,220,200,.18) 0, transparent 60%),
            radial-gradient(600px 300px at 80% 70%, rgba(55,174,224,.18) 0, transparent 60%);
    mix-blend-mode: screen;
    border-radius: 1.25rem;
    pointer-events: none;
}

/* Cards */
.card {
    background: var(--card-dark);
    color: var(--brand-text);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.hp-cards .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.35);
}

.card .bi{ font-size: 1.75rem; }

.hp-cards a {
    text-decoration: none;
}

/* News thumbs (keep ratio) */
.thumb{
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* Content block (WYSIWYG safe) */
.content-block {
    line-height: 1.75;
}
.content-block h2,
.content-block h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.content-block ul {
    padding-left: 1.2rem;
}
.content-block blockquote {
    margin: 2rem 0;
    padding-left: 1.25rem;
    border-left: 4px solid var(--brand-aqua);
    color: rgba(255,255,255,.85);
    font-style: italic;
}

/* Downloads */
.list-downloads .list-group-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--card-dark);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--brand-text);
}
.list-downloads .list-group-item:hover {
    background: rgba(48,220,200,.08);
}

/* Card links (subpage tiles) */
.card-link {
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    background-color: var(--brand-teal);
}
.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    background-color: var(--brand-aqua);
}
.card-link .bi {
    font-size: 2rem;
}
.card-link .card-body h3 {
    text-align: center;
}
.card-img-top-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Highlight card */
.card-highlight {
    background: linear-gradient(
            135deg,
            rgba(48,220,200,.15),
            rgba(55,174,224,.10)
    );
}

/* Gallery grid */
.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: .75rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item {
    display: block;
    position: relative;
}

.gallery-item:hover img {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(9,18,36,.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 80vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(21,37,68,.85);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;

    color: var(--brand-aqua);
    font-size: 1.6rem;
    line-height: 1;

    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.lightbox-close:hover {
    background: rgba(48,220,200,.25);
    transform: scale(1.05);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Lightbox navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(21,37,68,.6);
    border: none;
    color: var(--brand-aqua);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}

.lightbox-nav:hover {
    background: rgba(48,220,200,.25);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Lightbox counter */
.lightbox-counter {
    margin-top: 12px;
    color: rgba(255,255,255,.75);
    font-size: .9rem;
    letter-spacing: .05em;
    text-align: center;
}

/* Partner cards */
.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: var(--card-dark);
    border-radius: 1rem;
    padding: 1.25rem;

    text-decoration: none;
    color: var(--brand-text);

    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.35);
}

/* Logo wrapper */
.partner-logo {
    width: 100%;
    height: 110px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: .75rem;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(1.05);
}

/* Name */
.partner-name {
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Supporting orgs – slightly softer */
.partner-card--support {
    background: rgba(15,31,58,.85);
}

/* Resource item */
.resource-item {
    display: flex;
    gap: 1.25rem;

    background: var(--card-dark);
    border-radius: 1rem;
    padding: 1rem;

    box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

/* Left image */
.resource-thumb {
    flex: 0 0 150px;
    height: 90px;
    min-width: 0;
    overflow: hidden;
    border-radius: .75rem;
}

.resource-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right content */
.resource-body {
    flex: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
}

/* Title */
.resource-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 .25rem 0;
}

/* Description */
.resource-desc {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    margin: 0 0 .4rem 0;

    /* max one line */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta row */
.resource-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 1rem;
    color: rgba(255,255,255,.65);
}

.resource-type i {
    margin-right: .25rem;
    color: var(--brand-aqua);
}

.resource-action {
    color: var(--brand-aqua);
    font-weight: 500;
}

.resource-action:hover {
    text-decoration: none;
}

/* Footer */
.site-footer{
    background: #16243d;
    color: #dfe7ff;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* Helpers */
.maxw-1200{ max-width: 1200px; }
.text-aqua{ color: var(--brand-aqua)!important; }
.maxw-text{ max-width: 1200px; }

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hero{
        background-position: right;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .resource-item {
        flex-direction: column;
    }
    .resource-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 160px;
    }
    .resource-desc {
        white-space: normal;
    }
}
