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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* =========================
   BODY
========================= */

body {
    min-height: 100vh;

    background:
        linear-gradient(135deg,
        #081526 0%,
        #102b45 45%,
        #07101d 100%);

    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

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

.top-bar {
    width: 1250px;
    max-width: calc(100% - 80px);

    margin: 22px auto 0 auto;
    padding: 24px 42px;

    background: #020814;
    border: 2px solid #c99a2e;

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

    box-shadow:
        0 0 28px rgba(212, 165, 54, 0.25),
        0 0 70px rgba(0, 0, 0, 0.65);
}

/* =========================
   CLOCK
========================= */

.header-clock {
    width: 155px;
    height: 155px;
    flex-shrink: 0;
}

.clock-face {
    position: relative;

    width: 155px;
    height: 155px;

    border: 6px solid #d4a536;
    border-radius: 50%;

    background:
        radial-gradient(circle at center,
        #243f73 0%,
        #172b52 45%,
        #081526 100%);

    box-shadow:
        0 0 24px rgba(212, 165, 54, 0.75),
        inset 0 0 20px rgba(0, 0, 0, 0.75);
}

.clock-logo {
    position: absolute;

    width: 72px;
    height: auto;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    z-index: 2;
}

.clock-number {
    position: absolute;

    color: #f2c24b;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: bold;

    text-shadow:
        0 0 6px rgba(212, 165, 54, 0.85);

    z-index: 5;
}

.twelve {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.three {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.six {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.nine {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.tick {
    position: absolute;

    width: 4px;
    height: 16px;

    background: #c99a2e;
    border-radius: 4px;

    left: 50%;
    top: 50%;
}

.tick-1  { transform: rotate(30deg)  translateY(-62px); }
.tick-2  { transform: rotate(60deg)  translateY(-62px); }
.tick-4  { transform: rotate(120deg) translateY(-62px); }
.tick-5  { transform: rotate(150deg) translateY(-62px); }
.tick-7  { transform: rotate(210deg) translateY(-62px); }
.tick-8  { transform: rotate(240deg) translateY(-62px); }
.tick-10 { transform: rotate(300deg) translateY(-62px); }
.tick-11 { transform: rotate(330deg) translateY(-62px); }

.hand {
    position: absolute;

    left: 50%;
    bottom: 50%;

    transform-origin: bottom center;
    border-radius: 6px;

    z-index: 4;
}

.hour-hand {
    width: 6px;
    height: 42px;
    background: #d4a536;
}

.minute-hand {
    width: 4px;
    height: 58px;
    background: #f0c14b;
}

.second-hand {
    width: 2px;
    height: 64px;
    background: #c83224;
}

.clock-center {
    position: absolute;

    width: 14px;
    height: 14px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: #ffffff;
    border: 3px solid #d4a536;
    border-radius: 50%;

    z-index: 6;
}

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

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 34px;
    margin-left: auto;
}

.nav-bar a {
    color: #ffffff;

    text-decoration: none;
    text-transform: uppercase;

    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1.6px;

    padding-bottom: 10px;

    transition: 0.25s ease;
}

.nav-bar a:hover,
.nav-bar a.active {
    color: #d4a536;
    border-bottom: 3px solid #d4a536;
}

/* =========================
   SHARED LAYOUT
========================= */

.hero,
.page-content,
.site-footer {
    width: 1250px;
    max-width: calc(100% - 80px);
}

.hero,
.page-content {
    margin: 18px auto 0 auto;
}

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

.homepage-banner {
    width: 100%;

    background: #000;
    border: 2px solid #c99a2e;

    box-shadow:
        0 0 38px rgba(212, 165, 54, 0.35),
        0 0 85px rgba(0, 0, 0, 0.85);
}

.homepage-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   SHARED PAGE FRAMES
========================= */

.about-frame,
.officers-frame,
.calendar-frame,
.contact-frame,
.events-frame {
    background:
        linear-gradient(135deg,
        rgba(2, 8, 20, 0.98) 0%,
        rgba(8, 21, 38, 0.98) 55%,
        rgba(2, 8, 20, 0.98) 100%);

    border: 2px solid #c99a2e;
    padding: 42px 54px;

    box-shadow:
        0 0 38px rgba(212, 165, 54, 0.28),
        0 0 85px rgba(0, 0, 0, 0.85),
        inset 0 0 35px rgba(0, 0, 0, 0.55);
}

.about-frame h1,
.officers-frame h1,
.calendar-frame h1,
.contact-frame h1,
.events-frame h1 {
    margin: 0 0 34px 0;

    color: #d4a536;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: bold;

    text-align: center;
    letter-spacing: 1.5px;
}

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

.about-text {
    color: #f2f2f2;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.75;

    max-width: 1050px;
    margin: 0 auto;

    text-align: justify;
}

.about-text p {
    margin: 0 0 24px 0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.founder-float {
    float: right;

    width: 300px;

    margin: 0 0 25px 35px;

    text-align: center;
}

.founder-float img {
    width: 100%;
    display: block;

    border: 2px solid #c99a2e;
    background: #020814;

    box-shadow:
        0 0 25px rgba(212, 165, 54, 0.35),
        0 0 60px rgba(0, 0, 0, 0.75);
}

.founder-float figcaption {
    margin-top: 14px;

    color: #d4a536;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}

/* =========================
   OFFICERS CONTACT LIST
========================= */

.officers-list,
.contact-list {
    max-width: 900px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.officer-card,
.contact-card {
    background: rgba(3, 9, 20, 0.95);

    border: 1px solid #c99a2e;
    padding: 28px 20px;

    text-align: center;

    box-shadow:
        0 0 20px rgba(212, 165, 54, 0.18),
        inset 0 0 18px rgba(0, 0, 0, 0.45);
}

.officer-card h3,
.contact-card h3 {
    margin: 0 0 10px 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.contact-card h4 {
    margin: 0 0 14px 0;

    color: #d4a536;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.officer-card p,
.contact-card p {
    margin: 8px 0;

    color: #d9d9d9;

    font-size: 20px;
}

.officer-card a,
.contact-card a {
    color: #d9d9d9;
    text-decoration: none;
}

.officer-card a:hover,
.contact-card a:hover {
    color: #d4a536;
}

/* =========================
   OFFICER PHOTO GRID
========================= */

.officer-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 34px;

    max-width: 980px;
    margin: 0 auto;
}

.officer-photo-card {
    background: rgba(3, 9, 20, 0.95);

    border: 1px solid #c99a2e;
    padding: 24px 18px;

    text-align: center;

    box-shadow:
        0 0 20px rgba(212, 165, 54, 0.18),
        inset 0 0 18px rgba(0, 0, 0, 0.45);
}

.officer-photo-card img {
    width: 180px;
    height: 180px;

    object-fit: cover;

    border: 2px solid #c99a2e;
    background: #020814;

    padding: 8px;

    cursor: pointer;

    box-shadow:
        0 0 18px rgba(212, 165, 54, 0.3);
}

.officer-photo-card h3 {
    margin: 18px 0 8px 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.officer-photo-card p {
    margin: 0;

    color: #d4a536;

    font-size: 18px;
}

/* =========================
   CALENDAR PAGE
========================= */

.calendar-box {
    border: 2px solid #c99a2e;

    background: #020814;

    padding: 8px;

    box-shadow:
        0 0 24px rgba(212, 165, 54, 0.22),
        inset 0 0 20px rgba(0, 0, 0, 0.65);
}

.calendar-box iframe {
    display: block;

    width: 100%;
    min-height: 700px;
}

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

.event-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 24px;
}

.event-thumb {
    width: 100%;
    height: 160px;

    padding: 6px;

    background: #020814;

    border: 2px solid #c99a2e;

    cursor: pointer;

    box-shadow:
        0 0 18px rgba(212, 165, 54, 0.28);
}

.event-thumb img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.event-thumb:hover {
    transform: scale(1.04);
    transition: 0.25s ease;
}

/* =========================
   IMAGE MODALS
========================= */

.image-modal,
.gallery-modal {
    display: none;

    position: fixed;
    z-index: 9999;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    align-items: center;
    justify-content: center;
}

.modal-image,
.gallery-image {
    max-width: 85%;
    max-height: 85%;

    border: 3px solid #c99a2e;
    background: #020814;

    box-shadow:
        0 0 35px rgba(212, 165, 54, 0.55);
}

.close-modal,
.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;

    color: #d4a536;

    font-weight: bold;

    cursor: pointer;
    user-select: none;
}

.close-modal,
.gallery-close {
    top: 24px;
    right: 40px;

    font-size: 48px;
}

.gallery-prev,
.gallery-next {
    top: 50%;

    transform: translateY(-50%);

    font-size: 64px;

    padding: 20px;
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.close-modal:hover,
.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
    color: #ffffff;
}

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

.site-footer {
    margin: 18px auto 30px auto;
    padding: 28px 20px;

    background: #020814;

    border: 2px solid #c99a2e;

    text-align: center;

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

    box-shadow:
        0 0 28px rgba(212, 165, 54, 0.22),
        0 0 70px rgba(0, 0, 0, 0.65);
}

.footer-title {
    color: #d4a536;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1.2px;

    margin-bottom: 14px;
}

.footer-leader {
    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;

    margin-bottom: 12px;
}

.footer-contact {
    color: #d9d9d9;

    font-size: 21px;
    letter-spacing: 0.5px;
}

.footer-item {
    display: inline-block;

    padding: 0 12px;
}

.footer-divider {
    color: #c99a2e;
}

.footer-contact a {
    color: #d9d9d9;

    text-decoration: none;
}

.footer-contact a:hover {
    color: #d4a536;
}

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

@media (max-width: 900px) {

    .top-bar,
    .hero,
    .page-content,
    .site-footer {
        width: calc(100% - 20px);
        max-width: none;
    }

    .top-bar {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .header-clock {
        width: 130px;
        height: 130px;
    }

    .clock-face {
        width: 130px;
        height: 130px;
    }

    .clock-logo {
        width: 58px;
    }

    .nav-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 22px;
        margin-left: 0;
    }

    .nav-bar a {
        font-size: 15px;
    }

    .about-frame,
    .officers-frame,
    .calendar-frame,
    .contact-frame,
    .events-frame {
        padding: 28px 22px;
    }

    .about-frame h1,
    .officers-frame h1,
    .calendar-frame h1,
    .contact-frame h1,
    .events-frame h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .about-text {
        font-size: 19px;
        line-height: 1.65;
    }

    .founder-float {
        float: none;

        width: 100%;
        max-width: 320px;

        margin: 0 auto 24px auto;
    }

    .officers-list,
    .contact-list,
    .officer-photo-grid,
    .event-gallery {
        grid-template-columns: 1fr;
    }

    .officer-photo-card img {
        width: 170px;
        height: 170px;
    }

    .event-thumb {
        height: 220px;
    }

    .calendar-box iframe {
        min-height: 600px;
    }

    .footer-title {
        font-size: 24px;
    }

    .footer-leader {
        font-size: 21px;
    }

    .footer-contact {
        font-size: 19px;
        line-height: 2;
    }

    .footer-divider {
        display: none;
    }

    .footer-item {
        display: block;
    }

    .gallery-prev,
    .gallery-next {
        font-size: 44px;
    }
}