:root {
    --bp-dark: #111111;
    --bp-light-gray: #F5F5F0;
    --bp-gold: #C9A227;
    --bp-dark-gold: #b8941f;
    --bp-white: #FFFFFF;
    --bp-medium-gray: #3A3A3A;
}

/* Prevent horizontal scrolling on mobile */
html, body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bp-white);
    color: var(--bp-dark-gray);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    width: 100%;
}

* {
    font-family: 'Montserrat', sans-serif;
}

/* Header font override */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
}

/* Custom styles for smoother transitions */
.header-transition {
    transition: all 0.3s ease-in-out;
}

/* Dropdown Menu Styles - FIXED */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 12px;
}

.dropdown-wrapper:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-wrapper:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Remove hover effects on dropdown button */
.dropdown-wrapper button {
    pointer-events: auto;
}

.dropdown-wrapper button:hover {
    background-color: transparent !important;
    color: inherit !important;
}

/* Specifically prevent color change on white text state */
#header.bg-transparent .dropdown-wrapper button:hover {
    color: white !important;
}

/* Specifically prevent color change on scrolled state */
#header.bg-white .dropdown-wrapper button:hover {
    color: #111827 !important;
}

/* Ensure dropdown works on scrolled header */
#header.bg-white .dropdown-menu {
    background-color: white;
}

#header.bg-white .dropdown-menu a {
    color: #374151;
}

/* Carousel styles - IMPROVED FOR SMOOTH TRANSITIONS */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Ensure text transitions smoothly */
.carousel-slide .text-center {
    transition: opacity 0.8s ease-in-out;
}

/* Rounded corners for boxes */
.subtle-rounded {
    border-radius: 8px;
}

/* Progress bar styles */
.progress-bar {
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

.progress-fill {
    height: 100%;
    background-color: var(--bp-gold);
    transition: width 5s linear;
}

/* CTA Box hover effects */
.cta-box:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Button styles */
.btn-outline-gold {
    border: 2px solid var(--bp-gold);
    color: var(--bp-gold);
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--bp-gold);
    color: var(--bp-dark);
}

.btn-outline-white {
    border: 2px solid var(--bp-white);
    color: var(--bp-white);
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: var(--bp-white);
    color: var(--bp-dark);
}

.btn-gold {
    background-color: var(--bp-gold);
    color: var(--bp-dark);
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--bp-dark-gold);
}

/* Section header with yellow bar - CENTERED */
.section-header {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    text-align: center;
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--bp-gold);
    margin: 10px auto 0;
}

/* About section specific styles */
.about-heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 34px;
    margin-bottom: 1.5rem;
    color: white;
}

.about-body-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Feature callouts styling */
.feature-callout {
    text-align: left;
}

.feature-callout-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
}

.feature-callout-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--bp-white);
    white-space: nowrap;
}

/* Feature item with decorative dash */
.feature-item {
    position: relative;
    padding-left: 0;
    text-align: left;
}

.feature-item .icon-wrapper {
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    position: relative;
    padding-left: 60px;
    white-space: normal;
    min-height: 3em;
}

.feature-item h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 40px;
    height: 2px;
    background-color: #666;
}

.feature-item p {
    padding-left: 60px;
    white-space: normal;
}

/* Dropdown animation */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.dropdown-content.open {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* Class carousel styles */
.class-card {
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.class-image-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.class-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.class-card:hover .class-image-wrapper::before {
    background-color: rgba(0, 0, 0, 0);
}

.class-image {
    transition: transform 0.3s ease;
}

.class-card:hover .class-image {
    transform: scale(1.05);
}

.class-nav-btn {
    transition: all 0.3s ease;
}

.class-nav-btn:hover {
    background-color: #d1d5db;
}

.class-nav-btn:hover svg {
    stroke: #333;
}

@media (min-width: 1024px) {
    .about-heading {
        font-size: 32px;
        line-height: 42px;
    }
}

/* ========================================
   ADDITIONAL STYLES FOR CLASSES PAGE
   ======================================== */

/* Tab button styles */
.tab-button {
    position: relative;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #d1d5db;
}

.tab-button:hover {
    color: var(--bp-gold);
}

.tab-button.active {
    border-bottom-color: var(--bp-gold);
    color: var(--bp-gold);
}

/* Tab content transitions */
.tab-content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Classes page specific adjustments */
.classes-page-header {
    background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7));
}

/* Ensure proper spacing for page content under fixed header */
body:not(.home) section:first-of-type {
    margin-top: 80px;
}

/* Class cards hover effect on classes page */
.class-type-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive tab buttons */
@media (max-width: 768px) {
    .tab-button {
        flex-grow: 1;
        text-align: center;
    }
    
    .tab-content h3 {
        font-size: 1.5rem;
    }
}

/* Video placeholder play button */
.video-play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(201, 162, 39, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-button:hover {
    background-color: rgba(201, 162, 39, 1);
    transform: scale(1.1);
}

/* Enhanced section header for classes page */
.page-section-header {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bp-gold);
    margin-bottom: 1rem;
}

/* Grid adjustments for class cards */
.class-grid-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.class-grid-item p {
    flex-grow: 1;
}

/* ========================================
   STYLES FOR CLASSES PAGE ACCORDION
   ======================================== */

.class-accordion-item .class-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.3s ease;
}

