/*

Theme Name: Yoga studio
Author: Xia
Version: 1.2
Description: A clean and beautiful Yoga studio

*/

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

:root {
    --yoga-dark: #211c1c;
    --yoga-gray: #312e2c;
    --yoga-accent: #304a17;
}

body {
    color: var(--yoga-dark);
    font-family: "Playfair Display", serif;
    line-height: 1.6;
    font-size: 1rem;
}

section {
    padding: 80px 0;
}

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

.site-header .container {
    max-width: 1200px;
}

h1 {
    text-transform: capitalize;
    font-size: 4.5rem;
    color: #edecec;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 25px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

a {
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.btn {
    color: #ffffff;
    background-color: #2d2d2d;
    border: 1px solid #2d2d2d;
    padding: 15px 40px;
    text-decoration: none;
    display: inline-block;
    text-transform: capitalize;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgb(42, 42, 42);
    transition: all 0.3s ease;
}

.btn-primary {
    margin-left: 20px;
    background-color: transparent;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 5px rgb(163, 163, 163);
}

.btn:hover {
    background-color: #d4a373;
    transform: translateY(-3px);
    box-shadow: 0 2px 5px #c49463;
}

/*--------------------------- Header ---------------------------*/
.logo-holder {
    max-width: 120px;
    flex-shrink: 0;
}

.mobile-toggle,
.hamburger,
.xmark {
    display: none;
}

.main-navigation {
    display: flex;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    padding: 0 20px;
}

.lang-switcher li {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    opacity: 0.6;
    list-style: none;
}

.lang-switcher li.current-lang a {
    opacity: 1;
    border-bottom: 2px solid #c84233;
}

.lang-switcher li a:hover {
    opacity: 1;
}

.lang-switcher a {
    text-decoration: none;
    color: #06170b;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Desktop Navigation */
/* Portfolio fix: use yoga color variables in this theme. */
.header-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.header-menu li {
    position: relative;
}

.header-menu li a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 0;
    font-weight: 500;
    color: var(--yoga-dark);
}

.header-menu li a::after {
    bottom: 4px;
    height: 2px;
    width: 40%;
}

.header-menu li a:hover {
    color: var(--yoga-accent);
}


.header-menu li.current-menu-item a {
    background: none;
    color: var(--yoga-accent);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-toggle i {
    font-size: 1.5rem;
    color: #2c2c2c;
    transition: color 0.3s ease;
}

.mobile-toggle:hover i {
    color: #2c6e1b;
}

.hamburger,
.xmark {
    display: none;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/*--------------------------- Footer ---------------------------*/
.site-footer {
    position: relative;
    padding: 80px 0 30px;
    background-color: #2d2d2d;
    /* 兜底背景色 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

/* 背景图遮罩层 - 确保文字在任何背景图上都清晰 */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.85);
    /* 黑色半透明遮罩 */
    z-index: 1;
}

.site-footer .container {
    position: relative;
    z-index: 2;
    /* 确保内容在遮罩层之上 */
}

/* Footer Grid Layout */
.footer-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

/* 各个列的基础样式 */
.footer-brand,
.footer-info,
.footer-nav,
.footer-location {
    flex: 1;
    min-width: 220px;
    /* 保证在小屏下自动换行 */
}

/* 品牌/Logo 部分 */
.footer-brand .custom-logo-link img {
    max-width: 180px;
    height: auto;
}

.footer-brand .site-name {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* 标题样式 */
.footer-flex h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4a373;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 信息与菜单样式 */
.footer-info p,
.footer-nav ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-nav ul li a:hover {
    color: #fff;
}

/* 地图部分 - 关键优化 */
.footer-map {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    filter: grayscale(0.2);
    /* 稍微降低饱和度以适应设计 */
    transition: filter 0.3s ease;
}

.footer-map:hover {
    filter: grayscale(0);
}

.footer-map iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* Bottom Bar */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #888;
}

/*============================ front-page ===========================*/
/* 
1. hero section
2. New to Yoga Section
3.Classes Highlights Section
4.Instructors section 
*/

/*--------------------------- Hero section ---------------------------*/
.hero-section {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    background-color: rgba(43, 43, 43, 0.6);
    overflow: hidden;
    min-height: 85vh;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    /* ✨ 新增：限制内容宽度 */
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

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

.hero-p {
    margin: 30px 0 40px;
    font-size: 1.25rem;
    color: #f0f0f0;
    line-height: 1.8;
}

/*--------------------------- 2.New to Yoga Section ---------------------------*/
.new-section {
    background-color: rgb(239, 240, 239);

}

.new-flex {
    display: flex;
    gap: 50px;
}

.new-left {
    width: 50%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.new-right {
    width: 50%;
    padding: 20px 0;
    text-align: left;
}

.new-right h2 {
    text-align: left;
}

/*--------------------------- 3.Classes Highlights Section---------------------------*/
.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 给图片一个「固定比例容器」 */
.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* 可以用 1/1 或 16/9 */
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    display: block;
}

.card-text {
    padding: 20px;
}

/*--------------------------- 4.Instructors section ---------------------------*/
.instructor-section {
    background-color: rgb(239, 240, 239);
}

.instructor-section .instructor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.circle-card {
    text-align: center;
    object-fit: cover;
}

.circle-card img {
    margin: 0 auto;
    width: 70%;
    border-radius: 50%;
}

.circle-card a {
    text-decoration: none;
    color: #06170b;
    padding: 10px;
}


/*--------------------------- classes page ---------------------------*/
.page-title {
    color: #06170b;
    text-align: center;
}

.page-intro {
    text-align: center;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.class-card {
    background: #fafafa;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.class-card:hover {
    transform: translateY(-6px);
}

.class-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.class-content {
    position: relative;
    padding: 20px;
}

.class-duration {
    background-color: #6cb884;
    color: #000000;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    position: absolute;
    right: 10px;
    top: -30px;
}

.class-title {
    margin: 10px 0;
    font-size: 18px;
}

.class-description {
    font-size: 0.95rem;
}

.instructor-name {
    color: #06170b;
}

.class-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #15642e;
}

/* ------------------------- schedule page -------------------------*/
.schedule-section {
    background: #ffffff;
}

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

.schedule-header h1 {
    margin-bottom: 12px;
    color: #06170b;
}

.schedule-header p {
    font-size: 1.5rem;
    color: #464646;
}


/* schedule display */
/* ================================== */
.schedule-section .schedule-card {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.day-column {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* background-color: #e8e8e8; */
    border-radius: 12px;
    padding: 10px 5px;
}

/* 每一天的列卡片 */
.day-name {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    text-align: center;
    margin-bottom: 16px;
}

.day-column.is-today {
    background: #eef6f1;
    border: 2px solid #8bbfa6;
}

.day-column.is-today .day-name {
    color: #3a6b57;
    font-weight: 600;
}

.today-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 12px;
    background: #8bbfa6;
    color: #fff;
    border-radius: 999px;
}

/* 课程容器 */
.classes-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* 单个课程条目 */
.class-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.class-item:hover {
    background: #f0f0f0;
}

.class-item .time {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.class-item a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.class-item a:hover {
    text-decoration: underline;
}


/* 时间样式 */
.class-item .time {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #d76c14;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* 课程标题链接 */
.class-item a {
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    display: block;
    transition: color 0.3s;
}

.class-item a:hover {
    color: #d4a373;
}

/* 无课状态 */
.no-class {
    font-size: 14px;
    color: #aaa;
    text-align: center;
    margin-top: 20px;
}

/*------------------------- contact page ------------------------------*/
.contact-page {
    background-color: rgb(239, 240, 239);
}

.contact-header {
    text-align: center;
    margin-bottom: 80px;
}

.contact-header h1 {
    font-family: 'Playfair Display', serif;
    /* font-size: 3.5rem; */
    color: #2d2d2d;
    margin-bottom: 10px;
}

.contact-header .subtitle {
    color: #888;
    font-style: italic;
    font-size: 1.1rem;
}

/* Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    margin-bottom: 80px;
}

/* Left side info */
.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.description {
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-item .icon {
    font-size: 1.5rem;
    background: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b5835a;
    margin-bottom: 5px;
}

.detail-item p {
    color: #444;
    margin: 0;
}

.form-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.form-card h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #aaa;
}

.field-group input,
.field-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.field-group input:focus,
.field-group textarea:focus {
    border-color: #d4a373;
}

.submit-btn {
    width: 100%;
    background: #2d2d2d;
    color: #fff;
    padding: 18px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #d4a373;
}

/* Map Styling */
.contact-map {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-map iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.map-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #888;
}


/* --------------------------- single classes page -----------------------------*/

/* Class Single Container */
.class-hero {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.class-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.class-badge {
    background: #d4a373;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.class-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
}

/* Main Layout Grid */


.class-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 80px 0;
}

/* Meta Highlights Bar */
.class-meta-highlights {
    display: flex;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    justify-content: space-around;
}

.meta-item {
    text-align: center;
}

.meta-item .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 5px;
}

.meta-item .value {
    font-weight: 700;
    color: #2d2d2d;
    font-size: 1.1rem;
}

/* Content Area */
.entry-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.entry-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Sidebar Elements */
.instructor-sidebar-card {
    background: #fdfcfb;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f1ece8;
    margin-bottom: 30px;
}

.instructor-sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.instructor-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-text h4 {
    margin: 0 0 5px 0;
}

.instructor-text p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.text-link {
    color: #d4a373;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
    background: #2d2d2d;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
}

.btn-full:hover {
    background: #d4a373;
}

/* ---------------------------------single instructors page ------------------------*/
.instructor-detail-page {
    padding: 100px 0;
    background-color: #fff;
}

.breadcrumb {
    margin-bottom: 40px;
}

.breadcrumb a {
    text-decoration: none;
    color: #b5835a;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Grid Layout */
.instructor-detail-page .instructor-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: start;
}


/* Sidebar Styling */
.instructor-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.main-instructor-img {
    width: 100%;
    height: auto;
    display: block;
}

.instructor-stats {
    background: #fdfcfb;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #f1ece8;
}

.stat-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item strong {
    color: #8d7765;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

/* Main Content Styling */
.instructor-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #000000;
}

.instructor-tagline {
    font-size: 1.2rem;
    color: #b5835a;
    font-style: italic;
    margin-bottom: 40px;
}

.instructor-bio h3,
.instructor-classes h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.section-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 50px 0;
}

/* Related Classes Grid */
.related-classes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.mini-class-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fdfcfb;
    border: 1px solid #f1ece8;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mini-card-img img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-card-text h4 {
    margin: 0;
    color: #2d2d2d;
    font-size: 1rem;
}

.view-details {
    font-size: 0.75rem;
    color: #d4a373;
    font-weight: 700;
}

/* --------------------------------- instructors archive page ------------------------*/
.instructors-page .instructors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.instructors-grid .instructor-card {
    background: transparent;
    box-shadow: 0 10px 30px rgba(183, 183, 183, 0.15);
    border-radius: 5%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.instructors-grid .instructor-card:hover {
    transform: translateY(-6px);
}

.instructors-grid .instructor-img img {
    width: 60%;
   margin: 0 auto;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.instructors-grid .instructor-content {
    position: relative;
    padding: 20px;
}

.instructor-link {
    text-decoration: none;
    color: #ffa007;
}

/* --------------------------------------Query Media----------------------------------------- */

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

}

@media (max-width: 768px) {
    h2 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 10px 30px;
        border-radius: 15px;
        font-size: 0.8rem;
    }

    .new-left {
        margin: auto 0;
    }

    .filter-btn {
        padding: 5px 15px;
        border-radius: 25px;
        font-size: 12px;
    }

    .instructor-description {
        font-size: 1rem;
    }
}

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

    .hero-p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 9px 25px;
        border-radius: 12px;
        font-size: 0.6rem;
    }

    .new-flex {
        flex-direction: column;
    }

    .new-left {
        width: 100%;
        order: 2;
    }

    .new-right {
        width: 100%;
    }

    .class-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .card img {
        aspect-ratio: 16 / 9;
    }

    .instructor-section .instructor-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .filter-btn {
        padding: 4px 12px;
        border-radius: 20px;
    }

    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .class-description {
        font-size: 0.85rem;
    }

    .class-link {
        font-size: 0.85rem;
    }

    .instructors-page .instructors-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .instructors-grid .instructor-img img {
        width: 80%;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    /* header */
    .logo-holder {
        max-width: 100px;
    }

    .mobile-toggle,
    .hamburger {
        display: block;
    }


    /* .main-navigation controls the menu */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.35s ease;
        z-index: 1000;
        padding: 80px 30px;
        display: block;
    }

    .site-header.menu-open .main-navigation {
        right: 0;
    }

    .header-menu {
        align-items: start;
        flex-direction: column;
        gap: 20px;
    }

    .header-menu li a {
        font-size: 1.2rem;
        padding: 12px 0;
    }

    .lang-switcher {
        justify-content: left;
        padding: 20px 0;
    }

    /* Toggle button */
    .mobile-toggle {
        display: block;
    }

    .hamburger {
        display: inline;
    }

    .xmark {
        display: none;
    }

    .site-header.menu-open .hamburger {
        display: none;
    }

    .site-header.menu-open .xmark {
        display: inline;
    }

    /* Overlay */
    .mobile-menu-overlay {
        display: none;
    }

    .site-header.menu-open~.mobile-menu-overlay {
        display: block;
        opacity: 1;
    }

    body.menu-open {
        overflow: hidden;
    }

}

/* --------------------------------------Mobile polish----------------------------------------- */
@media (max-width: 900px) {
    section {
        padding: 64px 0;
    }

    .container {
        width: min(96%, 1200px);
        padding: 0 14px;
    }

    h1 {
        font-size: clamp(2.2rem, 5.5vw, 3.2rem);
        margin-bottom: 14px;
    }

    h2 {
        font-size: clamp(1.8rem, 4.8vw, 2.5rem);
        margin-bottom: 18px;
    }

    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .btn {
        padding: 12px 22px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1002;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(33, 28, 28, 0.08);
    }

    .header-wrapper {
        min-height: 72px;
    }

    .mobile-toggle,
    .hamburger {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82vw, 340px);
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.35s ease;
        z-index: 1000;
        padding: 88px 28px 28px;
        display: block;
    }

    .site-header.menu-open .main-navigation {
        right: 0;
    }

    .header-menu {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .header-menu li a {
        font-size: 1.1rem;
        padding: 8px 0;
        display: inline-block;
    }

    .lang-switcher {
        justify-content: flex-start;
        padding: 20px 0 0;
    }

    .site-header.menu-open~.mobile-menu-overlay {
        display: block;
        opacity: 1;
    }

    .new-flex {
        gap: 28px;
    }

    .class-grid,
    .classes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .instructor-section .instructor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .schedule-section .schedule-card {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }

    .day-column {
        min-width: 210px;
        scroll-snap-align: start;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        margin-bottom: 50px;
    }

    .footer-flex {
        gap: 26px;
        margin-bottom: 42px;
    }
}

@media (max-width: 640px) {
    section {
        padding: 52px 0;
    }

    .hero-section {
        min-height: 72vh;
        align-items: flex-end;
        padding-bottom: 48px;
    }

    .hero-content {
        text-align: left;
    }

    .hero-p {
        margin: 16px 0 24px;
        font-size: 1rem;
    }

    .btn-primary {
        margin-left: 0;
    }

    .hero-content .btn {
        width: 100%;
        text-align: center;
        margin: 0 0 10px;
    }

    .new-flex {
        flex-direction: column;
    }

    .new-left,
    .new-right {
        width: 100%;
    }

    .new-right {
        padding: 0;
    }

    .class-grid,
    .classes-grid,
    .instructors-page .instructors-grid,
    .contact-grid,
    .related-classes-grid,
    .instructor-detail-page .instructor-grid {
        grid-template-columns: 1fr;
    }

    .detail-item {
        gap: 14px;
    }

    .form-card {
        padding: 24px;
        border-radius: 16px;
    }

    .schedule-header {
        margin-bottom: 34px;
    }

    .schedule-header p {
        font-size: 1.05rem;
    }

    .schedule-section .schedule-card {
        gap: 10px;
        margin: 0 -14px;
        padding: 0 14px 6px;
    }

    .day-column {
        min-width: 84vw;
        padding: 12px 10px;
    }

    .day-name {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .class-item {
        padding: 10px 12px;
    }

    .class-item .time {
        font-size: 0.82rem;
    }

    .studio-etiquette {
        margin-top: 36px;
    }

    .studio-etiquette p {
        font-size: 0.95rem;
    }

    .footer-flex {
        margin-bottom: 30px;
        gap: 20px;
    }

    .footer-flex h3 {
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .footer-info p,
    .footer-nav ul li,
    .footer-bottom p {
        font-size: 0.9rem;
    }

    .footer-map {
        height: 150px;
    }

    .footer-brand,
    .footer-info,
    .footer-nav,
    .footer-location {
        min-width: 100%;
    }
}

/* --------------------------------------Mobile menu fix----------------------------------------- */
@media (max-width: 900px) {
    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 340px);
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        padding: 88px 28px 28px;
        transform: translateX(110%);
        transition: transform 0.35s ease, opacity 0.2s ease;
        z-index: 1000;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .site-header.menu-open .main-navigation {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body:not(.menu-open) .site-header .main-navigation {
        transform: translateX(110%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-menu-overlay {
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    .site-header.menu-open~.mobile-menu-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}
