/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

/* Prevent accidental horizontal scroll on narrow viewports (100vw / full-bleed children) */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden; /* fallback for older WebKit */
        overflow-x: clip;
    }
}

body.mobile-nav-open {
    overflow: hidden;
}

/* Ensure Font Awesome 7 Pro+ icons display correctly */
i.fa-solid,
i.fa-brands,
i.fa-regular,
i.fa-light,
i.fa-thin,
i.fa-duotone,
i.fa-sharp-solid,
i.fa-sharp-regular,
i.fa-sharp-light,
i.fas,
i.fab,
i.far,
i.fal,
i.fat,
i.fad,
i.fass,
i.fasr,
i.fasl,
.fa-solid,
.fa-brands,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-sharp-solid,
.fa-sharp-regular,
.fa-sharp-light,
.fas,
.fab,
.far,
.fal,
.fat,
.fad,
.fass,
.fasr,
.fasl {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro", "Font Awesome 7 Free", "Font Awesome 7 Brands", "Font Awesome 7 Pro", "Font Awesome 7 Pro Solid", "Font Awesome 7 Pro Regular", "Font Awesome 7 Pro Light", "Font Awesome 7 Pro Thin", "Font Awesome 7 Pro Duotone", "Font Awesome 7 Pro Sharp Solid", "Font Awesome 7 Pro Sharp Regular", "Font Awesome 7 Pro Sharp Light" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

i.fa-brands,
i.fab,
.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 7 Brands" !important;
    font-weight: 400 !important;
}

.fa-regular,
.far {
    font-weight: 400;
}

.fa-light,
.fal {
    font-weight: 300;
}

.fa-thin,
.fat {
    font-weight: 100;
}

.fa-duotone,
.fad {
    font-weight: 900;
    position: relative;
}

.fa-duotone::before,
.fad::before {
    opacity: 1;
}

.fa-duotone::after,
.fad::after {
    opacity: 0.4;
}

.fa-sharp-solid,
.fass {
    font-weight: 900;
}

.fa-sharp-regular,
.fasr {
    font-weight: 400;
}

.fa-sharp-light,
.fasl {
    font-weight: 300;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #000;
    border-bottom: 2px solid #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-top: env(safe-area-inset-top, 0px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
    min-height: 95px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo .logo {
    height: 85px;
    width: auto;
    max-height: 85px;
    /* Logo is already black and white, no filter needed */
}

.nav-logo h2 {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 8px 16px;
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(252, 165, 3, 0.8);
    font-weight: 700;
    transform: scale(1.05);
}

.nav-link::after {
    display: none;
}

.nav-link:hover::after {
    width: 100%;
}

/* Classes dropdown */
.nav-item-dropdown {
    position: relative;
}
.nav-item-dropdown .nav-link {
    cursor: default;
}
.nav-item-dropdown > .nav-link[href]:not([href="#"]) {
    cursor: pointer;
}
.nav-submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #000;
    border: 2px solid #fff;
    border-top: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
.nav-item-dropdown:hover .nav-submenu,
.nav-item-dropdown.focus-visible .nav-submenu,
.nav-item-dropdown.active .nav-submenu {
    opacity: 1;
    visibility: visible;
}
.nav-submenu .nav-link {
    display: block;
    padding: 12px 20px;
    color: #fff;
    border-bottom: 1px solid #333;
    white-space: nowrap;
}
.nav-submenu .nav-link:last-child {
    border-bottom: none;
}
.nav-submenu .nav-link:hover {
    background: rgba(252, 165, 3, 0.8);
    color: #000;
}
.nav-item-dropdown .nav-link .fa-chevron-down {
    margin-left: 6px;
    font-size: 0.75em;
    transition: transform 0.2s;
}
.nav-item-dropdown:hover .nav-link .fa-chevron-down,
.nav-item-dropdown.active .nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    margin: -6px -8px -6px 0;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: #000;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23ffffff" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
    color: #fff;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    opacity: 0.1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #fca503;
    color: #fff;
    border: 2px solid #fca503;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
}