.class-accordion-item .class-accordion-toggle h3 {
    color: var(--bp-dark);
    transition: color 0.3s ease;
}

.class-accordion-item .class-accordion-toggle p {
    transition: color 0.3s ease;
}

.class-accordion-item .class-accordion-toggle:hover h3 {
    color: var(--bp-gold);
}

.class-accordion-item.active .class-accordion-toggle h3 {
    color: var(--bp-gold);
}

.class-accordion-item .accordion-icon {
    transition: transform 0.3s ease;
}

.class-accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.class-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding-left: 1rem;
    padding-right: 1rem;
}

.class-accordion-content.open {
    max-height: 200px;
}

#class-image-container .class-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

#class-image-container .class-image.active {
    opacity: 1;
}

/* ========================================
   STYLES FOR PRICING PAGE
   ======================================== */

.pricing-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--bp-medium-gray);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.pricing-nav-link:hover {
    color: var(--bp-dark);
    background-color: #e9e9e4;
}

.pricing-nav-link.active {
    color: var(--bp-gold);
    border-left-color: var(--bp-gold);
    background-color: #e9e9e4;
}

#pricing-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background-color: var(--bp-white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.pricing-card.hidden {
    display: none;
}

/* ========================================
   MOBILE MENU STYLES
   ======================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--bp-dark);
    z-index: 999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
    height: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: var(--bp-gold);
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    padding: 2rem 0;
}

.mobile-menu-nav a,
.mobile-menu-nav button {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--bp-gold);
}

/* Mobile Submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu a {
    padding-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-dropdown-arrow.active {
    transform: rotate(180deg);
}

/* Mobile CTA Button */
.mobile-menu-cta {
    margin: 1.5rem;
    padding: 1rem;
    background: var(--bp-gold);
    color: black;
    text-align: center;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.mobile-menu-cta:hover {
    background: var(--bp-dark-gold);
}

/* Hamburger Menu Icon Animation */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ensure body doesn't scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile-specific carousel adjustments */
@media (max-width: 768px) {
    .carousel-slide .text-center {
        padding-top: 140px !important;
    }
    
    .carousel-slide h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .carousel-slide p {
        font-size: 1rem !important;
    }
    
    /* Ensure all containers are properly contained */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix any grid overflows */
    .grid {
        overflow-x: hidden;
    }
}

.pricing-card-header {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.pricing-card-body {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--bp-dark);
}

.pricing-card-price {
    font-family: 'Raleway', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--bp-dark);
    margin: 0.5rem 0;
}

.pricing-card-price-meta {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
    margin-left: 0.25rem;
}

.pricing-card-description {
    color: #4b5563;
    min-height: 60px;
    margin-top: 0.5rem;
}

/* ========================================
   MOBILE MENU STYLES
   ======================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--bp-dark);
    z-index: 999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
    height: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: var(--bp-gold);
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    padding: 2rem 0;
}

.mobile-menu-nav a,
.mobile-menu-nav button {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--bp-gold);
}

/* Mobile Submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu a {
    padding-left: 2.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-dropdown-arrow.active {
    transform: rotate(180deg);
}

/* Mobile CTA Button */
.mobile-menu-cta {
    margin: 1.5rem;
    padding: 1rem;
    background: var(--bp-gold);
    color: black;
    text-align: center;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.mobile-menu-cta:hover {
    background: var(--bp-dark-gold);
}

/* Hamburger Menu Icon Animation */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ensure body doesn't scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile-specific carousel adjustments */
@media (max-width: 768px) {
    .carousel-slide .text-center {
        padding-top: 140px !important;
    }
    
    .carousel-slide h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .carousel-slide p {
        font-size: 1rem !important;
    }
    
    /* Ensure all containers are properly contained */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix any grid overflows */
    .grid {
        overflow-x: hidden;
    }
}

/* Additional mobile improvements */
@media (max-width: 768px) {
    /* Prevent elements from extending beyond viewport */
    img, video {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix header width on mobile */
    #header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Adjust carousel button spacing */
    .carousel-slide .flex {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    /* Better spacing for sections */
    section {
        overflow-x: hidden;
    }
}

/* Additional mobile fixes for smaller screens */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .pricing-card {
        padding: 1.5rem;
    }
    .about-heading {
        font-size: 2rem;
    }
    .feature-item h4 {
        font-size: 1.1rem;
    }
    .class-accordion-toggle h3 {
        font-size: 1.1rem;
    }
}

/* ========================================
   DESKTOP VS MOBILE NAVIGATION CONTROL
   This fixes the navigation display issues on actual mobile devices
   ======================================== */

/* Desktop navigation visible by default */
.desktop-nav {
    display: flex !important;
}

/* Mobile menu button styling */
.mobile-menu-button {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: inherit;
    z-index: 100;
}

.mobile-menu-button svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* On mobile (below 1024px), hide desktop nav and show mobile button */
@media screen and (max-width: 1023px) {
    /* Force hide desktop navigation */
    .desktop-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .desktop-nav * {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Show and style mobile menu button */
    .mobile-menu-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Ensure proper header layout on mobile */
    #header .flex {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Make sure logo area doesn't take too much space */
    #header .flex > div:first-child {
        max-width: 70%;
    }
}

/* Fix for very small mobile devices */
@media screen and (max-width: 480px) {
    #logo-text {
        font-size: 1.25rem !important;
    }
}
