:root {
    /* Theme Colors */
    --bg-black: #050505;
    --overlay-black: rgba(0, 0, 0, 0.4);
    --text-gold: #b8860b;
    --text-white: #ffffff;

    --btn-gold: #D4AF37;
    --btn-glow: rgba(212, 175, 55, 0.5);
    --overlay-green: #00441a;
    --overlay-white: #afafaf;
    --overlay-red: #6d0814;

    /* Hero Animations */
    --anim-delay: .7s;
    --box-anim-duration: 1s;
}

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

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: "Raleway", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(5, 5, 5, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10005;
    /* Moved higher than event overlay (10000) */
    border-bottom: 1px solid var(--text-gold);
}

.logo {
    /* Font removed, replaced by image */
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Headers */
h1,
h2,
h3,
.page-title {
    font-family: "Permanent Marker", cursive;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: "Permanent Marker", cursive;
    font-weight: normal;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-gold);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-gold);
    transition: all 0.3s ease;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 45%;
        height: 100vh;
        background-color: var(--bg-black);
        flex-direction: column;
        align-items: flex-end;
        /* Right align text */
        justify-content: center;
        /* Vertically center items */
        padding: 2rem;
        transform: translateX(100%);
        /* Hidden to right */
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid var(--text-gold);
        /* Corrected border side */
        border-bottom: none;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 10001;
        /* Above event overlay (10000) */
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Right align list items */
    .nav-links li {
        width: 100%;
        text-align: right;
        margin-bottom: 1.5rem;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    /* Staggered animation for links */
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }


    .hamburger {
        display: flex;
        z-index: 10002;
        /* Above menu */
        position: absolute;
        /* Keep it positioned relative to navbar */
        right: 2rem;
    }

    /* Hamburger Animation to X */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Page Blur Effect */
    body.nav-active .page-container,
    body.nav-active footer,
    body.nav-active .hero {
        filter: blur(5px);
        user-select: none;
        pointer-events: none;
    }

    /* Hero Mobile Adjustments */
    .hero h1 {
        font-size: 2rem !important;
        /* Reduced from 1.75rem */
    }

    .hero p {
        font-size: 1.2rem !important;
        /* Reduced from 0.8rem */
        line-height: 1.4;
    }

    .page-title {
        font-size: 1rem;
        /* Reduced from 2.5rem default */
    }

    .info-text p,
    .mv-card p {
        font-size: 0.95rem;
        /* Slightly smaller body text */
    }

    .yellow-box {
        width: 100px !important;
        /* Half of 150px */
        right: 10% !important;
        /* Adjust position slightly if needed */
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../assets/img/banner2.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-black);
    z-index: 1;
}



.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
}

.hero-left {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 4rem;
    padding-left: 2rem;
    line-height: 2;
}

.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    /* Adjust to align the box horizontally within the right col */
}

/* Yellow Box Animation */
.yellow-box {
    position: absolute;
    top: 0;
    right: 15%;
    /* Position somewhat to the right */
    width: 150px;
    height: 0;
    /* Start hidden */

    background-color: rgba(212, 175, 55, 0.85);
    /* Slightly transparent gold */
    animation: expandBox var(--box-anim-duration) ease-out forwards;
    animation-delay: var(--anim-delay);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    /* Keep center to center content if needed, but button will override with width 100% */
    padding-bottom: 0;
    /* Remove padding so button sits at bottom */
}

/* Vertical Typewriter Text */
.vertical-typewriter {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: 'Permanent Marker', cursive;
    /* Or 'Raleway' based on preference, user didn't specify font but 'Permanent Marker' matches headers */
    color: var(--bg-black);
    /* font-size set dynamically in JS */
    overflow: hidden;
    white-space: nowrap;
    /* Keep text on one line (vertical line) */
    padding: 1rem 0;
    letter-spacing: 5px;
    /* Spacing for vertical text */
}

@keyframes expandBox {
    0% {
        height: 0;
        opacity: 0;
    }

    1% {
        opacity: 1;
    }

    100% {
        height: 85%;
        opacity: 1;
    }
}

