/* =========================================================
   SOUTHPORT KEY CLUB — STYLISH HOME PAGE
   Designed to work with the HTML you already have.
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --navy: #09285b;
    --navy-2: #0d397e;
    --blue: #1565d8;
    --sky: #dcecff;
    --gold: #f7bd32;
    --gold-2: #ffd96a;
    --cream: #fffaf0;

    --ink: #12213c;
    --muted: #65728a;
    --line: #dce3ed;

    --white: #ffffff;
    --soft: #f5f7fb;

    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 38px;

    --shadow-soft: 0 12px 35px rgba(16, 35, 67, 0.08);
    --shadow-card: 0 24px 70px rgba(16, 35, 67, 0.14);

    --content: 1180px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--soft);
    color: var(--ink);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

body::selection {
    background: var(--gold);
    color: var(--navy);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* =========================================================
   TOP ACCENT
   ========================================================= */

.top-filler {
    height: 10px;
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.top-filler::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 42%;
    margin-left: auto;
    background:
        repeating-linear-gradient(
            -45deg,
            var(--gold) 0 12px,
            var(--gold-2) 12px 24px
        );
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(9, 40, 91, 0.07);
    backdrop-filter: blur(18px);
}

.navbar {
    position: relative;
    z-index: 10;
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.navbar-brand {
    margin-left: 16px;
    margin-right: auto;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.12em;
    white-space: pre-line;
}

.navbar a {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: #34415a;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 750;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.navbar a:hover {
    color: var(--navy);
    background: var(--sky);
    transform: translateY(-1px);
}

.navbar a:last-child {
    margin-left: 4px;
    background: var(--navy);
    color: #fff;
    box-shadow: 0 8px 24px rgba(9, 40, 91, 0.15);
}

.navbar a:last-child:hover {
    background: var(--blue);
    color: #fff;
}

/* Make the login button stand out more */
.navbar .login-register-btn {
    margin-left: 16px;
}

/* =========================================================
   HERO
   ========================================================= */

.main {
    position: relative;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    background: #fff;
    overflow: hidden;
}

.main::before {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border: 55px solid rgba(21, 101, 216, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------------- LEFT HERO ---------------- */

.main-welcome-first-half {
    position: relative;
    display: flex;
    align-items: center;
    padding:
        clamp(80px, 9vw, 130px)
        clamp(34px, 7vw, 96px);
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 12%, rgba(247, 189, 50, 0.18), transparent 22%),
        linear-gradient(145deg, #ffffff 0%, #fbfcff 80%);
}

.main-welcome-first-half::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: 5%;
    top: 8%;
    opacity: 0.55;
    background-image: radial-gradient(var(--blue) 1.5px, transparent 1.5px);
    background-size: 17px 17px;
    mask-image: linear-gradient(to bottom left, black, transparent 78%);
}

.main-welcome-first-half::after {
    content: "SERVICE • LEADERSHIP • COMMUNITY";
    position: absolute;
    left: 28px;
    bottom: 24px;
    color: rgba(9, 40, 91, 0.28);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.landing-intro {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.landing-intro h1 {
    margin: 0;
    max-width: 720px;
    color: var(--navy);
    font-size: clamp(3.25rem, 6vw, 6.25rem);
    line-height: 0.93;
    letter-spacing: -0.065em;
    font-weight: 900;
    text-wrap: balance;
}

.landing-intro h1::after {
    content: ".";
    color: var(--gold);
}

.landing-combo {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.landing-intro-captions {
    position: relative;
    width: fit-content;
    padding-left: 48px;
    color: var(--blue);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-intro-captions::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--gold);
    transform: translateY(-50%);
}

.header-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deadline-message {
    margin: 8px 0 0 0;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

.landing-join {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 650;
}

.buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-join-button,
.about-button {
    min-height: 52px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: 0.01em;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.landing-join-button {
    color: #fff;
    background: var(--navy);
    box-shadow: 0 12px 30px rgba(9, 40, 91, 0.2);
}

.landing-join-button:hover {
    transform: translateY(-3px) rotate(-0.5deg);
    background: var(--blue);
    box-shadow: 0 16px 36px rgba(21, 101, 216, 0.24);
}

.logobtn-image {
    width: 19px;
    height: 19px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.about-button {
    color: var(--navy);
    background: #fff;
    border: 1px solid #cad5e4;
}

.about-button:hover {
    transform: translateY(-3px) rotate(0.5deg);
    border-color: var(--navy);
}

/* ---------------- RIGHT HERO ---------------- */

.main-welcome-second-half {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent),
        var(--navy);
}

.main-welcome-second-half::before {
    content: "DO GOOD.";
    position: absolute;
    right: -18px;
    top: 28px;
    z-index: 0;
    color: rgba(255, 255, 255, 0.055);
    font-size: clamp(5rem, 10vw, 10rem);
    line-height: 0.9;
    font-weight: 950;
    letter-spacing: -0.08em;
    white-space: nowrap;
}

.main-welcome-second-half::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -110px;
    border-radius: 50%;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(247, 189, 50, 0.15) 0 8px,
            transparent 8px 16px
        );
}

/* =========================================================
   CAROUSEL
   ========================================================= */

.carousel {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 86px clamp(28px, 5vw, 58px) 36px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(247, 189, 50, 0.75) rgba(255,255,255,0.08);
}

.carousel::before {
    content: "WHAT WE DO";
    position: absolute;
    top: 34px;
    left: clamp(28px, 5vw, 58px);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.carousel::-webkit-scrollbar {
    height: 7px;
}

.carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.carousel::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 999px;
}

.group {
    width: max-content;
    display: flex;
    align-items: stretch;
    gap: 18px;
}

.card {
    position: relative;
    flex: 0 0 clamp(220px, 22vw, 280px);
    min-height: 300px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: var(--navy-2);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.11),
        0 18px 46px rgba(0,0,0,0.16);
    scroll-snap-align: start;
    isolation: isolate;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.carousel-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 420ms ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            to top,
            rgba(5, 18, 42, 0.92) 0%,
            rgba(5, 18, 42, 0.55) 38%,
            rgba(5, 18, 42, 0.08) 70%
        );
}

.card-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.card-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.card h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.32);
}

