/* Font optimization */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap; /* This ensures text remains visible during font loading */
  src: local('Roboto'), local('Roboto-Regular'), url(https://cdn.jsdelivr.net/npm/@fontsource/roboto@4.5.0/files/roboto-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Define RGB version of karate-red for opacity manipulations */
:root {
  --karate-red-rgb: 196, 30, 58;
}

:root {
    --karate-red: #c41e3a;
    --karate-black: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
}

/* Global fixes for orientation and scrolling on all devices */
html {
    overflow-x: hidden;
    position: relative;
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    padding-top: 76px;
    color: var(--text-primary);
    background: var(--karate-black);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    overscroll-behavior: none; /* Prevents bounce effect on some browsers */
    overflow-y: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Navigation Styles */
.navbar-custom {
    background-color: var(--karate-black);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; max-width: 100%;
    z-index: 9999;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Button Styles */
.faq-btn {
    transition: all 0.25s ease;
    order: -1; /* Make it appear first in the nav */
    position: relative;
    margin-top: 2px; /* Adjust vertical alignment with menu */
    margin-right: 15px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faq-btn:hover {
    color: white !important;
    background-color: rgba(var(--karate-red-rgb), 0.7) !important;
    border-color: var(--karate-red) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.faq-btn.active {
    background-color: var(--karate-red) !important;
    color: white !important;
    border-radius: 4px;
}

.faq-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .faq-btn {
        display: none !important;
    }
}

.navbar-custom .container {
    padding: 0.35rem 1rem;
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .navbar-nav {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 10px; /* Increased space between menu items */
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.8rem !important; /* Increased padding for better tap targets */
        letter-spacing: normal;
        font-size: 1.1rem; /* Slightly larger font */
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(160, 24, 48, 0.1); /* Light red background on hover */
    }
    
    .navbar-nav .nav-link.active {
        background-color: rgba(160, 24, 48, 0.2); /* Slightly darker red for active item */
        color: var(--karate-red) !important;
        font-weight: 500;
    }
    
    .navbar-nav .nav-link:active {
        transform: scale(0.98);
        background-color: rgba(160, 24, 48, 0.3); /* Even darker when pressed */
    }
}

/* Desktop Nav Links */
@media (min-width: 993px) {
    .navbar-nav .nav-link {
        color: white;
        transition: color 0.2s ease-in-out;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--karate-red);
    }
}

/* Desktop Navigation Menu - Active State for Desktop View */
@media (min-width: 993px) {
    /* Style for active menu items in desktop view (red background) */
    .navbar-nav .nav-link.active:not(.trial-btn) {
        background-color: var(--karate-red);
        color: white !important;
        border-radius: 4px;
    }
    
    /* Ensure the trial button doesn't get the active red background */
    .navbar-nav .nav-link.trial-btn.active {
        background-color: var(--karate-red);
    }
    
    /* Padding adjustments for the desktop nav links */
    .navbar-nav .nav-link {
        padding: 0.4rem 0.8rem;
        transition: all 0.2s ease-in-out;
    }
}

/* Trial Button */
.trial-btn {
    background-color: var(--karate-red);
    border-radius: 10px;
    padding: 0.2rem 0.6rem !important;
    margin: 0.35rem 0.75rem;
    color: white !important;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: auto;
}

.trial-btn.active {
    background-color: var(--karate-black);
}

.trial-btn i {
    font-size: 0.75rem;
    margin-right: 0.3rem;
}

/* Language Switcher */
.language-switcher {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    margin-left: 0.5rem;
}

.language-switcher:hover {
    color: var(--karate-red) !important;
    border-color: var(--karate-red);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--karate-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;\n    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Gallery Modal and Image Optimizations */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%; max-width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    cursor: default;\n    z-index: 10;
}

.modal-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 95%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: relative;
    object-fit: contain;
    cursor: default;
    transform-origin: center;
    touch-action: pinch-zoom;
    opacity: 1;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
    z-index: 10;
}

/* Modal click zones for desktop mouse navigation */
.modal-click-zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40%;
    z-index: 5;
    cursor: default;\n    z-index: 10;
}

.modal-click-left {
    left: 0;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><path d='M15 18l-6-6 6-6'/></svg>") 16 16, w-resize;
}

.modal-click-right {
    right: 0;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><path d='M9 18l6-6-6-6'/></svg>") 16 16, e-resize;
}

.close-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    cursor: default;\n    z-index: 10;
    z-index: 2500;
    background-color: var(--karate-red);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close-button:hover {
    transform: translateX(-50%) scale(1.1);
    background-color: #a01830;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--karate-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;\n    z-index: 10;
    transition: all 0.3s ease;
    z-index: 2001;
    opacity: 0.8;
}

.modal-nav:hover {
    opacity: 1;
    background: var(--karate-red);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

/* Gallery Images */
.gallery-img {
    height: 300px;
    width: 100%; max-width: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
    cursor: default;\n    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    loading: lazy;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Preload Container */
#preloadContainer {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Mobile Optimizations */

@media (max-width: 576px) {
    .gallery-img {
        height: 250px;
        width: 100%; max-width: 100%;
        margin: 0 auto 1rem auto;
        object-fit: contain;
    }

    .gallery-modal {
        padding: 10px;
    }

    .modal-image {
        max-width: 95%;
        object-fit: contain;
    }
}

/* Card Styles */
.class-card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
    cursor: default;\n    z-index: 10;
    overflow: hidden;
    position: relative;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--karate-red) 0%, transparent 200%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.class-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(196, 30, 58, 0.2);
    border-color: var(--karate-red);
}

.class-card:hover::before {
    opacity: 0.15;
}

.class-card .card-body {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.class-card:hover .card-body {
    transform: scale(1.02);
}

.class-card .card-title {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.class-card:hover .card-title {
    color: var(--karate-red);
    text-shadow: 0 0 10px rgba(196, 30, 58, 0.3);
}

.class-card .card-text {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.class-card:hover .card-text {
    color: rgba(255, 255, 255, 1);
}

/* Form Styling */
/* Form Container Spacing */
#bookingForm,
#contactForm {
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

/* Form Controls - Consistent Spacing */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    width: 100%; max-width: 100%;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--karate-red);
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.2);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Date Input Styling */
input[type="date"].form-control,
input[type="text"].form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Ensure placeholder is visible on mobile */
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: rgba(255, 255, 255, 0.6);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: default;\n    z-index: 10;
}

/* Handle empty state placeholder */
input[type="date"]:not(:focus):before {
    content: attr(placeholder);
    color: rgba(255, 255, 255, 0.6);
    position: absolute;
    pointer-events: none;
}

input[type="date"]:focus:before,
input[type="date"]:valid:before {
    display: none;
}

/* Mobile specific adjustments */
@media (max-width: 576px) {
    input[type="date"].form-control,
    input[type="text"].form-control {
        font-size: 16px;
    }

    input[type="date"]:not(:focus):before {
        font-size: 16px;
    }
}

/* Mobile Form Adjustments */
@media (max-width: 576px) {
    #bookingForm,
    #contactForm {
        padding: 1.5rem;
        margin: 0;
        width: 100%; max-width: 100%;
        margin-bottom: 2rem;
    }

    .col-lg-6 {
        padding: 0 1rem;
    }

    .form-control {
        margin-bottom: 1.25rem;
        width: 100%; max-width: 100%;
    }

    .mb-3 {
        margin-bottom: 1.25rem !important;
        padding: 0;
    }

    textarea.form-control {
        min-height: 120px;
    }

    .iti {
        margin-bottom: 1.25rem;
        width: 100%; max-width: 100%;
    }

    /* Ensure button is fully visible */
    button[type="submit"] {
        margin-bottom: 0.5rem;
    }
}