/* Secondary buttons inside modals/dialogs (light background): visible dark style */
.modal .btn-secondary,
.admin-modal .btn-secondary {
    background: #fff;
    color: #333;
    border: 2px solid #666;
}
.modal .btn-secondary:hover,
.admin-modal .btn-secondary:hover {
    background: #eee;
    color: #000;
    border-color: #000;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    font-size: 1.3rem;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* About Section */
.about {
    background: #fff;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text p {
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #666;
}

.feature-list i {
    color: #000;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: #000;
    border: 2px solid #000;
    color: #fff;
}

.stat h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.stat p {
    color: #ccc;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Classes Section */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Category Filter Buttons */
.category-filter-btn {
    transition: all 0.3s ease;
}

.category-filter-btn:hover {
    background: #fca503 !important;
    color: #fff !important;
    border-color: #fca503 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-filter-btn.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Search Input */
#classSearch:focus {
    outline: none;
    border-color: #fca503;
    box-shadow: 0 0 0 3px rgba(252, 165, 3, 0.2);
}

.class-card {
    background: #fff;
    padding: 2rem;
    border: 2px solid #000;
    text-align: center;
    transition: all 0.3s ease;
}

.class-card h3,
.class-card p,
.class-card .class-icon,
.class-card .class-icon i,
.class-card .class-details,
.class-card .class-details li,
.class-card .curriculum-badge,
.class-card .btn-primary {
    transition: all 0.3s ease;
}

.class-card:hover {
    background: #f5f5f5;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: #fca503;
}

.class-card:hover h3 {
    color: #000;
}

.class-card:hover p {
    color: #333;
}

.class-card:hover .class-icon {
    background: #fca503;
    border-color: #fca503;
}

.class-card:hover .class-icon i {
    color: #fff;
}

.class-card:hover .class-details {
    background: #e0e0e0;
    border-color: #fca503;
}

.class-card:hover .class-details li {
    color: #000;
}

.class-card:hover .curriculum-badge {
    background: #fca503;
    color: #fff;
    border-color: #fca503;
}

.class-card:hover .btn-primary {
    background: #fca503;
    color: #fff;
    border-color: #fca503;
}

.class-icon {
    width: 80px;
    height: 80px;
    background: #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.class-icon i {
    font-size: 2rem;
    color: #fff;
}

.class-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.class-card p {
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.class-details {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f0f0f0;
    border: 1px solid #000;
}

.class-details li {
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.curriculum-badge {
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    border: 1px solid #000;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    margin: 1rem 0;
    display: inline-block;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Instructors Section */
.instructors {
    background: #000;
    color: #fff;
}

.instructors .section-header h2 {
    color: #fff;
}

.instructors .section-header p {
    color: #fff;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.instructor-card {
    background: #fff;
    padding: 2rem;
    border: 2px solid #fff;
    text-align: center;
    color: #000;
}

.instructor-image {
    width: 120px;
    height: 120px;
    background: #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-image i {
    font-size: 3rem;
    color: #fff;
}

.instructor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instructor-card h4 {
    color: #000;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instructor-card p {
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.instructor-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.credential {
    background: #000;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border: 1px solid #000;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Facilities Section */
.facilities-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.facility-card {
    background: #fff;
    padding: 2rem;
    border: 2px solid #000;
    text-align: center;
}

.facility-icon {
    width: 80px;
    height: 80px;
    background: #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.facility-icon i {
    font-size: 2rem;
    color: #fff;
}

.facility-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.facility-card p {
    color: #333;
    line-height: 1.6;
}

/* Legal Section */
.legal {
    background: #000;
    color: #fff;
}

.legal .section-header h2 {
    color: #fff;
}

.legal .section-header p {
    color: #fff;
}

.legal-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.legal-card {
    background: #fff;
    padding: 2rem;
    border: 2px solid #fff;
    text-align: center;
    color: #000;
}

.legal-icon {
    width: 80px;
    height: 80px;
    background: #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.legal-icon i {
    font-size: 2rem;
    color: #fff;
}

.legal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-card p {
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.legal-card .btn-secondary {
    background: transparent;
    color: #000;
    border: 2px solid #000;
    font-weight: 700;
    text-transform: uppercase;
}

.legal-card .btn-secondary:hover {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: #333;
}

.contact-form {
    background: #f0f0f0;
    padding: 2rem;
    border: 2px solid #000;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    background: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fca503;
    background: #f0f0f0;
}

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

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    /* Logo is already black and white, no filter needed */
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #fff;
    color: #ccc;
}

.footer-bottom a {
    color: #fca503;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Social Media Icons */
.social-icons a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a i {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    width: 1em;
    height: 1em;
    color: inherit !important;
}

.social-icons a:hover {
    color: #fca503;
    transform: translateY(-3px);
}

.social-icons a:hover i {
    color: inherit !important;
}

.social-icons a:hover i.fa-facebook,
.social-icons a:hover i.fa-brands.fa-facebook {
    color: #1877f2 !important;
}

.social-icons a:hover i.fa-instagram,
.social-icons a:hover i.fa-brands.fa-instagram {
    color: #e4405f !important;
}

.social-icons a:hover i.fa-x-twitter,
.social-icons a:hover i.fa-brands.fa-x-twitter {
    color: #fff !important;
}

.social-icons a:hover i.fa-youtube,
.social-icons a:hover i.fa-brands.fa-youtube {
    color: #ff0000 !important;
}

.social-icons a:hover i.fa-tiktok,
.social-icons a:hover i.fa-brands.fa-tiktok {
    color: #fff !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border: 3px solid #000 !important;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Force a visible border even if a downstream rule overrides border styles */
/* Exclude welcome video shell — it uses its own layout/stacking (Android video compositor). */
.modal-content:not(.video-modal-content)::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid #000;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

/* Ensure modal content stays above the border overlay */
.modal-content:not(.video-modal-content) > * {
    position: relative;
    z-index: 2;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #000;
    flex-shrink: 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #000;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    min-height: 0;
}

/* Registration Modal Form Styling */
#registrationModal .modal-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 3px solid #000 !important;
}

#registrationModal .modal-content > .close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}

#registrationModal .modal-content > h2 {
    margin: 0;
    padding: 20px 25px;
    padding-right: 60px;
    border-bottom: 2px solid #000;
    background: #fff;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: #000;
}

#registrationForm {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 25px;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(85vh - 140px);
    max-height: calc(100dvh - 180px);
}

/* Ensure scrollbar is visible */
#registrationForm::-webkit-scrollbar {
    width: 10px;
}

#registrationForm::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 5px;
}

#registrationForm::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
}

#registrationForm::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Button container - always visible at bottom */
#registrationForm button[type="submit"] {
    margin-top: 20px;
    padding: 15px 30px;
    width: 100%;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    transition: all 0.3s ease;
}

#registrationForm button[type="submit"]:hover:not(:disabled) {
    background: #fca503;
    border-color: #fca503;
    color: #000;
}

#registrationForm button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 2px solid #000;
    flex-shrink: 0;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.document-content {
    max-width: 800px;
}

/* Make document modals reliably scrollable across all pages.
   Some pages use #documentContent directly inside .modal-content (no .modal-body). */
.modal-content.document-content {
    display: flex;
    flex-direction: column;
}

#documentModal .modal-body {
    display: flex;
    flex-direction: column;
}