.pulsating-btn {
    opacity: 0;
    display: block;
    /* Changed from inline-block */
    width: 100%;
    /* Full width */
    padding: 1rem 0;
    /* Vertical padding only, center text */
    text-align: center;
    background-color: #000;
    color: var(--text-gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    border: none;
    /* Remove border if full width, or keep? User said "same wide". Keeping border might look weird if flush. Let's keep border-top maybe? Or just background. */
    border-top: 2px solid var(--text-gold);
    /* Only top border looks better for a bottom bar */
    border-radius: 0;
    /* Remove radius */
    text-decoration: none;
    box-shadow: none;
    /* Shadow might look weird if flush */
    animation:
        fadeInBtn 0.5s ease forwards,
        pulsate 2s infinite;
    /* Delay = box delay + box duration */
    animation-delay: calc(var(--anim-delay) + var(--box-anim-duration));
    transition: all 0.3s ease;
}

.pulsating-btn:hover {
    background-color: var(--btn-gold);
    color: var(--bg-black);
    box-shadow: 0 0 20px var(--btn-gold);
}

@keyframes fadeInBtn {
    to {
        opacity: 1;
    }
}

@keyframes pulsate {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 0;
    /* Removing bottom margin as it's aligned to bottom now */
    color: #ddd;
    max-width: 600px;
}

/* General Page Content (for other pages) */
.page-container {
    padding: 6rem 2rem 2rem;
    /* Top padding to account for fixed navbar */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 2px solid var(--text-gold);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Footer (optional but good for structure) */
footer {
    background-color: #000;
    color: #888;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-top: 1px solid #222;
}

/* Info Section */
.info-section {
    margin-bottom: 4rem;
}

.info-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-text {
    flex: 2;
    text-align: justify;
}

.info-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #eee;
}

.info-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.info-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border: 4px solid var(--text-gold);
    box-shadow: 0 0 15px rgba(184, 134, 11, 0.5);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.info-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(184, 134, 11, 0.8);
}

.info-full-width {
    text-align: justify;
    font-size: 1.1rem;
    color: #eee;
    line-height: 1.6;
}

/* Mobile Adaptation for Info Section */
@media (max-width: 768px) {
    .info-content {
        flex-direction: column;
    }

    .info-text {
        order: 1;
        /* Text first */
    }

    .info-image {
        order: 2;
        width: 100%;
    }

    .info-image img {
        max-width: 100%;
    }
}

/* Mission & Vision Section */
.mv-section {
    margin-bottom: 4rem;
}

.mv-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    /* ensure they spread nicely */
}

.mv-card {
    flex: 1;
    background-color: var(--btn-gold);
    /* Using the vibrant gold for BG */
    color: #222;
    /* Dark Gray text for contrast */
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
    /* Gold glow shadow */
}

.mv-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #000;
    /* Black headers */
    border-bottom: 3px solid #000;
    display: inline-block;
    padding-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.mv-icon {
    width: 120px;
    height: auto;
    margin-top: 1rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.mv-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Mobile Adaptation for M/V */
@media (max-width: 768px) {
    .mv-container {
        flex-direction: column;
    }
}

/* Gold Pulsating Button (General Use) */
.gold-btn {
    display: inline-block;
    background-color: var(--text-gold);
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: normal;
    /* Permanent Marker is bold enough usually */
    text-transform: uppercase;
    border: none;
    animation: pulsate 2s infinite;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    font-family: "Permanent Marker", cursive;
    /* Match h1 style */
    letter-spacing: 1.5px;
}

.gold-btn:hover {
    background-color: #e5c150;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    transform: scale(1.05);
}

/* Locations Page Styles */
.locations-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.location-card {
    background-color: var(--overlay-black);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--text-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* History Page Styles */
.history-hero {
    height: 80vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/img/banner2.webp');
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
    /* Changed from 'fixed' for mobile compatibility */
}

.history-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #222;
}

.history-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-gold);
    text-align: center;
    margin-bottom: 3rem;
    font-family: "Permanent Marker", cursive;
    text-transform: uppercase;
}

/* Info Card */
.info-card {
    background-color: var(--overlay-black);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--text-gold);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background-color: #111;
    padding: 2rem;
    border: 1px solid var(--text-gold);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.2);
}

