:root {
    --purple: #5d3e98;
    --blue: #5aa1d8;
    --green: #abd037;
    --primary: var(--blue);
    --primary-dark: #4a8cbd;
    --bg: #0a0a0a;
    --surface: #1a1a1a;
    --text: #ffffff;
    --text-dim: #a0a0a0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(135deg, var(--purple), var(--blue), var(--green)) border-box;
    border: 2px solid transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--purple), var(--blue), var(--green));
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.page-header {
    min-height: 35vh !important;
    padding: 4rem 0 !important;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container.hero {
    position: relative;
    z-index: 1;
}

.logo-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.logo-container img {
    width: 100%;
    height: auto;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    background: linear-gradient(to right, var(--purple), var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    z-index: 1;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    color: #fff;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(135deg, var(--purple), var(--blue), var(--green)) border-box;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(93, 62, 152, 0.3);
    background: linear-gradient(135deg, var(--purple), var(--blue), var(--green)) padding-box,
        linear-gradient(135deg, var(--purple), var(--blue), var(--green)) border-box;
}

.btn-secondary {
    color: #fff;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(135deg, var(--purple), var(--blue), var(--green)) border-box;
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(93, 62, 152, 0.3);
    background: linear-gradient(135deg, var(--purple), var(--blue), var(--green)) padding-box,
        linear-gradient(135deg, var(--purple), var(--blue), var(--green)) border-box;
    color: #fff;
}

.btn-info-ghost {
    color: var(--blue);
    border: 2px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
        var(--blue) border-box;
}

.btn-info-ghost:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(90, 161, 216, 0.3);
}

.btn-footer {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 50px;
    margin: 0.5rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-footer:hover {
    color: #fff;
    border-color: var(--blue);
    background: rgba(90, 161, 216, 0.1);
    transform: translateY(-2px);
}

.floating-back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    opacity: 0.9;
    border-radius: 50px;
    width: auto !important;
}

.floating-back-btn:hover {
    opacity: 1;
}

@media (max-width: 1100px) {
    .floating-back-btn {
        top: auto;
        bottom: 2rem;
        left: auto;
        right: 2rem;
        padding: 1rem 2rem;
        font-size: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(90, 161, 216, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card.variant-green {
    border-color: rgba(171, 208, 55, 0.2);
}

.glass-card.variant-green h3 {
    color: var(--green);
}

.glass-card.variant-green:hover {
    border-color: var(--green);
    box-shadow: 0 10px 30px rgba(171, 208, 55, 0.1);
}

.glass-card.variant-purple {
    border-color: rgba(93, 62, 152, 0.2);
}

.glass-card.variant-purple h3 {
    color: var(--purple);
}

.glass-card.variant-purple:hover {
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(93, 62, 152, 0.1);
}

.glass-card.variant-blue {
    border-color: rgba(90, 161, 216, 0.2);
}

.glass-card.variant-blue h3 {
    color: var(--blue);
}

.glass-card.variant-blue:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(90, 161, 216, 0.1);
}

/* Class Icons */
.class-icon-container {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.variant-green .class-icon {
    color: var(--green);
}

.variant-purple .class-icon {
    color: var(--purple);
}

.variant-blue .class-icon {
    color: var(--blue);
}

.class-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.glass-card:hover .class-icon-container {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

.glass-card:hover .class-icon {
    transform: rotate(5deg) scale(1.1);
}

/* Schedule Styles */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.schedule-card h3 {
    color: var(--blue);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    text-align: left;
}

.schedule-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 0.8rem 0;
    font-size: 1rem;
}

.schedule-table td:first-child {
    color: var(--text-dim);
    font-weight: 400;
}

.schedule-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--green);
}

.schedule-note {
    text-align: center;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    animation: fadeIn 1s ease-out;
}

.ymca-note {
    font-size: 0.9rem;
    color: var(--blue);
    margin-top: 0.5rem;
    opacity: 0.7;
    font-style: italic;
}

/* Cancellation Styles */
.schedule-card.cancelled-this-week {
    opacity: 0.6;
    filter: grayscale(0.8);
    position: relative;
}

.schedule-card.cancelled-this-week .btn-primary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    cursor: pointer;
}

.schedule-card.cancelled-this-week .btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blue);
}

