/* ═══════════════════════════════════════
   Capoeira Akademi — Static Site Styles
   ═══════════════════════════════════════ */

/* ── Variables ── */
:root {
    --primary-black: #111111;
    --bg-subtle: #181818;
    --bg-card: #222222;
    --primary-yellow: #FFD000;
    --yellow-hover: #e6b800;
    --primary-red: #E63946;
    --text-main: #eaeaea;
    --text-muted: #999999;
    --font-heading: "Outfit", "Space Grotesk", system-ui, sans-serif;
    --font-body: "Outfit", system-ui, sans-serif;
    --spacing-section: 6rem;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-black);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    text-shadow: 0 2px 5px rgba(150, 150, 150, .15), 0 4px 10px rgba(0, 0, 0, .5);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: .2px;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Section ── */
.section {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-yellow);
}

/* ── Utilities ── */
.text-yellow {
    color: var(--primary-yellow);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .875rem 1.75rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all .3s ease;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.btn-primary:hover {
    background-color: var(--yellow-hover);
    box-shadow: 0 4px 12px rgba(255, 208, 0, .3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
}

.btn-outline:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.btn-sm {
    padding: .6rem 1.2rem;
    font-size: .82rem;
    align-self: flex-start;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .3);
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .3) 60%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    z-index: 1000;
    transition: all .4s ease;
}

.navbar.scrolled {
    height: 68px;
    background: rgba(12, 12, 12, .92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255, 208, 0, .15), 0 8px 32px rgba(0, 0, 0, .6);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.2;
}

.navbar.scrolled .nav-brand {
    gap: .75rem;
}

.nav-brand-logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(255, 208, 0, .35);
    transition: all .4s ease;
}

.navbar.scrolled .nav-brand-logo {
    width: 44px;
    height: 44px;
    padding: 2px;
}


.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand-title {
    font-size: clamp(0.9rem, 4vw, 1.4rem);
    font-weight: 900;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    transition: font-size .4s ease;
}

.navbar.scrolled .nav-brand-title {
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
}

.nav-brand-subtitle {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 5px;
    transition: font-size .4s ease, margin-top .4s ease;
}

.navbar.scrolled .nav-brand-subtitle {
    font-size: .65rem;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-link {
    position: relative;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .82);
    padding: .55rem 1rem;
    border-radius: 6px;
    transition: color .25s ease, background .25s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--primary-yellow);
    border-radius: 2px;
    transition: transform .25s ease;
}

.nav-link:hover {
    color: var(--primary-yellow);
    background: rgba(255, 208, 0, .07);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-contact-btn {
    background: var(--primary-yellow);
    color: #000 !important;
    border-radius: 6px;
    padding: .5rem 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-left: .5rem;
}

.nav-contact-btn:hover {
    background: var(--yellow-hover);
}

.nav-contact-btn::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    color: var(--primary-yellow);
    padding: .5rem;
    border-radius: 6px;
    background: rgba(255, 208, 0, .08);
    transition: background .2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 208, 0, .2);
}

/* ── Hero ── */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.auto-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active,
.auto-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 17, .2), rgba(17, 17, 17, .7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 10vw, 5rem);
    color: var(--text-main);
    margin-bottom: 0;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, .8);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
    word-wrap: break-word;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 6vw, 3.2rem);
    color: var(--text-main);
    margin-bottom: 25px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, .8);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
}

.hero-title span,
.hero-subtitle span {
    color: var(--primary-yellow);
}

.hero-slogan {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-slogan span {
    margin-right: .5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* ── Reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.about-image-slider {
    position: relative;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.about-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.about-slide.active {
    opacity: 1;
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-features li svg,
.about-features li i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-yellow);
    width: 24px;
    height: 24px;
}

.about-features strong {
    display: block;
    font-size: 1rem;
    margin-bottom: .2rem;
}

.about-features p {
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted);
}

.instrument-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    overflow: hidden;
    /* Added for Fix 2 */
}

.instrument-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Tarihçe section ── */
.tarihce-section {
    background-color: var(--bg-subtle);
    border-radius: 16px;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

/* ── Community Cards ── */
.community-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.community-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    width: 100%;
}

