:root {
    --aora-black: #050505;
    --aora-dark: #121212;
    --aora-purple: #8b5cf6;
    --aora-red: #ef233c;
    --aora-gold: var(--aora-purple);
    --aora-gold-light: var(--aora-red);
    --aora-white: #ffffff;
    --aora-gray: #b0b0b0;
}

body {
    background-color: var(--aora-black) !important;
    color: var(--aora-white) !important;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    /* Adjust based on navbar height */
}

/* Navbar Redesign */
.navbar-custom {
    background-color: transparent !important;
    /* Transparent background initially */
    border-bottom: none !important;
    padding: 5px 0;
    transition: all 0.3s ease;
    position: absolute !important;
    /* Force to top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
}

.navbar-custom.scrolled {
    background-color: var(--aora-black) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    position: fixed !important;
    /* Fixed when scrolling */
}

.nav-link {
    color: var(--aora-white) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    transform: translateY(-2px);
    /* Geser tulisan sedikit ke atas */
    display: inline-block;
    /* Diperlukan agar transform bekerja */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Added shadow for clarity */
}

.nav-link:hover,
.nav-link.active {
    color: var(--aora-gold) !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Celestial Theme & Hero Section */
header.hero {
    background-color: var(--aora-black) !important;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

header.hero::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: linear-gradient(to bottom, rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 0.8)),
        linear-gradient(135deg, rgba(139, 92, 246, 0.42), rgba(239, 35, 60, 0.24)),
        url('../images/club_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: normal, color, normal;
    filter: blur(10px);
    z-index: 0;
}

header.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--aora-black));
    z-index: 5;
    pointer-events: none;
}

/* Celestial Frame Container */
.celestial-frame {
    position: relative;
    width: 95%;
    height: 92vh;
    border: 2px solid var(--aora-gold);
    border-radius: 20px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.2), inset 0 0 55px rgba(239, 35, 60, 0.08);
    background-image: linear-gradient(to bottom, rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 0.8)),
        url('../images/club_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    z-index: 10;
}

.celestial-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(239, 35, 60, 0.18));
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 1;
}

/* Corner Decorations (Simple Gold Circles/Lines simulation) */
.corner-top-left,
.corner-top-right,
.corner-bottom-left,
.corner-bottom-right {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--aora-gold);
    z-index: 10;
}

.corner-top-left {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 20px;
}

.corner-top-right {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 20px;
}

.corner-bottom-left {
    bottom: -3px;
    left: -3px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 20px;
}

.corner-bottom-right {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 20px;
}

/* Content Styling */
.hero-logo-main {
    max-width: 180px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
}

.hero__club-text {
    font-family: 'Cinzel', serif;
    /* Use serif for premium feel */
    color: var(--aora-gold);
    letter-spacing: 8px;
    font-size: 1.5rem;
    margin-top: -10px;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.6), 0 0 18px rgba(239, 35, 60, 0.3);
}

.hero__tagline {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--aora-white);
    letter-spacing: 5px;
    position: relative;
    display: inline-block;
}

/* Vertical text decoration for Southgate hero */
.hero__tagline::before,
.hero__tagline::after {
    content: '★';
    color: var(--aora-gold);
    font-size: 1.5rem;
    vertical-align: middle;
    margin: 0 15px;
}