.pillar-card h3 {
    color: var(--text-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: "Permanent Marker", cursive;
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.rule-card {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 6px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: background-color 0.3s ease;
}

.rule-card:hover {
    background-color: #252525;
}

.rule-number {
    font-family: "Permanent Marker", cursive;
    font-size: 2rem;
    color: var(--text-gold);
    line-height: 1;
}

.rule-card p {
    font-size: 1rem;
    color: #ddd;
}

/* History Timeline Blocks */
.history-block {
    background: linear-gradient(to right, #111, transparent);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--text-gold);
    position: relative;
}

.history-block::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 17px;
    height: 17px;
    background-color: var(--text-gold);
    border-radius: 50%;
}

.history-block h3 {
    color: var(--text-gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: "Permanent Marker", cursive;
}

.history-block p {
    font-size: 1.1rem;
    color: #eee;
    text-align: justify;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .history-hero {
        height: 50vh;
    }

    .pillars-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }
}

.location-details {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
}

.location-info {
    flex: 0 0 35%;
    /* Fixed width for info to give Schedule space */
    min-width: 250px;
}

.location-schedule {
    flex: 1;
    min-width: 0;
    /* Allows grid to shrink properly in flex container */
}

/* Info Styles */
.location-info h3 {
    font-size: 1.8rem;
    color: var(--text-gold);
    margin-bottom: 1rem;
    font-family: "Permanent Marker", cursive;
}

.location-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #eee;
}

.location-info strong {
    color: var(--text-white);
}

/* Schedule Styles */
.location-schedule h4 {
    font-size: 1.5rem;
    color: var(--text-gold);
    margin-bottom: 1rem;
    font-family: "Nanum Brush Script", cursive;
    letter-spacing: 1px;
}

.location-schedule ul {
    list-style: none;
    padding: 0;
}

.location-schedule li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #ddd;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.location-schedule li:last-child {
    border-bottom: none;
}

.location-schedule strong {
    color: var(--text-gold);
    margin-right: 0.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(184, 134, 11, 0.1);
    border: 2px solid var(--text-gold);
    border-radius: 50%;
    color: var(--text-gold);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--text-gold);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.4);
}

.social-links a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .location-details {
        flex-direction: column;
        gap: 2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .social-links a svg {
        width: 20px;
        height: 20px;
    }
}

.map-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) contrast(90%);
    /* Dark Mode Simulation */
}

/* Affiliated Dojangs Section */
.affiliated-section {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #222;
}

.affiliated-section h2 {
    font-size: 2rem;
    color: var(--text-gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Old Dropdown Styles Removed */

.affiliates-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Still wrap on very small screens, but compact on desktop */
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.affiliate-item {
    background-color: var(--overlay-black);
    padding: 0.8rem 1rem;
    border: 1px solid var(--text-gold);
    /* Thinner border */
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 90px;
}

.affiliate-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.4);
    background-color: #222;
}

.affiliate-item img {
    width: 40px !important;
    /* Smaller icon size */
    height: 40px !important;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.affiliate-item span {
    font-family: "Permanent Marker", cursive;
    color: var(--text-gold);
    font-size: 0.9rem;
    /* Smaller text */
    text-align: center;
}

/* Mobile responsiveness for affiliates */
@media (max-width: 768px) {
    .affiliates-list {
        gap: 1rem;
    }

    .affiliate-item {
        padding: 0.5rem;
        min-width: 80px;
    }

    .affiliate-item img {
        width: 35px !important;
        height: 35px !important;
    }

    .affiliate-item span {
        font-size: 0.8rem;
    }
}

/* Dynamic Gallery Styles */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.featured-view {
    width: 100%;
    height: 60vh;
    background-color: #111;
    border: 2px solid var(--text-gold);
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Event Page Styles */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.event-card {
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    border-color: var(--text-gold);
}

.event-image {
    width: 100%;
    height: 500px;
    /* Increased height for vertical banners */
    overflow: hidden;
    border-bottom: 2px solid var(--text-gold);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain ensures the whole poster is visible */
    object-position: center;
    background-color: #000;
    /* Dark background for letterboxing */
    transition: transform 0.5s ease;
}

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

.event-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-date {
    color: var(--text-gold);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details h2 {
    color: white;
    font-size: 1.8rem;
    font-family: 'Permanent Marker', cursive;
    line-height: 1.2;
}

.event-location {
    color: #aaa;
    font-style: italic;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-description {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-gold);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--text-gold);
    color: #000;
}

/* Gallery Styles (Previously Corrupted) */

/* Gallery Styles (Previously Corrupted) */

.featured-view {
    height: 70vh;
    width: 100%;
    margin-bottom: 20px;
    background-color: #000;
    border: 2px solid var(--text-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.featured-view img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* transition: transform 0.3s ease; Removed to avoid interference */
}

.loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: var(--text-gold);
    width: 0%;
    z-index: 10;
    transition: width 2s linear;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.gallery-thumb {
    height: 120px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background-color: #222;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop thumbnails for uniform grid */
    transition: transform 0.3s ease;
}

.gallery-thumb:hover {
    border-color: var(--text-gold);
    transform: scale(1.05);
    z-index: 2;
}

.gallery-thumb.active {
    border-color: var(--text-gold);
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}

@media (max-width: 768px) {
    .featured-view {
        height: 40vh;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 5px;
    }

    .gallery-thumb {
        height: 80px;
    }
}

/* New Event Overlay Side Widget */
#new-event-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #000, #1a1a1a);
    border: 2px solid #FFD700;
    padding: 1.5rem;
    z-index: 10000;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    text-align: center;
    max-width: 300px;
    animation: slideInRight 0.5s ease;
    display: none;
    font-family: 'Raleway', sans-serif;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#new-event-overlay h3 {
    color: #FFD700;
    font-family: 'Permanent Marker', cursive;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#new-event-overlay p {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.4;
}

#new-event-overlay .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#new-event-overlay .btn {
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#new-event-overlay .btn-gold {
    background: #FFD700;
    color: #000;
    border: none;
}

#new-event-overlay .btn-gold:hover {
    background: #e5c150;
    transform: scale(1.05);
}