.card:hover {
    transform: translateY(-7px);
    border-color: rgba(247, 189, 50, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.11),
        0 24px 54px rgba(0,0,0,0.24);
}

.card:hover .carousel-image {
    transform: scale(1.06);
}

/* Carousel-only mobile rules live here so the rest of home.css stays untouched. */
@media (max-width: 720px) {
    .carousel {
        padding-left: 24px;
        padding-right: 24px;
    }

    .card {
        flex-basis: 230px;
        min-height: 280px;
    }
}

/* =========================================================
   DESCRIPTION — BENTO GRID
   ========================================================= */

.description-cards {
    position: relative;
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 110px 0;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-areas:
        "mission pledge"
        "mission motto"
        "values values";
    gap: 20px;
}

.description-cards::before {
    content: "WHO WE ARE";
    position: absolute;
    top: 62px;
    left: 0;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.mission,
.pledge,
.motto,
.values {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.mission:hover,
.pledge:hover,
.motto:hover,
.values:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.mission {
    grid-area: mission;
    min-height: 490px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(247,189,50,0.25), transparent 28%),
        linear-gradient(145deg, var(--blue), var(--navy));
    border: 0;
}

.mission::before {
    content: "MISSION";
    position: absolute;
    left: 28px;
    top: 20px;
    color: rgba(255,255,255,0.07);
    font-size: clamp(4.6rem, 8vw, 8rem);
    font-weight: 950;
    letter-spacing: -0.08em;
}

.pledge {
    grid-area: pledge;
    min-height: 235px;
    background: #fff;
}

.motto {
    grid-area: motto;
    min-height: 235px;
    background:
        repeating-linear-gradient(
            135deg,
            var(--gold) 0 14px,
            var(--gold-2) 14px 28px
        );
    border: 0;
}

.values {
    grid-area: values;
    min-height: 250px;
    background: var(--cream);
    border-color: #f0dfad;
}

.mission h1,
.pledge h1,
.motto h1,
.values h1 {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.mission h1 {
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.motto h1 {
    color: var(--navy);
}

.mission p,
.pledge p,
.motto p,
.values p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

.mission p {
    max-width: 620px;
    color: #dbe7f8;
    font-size: 1.02rem;
}

.motto p {
    color: var(--navy);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 850;
    line-height: 1.25;
}

/* =========================================================
   STATS
   ========================================================= */

.stats {
    position: relative;
    overflow: hidden;
    padding: 96px 22px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.02), transparent),
        var(--navy);
}

.stats::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    left: -120px;
    top: -160px;
    border: 52px solid rgba(247,189,50,0.06);
    border-radius: 50%;
}

.stats-eyebrow {
    width: min(100%, var(--content));
    margin: 0 auto 45px;
}