.hero__subtitle {
    color: var(--aora-gray);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* Buttons Update */
/* Buttons Update */
.btn-xyz-primary {
    background: var(--aora-gold);
    color: #000 !important;
    border-radius: 0;
    /* Boxy buttons for club feel */
    border: 1px solid var(--aora-gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    padding: 10px 40px;
    transition: all 0.4s ease;
}

.btn-xyz-primary:hover {
    background: transparent;
    color: var(--aora-gold) !important;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
}

.btn-xyz-outline {
    background: transparent;
    color: var(--aora-gold) !important;
    border-radius: 0;
    border: 1px solid var(--aora-gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    padding: 10px 40px;
}

.btn-xyz-outline:hover {
    background: var(--aora-gold);
    color: #000 !important;
    box-shadow: 0 0 22px rgba(239, 35, 60, 0.42);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--aora-gold);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--aora-gold);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Corner & Side Text */
.corner-text {
    position: absolute;
    color: var(--aora-gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    z-index: 10;
}

.corner-text.bottom-left {
    bottom: 30px;
    left: 40px;
}

.corner-text.bottom-right {
    bottom: 30px;
    right: 40px;
}

.vertical-text {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    transform: rotate(-90deg);
    z-index: 10;
}

.vertical-text.left {
    left: -20px;
    top: 50%;
}

.vertical-text.right {
    right: -20px;
    top: 50%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .scroll-indicator,
    .vertical-text {
        display: none;
    }

    .corner-text {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .corner-text.bottom-left {
        left: 20px;
        bottom: 20px;
    }

    .corner-text.bottom-right {
        right: 20px;
        bottom: 20px;
    }
}

.event-item {
    transition: opacity 0.5s ease;
}

/* New Event Card Design */
.event-card-new {
    background-color: transparent;
    border: none;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.event-card-new:hover {
    transform: translateY(-5px);
}

.event-image {
    width: 100%;
    border-radius: 20px;
    /* Rounded corners like the example */
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    /* Square image */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

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

.event-card-new:hover .event-image img {
    transform: scale(1.05);
}

.event-details {
    display: flex;
    align-items: center;
    /* Center vertically */
    padding: 0 5px;
}

.event-date-box {
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    /* Vertical divider */
    text-align: center;
    color: var(--aora-white);
    min-width: 70px;
}

.event-day {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--aora-white);
    font-weight: 500;
}

.event-date-num {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1;
    color: var(--aora-white);
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--aora-white);
    font-weight: 500;
}

.event-info-box {
    padding-left: 15px;
}

.event-title-new {
    color: var(--aora-white);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.event-location {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 500;
}

/* Event Overlay Animation */
.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    /* Opacity 20% black */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    /* Start from bottom */
    transition: transform 0.5s ease;
    z-index: 10;
}

.event-card-new:hover .event-overlay {
    transform: translateY(0);
}

.event-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* Add space between buttons */
    transform: translateY(-100px);
    /* Start from top relative to overlay */
    opacity: 0;
    transition: all 0.5s ease 0.1s;
    /* Slight delay */
    width: 80%;
    /* Ensure buttons don't touch edges */
}

.event-card-new:hover .event-buttons {
    transform: translateY(0);
    opacity: 1;
}

.event-btn-reservasi {
    background-color: var(--aora-gold);
    color: var(--aora-dark);
    border: none;
    border-radius: 50px;
    /* Pill shape */
    padding: 10px 30px;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.event-btn-reservasi:hover {
    background-color: var(--aora-white);
    transform: scale(1.05);
}

.event-btn-detail {
    background-color: rgba(0, 0, 0, 0.4);
    /* Increased opacity for readability */
    border: 2px solid var(--aora-gold);
    color: var(--aora-white);
    border-radius: 50px;
    /* Pill shape */
    padding: 8px 30px;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    text-align: center;
    line-height: 1.2;
}

.event-btn-detail:hover {
    background-color: var(--aora-gold);
    color: var(--aora-dark);
    transform: scale(1.05);
}

/* Pagination Styling */
.cms-pagination {
    display: flex;
    justify-content: center;
}

/* 3D Book Menu Styling */
.book-container {
    perspective: 1500px;
    width: 600px;
    height: 500px;
    margin: 50px auto;
    position: relative;
    display: flex;
    justify-content: center;
}

.book {
    width: 300px;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Center book when open (Page 1 or Page 2) */
.book.view-page-1,
.book.view-page-2 {
    transform: translateX(150px);
}

/* --- LAYERS --- */
.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: left;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.book-open {
    transform: translateX(150px) !important;
}

.book-page.flipped {
    transform: rotateY(-180deg);
}

/* Ensure flipped sheets stay on top of left items */
.book-page.flipped {
    z-index: 20 !important;
}

.book-back {
    background-color: #fffbf0;
    border-radius: 5px 15px 15px 5px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1 !important;
    display: flex;
    flex-direction: column;
    color: #333;
    border-left: 1px solid #eee;
}

/* --- FLIP LOGIC REMOVED - HANDLED VIA .flipped CLASS --- */

/* --- PAGE STYLING --- */

.cover-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: var(--aora-black);
    border: 2px solid var(--aora-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: var(--aora-gold);
    background-image: linear-gradient(135deg, #111 0%, #050505 100%);
    border-radius: 5px 15px 15px 5px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    /* Indikasi bisa diklik */
}

.cover-front::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Common Page Style (Paper) */
.page-side {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fffbf0;
    color: #333;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
    backface-visibility: hidden;
    border-radius: 5px 15px 15px 5px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Halaman Kiri (Terbuka) */
.page-left {
    transform: rotateY(180deg);
    border-left: 5px solid rgba(0, 0, 0, 0.1);
}

/* Halaman Kanan (Standar) */
.page-right {
    z-index: 2;
    border-left: 1px solid #eee;
}

/* --- CONTENT STYLING --- */
.click-instruction {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 1;
    transition: all 0.3s;
    background: rgba(139, 92, 246, 0.24);
    color: var(--aora-gold-light) !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(239, 35, 60, 0.25);
}

.cover-front:hover .click-instruction {
    opacity: 0.5;
    background: rgba(139, 92, 246, 0.12);
}

.book-menu-title {
    font-family: 'Cinzel', serif;
    color: var(--aora-gold);
    border-bottom: 2px solid var(--aora-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.book-menu-item {
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.book-item-name {
    font-weight: bold;
    font-size: 1rem;
    color: #000;
}

.book-item-desc {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.book-item-price {
    font-weight: bold;
    color: var(--aora-red);
}

/* Navigation Buttons inside pages */
.page-nav-btn {
    margin-top: auto;
    background: transparent;
    border: 1px solid var(--aora-gold);
    color: var(--aora-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    align-self: center;
}

.page-nav-btn:hover {
    background: var(--aora-gold);
    color: #fff;
}

.page-number {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #999;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .section-menu {
        padding: 40px 0 !important;
        overflow-x: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .book-container {
        /* Scale the book to fill more of the screen */
        transform: scale(0.85);
        transform-origin: center center;
        margin: 0 auto;
        width: 100%; /* Use full width for centering */
        max-width: 600px;
        height: 550px;
        perspective: 2000px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        left: 0;
    }

    /* Adjust scaling for smaller screens to ensure it fits perfectly */
    @media (max-width: 480px) {
        .book-container {
            transform: scale(0.75);
            height: 500px;
        }
    }

    @media (max-width: 380px) {
        .book-container {
            transform: scale(0.65);
        }
    }

    .book {
        width: 300px; /* Base width for half of the book */
        height: 100%;
        transform-style: preserve-3d;
        /* Start slightly left so that when it opens, it centers better */
        transform: translateX(0); 
    }

    /* When open, move right to center the spine */
    .book-open {
        transform: translateX(75px) !important; /* Half of the 150px to be less aggressive on mobile */
    }

    .book-page {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        transform-style: preserve-3d;
    }

    .page-side {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        min-height: auto !important;
        margin-bottom: 0 !important;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3) !important;
        border-radius: 5px 15px 15px 5px !important;
    }

    .book-menu-title {
        font-size: 1.4rem !important;
    }

    .book-item-name {
        font-size: 1rem !important;
    }

    .book-item-price {
        font-size: 1rem !important;
    }

    .book-item-desc {
        font-size: 0.8rem !important;
    }

    /* Smaller instruction for mobile */
    .click-instruction {
        font-size: 0.8rem !important;
        opacity: 1 !important;
        color: var(--aora-gold-light) !important;
        background: rgba(139, 92, 246, 0.3) !important;
    }

    /* Restore buttons */
    .page-nav-btn {
        display: block !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        bottom: 40px !important;
    }

    .page-number {
        font-size: 0.7rem !important;
        bottom: 15px !important;
    }
}