#new-event-overlay .btn-outline {
    border: 1px solid #FFD700;
    color: #FFD700;
    background: transparent;
}

#new-event-overlay .btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.05);
}

/* Home CTA Banner */
.cta-banner {
    background-color: #111;
    text-align: center;
    padding: 3rem 1rem;
    border-top: 2px solid var(--text-gold);
    border-bottom: 2px solid var(--text-gold);
    margin-top: 3rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/img/banner1.webp');
    background-size: cover;
    background-position: center;
}

.cta-banner h2 {
    font-family: 'Permanent Marker', cursive;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px #000;
}

.cta-banner p {
    color: var(--text-gold);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
    text-shadow: 0 2px 4px #000;
}

/* Update MV Section to handle dropdowns */
.mv-card-wrapper {
    flex: 1;
}

.mv-dropdown-content {
    padding: 1.5rem;
    background-color: #050505;
    color: #ccc;
    line-height: 1.6;
    border-top: 1px solid var(--text-gold);
}

.mv-dropdown-content p {
    margin-bottom: 1rem;
}

.mv-dropdown-content p:last-child {
    margin-bottom: 0;
}

/* Ensure summary looks right in this context */
.rules-dropdown summary {
    /* existing font-family is Permanent Marker */
}

/* Calendar Grid Styles */
.location-schedule {
    width: 100%;
    margin-top: 1rem;
    overflow-x: auto;
    /* Allow horizontal scroll on small screens */
    padding-bottom: 1rem;
    /* Space for scrollbar */
}

.calendar-grid {
    display: grid;
    grid-template-columns: 60px repeat(5, minmax(65px, 1fr));
    /* Time + 5 Days (Mon-Fri) - Compacted */
    grid-gap: 1px;
    background-color: #333;
    /* Border color */
    border: 1px solid var(--text-gold);
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
    /* Force scroll on mobile if too narrow */
}

/* Header Cells (Days) */
.calendar-header {
    background-color: #1a1a1a;
    color: var(--text-gold);
    padding: 5px;
    text-align: center;
    font-family: 'Permanent Marker', cursive;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Time Cells */
.calendar-time-col {
    background-color: #111;
    color: #888;
    padding: 5px;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-right: 1px solid #333;
}

/* Empty Slots */
.calendar-cell {
    background-color: #0d0d0d;
    min-height: 60px;
}

/* Event Slots */
.calendar-event {
    background-color: rgba(184, 134, 11, 0.15);
    /* Low opacity gold */
    color: #eee;
    padding: 5px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 3px solid var(--text-gold);
    height: 100%;
    width: 100%;
}

.calendar-event strong {
    color: var(--text-gold);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.calendar-event:hover {
    background-color: rgba(184, 134, 11, 0.3);
    cursor: default;
}

/* Specific span for multi-day/time if needed, but we'll place them in grid cells */

/* Mobile Enhancements */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 60px repeat(5, minmax(90px, 1fr));
        min-width: 500px;
        /* Allow looser scroll */
    }

    .calendar-header {
        font-size: 0.9rem;
    }

    .calendar-event {
        font-size: 0.75rem;
    }
}

/* Map and Image Side-by-Side Wrapper */
.map-image-wrapper {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.map-container,
.location-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    /* Fixed height for consistency */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    /* Reset margin */
    padding-bottom: 0;
    /* Reset aspect ratio padding */
    border: 1px solid var(--text-gold);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image covers the area nicely */
    transition: transform 0.5s ease;
}

.location-image img:hover {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

/* Mobile responsive for map-image */
@media (max-width: 768px) {
    .map-image-wrapper {
        flex-direction: column;
    }

    .map-container,
    .location-image {
        height: 300px;
        /* Smaller height on mobile */
    }
}

/* Contact Page Redesign */

/* Main wrapper relative for background positioning */
/* Main wrapper background positioning - FORCE FULL WIDTH */
.contact-page-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -10px;
    min-height: 80vh;
    /* Ensure it takes up good space */
    overflow: hidden;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Blurred Background */
.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../assets/img/examen.webp');
    background-size: cover;
    background-position: center 25%;
    filter: blur(8px) brightness(0.4);
    /* Blur and darken for readability */
    transform: scale(1.1);
    /* Prevent blurred edges from being visible using a slight zoom */
}

