/* =========================================================
   GLOBAL
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #3a0711;
    background: #f8f3f3;
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* =========================================================
   PAGE COLOR THEMES
   ========================================================= */

body.home {
    --glow1: rgba(231, 189, 104, 0.35);
    --glow2: rgba(139, 30, 50, 0.50);
    --glow3: rgba(110, 20, 40, 0.35);
    --hero1: #9b2845;
    --hero2: #c49a45;
    --accent: #e7bd68;
}

body.about {
    --glow1: rgba(190, 75, 105, 0.38);
    --glow2: rgba(110, 20, 45, 0.50);
    --glow3: rgba(150, 45, 75, 0.35);
    --hero1: #a83f68;
    --hero2: #702040;
    --accent: #e09aaa;
}

body.officers {
    --glow1: rgba(125, 75, 150, 0.35);
    --glow2: rgba(95, 20, 65, 0.50);
    --glow3: rgba(135, 45, 105, 0.30);
    --hero1: #75468e;
    --hero2: #842d68;
    --accent: #d1a4e5;
}

body.projects {
    --glow1: rgba(210, 50, 65, 0.38);
    --glow2: rgba(120, 15, 30, 0.55);
    --glow3: rgba(170, 35, 45, 0.35);
    --hero1: #c52f43;
    --hero2: #8f1728;
    --accent: #f08080;
}

body.announcements {
    --glow1: rgba(205, 110, 50, 0.38);
    --glow2: rgba(120, 25, 30, 0.50);
    --glow3: rgba(180, 65, 40, 0.35);
    --hero1: #b85c35;
    --hero2: #9a302d;
    --accent: #e5a66b;
}

body.transparency {
    --glow1: rgba(190, 145, 60, 0.38);
    --glow2: rgba(100, 20, 30, 0.55);
    --glow3: rgba(150, 90, 40, 0.35);
    --hero1: #a98235;
    --hero2: #7d202c;
    --accent: #e0bd72;
}


/* =========================================================
   MOVING BACKGROUND
   ========================================================= */

body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -5;
    pointer-events: none;

    background:
        radial-gradient(circle at 20% 20%, var(--glow1), transparent 25%),
        radial-gradient(circle at 80% 30%, var(--glow2), transparent 28%),
        radial-gradient(circle at 30% 80%, var(--glow3), transparent 25%),
        radial-gradient(circle at 80% 80%, var(--glow1), transparent 30%);

    animation: backgroundMove 18s ease-in-out infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0%, 0%) scale(1);
    }

    25% {
        transform: translate(5%, -4%) scale(1.05);
    }

    50% {
        transform: translate(-4%, 5%) scale(1.08);
    }

    75% {
        transform: translate(-5%, -3%) scale(1.04);
    }

    100% {
        transform: translate(0%, 0%) scale(1);
    }
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    width: 100%;
    padding: 22px 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(55, 5, 15, 0.97);

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.brand a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.brand strong {
    color: white;
    font-size: 21px;
    letter-spacing: 1px;
}

.brand span {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 1.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}


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