/* Contact Section Specific */
#contact .row {
    margin: 0;
}

@media (max-width: 576px) {
    #contact .container {
        padding: 0;
    }

    #contact .row>[class*='col-'] {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
}

/* Phone Input Specific Styling */
.iti {
    width: 100%; max-width: 100%;
    margin-bottom: 1.5rem;
    display: block;
}

.iti__selected-flag {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px 0 0 8px;
}

/* Fix for flag display */
.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags.png") !important;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags@2x.png") !important;
    }
}

.iti__country-list {
    background-color: var(--karate-black) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary) !important;
    max-height: 200px;
}

.iti__country {
    padding: 8px 10px !important;
}

.iti__country:hover {
    background-color: var(--karate-red) !important;
}

.iti__country.iti__highlight {
    background-color: var(--karate-red) !important;
}

.iti__country-name,
.iti__dial-code {
    color: var(--text-primary) !important;
}

input[type="tel"].form-control {
    margin-bottom: 0; /* Keep at 0 as we're using container margin */
    padding-left: 90px !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Form validation styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--karate-red) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%; max-width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8em;
    color: var(--karate-red);
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


/* Section Styling - adding specific background for classes section */
#classes {
    background: var(--karate-black);
    padding: 5rem 0;
    position: relative;
}

