:root {
    --bg: #f3f5f7;
    --surface: #ffffff;
    --ink: #1f2a37;
    --muted: #64748b;
    --brand: #006d77;
    --brand-2: #0a9396;
    --accent: #ee9b00;
    --line: #dbe4ea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 12% 10%, #d7f0f2 0, transparent 30%),
        radial-gradient(circle at 92% 20%, #fdf1d6 0, transparent 24%),
        var(--bg);
}

.hero {
    min-height: 48vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 3rem 1rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-image: var(--hero-background);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -60px;
    height: 120px;
    background: var(--bg);
    border-radius: 50% 50% 0 0;
}

.hero-content {
    max-width: 860px;
    position: relative;
    z-index: 1;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.brand-badge img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
}

h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4.8vw, 3rem);
    letter-spacing: 0.01em;
}

.hero p {
    margin: 0.8rem auto 0;
    max-width: 720px;
    font-size: clamp(1rem, 2.7vw, 1.2rem);
    opacity: 0.95;
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border-radius: 0.6rem;
    font-weight: 600;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn-primary {
    background: var(--accent);
    color: #18212a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

main.container {
    flex: 1 0 auto;
}

.container {
    width: min(1120px, 92vw);
    margin: -2.2rem auto 2rem;
    position: relative;
    z-index: 2;
}

.promise {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, #f9fbff, #ffffff);
    border: 1px solid var(--line);
    border-left: 6px solid var(--brand-2);
    border-radius: 0.9rem;
    box-shadow: 0 10px 20px rgba(10, 34, 57, 0.05);
}

.promise h2 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    color: #0f4c5c;
}

.promise p {
    margin: 0;
    color: var(--muted);
}

.pillars,
.gallery,
.cards,
.layout {
    display: grid;
    gap: 1rem;
}

.pillars,
.gallery,
.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillars {
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.pillar {
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fff;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.pillar i {
    font-size: 1.15rem;
    color: var(--brand);
    margin-top: 0.18rem;
}

.pillar h3 {
    margin: 0;
    font-size: 1rem;
}

.pillar p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.gallery {
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.gallery-card {
    position: relative;
    height: 170px;
    border-radius: 0.95rem;
    overflow: hidden;
    border: 1px solid #cfdbe5;
    box-shadow: 0 10px 24px rgba(10, 34, 57, 0.08);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(15, 23, 42, 0.54);
    border-radius: 0.55rem;
    backdrop-filter: blur(2px);
}

.cards {
    margin-bottom: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(10, 34, 57, 0.06);
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.1rem;
    border: 0;
    background: linear-gradient(135deg, #ffffff, #f3fbfb 72%);
    box-shadow: 0 12px 26px rgba(9, 54, 79, 0.12);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(10, 147, 150, 0.16);
}

.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.stat-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #0a9396, #006d77);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 14px rgba(0, 109, 119, 0.35);
}

.kpi-label {
    color: var(--muted);
    font-size: 0.88rem;
}

.kpi-value {
    margin-top: 0.55rem;
    font-size: clamp(1.35rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.01em;
}

.layout {
    grid-template-columns: 1fr 1fr;
}

.directory-card {
    padding: 1.35rem;
    min-height: 540px;
    border-radius: 1.1rem;
    box-shadow: 0 16px 32px rgba(10, 34, 57, 0.11);
}

.section-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.officer-item,
.event-item {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    padding: 1rem;
    margin-bottom: 0.85rem;
    background: #fbfdff;
}

.officer-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.officer-position {
    color: var(--brand-2);
    font-size: 1rem;
    margin-top: 0.1rem;
}

.meta {
    color: var(--muted);
    font-size: 0.93rem;
    margin-top: 0.32rem;
    line-height: 1.45;
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #155e75;
    background: #e6f5f6;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
}

.empty {
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.7rem;
    color: var(--muted);
    background: #f8fafc;
    text-align: center;
}

footer {
    text-align: center;
    color: #64748b;
    font-size: 0.86rem;
    padding: 1rem 0.5rem 1.6rem;
    margin-top: auto;
}

.reveal-ready {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .pillars,
    .gallery,
    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .directory-card {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .pillars,
    .gallery,
    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 42vh;
    }
}
