:root {
    --primary: var(--unamaci-orange, #EF7900);
    --secondary: var(--unamaci-green, #087F23);
    --accent: var(--unamaci-bordeaux, #7A1F3D);
    --light: var(--unamaci-light, #FFF9F2);
    --gray: var(--unamaci-gray, #F5F6F7);
    --dark: var(--unamaci-dark, #202529);
    --muted: #66727a;
    --paper: #ffffff;
    --line: #e2e6e9;
    --shadow: 0 18px 48px rgba(32, 37, 41, .10);
}

* {
    letter-spacing: 0;
}

body {
    color: var(--dark);
    background: var(--paper);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

a:hover {
    color: var(--accent);
}

.btn {
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #cf6800;
    border-color: #cf6800;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-light {
    color: var(--secondary);
}

.site-header {
    box-shadow: 0 10px 30px rgba(32, 37, 41, .08);
}

.site-header .navbar {
    min-height: 88px;
}

.navbar-brand {
    max-width: 430px;
}

.brand-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-text strong {
    display: block;
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 1;
}

.brand-text small {
    display: block;
    color: var(--dark);
    font-size: .78rem;
    line-height: 1.25;
    white-space: normal;
}

.nav-link {
    color: var(--dark);
    font-weight: 700;
    font-size: .95rem;
    padding: .65rem .75rem;
}

.nav-link:hover,
.nav-link:focus,
.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--secondary);
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: .5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: .58rem .75rem;
    font-weight: 600;
}

.btn-admin-access {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: var(--dark);
    border: 1px solid var(--dark);
    color: #fff;
    min-height: 38px;
}

.btn-admin-access:hover,
.btn-admin-access:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.mobile-nav-accordion {
    width: 100%;
    padding: 1rem 0 1.25rem;
}

.mobile-nav-link,
.mobile-nav-toggle,
.mobile-nav-accordion .collapse a {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: .85rem .25rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--dark);
    font-weight: 700;
}

.mobile-nav-accordion .collapse a {
    padding-left: 1rem;
    color: var(--muted);
    font-weight: 600;
}

.home-hero,
.hero-slide {
    min-height: min(760px, calc(100vh - 88px));
}

.hero-slide,
.page-hero {
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 760px;
    padding: 7rem 0 8rem;
}

.hero-logo {
    width: 108px;
    height: 108px;
    object-fit: contain;
    margin-bottom: 1.2rem;
}

.hero-content h1,
.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1.03;
    margin-bottom: 1rem;
    max-width: 860px;
}

.hero-content p {
    max-width: 650px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.6rem;
}

.compact-hero {
    min-height: 330px;
    padding: 5rem 0;
}

.compact-hero p {
    max-width: 780px;
    font-size: 1.08rem;
}

.breadcrumb a,
.breadcrumb-item.active {
    color: rgba(255, 255, 255, .88);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .65);
}

.eyebrow,
.section-kicker {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
}

.hero-content .eyebrow,
.page-hero .section-kicker {
    color: #ffd3a6;
}

.section-band {
    padding: 5rem 0;
}

.section-band.muted,
.stats-band {
    background: var(--gray);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-heading.compact {
    margin-bottom: 1.2rem;
}

.section-heading h2,
.section-band h2,
.quick-contact h2 {
    margin: .35rem 0 0;
    font-weight: 800;
    color: var(--dark);
}

.intro-section {
    background: linear-gradient(180deg, #fff, var(--light));
}

.section-photo,
.president-photo {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.section-photo {
    aspect-ratio: 4 / 3;
}

.president-photo {
    aspect-ratio: 4 / 3;
    background: var(--light);
}

.fact-line {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.fact-line i {
    color: var(--secondary);
}

.mission-card,
.statement-panel,
.contact-panel,
.share-panel,
.related-panel,
.form-panel,
.resource-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem;
    background: #fff;
}

.mission-card {
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

.mission-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mission-card i {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(239, 121, 0, .12);
    color: var(--primary);
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.mission-card h3,
.resource-panel h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.mission-card p,
.content-card p,
.site-footer p {
    color: var(--muted);
}

.presidency-section {
    background: #fff;
}

.president-identity {
    display: grid;
    gap: .15rem;
    margin-top: 1rem;
}

.president-identity strong {
    font-size: 1.15rem;
}

.president-identity span {
    color: var(--muted);
}

.content-card {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.content-card img,
.gallery-tile img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.content-card-body {
    padding: 1.25rem;
}

.content-card h2,
.content-card h3 {
    font-size: 1.2rem;
    line-height: 1.28;
    margin: .45rem 0 .75rem;
}

.content-card h3 a {
    color: var(--dark);
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    color: var(--muted);
    font-size: .86rem;
}

.content-meta span {
    color: var(--secondary);
    font-weight: 800;
}

.read-more {
    font-weight: 800;
}

.content-icon {
    display: grid;
    place-items: center;
    height: 210px;
    background: var(--light);
    color: var(--secondary);
    font-size: 3rem;
}

.list-stack {
    display: grid;
    gap: .75rem;
}

.list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--dark);
}

.list-item:hover {
    border-color: rgba(8, 127, 35, .35);
    box-shadow: 0 10px 28px rgba(32, 37, 41, .08);
}

.list-item i {
    color: var(--primary);
    font-size: 1.4rem;
}

.list-item small {
    display: block;
    color: var(--muted);
}

.stats-band {
    padding: 3.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.stat-item {
    background: #fff;
    padding: 1.5rem;
}

.stat-item i {
    color: var(--secondary);
    font-size: 1.8rem;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.stat-item span {
    color: var(--muted);
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .85rem;
}

.gallery-tile {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 210px;
    background: var(--secondary);
}

.gallery-tile span {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.partners-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 2rem 0;
}

.partner-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    align-items: center;
}

.partner-track a,
.partner-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 120px;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: #fff;
    text-align: center;
}

.partner-track img,
.partner-card img {
    max-width: 140px;
    max-height: 72px;
    object-fit: contain;
}

.content-readable {
    max-width: 860px;
    font-size: 1.06rem;
    line-height: 1.75;
}

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

.action-row,
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.filter-bar {
    margin-bottom: 2rem;
    align-items: center;
}

.filter-bar .form-control,
.filter-bar .form-select {
    max-width: 280px;
}

.share-panel,
.related-panel {
    display: grid;
    gap: .75rem;
    margin-bottom: 1rem;
}

.member-card {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.member-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.member-card div {
    padding: 1.25rem;
}

.member-card h2 {
    font-size: 1.15rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.media-grid figure {
    margin: 0;
}

.media-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, .82);
}

.lightbox-overlay img {
    max-width: min(100%, 1100px);
    max-height: 86vh;
    object-fit: contain;
}

.lightbox-overlay button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 2rem;
    line-height: 1;
}

.file-tile {
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--gray);
    text-align: center;
    padding: 1rem;
}

.quick-contact-band {
    background: var(--secondary);
    color: #fff;
    padding: 3rem 0;
}

.quick-contact {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.quick-contact .section-kicker,
.quick-contact h2,
.quick-contact p,
.quick-contact a:not(.btn) {
    color: #fff;
}

.quick-contact-links {
    display: grid;
    gap: .45rem;
}

.auth-section {
    min-height: 74vh;
    display: grid;
    place-items: center;
    padding: 4rem 1rem;
    background:
        linear-gradient(135deg, rgba(8, 127, 35, .08), rgba(239, 121, 0, .10)),
        var(--light);
}

.auth-panel,
.narrow {
    width: min(100%, 540px);
}

.auth-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-brand img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.auth-brand span {
    color: var(--primary);
    font-weight: 800;
}

.auth-brand h1 {
    font-size: 1.55rem;
    margin: .15rem 0 0;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    margin-top: 1rem;
    font-weight: 700;
}

.contact-list,
.footer-contact {
    display: grid;
    gap: .75rem;
    font-style: normal;
}

.contact-list a,
.contact-list span {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}

.contact-list i {
    color: var(--primary);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.site-footer {
    background: #1b2326;
    color: rgba(255, 255, 255, .82);
}

.site-footer a {
    color: #fff;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.footer-title {
    font-size: .9rem;
    text-transform: uppercase;
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    gap: .45rem;
}

.footer-contact a,
.footer-contact span {
    display: flex;
    gap: .65rem;
}

.footer-contact i {
    color: #ffb061;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.social-links {
    display: flex;
    gap: .75rem;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
}

@media (max-width: 991px) {
    .site-header .navbar {
        min-height: 72px;
    }

    .brand-logo {
        width: 56px;
        height: 56px;
    }

    .brand-text small {
        max-width: 210px;
        font-size: .72rem;
    }

    .quick-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .home-hero,
    .hero-slide {
        min-height: 660px;
    }

    .hero-content {
        padding: 4.5rem 0 5.5rem;
    }

    .hero-logo {
        width: 84px;
        height: 84px;
    }

    .section-band {
        padding: 3.5rem 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-bar .form-control,
    .filter-bar .form-select {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .brand-logo {
        width: 50px;
        height: 50px;
    }

    .brand-text strong {
        font-size: 1.05rem;
    }

    .brand-text small {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}
