:root {
    --bg-main: #fcfbfb;
    /* Soft warm white */
    --bg-card: rgba(255, 255, 255, 0.7);
    --primary: #5c7285;
    /* Elegant French Blue */
    --secondary: #8b9bb4;
    /* Soft Dusty Blue */
    --accent: #d2bba0;
    /* Elegant Warm Taupe / Sand */
    --accent-light: #fbf8f5;
    /* Very Light Sand */
    --text-main: #545e6b;
    /* Soft slate main text */
    --text-muted: #8a99a8;
    /* Soft blue-grey muted */
    --text-header: #2b3543;
    /* Softer dark blue-grey for headers */
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-highlight: rgba(255, 255, 255, 1);
    --glass-shadow: rgba(0, 0, 0, 0.05);
    --gradient-glow: linear-gradient(135deg, var(--primary), var(--accent));
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h2,
h3,
h4,
.stat-number {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-header);
}

h1,
.logo,
.vision-author strong {
    font-family: 'Playfair Display', serif;
    color: var(--text-header);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-padding {
    padding: 8rem 0;
}

.text-gradient {
    background: var(--gradient-glow);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.mobile-break {
    display: none;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-glow);
    color: white;
    box-shadow: 0 4px 15px rgba(92, 114, 133, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 8px 25px rgba(92, 114, 133, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-header);
    box-shadow: 0 2px 10px var(--glass-shadow);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(92, 114, 133, 0.2);
}

.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--text-header);
    transition: color 0.3s;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .nav-links a:not(.btn-primary) {
    text-shadow: none;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-glow);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-header);
    z-index: 102;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .hamburger {
    text-shadow: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    background-image: url('assets/images/hero-ballet.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-slogan {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--text-header);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-header);
    font-weight: 500;
    margin-bottom: 3rem;
    max-width: 800px;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.9), 0 0 5px rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-header);
    animation: bounce 2s infinite;
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Glass Card Component */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.feature-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-light), rgba(255, 255, 255, 0.8));
    color: #b59f87;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(210, 187, 160, 0.3);
    box-shadow: 0 4px 10px rgba(210, 187, 160, 0.1);
    flex-shrink: 0;
}

.feature-list h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--text-header);
    font-weight: 500;
}

.feature-list p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.about-image-container {
    position: relative;
}

.vision-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3.5rem 3rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.8));
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 15px 35px -10px rgba(92, 114, 133, 0.15), 0 5px 15px -5px rgba(0, 0, 0, 0.05);
}

.vision-card::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--accent);
    filter: blur(50px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

.vision-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--gradient-glow);
    filter: blur(60px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
}

.vision-icon {
    font-size: 2.8rem;
    background: var(--gradient-glow);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.vision-text {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-header);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.vision-author {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-left: 3px solid var(--primary);
    padding-left: 1.2rem;
}

.vision-author strong {
    color: var(--text-header);
    font-weight: 600;
    font-size: 1.15rem;
}

.vision-author span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Instructor Section */
.instructor-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.7));
}

.instructor-image-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 2.5rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.instructor-image {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    background-size: cover;
    background-position: center 15%;
    background-color: #f0f0f0;
    /* Color correction using filters */
    filter: contrast(1.05) brightness(1.02) saturate(0.85);
}

.instructor-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 100px;
    height: 100px;
    background: var(--gradient-glow);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(210, 187, 160, 0.4);
    border: 4px solid white;
}

.instructor-info {
    display: flex;
    flex-direction: column;
}

.instructor-name {
    font-size: 2.8rem;
    font-weight: 600;
    color: #333333;
    line-height: 1.1;
    margin-bottom: 0;
}

.instructor-title {
    color: #C5A27D;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 0.2rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.instructor-bio {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
}

.instructor-credentials {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Courses Section */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.course-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-glow);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.course-card:hover::after {
    opacity: 1;
}

.course-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.8s ease;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 60%);
    z-index: 1;
}

.course-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    background: #ffffff;
    /* pure white for contrast */
}

