/* CSS Variables */
/* 基础字体设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 标题字体设置 */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* 导航菜单字体（如果需要不同字体） */
.nav-menu a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 600;
}

/* Logo 字体（如果需要特殊字体效果） */
.logo-text h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 800;
}

/* 按钮字体 */
button, .btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 600;
}

:root {
    --primary: #E6E6FA;
    --primary-dark: #D8BFD8;
    --secondary: #FFD700;
    --secondary-dark: #FFC107;
    --accent: #6A5ACD;
    --accent-light: #9370DB;
    --background: #F9F9FF;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --gray: #F0F0F0;
    --gray-dark: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);

    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-accent {
    background-color: var(--primary);
    color: var(--text);
}

.btn-accent:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0px;
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-icon {
    width: 60px;
    height: 60px;
}

.logo-icon.small {
    width: 40px;
    height: 40px;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--accent);
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    font-size: 20px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.social-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--background) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.science-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 300px;
}

.icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background-color: var(--white);
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.icon.math {
    background-color: var(--primary);
}

.icon.science {
    background-color: var(--secondary);
}

.icon.robot {
    background-color: var(--accent);
    color: white;
}

.icon.circuit {
    background-color: var(--accent-light);
    color: white;
}

.icon.cube {
    background-color: var(--primary-dark);
}

.icon.printer {
    background-color: var(--secondary-dark);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 15px auto;
    border-radius: 2px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Cards Grid */
.courses-grid,
.blog-grid,
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.course-card,
.blog-card,
.game-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: var(--transition);
}

.course-card:hover,
.blog-card:hover,
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.course-card-header,
.blog-card-header,
.game-card-header {
    padding: 25px 25px 15px;
    background-color: var(--primary);
}

.course-card-body,
.blog-card-body,
.game-card-body {
    padding: 20px 25px;
}

.course-card-footer,
.blog-card-footer,
.game-card-footer {
    padding: 15px 25px 25px;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.read-more {
    font-weight: 600;
    color: var(--accent);
}

.read-more:hover {
    color: var(--accent-light);
}

/* Page Content */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--background) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 0;
}

.content-list {
    display: grid;
    gap: 30px;
}

.content-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.content-card-header {
    padding: 25px 25px 10px;
    background-color: var(--primary);
}

.content-card-body {
    padding: 20px 25px;
}

.content-card-footer {
    padding: 15px 25px 25px;
}

.content-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* Single Content */
.single-content {
    max-width: 800px;
    margin: 0 auto;
}

.featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

/* Games Section Special */
.game-embed-container {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

/* Footer */
.site-footer {
    background-color: var(--accent);
    color: var(--white);
    padding: 60px 0 30px;
}

.site-footer a {
    color: var(--white);
}

.site-footer a:hover {
    color: var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--white);
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info strong {
    color: var(--secondary);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .site-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .science-icons {
        grid-template-columns: repeat(2, 1fr);
        max-width: 200px;
    }

    .icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

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

    .hero {
        padding: 60px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .btn-large {
        padding: 14px 28px;
    }

    .courses-grid,
    .blog-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    /* 如果需要圆形图片 */
    overflow: hidden;
    /* 确保图片保持在圆形内 */
}

/* Games Page Styles */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.game-card-header {
    padding: 25px 25px 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-light) 100%);
    color: white;
}

.game-card-header h2 {
    color: white;
    margin-bottom: 10px;
}

.game-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.game-card-body {
    padding: 20px 25px;
    flex-grow: 1;
}

.game-preview-image {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.game-preview-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-card-footer {
    padding: 15px 25px 25px;
}

/* Game Categories */
.game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.game-category {
    background: var(--gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Game Preview on Homepage */
.homepage-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Responsive Games Grid */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* 紧凑游戏网格 */
.compact-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.compact-game-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--gray);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.compact-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--accent-light);
}

.compact-game-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-game-title {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.compact-game-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}

.compact-game-footer {
    margin-top: auto;
}

.compact-game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
}

