:root {
    --primary: #7b1113;
    --primary-dark: #4a0708;
    --gold: #f5c451;
    --gold-soft: #ffe8a3;
    --bg: #f7f5f2;
    --white: #ffffff;
    --text: #1c1c1c;
    --muted: #6f6f6f;
    --card: rgba(255,255,255,0.72);
    --border: rgba(255,255,255,0.28);
    --shadow: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-hover: 0 28px 80px rgba(0,0,0,0.18);
}


html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #fffdf9 0%, #f8f5ef 100%);
    color: var(--text);
    overflow-x: hidden;
}

/* ================= GLOBAL ================= */
section {
    position: relative;
    overflow: hidden;
}

.container-modern {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(123, 17, 19, 0.08);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
}

.section-badge::before {
    content: "";
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--gold), #ffdd85);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(245, 196, 81, 0.8);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.9;
    max-width: 680px;
}

/* ================= BUTTONS ================= */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--gold), #ffdb74);
    color: #4a2f00;
    box-shadow: 0 16px 40px rgba(245, 196, 81, 0.35);
}

.btn-primary-modern:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 22px 50px rgba(245, 196, 81, 0.45);
    color: #4a2f00;
}

.btn-outline-modern {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(14px);
}

.btn-outline-modern:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-3px);
}

/* ================= HERO ================= */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 50px 0 80px;
    position: relative;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/home/court.jfif') center/cover no-repeat;
    transform: scale(1.08);
    filter: brightness(0.38) saturate(1.05);
    z-index: -3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(20, 10, 10, 0.85) 20%, rgba(123,17,19,0.72) 55%, rgba(0,0,0,0.68) 100%);
    z-index: -2;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 214, 102, 0.22), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08), transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(123,17,19,0.35), transparent 35%);
    z-index: -1;
}

.hero-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,196,81,0.22), transparent 65%);
    filter: blur(20px);
    top: 8%;
    right: 6%;
    animation: floatGlow 8s ease-in-out infinite;
}

@keyframes floatGlow {
    0%,100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(-10px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-left {
    color: #fff;
    position: relative;
    z-index: 20;
    overflow: visible;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    color: #fff7dc;
}

.hero-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 20px rgba(245,196,81,0.9);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 0.96;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero-title span {
    display: block;
}

.hero-text {
    font-size: 1.08rem;
    line-height: 1.95;
    color: rgba(255,255,255,0.88);
    max-width: 700px;
    margin-bottom: 36px;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-floating-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-floating-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%),
        radial-gradient(circle at top right, rgba(245,196,81,0.28), transparent 30%);
    pointer-events: none;
}

.hero-mini-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-soft);
    margin-bottom: 14px;
    font-weight: 700;
}

.hero-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-card-text {
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin-bottom: 26px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 18px 16px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform .35s ease, background .35s ease;
}

.hero-stat:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.14);
}

.hero-stat strong {
    display: block;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* ================= REGISTER SHAKE ================= */
.btn-register-animate {
    animation: pulseGlow 4.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 16px 40px rgba(245, 196, 81, 0.35);
    }
    50% {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 24px 60px rgba(245, 196, 81, 0.55);
    }
}

/* ================= SJCR HERO BUTTON FIX ================= */
.sjcr-hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 30px;
    position: relative;
    z-index: 20;
    width: 100%;
    overflow: visible;
    opacity: 1;
    transform: none;
}

.sjcr-hero-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    white-space: nowrap;
}

/* Register Button */
.sjcr-register-button {
    padding: 16px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5c451, #ffdf87);
    color: #4a2f00 !important;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    box-shadow: 0 18px 45px rgba(245, 196, 81, 0.45);
    z-index: 20;
}

.sjcr-register-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 26px 60px rgba(245, 196, 81, 0.55);
    color: #4a2f00 !important;
}

/* About Button */
.sjcr-about-button {
    padding: 16px 30px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 20;
}

.sjcr-about-button:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.2);
    color: #ffffff !important;
}

/* Shine effect */
.sjcr-register-button::before,
.sjcr-about-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    transition: transform .8s ease;
}

.sjcr-register-button:hover::before,
.sjcr-about-button:hover::before {
    transform: translateX(100%);
}

.hero-modern .container-modern {
    position: relative;
    z-index: 20;
}
.hero-modern .sjcr-hero-buttons {
    position: relative;
    z-index: 999 !important; /* ensure buttons appear above overlays */
}
/* ================= STORY SECTION ================= */
.story-modern {
    padding: 130px 0;
    background:
        radial-gradient(circle at top left, rgba(245,196,81,0.12), transparent 24%),
        linear-gradient(180deg, #fffdf9 0%, #f8f4ee 100%);
}

.story-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 70px;
    align-items: center;
}

.story-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.story-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(123,17,19,0.16), transparent 65%);
    border-radius: 50%;
    filter: blur(30px);
    bottom: -20px;
    left: 10%;
    z-index: 0;
}

.story-image-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(-2deg);
    z-index: 2;
}

.story-image-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.story-floating-badge {
    position: absolute;
    bottom: 30px;
    right: 0px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 18px 20px;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(123,17,19,0.28);
    z-index: 3;
    max-width: 220px;
}

