:root {
    --ruby: #7c1830;
    --ruby-dark: #4d0d1d;
    --ruby-light: #9d2944;
    --gold: #c9a34a;
    --gold-light: #e1c878;
    --cream: #faf8f4;
    --light: #f5f3ef;
    --dark: #202020;
    --muted: #707070;
    --white: #ffffff;
    --border: #e8e4de;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: .3s ease;
}

.site-header.scrolled {
    background: rgba(77, 13, 29, .97);
    box-shadow: 0 5px 25px rgba(0,0,0,.15);
}

.navbar {
    padding: 18px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-light);
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    letter-spacing: 2px;
}

.brand-text small {
    font-size: 8px;
    opacity: .8;
    letter-spacing: .4px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 11px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-light);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--ruby-dark);
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    min-height: 780px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        url("../images/hero.jpg")
        center center / cover no-repeat;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(36, 8, 17, .88) 0%,
            rgba(50, 10, 22, .67) 45%,
            rgba(0,0,0,.18) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-label,
.section-label {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
}

.hero-content h1 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(50px, 7vw, 92px);
    line-height: .98;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content h1 span {
    display: block;
    color: var(--gold-light);
}

.hero-subtitle {
    font-size: 25px;
    margin: 0 0 8px;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    opacity: .85;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll a {
    color: rgba(255,255,255,.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    letter-spacing: 1px;
    gap: 7px;
}


/* =========================================================
   QUICK ACCESS
========================================================= */

.quick-access {
    position: relative;
    z-index: 10;
    margin-top: -55px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,.12);
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    color: var(--dark);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: .25s ease;
}

.quick-card:hover {
    background: var(--cream);
    color: var(--ruby);
}

.quick-card > span:nth-child(2) {
    flex: 1;
}

.quick-card strong,
.quick-card small {
    display: block;
}

.quick-card strong {
    font-size: 14px;
}

.quick-card small {
    color: var(--muted);
    font-size: 10px;
}

.quick-card > i {
    color: var(--gold);
}

.quick-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(124,24,48,.08);
    color: var(--ruby);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emergency-icon {
    color: #b3261e;
    background: rgba(179,38,30,.08);
}


/* =========================================================
   COMMON SECTIONS
========================================================= */

.section {
    padding: 100px 0;
}

.section-light {
    background: var(--light);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 50px;
}

.section-heading.centered {
    display: block;
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.section-about h2,
.gazette-section h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin: 0 0 18px;
}

.section-heading h2 span,
.section-about h2 span,
.gazette-section h2 span {
    color: var(--ruby);
}

.section-heading p {
    color: var(--muted);
}

.btn-ruby {
    background: var(--ruby);
    border: 1px solid var(--ruby);
    color: var(--white);
    padding: 11px 22px;
}

.btn-ruby:hover {
    background: var(--ruby-dark);
    border-color: var(--ruby-dark);
    color: var(--white);
}

.btn-outline-ruby {
    border: 1px solid var(--ruby);
    color: var(--ruby);
    padding: 10px 20px;
}

.btn-outline-ruby:hover {
    background: var(--ruby);
    color: var(--white);
}

.text-link {
    color: var(--ruby);
    font-size: 13px;
    font-weight: 600;
}

.text-link i {
    margin-left: 8px;
    transition: .2s;
}

.text-link:hover i {
    margin-left: 13px;
}


/* =========================================================
   ABOUT
========================================================= */

.section-about {
    padding-top: 110px;
}

.section-about .lead {
    font-size: 18px;
    line-height: 1.8;
}

.section-about p {
    color: var(--muted);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 15px;
}

.about-badge {
    position: absolute;
    left: -30px;
    bottom: 30px;
    background: var(--ruby);
    color: var(--white);
    padding: 22px 28px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

.about-badge strong,
.about-badge span {
    display: block;
}

.about-badge strong {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
}

.about-badge span {
    font-size: 11px;
    opacity: .8;
}


/* =========================================================
   STATS
========================================================= */

.stats-section {
    background: var(--ruby);
    color: var(--white);
}

.stat-box {
    text-align: center;
    padding: 40px 20px;
    border-right: 1px solid rgba(255,255,255,.15);
}

.stat-box strong {
    display: block;
    color: var(--gold-light);
    font-family: "Montserrat", sans-serif;
    font-size: 34px;
    line-height: 1.2;
}

.stat-box span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .8;
}


/* =========================================================
   NOTICES
========================================================= */

.notice-card {
    height: 100%;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: .25s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.notice-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

.notice-category {
    color: var(--ruby);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notice-date {
    color: var(--muted);
    font-size: 10px;
}

.notice-card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 19px;
    margin-bottom: 12px;
}

.notice-card p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   COMMITTEE
========================================================= */

.committee-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.07);
}

