/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

:root {
    --primary: #BB9B4F;
    --secondary: #A47E5B;
    --tertiary: #B4A28A;
    --background-light: #F4F1EC;
    --surface-light: #FFFDF9;
    --surface-dark: #3D342E;
    --text-light: #4a4a4a;
    --text-dark: #E6DCCA;
    --soft-sand: #DCCBB8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(187, 155, 79, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(187, 155, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(187, 155, 79, 0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

.animate-fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.pulse-button {
    animation: pulse 2s infinite;
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Button Loader */
.button-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Navigation */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link {
    color: var(--text-light);
}

#navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

#navbar.scrolled #mobileMenuBtn {
    color: var(--text-light);
}

/* Hero Section */
#hero {
    position: relative;
}

#hero img.object-cover {
    object-position: center 30%;
}

/* Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* Testimonials */
.testimonials-container {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonials-track {
    width: max-content;
}

/* Gallery */
.gallery-item {
    position: relative;
}

.gallery-item img {
    aspect-ratio: 1;
    object-fit: cover;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.schedule-table th {
    background: var(--primary);
    color: white;
    padding: 15px 10px;
    font-weight: 600;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.schedule-table th:first-child {
    border-radius: 10px 0 0 0;
}

.schedule-table th:last-child {
    border-radius: 0 10px 0 0;
}

.schedule-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid var(--soft-sand);
    vertical-align: top;
}

.schedule-table tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

.schedule-table tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

.schedule-table tbody tr:hover {
    background: rgba(187, 155, 79, 0.05);
}

.schedule-item {
    background: var(--primary);
    color: white;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
}

.schedule-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(187, 155, 79, 0.3);
}

.schedule-item .lesson-name {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.schedule-item .lesson-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.schedule-item .lesson-instructor {
    display: block;
    font-size: 0.65rem;
    opacity: 0.8;
    font-style: italic;
}

.schedule-item .lesson-booking {
    display: block;
    font-size: 0.65rem;
    margin-top: 3px;
    color: #FFD700;
    font-weight: 600;
}

.schedule-item .lesson-booking i {
    margin-right: 3px;
}

.schedule-item .lesson-spots {
    display: block;
    font-size: 0.65rem;
    margin-top: 3px;
    opacity: 0.85;
    font-weight: 500;
}

.schedule-item .lesson-spots.spots-low {
    color: #FFD700;
}

.schedule-item .lesson-spots.spots-full {
    color: #ff6b6b;
}

.schedule-item-full {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.schedule-item-full:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.event-card-header {
    background: var(--primary);
    color: white;
    padding: 20px;
}

.event-card-body {
    padding: 20px;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

.event-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 10px 0;
}

.event-description {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.6;
}

.event-price {
    display: inline-block;
    background: var(--background-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary);
}

.event-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--soft-sand);
}

.event-signup-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-spots {
    font-size: 13px;
    color: #34c759;
    font-weight: 500;
}

.event-spots.spots-low {
    color: #ff9500;
}

.event-spots.spots-full {
    color: #ff3b30;
}

.event-signup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.event-signup-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.event-signup-btn-disabled {
    background: #ccc;
    cursor: not-allowed;
}

.event-signup-btn-disabled:hover {
    background: #ccc;
    transform: none;
}

/* Event Image Carousel */
.event-images-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--background-light);
}

.event-images-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-image.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Event Instructor Link */
.event-instructor-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 10px;
    padding: 6px 12px;
    background: var(--background-light);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.event-instructor-link:hover {
    background: var(--soft-sand);
    color: var(--secondary);
}

.event-instructor-link i:last-child {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Event Description Show More */
.event-short-description {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 500;
}

.event-full-description {
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease;
}

.event-full-description.collapsed {
    max-height: 0;
    margin-top: 0;
}

.event-full-description.expanded {
    max-height: 3000px;
    margin-top: 12px;
}

.event-full-description p {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.75;
    line-height: 1.7;
    padding: 12px;
    background: var(--background-light);
    border-radius: 8px;
}

.event-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--soft-sand);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
}

.event-show-more:hover {
    background: var(--background-light);
    border-color: var(--primary);
}

.event-show-more .show-more-text {
    display: inline;
}

.event-show-more .show-less-text {
    display: none;
}

.event-show-more i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.event-show-more.expanded .show-more-text {
    display: none;
}

.event-show-more.expanded .show-less-text {
    display: inline;
}