/* Content Container - sits above background */
.contact-container {
    position: relative;
    z-index: 1;
    /* Above bg */
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Split Layout */
.contact-split-layout {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dojo-card {
    flex: 1;
    min-width: 300px;
    background-color: rgba(0, 0, 0, 0.6);
    /* Semi-transparent black */
    backdrop-filter: blur(5px);
    border: 1px solid var(--text-gold);
    border-radius: 10px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.dojo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.3);
}

.dojo-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2rem;
    color: var(--text-gold);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px #000;
}

.dojo-info {
    font-size: 1.1rem;
    color: #eee;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    /* WhatsApp Green */
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    /* Darker Green */
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

/* Social & Hashtag Section */
/* Social & Hashtag Section - FORCE FULL WIDTH & BLACK BG */
.social-hashtag-section {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    /* Remove margin since it's separate now */
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.blurred-hashtag {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Permanent Marker', cursive;
    font-size: 6rem;
    /* Huge text */
    color: rgba(255, 255, 255, .5);
    /* Very subtle */
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
    width: 100%;
}

.social-icons-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon-large {
    color: var(--text-gold);
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-gold);
    transition: all 0.3s ease;
}

.social-icon-large:hover {
    background: var(--text-gold);
    color: #000;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.6);
}

.social-icon-large svg {
    width: 30px;
    height: 30px;
}

/* Specific Mobile Adjustments */
@media (max-width: 768px) {
    .blurred-hashtag {
        font-size: 3rem;
    }

    .dojo-card {
        padding: 2rem 1.5rem;
    }
}

.social-cta-text {
    font-family: 'Permanent Marker', cursive;
    color: var(--text-gold);
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px #000000;
}

/* Social CTA Text in Gallery */
.social-cta-text {
    position: relative;
    z-index: 1;
    color: var(--text-white);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Permanent Marker', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .social-cta-text {
        font-size: 1.2rem;
    }
}

/* Gallery Pause Button */
.pause-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-gold);
    border: 2px solid var(--text-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.pause-btn:hover {
    background: var(--text-gold);
    color: #000;
    transform: scale(1.1);
}



.pause-btn.paused {
    /* If we use content replacement, hide original text if needed, handling via JS textContent might be safer but CSS content is fine if button is empty initally. 
       However, I put || in HTML. So I should probably handle icon change in JS or just use classes. 
       Let's stick to simple JS text toggle for clarity, but I'll add the class styling here just in case. */
    background: rgba(184, 134, 11, 0.3);
}

/* Sin Moo Meaning Section */
.meaning-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem;
    background-color: rgba(5, 5, 5, 0.5);
    border-radius: 15px;
    border: 1px solid #333;
}

.meaning-card {
    flex: 1;
    min-width: 150px;
    background: linear-gradient(145deg, #111, #0a0a0a);
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 3px solid var(--text-gold);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.meaning-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.2);
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
}

.syllable-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.syllable-desc {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Specific delay for staggered animation if desired, or just simple hover */
.meaning-card:nth-child(1) {
    border-color: #D4AF37;
}

/* Gold */
.meaning-card:nth-child(2) {
    border-color: #C5A028;
}

.meaning-card:nth-child(3) {
    border-color: #B69119;
}

.meaning-card:nth-child(4) {
    border-color: #A7820A;
}

.meaning-card:nth-child(5) {
    border-color: #987300;
}

@media (max-width: 768px) {
    .meaning-section {
        flex-direction: column;
        align-items: stretch;
    }

    .meaning-card {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem;
        text-align: left;
    }

    .syllable-title {
        margin-bottom: 0;
        font-size: 2rem;
    }
}

/* Rules Section Background */
.rules-bg-section {
    position: relative;
    background-image: url('../assets/img/backgrund.webp');
    background-size: cover;
    background-position: center;
    /* Parallax removed */
    padding: 6rem 2rem;
    /* Add more padding for visual impact */
    color: #fff;
    overflow: hidden;
}

.rules-bg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    /* Dark overlay for readability */
    z-index: 1;
}

.rules-bg-section .section-title,
.rules-bg-section .rules-grid {
    position: relative;
    z-index: 2;
    /* Bring content above overlay */
}

.rule-card {
    background-color: rgba(255, 255, 255, 0.05);
    /* Make cards semi-transparent */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.rule-card:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}