#classes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.97) 0%, rgba(30, 30, 30, 0.95) 100%);
    z-index: 0;
}

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

/* Section Styling */
.section-title {
    color: var(--karate-red);
    border-left: 4px solid var(--karate-red);
    padding-left: 1rem;
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--karate-red);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

/* CTA Button */
.cta-button {
    background-color: var(--karate-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #a01830;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section - UPDATED */
.hero-section {
    background: url('../assets/images/school.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 80vh;
    color: white;
    padding: 2rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slowZoom 20s infinite alternate;
    overflow: hidden;
}

@keyframes slowZoom {
    from {
        background-size: 100% !important;
    }
    to {
        background-size: 110% !important;
    }
}

/* Enhanced overlay for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Hero Section Mobile Adjustments */

/* Even smaller screens */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem;
    }

    .hero-section p {
        font-size: 0.9rem !important;
    }
}

/* Modal Navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--karate-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;\n    z-index: 10;
    transition: all 0.3s ease;
    z-index: 2001;
    opacity: 0.8;
}

.modal-nav:hover {
    opacity: 1;
    background: var(--karate-red);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}



/* Contact Info Sections */
.contact-info {
    background: linear-gradient(135deg, var(--karate-black) 0%, #2c3e50 100%);
    color: white;
    position: relative;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.contact-info h4 {
    color: var(--karate-red);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info > div {
    margin-bottom: 1.75rem;
    padding-bottom: 0;
}

.contact-info > div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}


.contact-info a {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: default;\n    z-index: 10;
}

.contact-info a:hover {
    color: var(--karate-red) !important;
    transform: translateY(-1px);
}

.contact-info p {
    color: white;
}

/* Social Links */
.social-links {
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced gap for closer icons */
    justify-content: flex-start;
}

.social-links a {
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px; /* Reduced size for better consistency */
    height: 40px; /* Reduced size for better consistency */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: default;\n    z-index: 10;
}

.social-links a:hover {
    color: var(--karate-red);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.social-links .fab {
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
}

/* Chat Buttons */
.chat-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
    width: 100%; max-width: 100%;
}

.chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    background-color: var(--karate-red);
    height: 44px;
    width: 300px; /* Fixed width for all buttons */
    cursor: default;\n    z-index: 10;
}

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

.chat-btn:hover {
    transform: translateY(-2px);
    background-color: rgba(196, 30, 58, 0.8);
}

.chat-btn:hover,
.chat-btn:hover span {
    color: #000 !important;
}



@media (max-width: 576px) {
    .gallery-img {
        height: 250px;
        width: 100%; max-width: 100%;
        margin: 0 auto 1rem auto;
        object-fit: contain;
    }

    .gallery-modal {
        padding: 10px;
    }
    .gallery-modal img {
        max-width: 95%;
        object-fit: contain;
    }
    .language-switcher {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem !important;
        text-align: center;
        width: 48px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.language-switch-container {
    display: flex;
    align-items: center;
}

.language-switcher .fas {
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

.dropdown-menu {
    min-width: 120px;
    margintop: 0.5rem;
    padding: 0;
    background-color: var(--karate-black);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0, 0.2);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--karate-red);
    color: white;
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .language-switch-container {
        margin-right: 0;
        justify-content: center;
    }
}

.social-links a {
    color: white;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--karate-red);
}

html {
    scroll-behavior: smooth;
}

.contact-info a[href^="tel"] {
    color: white;
}

.contact-info a[href^="mailto"] {
    color: white;
}

* {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%; max-width: 100%;
    height: auto;
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--karate-red);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    cursor: default;\n    z-index: 10;
}

.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: var(--karate-red);
}