.story-floating-badge strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.story-floating-badge span {
    font-size: 0.92rem;
    opacity: 0.88;
}

.story-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.story-feature {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(123,17,19,0.08);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.06);
    transition: transform .35s ease, box-shadow .35s ease;
}

.story-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0,0,0,0.1);
}

.story-feature h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 800;
}

.story-feature p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ================= LOCATION ================= */
.location-modern {
    padding: 130px 0;
    background:
        linear-gradient(135deg, rgba(74,7,8,0.96), rgba(18,18,18,0.94)),
        url('/images/facilities/court.png') center/cover no-repeat;
    background-blend-mode: overlay;
    color: #fff;
}

.location-shell {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 35px;
    align-items: stretch;
}

.location-left {
    padding-right: 30px;
}

.location-title {
    color: #fff;
}

.location-sub {
    color: rgba(255,255,255,0.78);
}

.location-cards {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.location-info-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(16px);
    transition: transform .35s ease, background .35s ease;
}

.location-info-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.12);
}

.location-info-card h4 {
    font-size: 1rem;
    color: var(--gold-soft);
    margin-bottom: 10px;
    font-weight: 800;
}

.location-info-card p {
    margin: 0;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

.location-map-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    min-height: 520px;
    box-shadow: 0 26px 70px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
}

.location-map-image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.25)),
        url('/images/facilities/sjcr_map.png') center/cover no-repeat;
    transform: scale(1.05);
    z-index: 1;
}

.location-map-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(245,196,81,0.18), transparent 25%),
        linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.45));
    z-index: 2;
}

.location-pin {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold), #f2b93c);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 14px rgba(245,196,81,0.14), 0 0 50px rgba(245,196,81,0.45);
    animation: pulsePin 2.8s infinite;
    z-index: 3;
}

.location-pin i {
    color: #5a3500;
    font-size: 1.9rem;
}

@keyframes pulsePin {
    0%,100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

.location-floating-note {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 20px;
    z-index: 4;
}

.location-floating-note strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 6px;
}

.location-floating-note span {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

/* ================= OSAW ================= */
.osaw-modern {
    padding: 130px 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(123,17,19,0.08), transparent 22%),
        linear-gradient(180deg, #f7f5f2 0%, #ffffff 100%);
}

.osaw-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.osaw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.osaw-card {
    position: relative;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(123,17,19,0.08);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    backdrop-filter: blur(16px);
    transition: transform .4s ease, box-shadow .4s ease;
    height: 100%;
}

.osaw-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.osaw-image-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
}

.osaw-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.osaw-card:hover img {
    transform: scale(1.08);
}

.osaw-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
}

.osaw-date-chip {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 2;
}

.osaw-card-body {
    padding: 26px 24px 24px;
}

.osaw-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.osaw-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 18px;
}

.osaw-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: gap .25s ease;
}

.osaw-read:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ================= IMPACT ================= */
.impact-modern {
    padding: 140px 0;
    background:
        radial-gradient(circle at top left, rgba(245,196,81,0.12), transparent 22%),
        linear-gradient(135deg, var(--primary-dark), #1f0b0b 70%);
    color: #fff;
    text-align: center;
}

.impact-shell {
    max-width: 920px;
    margin: 0 auto;
}

.impact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    line-height: 1.08;
    margin-bottom: 24px;
    color: #fff;
}

.impact-text {
    font-size: 1.08rem;
    line-height: 1.95;
    color: rgba(255,255,255,0.82);
    max-width: 760px;
    margin: 0 auto 34px;
}

.impact-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--gold-soft);
    font-weight: 700;
}

/* ================= FLOATING DECOR ================= */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 180px;
    height: 180px;
    background: rgba(245,196,81,0.16);
    top: 10%;
    left: 0px;
    transform: translateX(-50%);
}

.orb-2 {
    width: 220px;
    height: 220px;
    background: rgba(123,17,19,0.14);
    bottom: 8%;
    right: 0px;
    transform: translateX(50%);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
    .hero-grid,
    .story-grid,
    .location-shell {
        grid-template-columns: 1fr;
    }

    .hero-right {
        margin-top: 10px;
    }

    .location-left {
        padding-right: 0;
    }

    .location-map-card {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 120px 0 80px;
        min-height: auto;
        overflow: visible;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
    }

    .hero-left {
        width: 100%;
        overflow: visible;
    }

    .hero-right {
        width: 100%;
        margin-top: 10px;
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }

    .hero-text {
        margin-bottom: 24px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-floating-card {
        max-width: 100%;
        padding: 24px;
    }

    .story-modern,
    .location-modern,
    .osaw-modern,
    .impact-modern {
        padding: 90px 0;
    }

    .story-features {
        grid-template-columns: 1fr;
    }

    .story-floating-badge {
        position: relative;
        right: 0;
        bottom: auto;
        margin-top: 18px;
        max-width: 100%;
    }

    .section-title,
    .location-title,
    .impact-title {
        line-height: 1.15;
    }

    .osaw-header {
        align-items: start;
    }

    .btn-modern {
        width: 100%;
    }

    .sjcr-hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
        overflow: visible;
    }

    .sjcr-hero-buttons a,
    .sjcr-register-button,
    .sjcr-about-button {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        padding: 15px 18px;
        overflow: visible;
    }
}