.cancellation-ribbon {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(135deg, #ff4e50, #f9d423) border-box;
    border: 2px solid transparent;
    color: #ff4e50;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 3rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(255, 78, 80, 0.2);
    z-index: 10;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.venue-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

.venue-link:hover {
    color: var(--green);
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

.partner-info {
    flex: 1;
}

.partner-logo {
    max-height: 80px;
    width: auto;
    display: block;
    opacity: 0.9;
    flex-shrink: 0;
    object-fit: contain;
}

.partner-btn {
    padding: 0.65rem 2rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.modal-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .partner-card {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
    }

    .partner-logo {
        margin-bottom: 0;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    border-color: rgba(255, 255, 255, 0.15);
    margin: auto;
}

.modal-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
    .modal-grid {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

.modal-venue-title {
    line-height: 1.2;
    font-weight: 800;
}

.modal-venue-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    text-transform: none;
    font-weight: 400;
    display: block;
    margin-top: 0.2rem;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--green);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    /* Uniform width for all modal buttons */
    height: 44px;
    /* Uniform height to fix discrepancy */
    text-align: center;
    padding: 0;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.venue-address {
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.modal-venue-note {
    font-size: 0.95rem !important;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1.5rem !important;
    font-weight: 400 !important;
}

.pricing-table,
.venue-pricing-table,
.venue-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    text-align: left;
}

.pricing-table tr,
.venue-pricing-table tr,
.venue-schedule-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-table tr:last-child,
.venue-pricing-table tr:last-child,
.venue-schedule-table tr:last-child {
    border-bottom: none;
}

.pricing-table td,
.venue-pricing-table td,
.venue-schedule-table td {
    padding: 0.8rem 0;
    font-size: 1.05rem;
}

.pricing-table td:first-child,
.venue-pricing-table td:first-child,
.venue-schedule-table td:first-child {
    color: var(--text-dim);
    font-weight: 400;
}

.pricing-table td:last-child,
.venue-pricing-table td:last-child,
.venue-schedule-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--green);
}

/* Schedule table specific overrides */
.venue-schedule-table td {
    padding: 0.5rem 0;
    font-size: 1.15rem;
}

.venue-schedule-table {
    margin-bottom: 0;
    margin-top: 1rem;
}

.venue-pricing-table {
    margin-top: -1rem;
}

/* Modal Feedback Refinements */
.modal-location-link:hover .modal-location-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--blue) !important;
    transform: translateY(-2px);
}

.modal-schedule-centered {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.schedule-item-centered {
    margin-bottom: 1.2rem;
}

.schedule-class-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.schedule-class-time {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-weight: 500;
}

.modal-venue-note {
    font-size: 1rem;
    color: var(--green);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
}

/* News Section Redesign */
.news-grid-alternate {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-card-v2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.news-card-v2.featured {
    grid-column: span 2;
    flex-direction: row;
    gap: 2rem;
    padding: 3rem;
}

.news-content-v2 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 700;
}

.news-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--blue);
}

.featured .news-title {
    font-size: 2.5rem;
}