.hero {
    min-height: 620px;
    width: 100%;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
    padding: 100px 9%;

    color: white;

    background:
        radial-gradient(circle at 15% 30%, var(--hero1), transparent 30%),
        radial-gradient(circle at 85% 70%, var(--hero2), transparent 30%),
        linear-gradient(120deg, #35070f, #5a0f1b);

    background-size: 200% 200%;
    animation: heroMove 15s ease-in-out infinite;
}

@keyframes heroMove {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 30%;
    }

    50% {
        background-position: 100% 80%;
    }

    75% {
        background-position: 20% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    max-width: 720px;
    min-width: 0;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.eyebrow.dark {
    color: #7b162b;
}

.hero h1 {
    font-size: clamp(45px, 6vw, 82px);
    line-height: 1.03;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero-text {
    max-width: 620px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 30px;
}


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

.hero-emblem {
    text-align: center;
    min-width: 300px;
    max-width: 100%;
    flex-shrink: 0;
    align-self: center;
    position: relative;
    z-index: 5;
    transform: translateY(-35px);
}

.emblem {
    width: 230px !important;
    height: 230px !important;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: auto;

    border: 3px solid var(--accent);

    background: rgba(255, 255, 255, 0.04);

    position: relative;

    box-shadow:
        0 0 10px rgba(231, 189, 104, 0.8),
        0 0 25px rgba(231, 189, 104, 0.6),
        0 0 55px rgba(231, 189, 104, 0.4);

    animation: logoGlow 3s ease-in-out infinite;
}

.hero-emblem .emblem img {
    width: 255px !important;
    height: 255px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    position: relative;
    z-index: 5;
    display: block;

    filter:
        drop-shadow(0 0 8px rgba(231, 189, 104, 0.9))
        drop-shadow(0 0 20px rgba(231, 189, 104, 0.65));
}

.emblem::before {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    border: 1px solid rgba(231, 189, 104, 0.4);
    box-shadow: 0 0 25px rgba(231, 189, 104, 0.3);
    animation: logoRing 5s linear infinite;
}

.emblem::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(231, 189, 104, 0.18);
    animation: logoRingReverse 8s linear infinite;
}

@keyframes logoGlow {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes logoRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes logoRingReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.hero-emblem p {
    margin-top: 25px;
    color: var(--accent);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}


/* =========================================================
   BUTTONS
   ========================================================= */

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

.button {
    display: inline-block;
    padding: 14px 25px;
    background: var(--accent);
    color: #3a0711;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.button.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.button.secondary:hover {
    background: white;
    color: #3a0711;
}


/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
    width: 100%;
    padding: 120px 10%;
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
}

.section-label {
    color: #7b162b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.welcome h2 {
    max-width: 800px;
    margin: auto auto 30px;
    font-size: clamp(36px, 5vw, 65px);
    line-height: 1.1;
    color: #3a0711;
}

.welcome > p {
    max-width: 760px;
    margin: auto;
    font-size: 17px;
    color: #666;
}


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

.quick-access {
    width: 100%;
    padding: 110px 8%;
    background: rgba(248, 243, 243, 0.96);
}

.section-heading {
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.1;
    color: #3a0711;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

body.about .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


/* =========================================================
   CARDS
   ========================================================= */

.quick-card {
    display: block;
    padding: 0;
    min-height: 0;
    min-width: 0;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #eadbdd;
    border-radius: 8px;

    overflow: hidden;

    text-decoration: none;
    color: inherit;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);

    box-shadow:
        0 15px 35px rgba(58, 7, 17, 0.12);
}


/* =========================================================
   HOME IMAGE CARDS
   ========================================================= */

.card-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.quick-card:hover .card-image img {
    transform: scale(1.06);
}


/* =========================================================
   ABOUT PAGE — SINAG / SALIG / LINGKOD / GALING
   ========================================================= */

/*
   IMPORTANT:
   These rules ONLY affect cards on about.html.

   Your images are 1500 x 1500.
   We use object-fit: contain so the ENTIRE image
   remains visible and does not get cropped.
*/

body.about .quick-card .card-image {
    width: 100%;
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f8f3f3;
}

body.about .quick-card .card-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    display: block;

    transition: transform 0.5s ease;
}

body.about .quick-card:hover .card-image img {
    transform: scale(1.03);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.card-content {
    padding: 24px 28px 28px;
}

.card-content .position {
    margin-bottom: 6px;
}

.card-content h3 {
    color: #3a0711;
    font-size: 21px;
    margin-bottom: 8px;
}

.card-content p:not(.position) {
    color: #666;
    font-size: 14px;
}

.card-content span {
    display: inline-block;
    margin-top: 15px;
    color: #7b162b;
    font-weight: 700;
    font-size: 13px;
}

.card-icon {
    display: none;
}

.position {
    color: var(--accent) !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}


/* =========================================================
   OFFICER PROFILE IMAGE
   ========================================================= */

.officer-image {
    width: 100%;
    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f8f3f3;
}

.officer-image img {
    width: 220px;
    height: 220px;

    object-fit: contain;

    display: block;
}


/* =========================================================
   FINAL / PORTAL SECTION
   ========================================================= */

.portal-section {
    width: 100%;
    padding: 120px 10%;

    text-align: center;
    color: white;

    background:
        radial-gradient(
            circle at 30% 40%,
            var(--hero1),
            transparent 35%
        ),
        radial-gradient(
            circle at 70% 60%,
            var(--hero2),
            transparent 35%
        ),
        #3a0711;

    background-size: 180% 180%;

    animation: finalMove 18s ease-in-out infinite;
}

@keyframes finalMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.portal-content {
    max-width: 800px;
    margin: auto;
}

.portal-content h2 {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.portal-content p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
}


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

footer {
    width: 100%;
    background: #26040b;
    color: white;
}

.footer-main {
    padding: 70px 8%;

    display: flex;
    justify-content: space-between;

    gap: 50px;
}

.footer-main h3 {
    color: var(--accent);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-main p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h4 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 2px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 8%;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

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

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


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 900px) {

    .navbar {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 80px 7%;
        min-height: 600px;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-emblem {
        margin-top: 20px;
        transform: none;
        min-width: 260px;
    }

    .emblem {
        width: 200px !important;
        height: 200px !important;
    }

    .hero-emblem .emblem img {
        width: 225px !important;
        height: 225px !important;
    }

    .emblem::before {
        width: 235px;
        height: 235px;
    }

    .emblem::after {
        width: 260px;
        height: 260px;
    }

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

    .footer-main {
        flex-direction: column;
    }

    .officer-image {
        height: 220px;
    }

    .officer-image img {
        width: 220px;
        height: 220px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .brand {
        text-align: center;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand span {
        font-size: 7px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 11px;
    }

    .hero {
        min-height: 500px;
        padding: 50px 5%;
        gap: 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(28px, 7vw, 48px);
        line-height: 1.1;
    }

    .hero-text {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .hero-emblem {
        min-width: 200px;
        max-width: 100%;
    }

    .emblem {
        width: 160px !important;
        height: 160px !important;
    }

    .hero-emblem .emblem img {
        width: 180px !important;
        height: 180px !important;
    }

    .emblem::before {
        width: 190px;
        height: 190px;
    }

    .emblem::after {
        width: 215px;
        height: 215px;
    }

    .hero-emblem p {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .welcome {
        padding: 60px 5%;
    }

    .welcome h2 {
        font-size: clamp(24px, 5vw, 42px);
        margin-bottom: 20px;
    }

    .welcome > p {
        font-size: 14px;
    }

    .section-label {
        font-size: 9px;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .quick-access {
        padding: 60px 5%;
    }

    .section-heading h2 {
        font-size: clamp(24px, 5vw, 42px);
        margin-bottom: 35px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* About page stays 2 columns on mobile */
    body.about .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* Normal Home image cards */
    .card-image {
        height: 100px;
    }

    /*
       About images:
       still show the WHOLE 1500x1500 image
    */
    body.about .quick-card .card-image {
        height: 140px;
    }

    body.about .quick-card .card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .card-content {
        padding: 16px 18px 18px;
    }

    .card-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .card-content p {
        font-size: 12px;
    }

    .card-content span {
        font-size: 11px;
        margin-top: 10px;
    }

    .position {
        font-size: 8px !important;
        margin-bottom: 6px;
    }

    .portal-section {
        padding: 60px 5%;
    }

    .portal-content h2 {
        font-size: clamp(24px, 5vw, 42px);
        margin-bottom: 18px;
    }

    .portal-content p {
        font-size: 14px;
    }

    .footer-main {
        padding: 40px 5%;
        gap: 30px;
    }

    .footer-main h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .footer-main p {
        font-size: 12px;
    }

    .footer-links h4 {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-bottom {
        padding: 15px 5%;
    }

    .footer-bottom p {
        font-size: 10px;
    }
}


/* =========================================================
   END
   ========================================================= */