/* Form Controls - Dark Theme for Dropdowns */
select.form-control {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: default;\n    z-index: 10;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

select.form-control option {
    background: rgba(26, 26, 26, 0.95);
    color: var(--text-primary);
    padding: 1rem;
}

select.form-control:focus {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--karate-red);
    boxshadow: 0 0 0 2px rgba(196, 30, 58, 0.2);
    color: var(--text-primary);
}

/* Class Schedule Styling */
.schedule-info {
    margin-top: 1rem;
}

.schedule-days {
    color: var(--text-primary);
    font-size: 0.95rem;
    opacity: 0.9;
}

.schedule-time {
    color: var(--karate-red);
    font-weight: 600;
    font-size: 1.1rem;
}

.class-card:hover .schedule-time {
    color: var(--text-primary);
}

/* Trial booking section styling */
#trial-booking {
    padding: 5rem 0;
}

#trial-booking .row {
    --bs-gutter-x: 3rem;
}

.booking-info {
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-info h4 {
    color: var(--karate-red);
    margin-bottom: 1.5rem;
}

.booking-info ul li {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    #trial-booking .booking-info {
        margin-top: 3rem;
        padding: 1.5rem;
    }
}

@media (min-width: 992px) {
    #trial-booking .booking-info {
        margin-left: 2rem;
    }
}

/* Additional validation styling */
input[type="tel"].form-control:invalid {
    border-color: var(--karate-red);
}

/* Phone Input Placeholder Adjustment */
.form-control[data-translate-placeholder="Your Phone Number"],
.form-control[data-translate-placeholder="Το τηλέφωνο σου"] {
    text-indent: 1rem;
}

/* Certificates Floating Button */
.certificates-floating-btn {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: var(--karate-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;\n    z-index: 10;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.certificates-floating-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.certificates-floating-btn:hover {
    transform: scale(1.1);
    background-color: #a01830;
}

.certificates-floating-btn:hover i {
    transform: rotate(360deg);
}

.certificates-floating-btn .hover-text {
    position: absolute;
    right: 50px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.certificates-floating-btn:hover .hover-text {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 576px) {
    .certificates-floating-btn .hover-text {
        display: none;
    }
}

/* Benefits Section Styling */
.benefit-card {
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 10px; /* Reduced from 12px */
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Reduced shadow */
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(196, 30, 58, 0.3);
}

.benefit-icon {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    color: var(--karate-red);
    margin-bottom: 1.2rem; /* Reduced from 1.5rem */
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-title {
    color: var(--karate-red);
    margin-bottom: 1rem; /* Reduced from 1.25rem */
    font-weight: 600;
    position: relative;
    padding-bottom: 0.6rem; /* Reduced from 0.75rem */
    font-size: 1.2rem; /* Added smaller font size */
}

.benefit-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--karate-red);
    transition: width 0.3s ease;
}

.benefit-card:hover .benefit-title:after {
    width: 80px;
}

.benefit-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.benefit-list li {
    margin-bottom: 0.6rem; /* Reduced from 0.75rem */
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem; /* Added smaller font size */
}

.benefit-list li:last-child {
    margin-bottom: 0;
}

.benefit-list li i {
    color: var(--karate-red);
    margin-right: 0.5rem; /* Reduced from 0.75rem */
    font-size: 0.8rem; /* Reduced from 0.9rem */
    margin-top: 0.25rem;
}

/* FAQ Section Styling */
.accordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.accordion-item {
    background-color: rgba(25, 25, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.accordion-item:first-of-type {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.accordion-item:last-of-type {
    margin-bottom: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.accordion-button {
    background-color: rgba(25, 25, 25, 0.95);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem;
    font-size: 1.1rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    color: var(--karate-red);
    background-color: rgba(25, 25, 25, 0.98);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.accordion-button:focus {
    border-color: rgba(196, 30, 58, 0.3);
    box-shadow: 0 0 0 0.25rem rgba(196, 30, 58, 0.15);
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    padding: 1.5rem;
    background-color: rgba(30, 30, 30, 0.95);
    color: var(--text-primary);
}

/* Fix for dark mode accordion */
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c41e3a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}


/* Certificates Modal - Simplified and Fixed */
.certificates-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; max-width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    zindex: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.certificates-modal-content {
    background: var(--karate-black);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-top: 100px;
}

.certificates-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--karate-black);
    padding: 20px;
    z-index: 2001;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.certificates-modal-header h4 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.certificates-modal-body {
    padding: 20px;
    margin: 0 auto;
    max-width: 900px;
}

.certificate-item {
    margin-bottom: 30px;
    background: var(--karate-black);
    border-radius: 8px;
    overflow: hidden;
}

.certificate-item h5 {
    color: var(--karate-red);
    margin: 0;
    padding: 15px;
    background: var(--karate-black);
    font-weight: 600;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.certificate-image {
    width: 100%; max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0 0 8px 8px;
    /* Copy protection */
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    filter: opacity(0.99);
    position: relative;
    z-index: 1;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .certificates-modal-header {
        padding: 15px;
    }

    .certificates-modal-header h4 {
        font-size: 1.2rem;
    }

    .certificates-modal-content {
        padding-top: 90px;
    }

    .certificates-modal-body {
        padding: 15px;
    }

    .certificate-item {
        margin-bottom: 30px;
    }

    .certificate-item:last-child {
        margin-bottom: 60px;
    }
}

/* Karate Info Section */
.karate-info {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98) 0%, rgba(40, 40, 40, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.karate-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.15);
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.98) 0%, rgba(45, 45, 45, 0.95) 100%);
}

.karate-info h3 {
    color: var(--karate-red);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

.karate-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--karate-red);
    transition: width 0.3s ease;
}

.karate-info:hover h3::after {
    width: 120px;
}

.karate-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

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

.karate-text p {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.karate-text p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.karate-text p::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--karate-red);
    margin-right: 1rem;
    opacity: 0.8;
}

/* Karate Text Icons */
.karate-text p:nth-child(1)::before {
    content: "\f005"; /* star */
}

.karate-text p:nth-child(2)::before {
    content: "\f6de"; /* fist */
}

.karate-text p:nth-child(3)::before {
    content: "\f21e"; /* heartbeat */
}

.karate-text p:nth-child(4)::before {
    content: "\f554"; /* balance */
}

.karate-text p:nth-child(5)::before {
    content: "\f091"; /* trophy */
}


/* About Section Enhanced Styling */
.about-section {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(30, 30, 30, 0.95));
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.3), transparent);
}