.eyebrow-text {
    margin: 0;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.stats-container {
    position: relative;
    z-index: 2;
    width: min(100%, var(--content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    position: relative;
    padding: 22px 30px;
}

.stat-item + .stat-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    width: 1px;
    height: 80%;
    background: rgba(255,255,255,0.14);
}

.stat-number {
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.065em;
}

.stat-label {
    margin: 12px 0 0;
    color: #afc2df;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

/* =========================================================
   GENERAL INFORMATION
   ========================================================= */

.general-info {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 105px 0 46px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.division,
.location {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.division::after,
.location::after {
    position: absolute;
    right: 22px;
    bottom: 4px;
    color: #edf1f7;
    font-size: 5rem;
    font-weight: 950;
}

.division::after {
    content: "17";
}

.location::after {
    content: "IN";
}

.division h2,
.location h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: var(--navy);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.division p,
.location p {
    position: relative;
    z-index: 1;
    margin: 6px 0;
    color: var(--muted);
}

.division p:first-of-type,
.location p:first-of-type {
    color: var(--ink);
    font-weight: 800;
}

/* =========================================================
   CTA BANNER
   ========================================================= */

.cta-banner {
    position: relative;
    padding: 80px 22px;
    background:
        linear-gradient(135deg, var(--navy), var(--navy-2));
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    right: -150px;
    top: -150px;
    border: 60px solid rgba(247, 189, 50, 0.08);
    border-radius: 50%;
}

.cta-banner::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    left: -80px;
    bottom: -80px;
    border: 45px solid rgba(247, 189, 50, 0.06);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    width: min(100%, var(--content));
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.cta-subtitle {
    margin: 0 0 40px;
    color: #afc2df;
    font-size: 1.1rem;
    font-weight: 600;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 3vw, 32px);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-number {
    min-width: 80px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(247, 189, 50, 0.5);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.countdown-label {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: var(--navy);
    text-decoration: none;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    transition: all 180ms ease;
    box-shadow: 0 12px 35px rgba(247, 189, 50, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 40px rgba(247, 189, 50, 0.5);
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* =========================================================
   CALLOUT ANNOUNCEMENT
   ========================================================= */

.callout-announcement {
    padding: 24px 22px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 4px 20px rgba(247, 189, 50, 0.3);
}

.announcement-content {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    text-align: center;
}

.announcement-text {
    margin: 0;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    animation: pulse 2s ease-in-out infinite;
}

/* =========================================================
   PHOTO GALLERY
   ========================================================= */

.photo-gallery {
    position: relative;
    padding: 100px 22px;
    background:
        radial-gradient(circle at 15% 85%, rgba(247, 189, 50, 0.08), transparent 25%),
        var(--soft);
    overflow: hidden;
}

.gallery-header {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto 50px;
    text-align: center;
}

.gallery-header .eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gallery-header h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.gallery-grid {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gentleFloat 4s ease-in-out infinite;
}

.gallery-item:nth-child(2) .gallery-image {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(3) .gallery-image {
    animation-delay: 1s;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(9, 40, 91, 0.85), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-caption {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
    animation: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* =========================================================
   UPCOMING EVENTS
   ========================================================= */

.upcoming-events {
    position: relative;
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 64px 0 120px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.upcoming-events::before {
    content: "UPCOMING EVENTS";
    position: absolute;
    top: 17px;
    left: 0;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.event-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition:
        transform 190ms ease,
        box-shadow 190ms ease;
}

.event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: var(--blue);
}

.event-card:nth-child(2)::before {
    background: var(--gold);
}

.event-card:nth-child(3)::before {
    background: #65a979;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.event-card-header {
    min-height: 140px;
    padding: 32px 30px 24px 36px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(145deg, #f7faff, #edf4ff);
}

.event-card:nth-child(2) .event-card-header {
    background: linear-gradient(145deg, #fffdf6, #fff3cc);
}

.event-card:nth-child(3) .event-card-header {
    background: linear-gradient(145deg, #f7fcf8, #e8f5ec);
}

.event-card-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.info {
    padding: 26px 30px 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.info p:first-child {
    color: var(--ink);
    font-weight: 800;
}

/* =========================================================
   ACCESSIBILITY / MOTION
   ========================================================= */

a:focus-visible {
    outline: 3px solid rgba(247, 189, 50, 0.85);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
    .main {
        grid-template-columns: 1fr;
    }

    .main-welcome-first-half {
        min-height: 570px;
    }

    .main-welcome-second-half {
        min-height: 420px;
    }

    .description-cards {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "mission mission"
            "pledge motto"
            "values values";
    }

    .mission {
        min-height: 380px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(3)::before {
        display: none;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        margin-top: 28px;
    }

    .upcoming-events {
        grid-template-columns: 1fr;
    }

    .event-card {
        display: grid;
        grid-template-columns: 0.42fr 0.58fr;
    }

    .event-card-header {
        min-height: 100%;
    }
}

/* =========================================================
   LOGIN/REGISTER BUTTON
   ========================================================= */

.login-register-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: var(--navy);
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 180ms ease;
    box-shadow: 0 8px 24px rgba(247, 189, 50, 0.4);
    position: relative;
    overflow: hidden;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.login-register-btn:hover::before {
    left: 100%;
}

.login-register-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(247, 189, 50, 0.5);
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.login-register-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.news-badge {
    padding: 4px 10px;
    background: rgba(9, 40, 91, 0.15);
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* =========================================================
   MODAL STYLES
   ========================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 40, 91, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block !important;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 10% auto;
    padding: 0;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-card);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border-bottom: 3px solid var(--gold);
}

.modal-header h2 {
    margin: 0;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.close-btn {
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 180ms ease;
    line-height: 1;
}

.close-btn:hover {
    color: var(--gold);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease;
    background: var(--soft);
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 216, 0.1);
}

.error-message {
    margin-top: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    display: none;
    animation: slideDown 0.2s ease;
}

.error-message.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 180ms ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(9, 40, 91, 0.25);
    background: linear-gradient(135deg, var(--blue), var(--navy-2));
}

.submit-btn:active {
    transform: translateY(0);
}

.modal-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.modal-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.modal-footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    transition: color 180ms ease;
}

.modal-footer a:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* Google Sign-up Button Styles */
.google-signup {
    margin-top: 24px;
    text-align: center;
}

.google-signup p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.google-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: all 180ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.google-btn:hover {
    background: var(--soft);
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 980px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .header {
        position: static;
    }

    .navbar {
        width: calc(100% - 28px);
        padding: 16px 0;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar::before {
        width: 100%;
        margin: 0 0 10px;
        text-align: center;
    }

    .navbar a {
        padding: 8px 11px;
        font-size: 0.85rem;
    }

    .login-register-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        order: -1;
        width: 100%;
        margin-bottom: 12px;
        margin-left: 0;
    }

    .modal-content {
        width: 95%;
        margin: 15% auto;
    }

    .modal-header {
        padding: 20px 24px;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 24px;
    }

    .form-group input {
        padding: 10px 14px;
    }

    .submit-btn {
        padding: 12px;
    }

    .navbar a {
        font-size: 0.84rem;
    }

    .main-welcome-first-half {
        min-height: auto;
        padding: 78px 24px 88px;
    }

    .main-welcome-first-half::after {
        display: none;
    }

    .landing-intro h1 {
        font-size: clamp(2.9rem, 14vw, 4.8rem);
    }

    .main-welcome-second-half {
        min-height: 385px;
    }

    .carousel {
        padding-left: 24px;
        padding-right: 24px;
    }

    .card {
        flex-basis: 220px;
        min-height: 235px;
    }

    .card:nth-child(2n) {
        transform: none;
    }

    .description-cards,
    .general-info,
    .upcoming-events {
        width: calc(100% - 28px);
    }

    .description-cards {
        padding-top: 105px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "mission"
            "pledge"
            "motto"
            "values";
    }

    .mission,
    .pledge,
    .motto,
    .values {
        min-height: auto;
        padding: 28px;
    }

    .mission {
        min-height: 360px;
    }

    .stats {
        padding: 72px 14px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 28px 18px;
    }

    .stat-item + .stat-item::before {
        top: 0;
        left: 10%;
        width: 80%;
        height: 1px;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        margin-top: 0;
    }

    .stat-item:nth-child(3)::before {
        display: block;
    }

    .general-info {
        padding-top: 78px;
        grid-template-columns: 1fr;
    }

    .upcoming-events {
        padding-bottom: 80px;
    }

    .event-card {
        display: block;
    }

    .event-card-header {
        min-height: 120px;
    }
}

@media (max-width: 460px) {
    .buttons {
        flex-direction: column;
    }

    .landing-join-button,
    .about-button {
        width: 100%;
    }

    .landing-intro-captions {
        padding-left: 38px;
        font-size: 0.92rem;
        letter-spacing: 0.09em;
    }

    .landing-intro-captions::before {
        width: 26px;
    }
}