.committee-photo {
    height: 350px;
    background: var(--light);
    overflow: hidden;
}

.committee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.committee-info {
    padding: 22px;
    text-align: center;
}

.committee-info h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    margin: 0 0 4px;
}

.committee-info span {
    color: var(--ruby);
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   FACILITIES
========================================================= */

.facility-card {
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: .25s ease;
}

.facility-card:hover {
    border-color: rgba(124,24,48,.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.facility-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(124,24,48,.08);
    color: var(--ruby);
    font-size: 21px;
}

.facility-card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
}

.facility-card p {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
}


/* =========================================================
   PROJECTS
========================================================= */

.project-card {
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,.07);
}

.project-image {
    height: 230px;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image span {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    background: var(--gold);
    color: var(--white);
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 19px;
}

.project-content p {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   COMMUNITY
========================================================= */

.community-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background:
        url("../images/community/community.jpg")
        center / cover no-repeat;
    color: var(--white);
}

.community-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(55,10,22,.9),
        rgba(55,10,22,.45)
    );
}

.community-section h2 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.community-section h2 span {
    display: block;
    color: var(--gold-light);
}

.community-section p {
    max-width: 600px;
    font-size: 16px;
    opacity: .85;
    margin-bottom: 30px;
}

.text-gold {
    color: var(--gold-light);
}


/* =========================================================
   GAZETTE
========================================================= */

.gazette-cover {
    background: var(--light);
    padding: 20px;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(0,0,0,.1);
}

.gazette-cover img {
    width: 100%;
}

.gazette-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 220px;
    gap: 12px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-large {
    grid-row: span 2;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding: 100px 0;
    background: var(--ruby-dark);
    color: var(--white);
}

.light-heading h2 {
    color: var(--white);
}

.light-heading h2 span {
    color: var(--gold-light);
}

.contact-card {
    height: 100%;
    text-align: center;
    padding: 35px 25px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
}

.contact-card > i {
    color: var(--gold-light);
    font-size: 26px;
    margin-bottom: 18px;
}

.contact-card h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
}

.contact-card p {
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

.contact-card a {
    color: var(--gold-light);
}


/* =========================================================
   MAP
========================================================= */

.map-section {
    height: 430px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #21070f;
    color: rgba(255,255,255,.7);
    padding: 70px 0 25px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand strong,
.footer-brand small {
    display: block;
}

.footer-brand strong {
    color: var(--white);
    font-family: "Montserrat", sans-serif;
    letter-spacing: 2px;
}

.footer-brand small {
    font-size: 9px;
}

.site-footer h4 {
    color: var(--white);
    font-size: 13px;
    margin-bottom: 18px;
}

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

.site-footer li {
    margin-bottom: 8px;
}

.site-footer li a {
    color: rgba(255,255,255,.55);
    font-size: 11px;
}

.site-footer li a:hover {
    color: var(--gold-light);
}

.footer-login,
.footer-emergency {
    display: block;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    color: rgba(255,255,255,.75);
    font-size: 11px;
    margin-bottom: 10px;
}

.footer-login:hover,
.footer-emergency:hover {
    color: var(--gold-light);
    border-color: var(--gold);
}

.site-footer hr {
    border-color: rgba(255,255,255,.1);
    margin: 45px 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 9px;
    color: rgba(255,255,255,.4);
}


/* =========================================================
   FLOATING WHATSAPP
========================================================= */

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
    z-index: 999;
}

.floating-whatsapp:hover {
    color: white;
    transform: scale(1.05);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .navbar {
        background: var(--ruby-dark);
    }

    .navbar-collapse {
        padding: 15px 0;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        min-height: 700px;
    }

    .about-badge {
        left: 20px;
    }

}

@media (max-width: 767px) {

    .section {
        padding: 70px 0;
    }

    .hero-section {
        min-height: 680px;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-scroll {
        display: none;
    }

    .quick-access {
        margin-top: 0;
        background: var(--light);
        padding: 20px 0;
    }

    .quick-grid {
        grid-template-columns: 1fr;
        border-radius: 10px;
    }

    .quick-card {
        border-right: 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading .btn {
        margin-top: 20px;
    }

    .about-image img {
        height: 400px;
    }

    .about-badge {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: -20px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .stat-box {
        padding: 25px 10px;
    }

    .stat-box strong {
        font-size: 27px;
    }

    .committee-photo {
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 170px;
    }

    .gallery-large {
        grid-row: span 2;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom div + div {
        margin-top: 8px;
    }

}

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-large {
        grid-row: span 1;
    }

}