.community-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
    border-color: rgba(255, 208, 0, .3);
}

.community-card-image {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    min-height: 280px;
}

.community-card-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform .5s ease;
}



.community-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.community-card-desc {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.community-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--text-muted);
}

.community-card-schedule {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .25rem;
}

.community-schedule-tag {
    background: rgba(255, 208, 0, .1);
    border: 1px solid rgba(255, 208, 0, .2);
    color: var(--primary-yellow);
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
}

.community-card-insta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.community-insta-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}

.community-insta-thumb:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

.community-card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

.community-card-title-wrap {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.community-card-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}

.branch-overlay-logo {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* ── Schedule Table ── */
.table-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    background: var(--bg-card);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    word-break: break-word;
}

.schedule-table thead th {
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 2px solid #2a2a2a;
}

.schedule-table tbody tr {
    transition: background .2s ease;
}

.schedule-table tbody tr:hover {
    background: rgba(255, 208, 0, .04);
}

.schedule-table tbody td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #1f1f1f;
    vertical-align: top;
    font-size: .95rem;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.table-link {
    color: var(--primary-yellow);
    font-weight: 700;
}

/* Tablonun Mobilde "Modern App" Kart Görünümüne Dönüşmesi (V2) */
@media (max-width: 768px) {
    .table-container {
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .schedule-table,
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .schedule-table thead {
        display: none;
    }
    
    .schedule-table tbody tr {
        background: var(--bg-card);
        margin-bottom: 2rem;
        border-radius: 12px;
        position: relative;
        overflow: hidden;
        border: 1px solid #2a2a2a;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        transition: transform 0.3s ease;
    }
    
    /* Sol sarı vurgu çizgisi */
    .schedule-table tbody tr::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary-yellow);
        z-index: 10;
    }
    
    /* Başlık Kısmı (Yer) */
    .schedule-table tbody td:first-child {
        background: rgba(255, 208, 0, 0.05);
        padding: 1.25rem 1.5rem 1.25rem 1.8rem;
        border-bottom: 1px solid #2a2a2a;
    }
    
    .schedule-table tbody td:first-child a {
        color: var(--primary-yellow);
        text-decoration: none;
        display: flex;
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Program İçeriği Kısmı */
    .schedule-table tbody td:nth-child(2) {
        padding: 1.5rem;
    }
    
    /* Her bir gün/saat öğesinin kutucuklara ayrılması (Mini Kartlar) */
    .schedule-table tbody td:nth-child(2) > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .schedule-table tbody td:nth-child(2) span[style*="display:flex"] {
        background: var(--primary-black);
        padding: 1rem 1.25rem;
        border-radius: 8px;
        border: 1px solid #1f1f1f;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        display: grid !important;
        grid-template-columns: auto 1fr;
        gap: 0.5rem !important;
        align-items: start !important;
    }
    
    /* Gün yazısı (Pazartesi vb.) */
    .schedule-table tbody td:nth-child(2) span[style*="display:flex"] > span:first-child {
        width: 100%;
        grid-column: 1 / -1;
        font-size: 1.05rem;
        border-bottom: 1px dashed #333;
        padding-bottom: 0.3rem;
        margin-bottom: 0.2rem;
    }
}

/* ── Etkinlikler section ── */
.etkinlikler-section {
    background-color: var(--bg-subtle);
    border-radius: 16px;
    padding: 4rem 2rem;
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.tab-btn {
    padding: .65rem 1.5rem;
    border-radius: 30px;
    border: 2px solid #2a2a2a;
    background: transparent;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.tab-btn:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.tab-btn.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--primary-black);
}

/* ── Events Grid ── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .3);
}

/* ── Admin: Delete event × trigger ── */
.admin-event-delete-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 9999;
    /* Boosted to clear all child elements */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 77, 77, 0.85);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: auto !important;
    /* Force clicks to reach the button */
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.event-card:hover .admin-event-delete-btn {
    opacity: 1;
}

.admin-event-delete-btn:hover {
    background: #e03030;
    transform: scale(1.12);
}