.modal-content.document-content #documentContent {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 75vh;
}

/* Video Modal Styles */
.video-modal {
    display: none; /* Will be set to flex by JS */
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1px);
    z-index: 999999; /* Very high z-index to ensure it's above everything on mobile */
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh; /* Use viewport height for mobile */
    height: -webkit-fill-available; /* iOS Safari fix */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile: do NOT force display:flex !important on .video-modal — it overrides JS
   closeWelcomeVideo() (display:none) and traps users after the intro video. */
@media (max-width: 768px) {
    .video-modal .video-container {
        display: flex;
        visibility: visible;
    }

    .video-modal video {
        display: block;
        visibility: visible;
        opacity: 1;
    }
}

.video-modal-content {
    background-color: #000;
    margin: auto;
    width: 95%;
    max-width: 2100px;
    min-height: 700px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    max-height: 95vh;
    border: 3px solid #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.video-modal-content::before {
    display: none;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 1;
    /* Letterboxing is not the <video> element — without this, Samsung/Android can
       deliver taps to a full-bleed compositor layer and ignore the × / Skip buttons. */
    pointer-events: none;
}

.video-container video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: auto;
}

.video-modal-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 10;
    animation: fadeInUp 0.5s ease;
}

/* Close button for video modal (must stay above video compositor on Android) */
.video-modal-content .close-video {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2147483646;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    cursor: pointer;
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.video-modal-content .close-video:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Second exit hatch for Android / Samsung Internet (large tap target, always on top) */
.video-modal-content .welcome-video-skip {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483645;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid #fff;
    border-radius: 999px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    white-space: nowrap;
}

.video-modal-content .welcome-video-skip:active {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile video styles - ensure all videos work on mobile */
@media (max-width: 768px) {
    /* General video styles for mobile */
    video {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    video:focus {
        outline: none;
    }
}

/* Responsive adjustments for video modal */
@media (max-width: 768px) {
    .video-modal {
        z-index: 999999; /* Ensure highest priority on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: -webkit-fill-available; /* iOS Safari fix */
    }
    
    .video-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: -webkit-fill-available; /* iOS Safari fix */
        max-height: 100vh;
        min-height: 0;
        padding-bottom: 0;
        border-radius: 0;
        border: none;
        position: relative;
    }
    
    .video-container {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .video-container video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .video-modal-footer {
        bottom: 20px;
        width: 90%;
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .video-modal-footer .btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .video-modal-content .close-video {
        top: max(12px, env(safe-area-inset-top, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.5rem;
        z-index: 2147483646;
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Image Lightbox Modal Styles */
.image-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
        env(safe-area-inset-left);
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.image-lightbox-modal.active {
    display: flex;
}

.lightbox-image {
    max-width: min(90%, 100vw - 24px);
    max-height: 90vh;
    max-height: 90dvh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
}

.close-lightbox {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: max(30px, env(safe-area-inset-right));
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.clickable-image {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    .image-lightbox-modal {
        padding: 10px;
        padding-top: max(10px, env(safe-area-inset-top));
        padding-right: max(10px, env(safe-area-inset-right));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        padding-left: max(10px, env(safe-area-inset-left));
    }
    
    .lightbox-image {
        max-width: 95%;
        max-width: min(95%, 100vw - 16px);
        max-height: 85vh;
        max-height: 85dvh;
    }
    
    .close-lightbox {
        top: max(15px, env(safe-area-inset-top));
        right: max(15px, env(safe-area-inset-right));
        width: 45px;
        height: 45px;
        min-width: 44px;
        min-height: 44px;
        font-size: 35px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .lightbox-caption {
        bottom: 20px;
        font-size: 0.9rem;
        padding: 8px 15px;
        max-width: 90%;
    }
}

/* Document content text padding and border for readability */
/* Works for both direct content and modal-body content */
#documentContent,
.modal-body #documentContent {
    padding: 30px 35px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 20px;
    background-color: #fafafa;
    line-height: 1.8;
}

/* If documentContent is directly in modal-content (without modal-body) */
.document-content > #documentContent {
    margin: 20px;
}

/* If documentContent is in modal-body, adjust margins */
.modal-body #documentContent {
    margin: 0;
}

#documentContent h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
}

#documentContent h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

#documentContent p {
    margin-bottom: 15px;
}

#documentContent ul,
#documentContent ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

#documentContent li {
    margin-bottom: 10px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.close:hover {
    color: #fca503;
}

.payment-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #000;
}

.payment-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.payment-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.payment-form {
    margin-top: 1rem;
}

.payment-note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    font-style: italic;
}

.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
}

.security-badges i {
    color: #000;
    margin-right: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: calc(95px + env(safe-area-inset-top, 0px));
        bottom: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        max-height: calc(100dvh - 95px - env(safe-area-inset-top, 0px));
        max-height: calc(100vh - 95px - env(safe-area-inset-top, 0px));
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0 max(2rem, env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-item-dropdown .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        border: none;
        border-left: 3px solid rgba(252, 165, 3, 0.8);
        margin-top: 8px;
        margin-left: 16px;
        padding: 0;
        box-shadow: none;
    }
    .nav-submenu .nav-link {
        padding: 10px 16px;
    }

    .nav-logo .logo {
        height: 60px;
        max-height: 60px;
    }

    .nav-logo h2 {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .payment-options {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        margin: 5vh auto;
        margin: 5dvh auto;
        width: min(95%, 100vw - 16px);
        max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        padding: 0;
    }

    #registrationModal .modal-content > .close {
        min-width: 44px;
        min-height: 44px;
        top: max(12px, env(safe-area-inset-top, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
    }
}

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

    .section-header h2 {
        font-size: 2rem;
    }

    .classes-grid,
    .instructors-grid,
    .facilities-content,
    .legal-documents {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.instructor-actions {
    margin-top: 1.5rem;
}

.instructor-actions .btn {
    min-width: 160px;
}

/* Instructor Detail Pages */
.instructor-detail-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.instructor-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(252, 165, 3, 0.15), transparent 45%);
    pointer-events: none;
}

.profile-hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 18px;
    background: #111;
    border: 3px solid #fca503;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo i {
    font-size: 4rem;
    color: #fca503;
}

.profile-overview {
    flex: 1;
    min-width: 260px;
}

.instructor-role {
    display: inline-block;
    background: #fca503;
    color: #000;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.profile-overview h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.profile-overview p {
    font-size: 1.1rem;
    max-width: 640px;
    color: #e2e2e2;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.profile-meta .meta-item {
    min-width: 160px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.profile-meta .meta-item span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.35rem;
}

.profile-meta .meta-item strong {
    font-size: 1.4rem;
    color: #fff;
}

.profile-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.instructor-detail-body {
    background: #f7f7f7;
    padding: 80px 0 120px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.detail-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-section p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.detail-section h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fca503;
    box-shadow: 0 0 0 3px rgba(252, 165, 3, 0.2);
}

.detail-card {
    background: #fff;
    border: 2px solid #000;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.detail-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid #000;
}

.detail-badge.accent {
    background: #fca503;
    color: #000;
    border-color: #fca503;
}

.detail-quote {
    background: #fff;
    border-left: 4px solid #fca503;
    padding: 1.5rem;
    font-style: italic;
    color: #333;
    margin: 2.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.detail-quote strong {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
}

.back-link {
    margin-top: 3rem;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #000;
    text-decoration: none;
}

.back-link a i {
    color: #fca503;
}

@media (max-width: 1024px) {
    .profile-hero-grid {
        justify-content: center;
        text-align: center;
    }

    .profile-overview {
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-cta {
        justify-content: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .instructor-detail-hero {
        padding: 100px 0 40px;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .profile-overview h1 {
        font-size: 2.4rem;
    }

    .profile-overview p {
        font-size: 1rem;
    }

    .profile-meta .meta-item {
        min-width: 140px;
    }
}

.class-detail {
    max-width: 960px;
    padding: 2.5rem;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #000;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.class-detail-page-section {
    padding: 120px 0 100px;
    background: #f4f4f4;
}

.class-detail-page-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.class-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2.5rem;
}

.class-cta .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
}

.class-cta .btn-primary:hover {
    background: #fca503 !important;
    color: #000 !important;
    border: 2px solid #fca503 !important;
}

.class-cta .btn-secondary {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.class-cta .btn-secondary:hover {
    background: #000;
    color: #fff;
}

.class-detail-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.class-detail-title h2 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.class-detail-title p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 720px;
}

.class-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.metadata-item {
    background: #f7f7f7;
    border: 1px solid #000;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    min-width: 140px;
}

.metadata-item span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    margin-bottom: 0.25rem;
}

.metadata-item strong {
    font-size: 1.1rem;
    color: #000;
}

.class-detail-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.class-narrative p {
    margin-bottom: 1.1rem;
    color: #333;
    line-height: 1.8;
}

.class-narrative h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.class-resources {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.class-schedule h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.class-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.calendar-card {
    display: flex;
    border: 1px solid #000;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.calendar-date {
    background: #000;
    color: #fff;
    padding: 1.5rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.calendar-date .month {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.3rem;
}

.calendar-date .day {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.calendar-date .weekday {
    font-size: 0.85rem;
    text-transform: uppercase;
}

.calendar-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.calendar-info p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
}

.calendar-info .btn {
    align-self: flex-start;
    margin-top: 0.75rem;
}

.no-schedule {
    font-style: italic;
    color: #666;
}

@media (max-width: 900px) {
    .class-detail-body {
        grid-template-columns: 1fr;
    }

    .class-detail-title h2 {
        font-size: 2rem;
    }

    .class-detail-title p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .class-detail {
        padding: 2rem 1.5rem;
    }

    .calendar-card {
        flex-direction: column;
    }

    .calendar-date {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        border-radius: 16px 16px 0 0;
        min-width: unset;
    }
}