.news-excerpt {
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.news-link-more {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.link-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.news-card-v2:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.news-card-v2:hover .news-link-more {
    gap: 0.8rem;
    color: var(--blue);
}

.news-card-v2:hover .link-icon {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .news-card-v2.featured {
        flex-direction: column;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .news-grid-alternate {
        grid-template-columns: 1fr;
    }

    .news-card-v2.featured {
        grid-column: span 1;
    }
}

/* Class Popup Bubble */
.class-popup-bubble {
    position: absolute;
    z-index: 2000;
    max-width: 250px;
    padding: 1.25rem;
    background: rgba(45, 45, 60, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.class-popup-bubble.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.info-bubble-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--blue);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.info-bubble-btn:hover {
    background: var(--blue-glow);
    color: white;
    transform: scale(1.1);
}

.footer {
    background: transparent;
    padding: 6rem 0 4rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
    /* Significant separation before copyright */
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    padding: 0;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lightbox-content {
    transition: transform 0.3s ease;
}

.modal-overlay[style*="display: flex"] .lightbox-content {
    transform: scale(1);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag.event {
    background: rgba(93, 62, 152, 0.1);
    border-color: var(--purple);
    color: var(--purple);
}

.tag.cancellation {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #dc2626;
}

.tag.update {
    background: rgba(90, 161, 216, 0.1);
    border-color: var(--blue);
    color: var(--blue);
}

.news-preview.cancellation h3 {
    color: #dc2626;
}

.news-preview.event h3 {
    color: var(--purple);
}

.news-preview.update h3 {
    color: var(--blue);
}

.tag.venue {
    background: rgba(171, 208, 55, 0.1);
    border-color: var(--green);
    color: var(--green);
}

.tag.arts {
    background: rgba(93, 62, 152, 0.1);
    border-color: var(--purple);
    color: var(--purple);
}

.tag.charity {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #dc2626;
}

.tag.service {
    background: rgba(90, 161, 216, 0.1);
    border-color: var(--blue);
    color: var(--blue);
}

/* Floating Navigation Hamburger Menu */
.nav-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(90, 161, 216, 0.6);
    transform: scale(1.05);
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text);
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* Active State (X conversion) */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Slide-out Menu Drawer */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    z-index: 1900;
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.nav-btn-link {
    background: linear-gradient(135deg, var(--purple), var(--blue), var(--green));
    color: white;
    padding: 0.6rem 2rem;
    border-radius: 50px;
}

.nav-btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 161, 216, 0.3);
    color: white;
}

@media (max-width: 480px) {
    .nav-menu {
        width: 80%;
    }
}

    h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    p.subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 60px 0;
    }

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

    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 2rem;
    }

    .news-header,
    .announcement-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        text-align: center;
    }

    .tag {
        align-self: center;
    }

    .footer-buttons {
        gap: 0.5rem;
    }

    .btn-footer {
        width: auto;
        flex: 1 1 120px;
        text-align: center;
        margin: 0.25rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .modal-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .modal-actions .btn {
        width: 100% !important;
        margin: 0;
    }
}

/* ── Contact Form ─────────────────────────────────────────────────────────── */
.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem 0 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0a0a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--surface);
    color: var(--text);
}

.form-extra {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

.form-extra[hidden] {
    display: none;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    min-width: 1.1rem;
    accent-color: var(--blue);
    cursor: pointer;
    border-radius: 50%;
    -webkit-appearance: auto;
    appearance: auto;
    padding: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);
}

.form-group input.input-error,
.form-group textarea.input-error,
.form-group select.input-error {
    border-color: #e05555;
}

.form-status {
    font-size: 0.95rem;
    min-height: 1.4em;
}

.form-status.success {
    color: var(--green);
}

.form-status.error {
    color: #e05555;
}

.contact-form .btn {
    align-self: flex-start;
    width: 100%;
}

@media (min-width: 480px) {
    .contact-form .btn {
        width: auto;
    }
}

.page-header.contact-header {
    min-height: 10vh !important;
    padding: 1.25rem 0 !important;
}

.contact-wrapper {
    padding: 1rem 0 4rem;
}

@media (max-width: 768px) {
    .page-header.contact-header {
        min-height: 5vh !important;
        padding: 1rem 0 !important;
    }

    .contact-wrapper {
        padding: 0.5rem 0 3rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 1rem; /* keeps iOS from zooming */
        padding: 0.9rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        gap: 0.8rem;
    }
}

.footer-powered {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    opacity: 0.5;
}

.footer-powered a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-powered a:hover {
    opacity: 2;
    text-decoration: underline;
}