:root {
    --bg-canvas: #FDF8F2;
    --accent-coral: #FF6B6B;
    --accent-blue: #4D96FF;
    --accent-yellow: #FFD93D;
    --shadow: rgba(0, 0, 0, 0.15);
    --text-dark: #1A1A1A;
    --text-light: #666;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', 'Roboto', sans-serif;
    background-color: var(--bg-canvas);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(77, 150, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 217, 61, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 248, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

header:hover {
    box-shadow: 0 4px 30px rgba(255, 107, 107, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-coral);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '🎨';
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-blue));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253, 248, 242, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(-100%);
    transition: var(--transition);
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 1.5rem 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    z-index: 1;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.1;
    pointer-events: none;
}

.hero::before {
    background: 
        radial-gradient(ellipse at 30% 40%, var(--accent-coral) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, var(--accent-blue) 0%, transparent 50%);
    animation: floatBrush 20s ease-in-out infinite;
}

.hero::after {
    background: 
        radial-gradient(ellipse at 60% 30%, var(--accent-yellow) 0%, transparent 50%);
    animation: floatBrush 25s ease-in-out infinite reverse;
}

@keyframes floatBrush {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue));
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--accent-coral);
}

.btn-secondary:hover {
    background: var(--accent-coral);
    color: var(--white);
}

section {
    position: relative;
    padding: 5rem 2rem;
    z-index: 1;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-blue));
    border-radius: 2px;
}

.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--bg-canvas) 0%, var(--bg-canvas) 50%, transparent 50%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    z-index: -1;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.course-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
}

.course-card:hover::before {
    opacity: 0.05;
}

.course-card-content {
    position: relative;
    z-index: 1;
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.course-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.course-card p {
    margin-bottom: 1.5rem;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-coral);
    margin-top: 1rem;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.instructor-card {
    text-align: center;
    position: relative;
}

.instructor-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue));
    padding: 4px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--white);
}

.instructor-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(77, 150, 255, 0.3));
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
}

.instructor-card:hover .instructor-image {
    transform: scale(1.1);
}

.instructor-card:hover .instructor-image::after {
    opacity: 1;
}

.instructor-info {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
    width: 90%;
    opacity: 0;
    transition: var(--transition);
}

.instructor-card:hover .instructor-info {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--accent-coral);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-coral);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transform: rotate(0deg);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
}

.gallery-item:hover {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.testimonials {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(77, 150, 255, 0.05));
    border-radius: 30px;
    padding: 3rem;
    margin: 3rem 0;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding: 0 2rem;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--accent-coral);
    position: absolute;
    opacity: 0.3;
}

.testimonial-quote::before {
    top: -1rem;
    left: 0;
}

.testimonial-quote::after {
    bottom: -2rem;
    right: 0;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-coral);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-coral);
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.carousel-btn.active {
    opacity: 1;
    transform: scale(1.3);
}

.cta-section {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue));
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 30px;
    margin: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-section h2,
.cta-section p {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    margin-top: 2rem;
    background: var(--white);
    color: var(--accent-coral);
    position: relative;
    z-index: 1;
}

.cta-section .btn:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-coral);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out both;
}