.event-show-more.expanded i {
    transform: rotate(180deg);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    opacity: 0.7;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--soft-sand);
}

/* ============================================
   iOS Calendar Style Mobile View (Collapsible)
   ============================================ */

.ios-calendar {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.ios-day-section {
    border-bottom: 1px solid #f0f0f0;
}

.ios-day-section:last-child {
    border-bottom: none;
}

.ios-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #fafafa;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.ios-day-header:active {
    background: #f0f0f0;
}

.ios-day-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ios-day-number {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-light);
    width: 40px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.ios-today-number {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 20px;
}

.ios-day-info {
    display: flex;
    flex-direction: column;
}

.ios-day-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: capitalize;
}

.ios-day-month {
    font-size: 12px;
    color: #8e8e93;
    text-transform: capitalize;
}

.ios-day-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ios-today-badge {
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ios-lesson-count {
    font-size: 13px;
    color: #8e8e93;
}

.ios-expand-icon {
    color: #c7c7cc;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.ios-day-section.expanded .ios-expand-icon {
    transform: rotate(180deg);
}

.ios-today .ios-day-header {
    background: rgba(187, 155, 79, 0.08);
}

.ios-today .ios-day-header:active {
    background: rgba(187, 155, 79, 0.15);
}

/* Collapsible content */
.ios-day-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.ios-day-section.expanded .ios-day-content {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
}

.ios-events-list {
    padding: 8px 16px 16px 16px;
    background: #fff;
}

.ios-event {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-left: 52px;
    position: relative;
}

.ios-event:last-child {
    border-bottom: none;
}

.ios-event:active {
    background-color: #f5f5f5;
    margin-left: 52px;
    margin-right: -16px;
    padding-left: 0;
    padding-right: 16px;
}

.ios-event-time {
    position: absolute;
    left: -52px;
    width: 44px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 8px;
}

.ios-time-start {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.ios-time-end {
    font-size: 11px;
    color: #8e8e93;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.ios-event-indicator {
    width: 4px;
    height: 100%;
    min-height: 36px;
    border-radius: 2px;
    margin-right: 12px;
    flex-shrink: 0;
}

.ios-event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ios-event-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
}

.ios-event-duration {
    font-size: 13px;
    color: #8e8e93;
}

.ios-event-instructor {
    font-size: 12px;
    color: #8e8e93;
    font-style: italic;
}

.ios-event-booking {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.ios-event-booking i {
    margin-right: 4px;
}

.ios-event-spots {
    font-size: 11px;
    color: #34c759;
    font-weight: 500;
}

.ios-event-spots.spots-low {
    color: #ff9500;
}

.ios-event-spots.spots-full {
    color: #ff3b30;
}

.ios-event-full {
    opacity: 0.6;
    cursor: not-allowed;
}

.ios-event-full .ios-event-title {
    text-decoration: line-through;
    color: #8e8e93;
}

.ios-event-arrow {
    color: #c7c7cc;
    font-size: 12px;
    margin-left: 8px;
}

.ios-no-events {
    padding: 16px 16px 16px 68px;
    color: #8e8e93;
    font-size: 14px;
    font-style: italic;
    background: #fff;
}

/* Lightbox */
#lightbox {
    transition: opacity 0.3s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox img {
    animation: fadeInUp 0.3s ease;
}

/* Form Styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--soft-sand);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .schedule-table {
        font-size: 0.75rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 4px;
    }

    .schedule-item {
        padding: 6px 4px;
        font-size: 0.7rem;
    }

    .schedule-item .lesson-time {
        font-size: 0.6rem;
    }

    .testimonials-container {
        mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    }
}

@media (max-width: 480px) {
    .schedule-table th,
    .schedule-table td {
        padding: 6px 2px;
    }
}

/* Admin Styles (for included pages) */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.admin-btn-primary {
    background: var(--primary);
    color: white;
}

.admin-btn-primary:hover {
    background: #c8a557;
    transform: translateY(-2px);
}

.admin-btn-secondary {
    background: var(--secondary);
    color: white;
}

.admin-btn-secondary:hover {
    background: #b8906a;
}

.admin-btn-danger {
    background: #dc3545;
    color: white;
}

.admin-btn-danger:hover {
    background: #c82333;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Print Styles */
@media print {
    #navbar,
    .pulse-button,
    #lightbox,
    footer {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
    }
}