.about-section:hover {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.97), rgba(35, 35, 35, 0.97));
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.15);
    border-color: rgba(196, 30, 58, 0.2);
}

.section-subtitle {
    color: var(--karate-red);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(196, 30, 58, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.section-subtitle i {
    font-size: 1.5rem;
    color: var(--karate-red);
    transition: transform 0.3s ease;
}

.about-section:hover .section-subtitle i {
    transform: scale(1.1);
}

.feature-title {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin: 2rem 0 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid var(--karate-red);
}

.feature-title i {
    color: var(--karate-red);
    font-size: 1.2rem;
}

.about-content {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 0 1rem;
}

.highlight-text {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.2rem;
    border-left: 3px solid var(--karate-red);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.highlight-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--karate-red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.about-section:hover .highlight-text::before {
    transform: scaleY(1);
}

.feature-list, .achievement-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li, .achievement-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li:hover, .achievement-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-list li i, .achievement-list li i {
    color: var(--karate-red);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    transition: transform 0.3s ease;
}

.feature-list li:hover i, .achievement-list li:hover i {
    transform: scale(1.1);
}

/* Mobile Responsive Adjustments */
@media (max-width: 576px) {
    /* Smaller benefit cards on mobile */
    .benefit-card {
        padding: 1.2rem 1rem;
    }
    
    .benefit-icon {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .benefit-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.5rem;
    }
    
    .benefit-list li {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }
    
    .benefit-list li i {
        font-size: 0.75rem;
        margin-right: 0.4rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

/* Footer Powered By */
.powered-by {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.developer-link {
    color: var(--karate-red) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: default;\n    z-index: 10;
}

.developer-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Date Picker Styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: default;\n    z-index: 10;
}

/* Disabled date styling */
input[type="date"].form-control[disabled],
input[type="date"].form-control:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

input[type="date"]::-webkit-datetime-edit {
    color: var(--text-primary);
}

/* Custom styling for disabled dates */
.date-disabled {
    color: rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed !important;
}

/* Allow text selection in form inputs */
input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Make sure links remain clickable */
a {
    cursor: default;\n    z-index: 10;
}
/* Mobile FAQ Link */
.mobile-faq-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white !important;
    text-decoration: none;
}

.mobile-faq-link:hover, .mobile-faq-link:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    text-decoration: none;
}

.mobile-faq-link:active {
    transform: scale(0.95);
}

.mobile-faq-link i {
    margin-right: 0.3rem;
}
/* Completely restructured mobile navigation */
@media (max-width: 992px) {
    /* Mobile menu container */
    .mobile-nav-controls {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        background-color: var(--karate-black);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Top row with special action buttons */
    .mobile-top-row {
        width: 100%;
        padding: 0.5rem 0.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Common style for all action buttons */
    .mobile-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
        text-decoration: none;
        color: white;
        border-radius: 4px;
        transition: all 0.2s;
    }
    
    .mobile-action-btn i {
        margin-right: 0.2rem;
        font-size: 0.8rem;
    }
    
    /* Specific styles for each button */
    .mobile-faq-btn {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-trial-btn {
        background-color: var(--karate-red);
    }
    
    .language-switcher {
        background-color: transparent;
        border: none;
        color: white;
    }
    
    /* Main navigation in mobile view */
    .mobile-main-nav {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0.4rem 0.25rem;
    }
    
    .mobile-nav-item {
        font-size: 0.7rem;
        color: white;
        text-decoration: none;
        padding: 0.25rem 0.1rem;
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
    
    .mobile-nav-item:hover, .mobile-nav-item:focus {
        color: var(--karate-red);
        text-decoration: none;
    }
    
    /* Hide the regular navbar-nav on mobile */
    .navbar-nav {
        display: none !important;
    }
    
    /* Fix for Greek language - make font slightly smaller */
    html[lang="el"] .mobile-nav-item,
    html[lang="el"] .mobile-action-btn {
        font-size: 0.65rem;
        letter-spacing: -0.02em;
    }
}
/* Two-row mobile menu design */
@media (max-width: 992px) {
    /* Container for the entire mobile menu */
    .mobile-menu-container {
        width: 100%;
        padding: 0;
        background-color: var(--karate-black);
    }
    
    /* Top row with action buttons */
    .mobile-actions-row {
        width: 100%;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Common styles for action buttons */
    .mobile-action-btn {
        display: flex;
        align-items: center;
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
        border-radius: 4px;
        color: white;
        text-decoration: none;
        transition: transform 0.1s;
    }
    
    .mobile-action-btn i {
        margin-right: 0.3rem;
        font-size: 0.8rem;
    }
    
    /* Regular action button */
    .mobile-action-btn:not(.trial-btn):not(.language-btn) {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    
    /* Trial button specific styles */
    .mobile-action-btn.trial-btn {
        background-color: var(--karate-red);
        padding: 0.25rem 0.7rem;
        min-height: 32px;
        border-radius: 8px;
        font-weight: 500;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    /* Language button specific styles */
    .mobile-action-btn.language-btn {
        background: transparent;
        border: none;
        padding: 0.35rem 0.5rem;
    }
    
    /* Bottom row with main navigation */
    .mobile-nav-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 0.25rem;
    }
    
    /* Navigation links */
    .mobile-nav-link {
        flex: 1;
        color: white;
        text-align: center;
        font-size: 0.75rem;
        padding: 0.35rem 0.1rem;
        text-decoration: none;
        transition: color 0.2s;
    }
    
    .mobile-nav-link:hover, 
    .mobile-nav-link:focus {
        color: var(--karate-red);
        text-decoration: none;
    }
    
    /* Adjustments for Greek language */
    html[lang="el"] .mobile-nav-link,
    html[lang="el"] .mobile-action-btn {
        font-size: 0.65rem;
        letter-spacing: -0.03em;
    }
    
    /* Use FAQ abbreviation for Greek to prevent wrapping */
    /* This is handled in translations.js by setting 'FAQ_btn' to 'FAQ' */
}
/* Desktop trial button at the same size */
.navbar-nav .trial-btn {
    background-color: var(--karate-red);
    border-radius: 8px;
    padding: 0.25rem 0.7rem !important;
    margin: 0.35rem 0.75rem;
    color: white !important;
    font-weight: 500;
    min-height: 32px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
/* Mobile trial button enhancements */
.mobile-action-btn.trial-btn {
    padding: 0.25rem 0.8rem !important;
    min-height: 32px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    font-size: 0.8rem !important;
}

/* Desktop trial button consistency */
.navbar-nav .trial-btn {
    padding: 0.25rem 0.8rem !important;
    min-height: 32px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    font-size: 0.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Consistent icon sizing for trial buttons */
.trial-btn i, .mobile-action-btn.trial-btn i {
    font-size: 0.8rem !important;
    margin-right: 0.35rem !important;
}

/* Trial button hover effect */
.trial-btn:hover, .mobile-action-btn.trial-btn:hover {
    background-color: #a01830 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
}
/* Tablet menu improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Make tablet menu text a bit larger */
    .mobile-nav-link {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.25rem !important;
    }
    
    /* Increase action button size for tablets */
    .mobile-action-btn {
        font-size: 0.9rem !important;
        padding: 0.45rem 0.9rem !important;
    }
    
    /* Add more space to tablet menu rows */
    .mobile-actions-row {
        padding: 0.65rem 1.25rem !important;
    }
    
    .mobile-nav-row {
        padding: 0.65rem 0.5rem !important;
    }
    
    /* Trial button on tablet */
    .mobile-action-btn.trial-btn {
        padding: 0.45rem 1rem !important; 
        font-size: 0.9rem !important;
    }
    
    /* Greek text adjustments for tablets */
    html[lang="el"] .mobile-nav-link,
    html[lang="el"] .mobile-action-btn {
        font-size: 0.8rem !important;
    }
}

/* Desktop Nav Links */
@media (min-width: 993px) {
    .navbar-nav .nav-link {
        color: white;
        transition: color 0.2s ease-in-out;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--karate-red);
    }
}

/* Modal click zones for desktop mouse navigation */
.modal-click-zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40%;
    z-index: 5;
    cursor: default;\n    z-index: 10;
}

.modal-click-left {
    left: 0;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><path d='M15 18l-6-6 6-6'/></svg>") 16 16, w-resize;
}

.modal-click-right {
    right: 0;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><path d='M9 18l6-6-6-6'/></svg>") 16 16, e-resize;
}

/* Fix for flag display */
.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags.png") !important;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags@2x.png") !important;
    }
}

@media (max-width: 768px) {
    /* Improved mobile navbar spacing */
    .navbar-custom {
        padding: 0;
    }

    .navbar-custom .container {
        padding: 0.35rem 0.75rem;
    }

    /* Mobile specific menu controls with improved spacing */
    .mobile-nav-controls {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%; max-width: 100%;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-controls .trial-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background-color: var(--karate-red);
        border-radius: 6px;
        color: white !important;
        text-decoration: none;
        white-space: nowrap;
    }

    .mobile-nav-controls .trial-btn i {
        font-size: 0.85rem;
    }

    .mobile-nav-controls .language-switcher {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem !important;
        min-height: 36px;
        display: flex;
        align-items: center;
        width: 52px;
        justify-content: center;
        margin: 0;
    }

    .mobile-nav-controls .w-25 {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
    }

    .mobile-nav-controls .w-25:last-child {
        justify-content: flex-end;
    }

    /* Improve navbar toggler sizing and spacing */
    .navbar-light .navbar-toggler {
        padding: 0.375rem 0.5rem;
        border-color: rgba(255, 255, 255, 0.2);
        margin-right: 0.25rem;
    }

    .navbar-toggler-icon {
        width: 1.25em;
        height: 1.25em;
    }

    /* Improve mobile menu items spacing */
    .navbar-nav {
        padding: 0.75rem 0.5rem;
        gap: 0.25rem;
    }

    .navbar-nav .nav-item {
        margin: 0;
        padding: 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 575.98px) {
    .mobile-nav-controls {
        padding: 0.375rem 0.5rem;
    }

    .mobile-nav-controls .trial-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        min-height: 32px;
    }

    .mobile-nav-controls .language-switcher {
        font-size: 0.75rem;
        min-height: 32px;
        width: 46px;
    }

    .navbar-custom .container {
        padding: 0.25rem 0.5rem;
    }

    .navbar-light .navbar-toggler {
        padding: 0.25rem 0.375rem;
    }

    .navbar-toggler-icon {
        width: 1.1em;
        height: 1.1em;
    }
}

/* About Section - Mobile Optimizations */
@media (max-width: 768px) {
    /* Reduced padding for mobile */
    .about-section {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    /* Smaller titles on mobile */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle i {
        font-size: 1.25rem;
    }
    
    /* Smaller text on mobile */
    .about-content {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }
    
    /* Adjustments for feature lists */
    .feature-list li, .achievement-list li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        padding-left: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-title i {
        font-size: 1rem;
    }
    
    .highlight-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Further refinements for extra small screens */
@media (max-width: 575.98px) {
    .about-section {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.15rem;
    }
    
    .about-content {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0;
    }
    
    .feature-list li, .achievement-list li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    /* More compact lists */
    .feature-list, .achievement-list {
        padding-left: 0.5rem;
    }
}

/* Classes Section - Mobile Optimizations */
@media (max-width: 768px) {
    /* Class cards */
    .class-card {
        margin-bottom: 1rem;
    }
    
    .class-card .card-body {
        padding: 1.25rem;
    }
    
    .class-card .card-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .schedule-info {
        font-size: 0.9rem;
    }
    
    .schedule-days, .schedule-time {
        margin-bottom: 0.25rem !important;
    }
    
    /* Reduce vertical spacing between elements */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.25rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
}

/* FAQ Section - Mobile Optimizations */
@media (max-width: 768px) {
    .accordion-button {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body p {
        margin-bottom: 0.5rem;
    }
}

/* Trial Booking and Contact Forms - Mobile Optimizations */
@media (max-width: 768px) {
    .booking-form .form-control,
    .contact-form .form-control {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    
    .booking-message,
    .contact-message {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .cta-button {
        font-size: 0.95rem;
        padding: 0.5rem 1.25rem;
    }
}

/* Belt Display Section - Mobile Optimizations */
@media (max-width: 768px) {
    .belt-info h3 {
        font-size: 1.25rem;
    }
    
    .belt-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Gallery Section - Mobile Optimizations */
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 0.75rem;
    }
    
    .gallery-modal-content {
        padding: 0.75rem;
    }
    
    .gallery-nav-buttons {
        opacity: 1;
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 575.98px) {
    /* Reduce section padding further */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Smaller headings */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem !important;
    }
    
    /* Smaller card titles */
    .card-title {
        font-size: 1.15rem;
    }
    
    /* Smaller text in all sections */
    p, .schedule-info, .feature-list li, .accordion-body {
        font-size: 0.85rem;
    }
    
    /* Adjust form elements */
    .form-control {
        font-size: 0.9rem !important;
    }
    
    /* Make buttons more compact */
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* Hero Section - Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1.25rem;
        margin: 0.25rem;
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    
    /* Better navbar toggler for very small screens */
    .navbar-toggler {
        padding: 0.2rem 0.35rem;
    }
    
    .navbar-toggler-icon {
        width: 1em;
        height: 1em;
    }
    
    /* Custom scroll offset for small devices to account for smaller header */
    html {
        scroll-padding-top: 100px;
    }
}

/* Super small devices optimization */
@media (max-width: 359.98px) {
    .mobile-nav-controls .trial-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        min-height: 30px;
    }
    
    .mobile-nav-controls .language-switcher {
        font-size: 0.7rem;
        min-height: 30px;
        width: 42px;
    }
    
    .navbar-brand img {
        max-height: 30px;
    }
    
    /* Custom scroll offset for super small devices */
    html {
        scroll-padding-top: 85px;
    }
}

/* Form spinner */
.form-spinner {
    display: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #cc0000;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
    vertical-align: middle;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes form-spin {
    to {transform: rotate(360deg);}
}

.sending {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Form button spinner styles */
.form-spinner {
    visibility: hidden;
    opacity: 0;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.form-spinner.active {
    visibility: visible;
    opacity: 1;
    animation: spinner-rotate 0.8s linear infinite;
}

.button-content.loading span[data-translate] {
    opacity: 0.7;
}

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


/* Form button spinner styles */
.form-spinner {
    visibility: hidden;
    opacity: 0;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.form-spinner.active {
    visibility: visible;
    opacity: 1;
    animation: spinner-rotate 0.8s linear infinite;
}

.button-content.loading span[data-translate] {
    opacity: 0.7;
}

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