.parallax {
    transition: transform 0.3s ease-out;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-container {
        padding: 0 1.5rem;
        justify-content: space-between;
    }

    .cta-button {
        display: none;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-title {
        margin-bottom: 2rem;
        font-size: 1.75rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .courses-grid,
    .instructors-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .course-icon {
        font-size: 2.5rem;
    }

    .gallery-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-btn {
        width: 100%;
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .gallery-item img {
        height: 250px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .testimonials {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .testimonial-quote {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .testimonial-quote::before,
    .testimonial-quote::after {
        font-size: 2rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .instructor-image {
        width: 150px;
        height: 150px;
    }

    .instructor-card h3 {
        font-size: 1.3rem;
    }

    .course-price {
        font-size: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    #privacy-content,
    #terms-content,
    #cookies-content,
    #return-content {
        padding: 2rem 1rem !important;
    }

    #privacy-content > div,
    #terms-content > div,
    #cookies-content > div,
    #return-content > div {
        padding: 2rem 1.5rem !important;
    }

    #privacy-content h2,
    #terms-content h2,
    #cookies-content h2,
    #return-content h2 {
        font-size: 1.5rem !important;
    }

    #privacy-content p,
    #terms-content p,
    #cookies-content p,
    #return-content p,
    #privacy-content li,
    #terms-content li,
    #cookies-content li,
    #return-content li {
        font-size: 1rem !important;
    }

    .mobile-menu-close {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.75rem;
    }
}

@media (max-width: 320px) {
    /* Navbar responsive styles */
    header {
        padding: 0.75rem 0;
    }

    .header-container {
        padding: 0 0.5rem;
        flex-wrap: nowrap;
        min-height: 50px;
    }

    .logo {
        font-size: 0.9rem;
        gap: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 50px);
    }

    .logo::before {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .mobile-menu-toggle {
        font-size: 1.25rem;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        display: none;
    }

    nav ul {
        display: none;
    }

    .hero {
        padding: 4rem 0.75rem 1.5rem;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        max-width: 100%;
    }

    section {
        padding: 2rem 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .course-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .course-icon {
        font-size: 2.5rem;
    }

    .course-price {
        font-size: 1.25rem;
    }

    .instructor-card {
        margin-bottom: 1.5rem;
    }

    .instructor-image {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .gallery-item img {
        height: 200px;
    }

    .gallery-item-overlay {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .testimonials {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .testimonial-quote {
        font-size: 1rem;
        padding: 0 0.75rem;
    }

    .testimonial-quote::before,
    .testimonial-quote::after {
        font-size: 2rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        border-radius: 20px;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 2rem 0.75rem 0.75rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .course-card h3 {
        font-size: 1.2rem;
    }

    .course-card p {
        font-size: 0.9rem;
    }

    .instructor-card h3 {
        font-size: 1.1rem;
    }

    .instructor-card p {
        font-size: 0.9rem;
    }

    .section-title::after {
        width: 50px;
        height: 2px;
    }

    .mobile-menu {
        padding: 1rem 0.5rem;
    }

    .mobile-menu ul {
        width: 100%;
        padding: 0;
    }

    .mobile-menu li {
        margin: 1rem 0;
    }

    .mobile-menu a {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
    }

    .mobile-menu-close {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1.5rem;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }

    #privacy-content,
    #terms-content,
    #cookies-content,
    #return-content {
        padding: 2rem 0.75rem !important;
    }

    #privacy-content > div,
    #terms-content > div,
    #cookies-content > div,
    #return-content > div {
        padding: 1.5rem 1rem !important;
    }

    #privacy-content h2,
    #terms-content h2,
    #cookies-content h2,
    #return-content h2 {
        font-size: 1.25rem !important;
        margin-top: 2rem !important;
    }

    #privacy-content p,
    #terms-content p,
    #cookies-content p,
    #return-content p,
    #privacy-content li,
    #terms-content li,
    #cookies-content li,
    #return-content li {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    .mobile-menu-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }

    .hero {
        padding-top: 5rem !important;
    }

    /* Instructors page specific styles for 320px */
    #instructors-detail .instructors-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    #instructors-detail .instructor-card {
        padding: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    #instructors-detail .instructor-image {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 1rem !important;
        border-radius: 50% !important;
        padding: 3px !important;
    }

    #instructors-detail .instructor-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }

    #instructors-detail .instructor-card h3 {
        font-size: 1.1rem !important;
        text-align: center !important;
        margin-bottom: 0.75rem !important;
    }

    #instructors-detail .instructor-card p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    #instructors-detail .instructor-card p:first-of-type {
        font-size: 0.9rem !important;
    }

    #instructor-philosophy .courses-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    #instructor-philosophy .course-card {
        padding: 1.25rem !important;
    }

    #instructor-approach > div > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    #instructor-approach img {
        height: 150px !important;
        margin-bottom: 0.75rem !important;
    }

    #instructor-approach h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    #instructor-approach p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    .section-container {
        padding: 0 0.75rem !important;
    }

    /* Hero section adjustments for instructors page */
    .hero-content {
        padding: 0 0.75rem !important;
    }

    .hero-content h1 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    .hero-content p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Courses page responsive */
    .courses-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .course-card img {
        height: 150px !important;
        margin-bottom: 0.75rem !important;
    }

    /* Gallery page responsive */
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-item img {
        width: 100%;
        height: 200px !important;
        object-fit: cover;
    }

    /* Contact page responsive */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .form-group label {
        font-size: 0.9rem !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.85rem !important;
        padding: 0.75rem !important;
    }

    /* About page responsive */
    #mission img,
    #story img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Footer responsive */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.25rem;
    }

    .footer-section ul {
        padding-left: 0;
        list-style: none;
    }

    /* General page improvements */
    .section-container {
        padding: 1.5rem 0.5rem !important;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .btn-primary,
    .btn-secondary {
        margin: 0.5rem 0;
    }

    /* Text and spacing adjustments */
    p {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
    }

    ul, ol {
        padding-left: 1.25rem;
    }

    li {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }

    /* Image responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Grid improvements - specific sections */
    #features .courses-grid,
    #values .courses-grid,
    #course-benefits .courses-grid,
    #course-materials > div,
    #gallery-featured > div > div {
        grid-template-columns: 1fr !important;
    }

    /* Stats section */
    #stats .courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    #stats h3 {
        font-size: 2rem !important;
    }

    /* Testimonials */
    .testimonial-carousel {
        padding: 1rem 0.5rem;
    }

    /* CTA sections */
    .cta-section h2 {
        font-size: 1.3rem !important;
    }

    .cta-section p {
        font-size: 0.9rem !important;
    }

    /* Course cards with images */
    .course-card-content img {
        width: 100% !important;
        height: auto !important;
        max-height: 180px;
        object-fit: cover;
    }

    /* Hero buttons responsive */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Gallery filters responsive */
    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        flex: 0 1 auto;
    }

    /* Contact form responsive */
    .contact-form {
        width: 100%;
    }

    /* Featured sections */
    #gallery-featured > div > div > div {
        margin-bottom: 1.5rem;
    }

    #gallery-featured img {
        height: 180px !important;
    }

    /* Course materials section */
    #course-materials > div > div {
        margin-bottom: 1.5rem;
    }

    #course-materials img {
        height: 150px !important;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Legal pages additional improvements */
    #privacy-content,
    #terms-content,
    #cookies-content,
    #return-content {
        padding: 1.5rem 0.5rem !important;
    }

    #privacy-content > div,
    #terms-content > div,
    #cookies-content > div,
    #return-content > div {
        padding: 1.25rem 0.75rem !important;
    }

    #privacy-content h2,
    #terms-content h2,
    #cookies-content h2,
    #return-content h2 {
        font-size: 1.15rem !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    #privacy-content p,
    #terms-content p,
    #cookies-content p,
    #return-content p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    #privacy-content ul,
    #terms-content ul,
    #cookies-content ul,
    #return-content ul {
        padding-left: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    #privacy-content li,
    #terms-content li,
    #cookies-content li,
    #return-content li {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
    }
}

.legal-page {
    background: white;
    color: black;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.legal-page h1,
.legal-page h2 {
    color: black;
    font-family: Arial, sans-serif;
}

.legal-page a {
    color: black;
    text-decoration: underline;
}