.course-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.tag {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.intensity-high {
    color: #a88863;
    background: #fbf6f0;
    border-color: #eeddc8;
}

.intensity-medium {
    color: #a88863;
    background: #fbf6f0;
    border-color: #eeddc8;
}

.intensity-low {
    color: #a88863;
    background: #fbf6f0;
    border-color: #eeddc8;
}

.course-header h3,
.course-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.course-time {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-time i {
    color: var(--primary);
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Registration Section */
.register {
    position: relative;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
}

.register-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.register-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (min-width: 993px) {
    .desktop-nowrap {
        white-space: nowrap;
    }
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

.contact-list i {
    width: 45px;
    height: 45px;
    background: rgba(210, 187, 160, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b59f87;
    border: 1px solid rgba(210, 187, 160, 0.2);
    font-size: 1.1rem;
}

.ig-prominent-container {
    margin-top: 1.0rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(210, 187, 160, 0.2);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ig-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.btn-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: #ffffff;
    border: 1px solid rgba(210, 187, 160, 0.3);
    border-radius: 30px;
    color: var(--text-header);
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.btn-ig i {
    font-size: 1.4rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-ig:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(210, 187, 160, 0.2);
    border-color: var(--accent);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-header);
}

.form-group input,
.form-group select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 1.2rem;
    border-radius: 12px;
    color: var(--text-header);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(92, 114, 133, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("assets/icons/select-chevron.svg");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}

.form-disclaimer {
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Scroll Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right,
.active.reveal-scale {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-grid,
    .instructor-container,
    .register-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-container,
    .register-info {
        order: -1;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .hero {
        background-position: 70% center;
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 2rem;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-header) !important;
        text-shadow: none !important;
    }

    .hamburger {
        display: block;
        color: var(--text-header);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .glass-card {
        padding: 2rem 1.2rem;
    }

    .instructor-image-wrapper {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .instructor-badge {
        right: -15px;
        bottom: -25px;
    }

    .instructor-image {
        height: auto;
        aspect-ratio: 4/5;
    }

    .instructor-name {
        font-size: 2.2rem;
    }

    .register-info h2 {
        font-size: 1.5rem;
    }

    .register-info p {
        font-size: 1.05rem;
        padding: 0;
        line-height: 1.6;
    }

    .mobile-break {
        display: block;
    }

    .register-info .btn-primary {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        white-space: nowrap;
    }
}

/* Editorial Layout Component */
.editorial-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    padding: 1rem 0;
}

.editorial-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    align-items: center;
    position: relative;
    border-radius: 24px;
}

.editorial-block.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.editorial-block.reverse .editorial-image-box {
    order: 2;
}

.editorial-block.reverse .editorial-content-box {
    order: 1;
    margin-left: 0;
    margin-right: -2.5rem;
    z-index: 2;
}

.editorial-image-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.editorial-image {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.editorial-block:hover .editorial-image {
    transform: scale(1.03);
}

.editorial-content-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 1);
    margin-left: -2.5rem;
    z-index: 2;
    position: relative;
}

.editorial-title {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: #333;
}

.editorial-time {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #C5A27D;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editorial-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 2rem;
}

.editorial-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(197, 162, 125, 0.2);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.detail-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    padding-left: 1.6rem;
    line-height: 1.6;
}

.editorial-btn {
    padding: 0.8rem 2.2rem;
    font-size: 0.95rem;
}

@media (max-width: 968px) {
    .editorial-block, .editorial-block.reverse {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .editorial-image {
        height: 300px;
    }
    
    .editorial-content-box, .editorial-block.reverse .editorial-content-box {
        margin-left: 0;
        margin-right: 0;
        margin-top: -2.5rem;
        padding: 2rem 1.8rem;
    }
    
    .editorial-block.reverse .editorial-image-box {
        order: 1;
    }
    .editorial-block.reverse .editorial-content-box {
        order: 2;
    }
}

/* FAQ Accordion Component */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(197, 162, 125, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(197, 162, 125, 0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    color: #4A453F;
    list-style: none; /* remove default triangle */
}

/* Hide default marker for webkit and standards */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background-color: #FAF8F5;
}

.faq-question .icon {
    color: #C5A27D;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question .icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem 1.5rem 2rem;
    color: #666;
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #A67352;
    font-weight: 500;
}

/* Matrix Timetable Component */
.timetable-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.timetable-sidebar {
    flex: 0 0 250px;
    padding-top: 1rem;
}

.timetable-inst-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
}

.tt-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.tt-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.tt-role {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
}

.tt-btn {
    padding: 0.6rem 2rem;
    font-size: 0.95rem;
    border-color: #C5A27D;
    color: #8C7561;
}

.timetable-main {
    flex: 1;
    min-width: 0;
}

.table-scroll-container {
    overflow-x: auto;
    background-color: #F8F6F2;
    border: 1px solid rgba(197, 162, 125, 0.3);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.matrix-table th {
    background-color: #C5B6A8;
    color: white;
    font-weight: 500;
    letter-spacing: 2px;
    padding: 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.matrix-table th:last-child {
    border-right: none;
}

.matrix-table td {
    border: 1px solid rgba(197, 162, 125, 0.2);
    padding: 1.5rem 1rem;
    text-align: center;
    vertical-align: top;
    height: 120px;
}

.empty-cell {
    background-color: rgba(255,255,255,0.3);
}

.tt-class-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.tt-class-box strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

.tt-time {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #A67352;
}

.tt-teacher {
    font-size: 0.85rem;
    color: #8C7561;
}

/* Colors for levels based on user screenshot */
.depth-1 strong { color: #A67352; }
.depth-2 strong { color: #8F6246; }
.depth-3 strong { color: #784E33; }

/* Audience Guide */
.audience-guide {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(197, 162, 125, 0.1);
}

.guide-title {
    font-size: 1.1rem;
    color: #4A453F;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(197, 162, 125, 0.3);
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.guide-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.guide-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    min-width: 175px;
    text-align: left;
}
.guide-badge.depth-1 { color: #A67352; }
.guide-badge.depth-2 { color: #8F6246; }
.guide-badge.depth-3 { color: #784E33; }

.guide-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    flex: 1;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .timetable-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .timetable-sidebar {
        flex: none;
        width: 100%;
        padding-bottom: 1.5rem;
        border-bottom: 1px dashed rgba(197, 162, 125, 0.3);
    }
    
    .timetable-main {
        width: 100%;
    }
    
    .guide-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .guide-badge {
        text-align: left;
    }
}