/* ── Admin: Add event button ── */
.admin-event-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: .55rem 1.2rem;
    border-radius: 30px;
    border: 2px dashed var(--primary-yellow);
    background: rgba(255, 208, 0, 0.07);
    color: var(--primary-yellow);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-bottom: 1.5rem;
    letter-spacing: .3px;
}

.admin-event-add-btn:hover {
    background: var(--primary-yellow);
    color: #000;
    border-style: solid;
}

.event-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: 800;
    font-size: 0.7rem;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.2;
    text-transform: uppercase;
    z-index: 100 !important;
    /* Ensure it's above auto-slides */
    pointer-events: auto !important;
    /* Fix: receive events even inside event-img */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.event-date-badge span {
    display: block;
}

.event-date-badge b {
    font-size: 0.9rem;
    display: block;
}

.event-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.event-desc {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.past-event {
    opacity: .8;
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #2a2a2a;
}

.contact-form-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-yellow);
    margin: 0 0 .5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.form-group label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: .85rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s ease;
    width: 100%;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: #1e1e1e;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    width: 100%;
    justify-content: center;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
    border: none;
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
    color: white;
}

.map-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #2a2a2a;
}

/* ── Footer ── */
.footer {
    background-color: var(--bg-subtle);
    padding: 4rem 5% 2rem;
    border-top: 1px solid #222;
}

.footer-logo {
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: rotate(-5deg) scale(1.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    transition: all .3s ease;
}

.social-icon:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--text-muted);
    font-size: .9rem;
}

/* ── Back to top ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 208, 0, .4);
    transition: transform .2s ease, box-shadow .2s ease, opacity .3s ease;
    z-index: 999;
    cursor: pointer;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 208, 0, .5);
}

/* ── Loading skeleton ── */
.content-loading {
    background: linear-gradient(90deg, #1e1e1e 25%, #2a2a2a 50%, #1e1e1e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    min-height: 80px;
    width: 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

.hero-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 208, 0, .2);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
}

.lightbox-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

@media(max-width: 768px) {
    .lightbox-arrow {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: -50px;
    }

    .lightbox-next {
        right: -50px;
    }
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(12, 12, 12, .98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--primary-yellow);
        z-index: 999;
    }

    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 3.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .community-card {
        grid-template-columns: 1fr;
    }

    .community-card-image {
        height: 220px;
    }

    .community-card-image-bg {
        min-height: 220px;
    }

    #branches-list>div:nth-child(1) .community-card-image .auto-slide,
    #branches-list>div:nth-child(2) .community-card-image .auto-slide {
        background-position-y: -39px !important;
    }

    #branches-list>div:nth-child(3) .community-card-image .auto-slide,
    #branches-list>div:nth-child(4) .community-card-image .auto-slide {
        background-position-y: -88px !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .community-card-footer {
        flex-direction: column;
    }

    .community-card-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .hero-slogan {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        gap: 1rem;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table,
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
    }

    .schedule-table tbody tr {
        margin-bottom: 1rem;
        background-color: var(--bg-card);
        border-radius: 8px;
        padding: 1rem;
        border: 1px solid #2a2a2a;
    }

    .schedule-table tbody td {
        text-align: left;
        padding: .4rem 0;
        border: none;
        font-size: .9rem;
    }

    .schedule-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: var(--primary-yellow);
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: .25rem;
    }

    .schedule-table tbody td+td {
        margin-top: .5rem;
        padding-top: .5rem;
        border-top: 1px solid #1f1f1f;
    }

    /* Fix 1: Mobile centering */
    #about-text-el h3 {
        text-align: center;
    }

    #about-text-el h3 span {
        display: inline-block;
    }
}

@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-section: 2.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-slogan {
        font-size: 1rem;
    }

    .hero-content {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .community-card-content {
        padding: 1.25rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .nav-brand-title {
        font-size: .9rem;
    }

    .nav-brand-subtitle {
        display: block;
        font-size: .65rem;
    }

    .nav-brand-logo {
        width: 38px;
        height: 38px;
    }
}