.compact-game-button:hover {
    background: var(--accent-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);
}

.compact-game-button svg {
    transition: transform 0.3s;
}

.compact-game-button:hover svg {
    transform: translateX(3px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .compact-games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .compact-game-card {
        padding: 20px;
    }
}

@media (min-width: 992px) {
    .compact-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* 更新首页游戏预览 */
.homepage-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 在数独游戏的CSS中添加 */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    .sudoku-grid {
        max-width: 95vw;
        font-size: 1.2rem;
    }
    
    .cell {
        font-size: 1.2rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .controls button {
        width: 100%;
        max-width: 200px;
    }
    
    .number-pad {
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .sudoku-grid {
        max-width: 100vw;
        font-size: 1rem;
    }
    
    .cell {
        font-size: 1rem;
    }
    
    .number-btn {
        font-size: 1rem;
    }
}

/* Homepage Studio Redesign */
.site-header {
    border-bottom: 1px solid rgba(106, 90, 205, 0.12);
}

.header-content {
    padding: 12px 0;
}

.logo-icon {
    width: 84px;
    height: 84px;
}

.logo-icon.small {
    width: 42px;
    height: 42px;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
}

.brand-blue {
    color: #0f3d72;
}

.brand-orange {
    color: #ee8611;
}

.tagline {
    color: #625b78;
}

.nav-menu {
    font-size: 1.12rem;
    gap: 22px;
}

.nav-link {
    color: #342d4e;
    font-weight: 700;
}

.btn {
    border-radius: 8px;
}

.btn-primary {
    background: #5f4bc4;
    box-shadow: 0 10px 24px rgba(95, 75, 196, 0.22);
}

.btn-primary:hover {
    background: #49379f;
}

.btn-secondary {
    background: #f4c430;
    color: #2f2846;
    box-shadow: 0 10px 24px rgba(244, 196, 48, 0.18);
}

.btn-secondary:hover {
    background: #e6b622;
    color: #2f2846;
}

.eyebrow {
    color: #6a5acd;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.studio-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(244, 196, 48, 0.22), transparent 28%),
        linear-gradient(135deg, #f4f1ff 0%, #fffdf3 52%, #ffffff 100%);
    border-bottom: 1px solid rgba(106, 90, 205, 0.12);
    padding: 58px 0 52px;
}

.studio-hero-content {
    align-items: center;
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.studio-hero-title {
    color: #30265f;
    font-size: clamp(2.15rem, 3.2vw, 3rem);
    letter-spacing: 0;
    line-height: 1.12;
    margin-bottom: 22px;
    max-width: 760px;
}

.studio-hero-subtitle {
    color: #5a546d;
    font-size: 1.08rem;
    line-height: 1.68;
    margin-bottom: 32px;
    max-width: 690px;
}

.studio-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.studio-hero-image,
.studio-hero-carousel {
    background: #ffffff;
    border: 1px solid rgba(106, 90, 205, 0.16);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(65, 53, 130, 0.16);
    margin: 0;
    overflow: hidden;
}

.studio-hero-carousel {
    aspect-ratio: 16 / 10;
    position: relative;
}

.carousel-slide {
    animation: studioCarousel 18s infinite;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
}

.carousel-slide-2 {
    animation-delay: 6s;
}

.carousel-slide-3 {
    animation-delay: 12s;
}

.carousel-slide img,
.notes-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.carousel-slide figcaption {
    background: linear-gradient(180deg, transparent, rgba(35, 27, 70, 0.72));
    bottom: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
    padding: 44px 18px 16px;
    position: absolute;
    width: 100%;
}

@keyframes studioCarousel {
    0% {
        opacity: 1;
    }

    31% {
        opacity: 1;
    }

    36%,
    100% {
        opacity: 0;
    }
}

.notes-image img {
    height: auto;
    object-fit: initial;
}

.studio-hero-panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(106, 90, 205, 0.16);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(65, 53, 130, 0.16);
    overflow: hidden;
}

.hero-panel-header {
    align-items: center;
    background: #4b3aa4;
    display: flex;
    gap: 8px;
    padding: 14px 18px;
}

.hero-panel-dot {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.hero-panel-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.focus-card,
.studio-value-card,
.course-summary-card,
.showcase-preview-card,
.thinking-game-card,
.note-topic {
    background: #ffffff;
    border: 1px solid rgba(106, 90, 205, 0.14);
    border-radius: 8px;
}

.focus-card {
    padding: 18px;
}

.focus-card-large {
    background: linear-gradient(135deg, #fff6cf, #f6f2ff);
    border-color: rgba(244, 196, 48, 0.42);
}

.focus-card span,
.focus-label,
.course-tag,
.note-topic span {
    color: #6a5acd;
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.focus-card strong {
    color: #312b4c;
    display: block;
    font-size: 1rem;
    line-height: 1.35;
}

.focus-card-large strong {
    color: #30265f;
    font-size: 1.55rem;
}

.focus-card-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
}

.studio-intro-section,
.home-section {
    padding: 58px 0;
}

.studio-intro-section {
    background: #ffffff;
}

.studio-manifesto {
    background:
        linear-gradient(135deg, rgba(255, 248, 220, 0.92), rgba(246, 242, 255, 0.96)),
        radial-gradient(circle at 84% 16%, rgba(244, 196, 48, 0.32), transparent 26%);
    border: 1px solid rgba(106, 90, 205, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(65, 53, 130, 0.1);
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    overflow: hidden;
    padding: 34px;
    position: relative;
}

.studio-manifesto::before {
    background: #f4c430;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 6px;
}

.studio-manifesto-copy,
.studio-principles {
    position: relative;
}

.studio-manifesto-copy h2,
.section-heading h2,
.notes-copy h2,
.home-cta h2 {
    color: #30265f;
    letter-spacing: 0;
}

.studio-manifesto-copy h2 {
    font-size: clamp(1.95rem, 2.5vw, 2.45rem);
    line-height: 1.16;
}

.studio-manifesto-copy p {
    color: #5a546d;
    font-size: 1rem;
    line-height: 1.68;
    margin: 0;
    max-width: 560px;
}

.studio-principles {
    display: grid;
    gap: 12px;
}

.studio-principle {
    align-items: flex-start;
    border-top: 1px solid rgba(106, 90, 205, 0.16);
    display: block;
    padding-left: 18px;
    padding-top: 16px;
    position: relative;
}

.studio-principle:first-child {
    border-top: 0;
    padding-top: 0;
}

.studio-principle::before {
    background: #f4c430;
    border-radius: 999px;
    content: '';
    height: calc(100% - 16px);
    left: 0;
    min-height: 28px;
    position: absolute;
    top: 16px;
    width: 4px;
}

.studio-principle:first-child::before {
    height: 100%;
    top: 0;
}

.studio-principle strong {
    color: #392f78;
    display: block;
    font-size: 1.08rem;
    line-height: 1.28;
    margin-bottom: 4px;
}

.studio-principle p {
    color: #5a546d;
    font-size: 0.96rem;
    line-height: 1.5;
    margin: 0;
}

.studio-values-grid,
.course-summary-grid,
.showcase-preview-grid,
.thinking-game-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, 1fr);
}

.studio-value-card,
.course-summary-card,
.showcase-preview-card,
.thinking-game-card {
    box-shadow: 0 12px 32px rgba(65, 53, 130, 0.08);
    padding: 26px;
}

.course-summary-card {
    background: #ffffff;
    border-color: rgba(106, 90, 205, 0.18);
    border-top: 4px solid rgba(106, 90, 205, 0.72);
}

.showcase-preview-card {
    background: #ffffff;
    border-color: rgba(244, 196, 48, 0.28);
    border-top: 4px solid rgba(244, 196, 48, 0.9);
}

.studio-value-card span {
    color: #f4c430;
    display: inline-block;
    font-weight: 800;
    margin-bottom: 20px;
}

.studio-value-card h3,
.course-summary-card h3,
.showcase-preview-card h3,
.thinking-game-card h3 {
    color: #392f78;
    font-size: 1.18rem;
    line-height: 1.32;
}

.studio-value-card p,
.course-summary-card p,
.showcase-preview-card p,
.thinking-game-card p,
.section-heading p,
.notes-copy p {
    color: #5a546d;
    font-size: 1rem;
    line-height: 1.66;
}

.home-section-soft {
    background:
        linear-gradient(180deg, #fbf8ff 0%, #f7f2ff 100%);
    border-bottom: 1px solid rgba(106, 90, 205, 0.14);
    border-top: 1px solid rgba(106, 90, 205, 0.12);
    position: relative;
}

.home-section-soft::after {
    background: linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.82), transparent);
    bottom: -1px;
    content: '';
    height: 3px;
    left: 50%;
    max-width: 880px;
    position: absolute;
    transform: translateX(-50%);
    width: calc(100% - 40px);
}

.home-section-showcase {
    background: #fffdf6;
    border-bottom: 1px solid rgba(244, 196, 48, 0.2);
    position: relative;
}

.home-section-showcase::before {
    background: linear-gradient(90deg, rgba(106, 90, 205, 0.12), rgba(244, 196, 48, 0.44), rgba(106, 90, 205, 0.12));
    content: '';
    height: 1px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.section-heading {
    margin-bottom: 34px;
    max-width: 760px;
}

.section-heading h2 {
    font-size: clamp(1.85rem, 2.6vw, 2.35rem);
    line-height: 1.16;
}

.section-heading-row {
    align-items: end;
    display: flex;
    justify-content: space-between;
    max-width: none;
    gap: 24px;
}

.course-tag {
    color: #8d6b00;
}

.course-summary-card .course-tag {
    color: #6a5acd;
}

.showcase-preview-card .course-tag {
    color: #8d6b00;
}

.text-link {
    color: #5f4bc4;
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 800;
    margin-top: 8px;
}

.text-link:hover {
    color: #3f2d95;
}

.home-section-notes {
    background: linear-gradient(135deg, #4b3aa4, #6a5acd);
    border-top: 1px solid rgba(106, 90, 205, 0.24);
    color: #ffffff;
}

.studio-intro-band {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
    border-top: 1px solid rgba(106, 90, 205, 0.12);
}

.notes-layout {
    align-items: center;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.notes-copy .eyebrow,
.home-cta .eyebrow {
    color: #f4c430;
}

.notes-copy h2,
.notes-copy p {
    color: #ffffff;
}

.notes-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    margin-bottom: 26px;
}

.notes-image {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(25, 18, 70, 0.22);
    margin: 0;
    overflow: hidden;
}

.home-cta {
    background: #fff8dc;
    padding: 54px 0;
}

.home-cta-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 26px;
}

.home-cta h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.25rem);
    margin-bottom: 0;
}

.site-footer {
    background: #30265f;
}

@media (max-width: 992px) {
    .studio-hero-content,
    .studio-manifesto,
    .notes-layout {
        grid-template-columns: 1fr;
    }

    .studio-hero-content {
        gap: 38px;
    }

    .studio-hero-panel {
        max-width: 620px;
    }

    .studio-values-grid,
    .course-summary-grid,
    .showcase-preview-grid,
    .thinking-game-grid {
        grid-template-columns: 1fr;
    }

    .section-heading-row,
    .home-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .logo-icon {
        width: 68px;
        height: 68px;
    }

    .logo-text h1 {
        font-size: 1.28rem;
    }

    .studio-hero {
        padding: 44px 0 40px;
    }

    .studio-hero-title {
        font-size: 2.05rem;
    }

    .studio-hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .studio-hero-buttons .btn {
        width: 100%;
    }

    .focus-card-grid {
        grid-template-columns: 1fr;
    }

    .studio-intro-section,
    .home-section {
        padding: 46px 0;
    }

    .nav-menu {
        gap: 14px;
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        animation: none;
        opacity: 0;
    }

    .carousel-slide-1 {
        opacity: 1;
    }
}
