/* ===========================================
   EduCMS Preschool Theme
   幼兒園主題樣式
   =========================================== */

/* CSS Variables - Warm Kindergarten Theme */
:root {
    /* Primary Colors - Green + Orange */
    --primary-color: #E8716D;
    --secondary-color: #F4A261;
    --accent-color: #E91E63;
    --highlight-color: #FFD54F;

    /* Playful Color Palette */
    --green: #E8716D;
    --orange: #F4A261;
    --pink: #E91E63;
    --yellow: #FFD54F;
    --cyan: #26C6DA;
    --purple: #9C27B0;
    --coral: #FF7043;

    /* Soft Pastel Variants */
    --green-light: #FFF4F2;
    --orange-light: #FFE0B2;
    --pink-light: #F8BBD9;
    --yellow-light: #FFF9C4;
    --cyan-light: #B2EBF2;

    /* Text Colors */
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #F9F9F9;
    --bg-warm: #FFF8E1;
    --white: #ffffff;

    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-playful: 0 8px 25px rgba(232, 82, 122, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 25px;
    --border-radius-pill: 50px;
}

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

body {
    font-family: 'Noto Sans TC', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: 80px;
}

/* Headings use Nunito for playful feel */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans TC', 'Nunito', sans-serif;
    font-weight: 700;
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* ===========================================
   Navbar
   =========================================== */
.navbar {
    background: var(--white) !important;
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-brand .brand-text {
    color: var(--primary-color);
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: transparent;
}

.navbar-nav .nav-link i,
.navbar-nav .nav-link .nav-icon {
    margin-right: 6px;
}

.nav-icon {
    vertical-align: middle;
    display: inline-block;
}

.navbar-nav .btn-primary {
    background: var(--primary-color);
    border: none;
}

.navbar-nav .btn-primary:hover {
    background: var(--secondary-color);
}

/* ===========================================
   Hero Section - Full Screen
   =========================================== */
.hero-section {
    margin-top: -80px;
}

.hero-fullscreen {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background images - seamless blend */
.hero-bg-images {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

.hero-bg-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.hero-bg-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-bg-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Hero main content */
.hero-main-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo .logo-img {
    max-height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-logo i {
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-brand-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 5px;
}

.hero-slogan {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0.95;
    letter-spacing: 3px;
}

.hero-slogan .divider {
    margin: 0 10px;
    opacity: 0.6;
}

/* Scroll indicator */
.scroll-indicator {
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-text {
    display: block;
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.scroll-arrow i {
    font-size: 1.2rem;
}

.scroll-indicator:hover .scroll-arrow {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===========================================
   Institutions Section - Three Cards
   =========================================== */
.institutions-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.institution-card {
    display: block;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.institution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
}

.institution-card.nursery-card::before {
    background: linear-gradient(90deg, #FF6B6B, #FFA07A);
}

.institution-card.kindergarten-card::before {
    background: linear-gradient(90deg, #4ECDC4, #44A08D);
}

.institution-card.cram-card::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.institution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.institution-card .card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.institution-card .card-icon {
    margin: 0 auto 20px;
    transition: var(--transition);
}

.institution-card:hover .card-icon {
    transform: scale(1.1);
}

.institution-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.institution-card .card-info {
    flex-grow: 1;
    margin-bottom: 20px;
}

.institution-card .card-info p {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.institution-card .card-info i {
    width: 20px;
    color: var(--primary-color);
}

.institution-card .card-info svg {
    vertical-align: middle;
    margin-right: 5px;
}

.institution-card .card-cta {
    display: inline-block;
    padding: 10px 25px;
    background: var(--bg-light);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.institution-card:hover .card-cta {
    background: var(--primary-color);
    color: var(--white);
}

.nursery-card:hover .card-cta { background: #FF6B6B; }
.kindergarten-card:hover .card-cta { background: #4ECDC4; }
.cram-card:hover .card-cta { background: #667eea; }

/* Section header with decoration */
.section-header {
    margin-bottom: 50px;
}

.title-decoration {
    display: block;
    margin-bottom: 15px;
}

.title-decoration svg {
    vertical-align: middle;
}

/* Hero logo inline */
.hero-logo-inline {
    margin-bottom: 20px;
}

.hero-logo-img {
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Brand logo in navbar */
.brand-logo {
    margin-right: 10px;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
}

/* Feature icons with SVG */
.feature-icon svg {
    display: block;
    margin: 0 auto;
}

/* CTA icon */
.cta-icon {
    margin-bottom: 20px;
}

/* About placeholder */
.about-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--white);
}

/* Legacy hero styles for swiper (if needed) */
.hero-carousel {
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-content .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Hero Animations */
.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-up.delay-1 { animation-delay: 0.2s; }
.animate-fade-up.delay-2 { animation-delay: 0.4s; }

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

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

/* ===========================================
   Section Titles
   =========================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-title .title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* ===========================================
   About Section
   =========================================== */
.about-section {
    background: var(--white);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 20px 25px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-badge .text {
    font-size: 0.9rem;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.about-features li {
    padding: 10px 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.about-features li i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ===========================================
   Features Section
   =========================================== */
.features-section {
    background: var(--bg-light);
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.feature-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-link:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* ===========================================
   News Section
   =========================================== */
.news-section {
    background: var(--white);
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-body {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-color);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* ===========================================
   Gallery Section
   =========================================== */
.gallery-section {
    background: var(--bg-light);
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===========================================
   CTA Section
   =========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons .btn {
    margin: 5px;
    padding: 12px 30px;
}

/* ===========================================
   Contact Section
   =========================================== */
.contact-section {
    background: var(--white);
}

.contact-info {
    padding-right: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p {
    margin: 0;
    color: var(--text-muted);
}

.contact-text a {
    color: var(--text-muted);
}

.contact-text a:hover {
    color: var(--primary-color);
}

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link.facebook { background: #1877f2; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.line { background: #00b900; }

.social-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    color: var(--white);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.contact-form .form-control {
    border: 1px solid #E5E7EB;
    border-radius: var(--border-radius);
    padding: 12px 15px;
    transition: var(--transition);
}

/* Fix for select elements to prevent text cutoff */
.contact-form select.form-control {
    padding: 8px 15px;
    min-height: 45px;
    line-height: 1.5;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 14px;
    font-size: 1.05rem;
}

.contact-form .btn-primary:hover {
    background: var(--secondary-color);
}

/* Contact Form Messages */
.contact-form .form-message {
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 1rem;
}

.contact-form .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.contact-form .alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.contact-form .alert-dismissible .close {
    padding: 15px 20px;
    color: inherit;
    opacity: 0.7;
}

.contact-form .alert-dismissible .close:hover {
    opacity: 1;
}

/* Form validation styles */
.contact-form .is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

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

.footer-brand h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.footer-contact li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    width: 20px;
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px;
}

.copyright,
.powered-by {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================================
   Buttons
   =========================================== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===========================================
   Responsive Styles
   =========================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        margin-top: 15px;
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav .nav-link {
        padding: 12px 15px !important;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }

    .hero-fullscreen {
        min-height: 500px;
    }

    .hero-brand-name {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-slogan {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-slogan .divider {
        margin: 0 5px;
    }

    .hero-logo .logo-img {
        max-height: 80px;
    }

    .institutions-section {
        padding: 50px 0;
    }

    .institution-card {
        padding: 30px 20px;
    }

    .institution-card .card-title {
        font-size: 1.25rem;
    }

    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title .title-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 10px;
    }

    .about-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }

    .about-placeholder {
        height: 250px;
        font-size: 3rem;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }
}

/* ===========================================
   NEW: About Section - Weige Style
   =========================================== */
.about-section-new {
    padding: 100px 0;
    background: var(--white);
}

.about-text-content {
    padding-right: 40px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    letter-spacing: 5px;
}

.about-desc {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-about {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 35px;
    font-weight: 500;
    margin-top: 20px;
}

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

/* Circle image container */
.about-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-circle-image {
    position: relative;
    width: 320px;
    height: 320px;
}

.circle-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 8px solid #FFB366;
    border-radius: 50%;
}

.circle-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}

.about-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.vertical-en {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.vertical-zh {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 5px;
}

/* ===========================================
   NEW: Institutions Section - Organic Style
   =========================================== */
.institutions-section-new {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title-organic {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-title-organic::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.institution-row {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.institution-row:last-child {
    border-bottom: none;
}

.institution-circle {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.circle-border-thick {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 10px solid #FFB366;
    border-radius: 50%;
}

.nursery-circle .circle-border-thick {
    border-color: #FF9FF3;
}

.kindergarten-circle .circle-border-thick {
    border-color: #4ECDC4;
}

.cram-circle .circle-border-thick {
    border-color: #9B59B6;
}

.circle-content {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.institution-text {
    padding: 20px;
}

.institution-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.institution-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.institution-info {
    margin-bottom: 25px;
}

.institution-info p {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.institution-info i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-institution {
    padding: 12px 30px;
    font-weight: 500;
    color: var(--white);
}

.btn-nursery {
    background: #FF9FF3;
    border-color: #FF9FF3;
}

.btn-nursery:hover {
    background: #f368e0;
    color: var(--white);
}

.btn-kindergarten {
    background: #4ECDC4;
    border-color: #4ECDC4;
}

.btn-kindergarten:hover {
    background: #00b894;
    color: var(--white);
}

.btn-cram {
    background: #9B59B6;
    border-color: #9B59B6;
}

.btn-cram:hover {
    background: #8e44ad;
    color: var(--white);
}

/* ===========================================
   NEW: Gallery Section - Cloud Shape Style
   =========================================== */
.gallery-section-cloud {
    padding: 80px 0;
    background: var(--bg-light);
    overflow: hidden;
}

.gallery-cloud-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.cloud-item {
    flex: 0 0 auto;
    width: 350px;
    text-align: center;
    transition: var(--transition);
}

.cloud-item:hover {
    transform: translateY(-10px);
}

.cloud-shape {
    position: relative;
    width: 100%;
    height: 250px;
}

.cloud-shape svg {
    position: absolute;
    width: 0;
    height: 0;
}

.cloud-image {
    width: 100%;
    height: 100%;
    position: relative;
    /* Cloud shape using CSS */
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cloud-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 50%;
    height: 70%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
}

.cloud-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15%;
    width: 45%;
    height: 65%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
}

.cloud-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cloud-item:hover .cloud-image img {
    transform: scale(1.1);
}

.cloud-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: var(--white);
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.placeholder-content span {
    font-size: 1rem;
    font-weight: 500;
}

.cloud-caption {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Alternative cloud shapes for variety */
.cloud-item-1 .cloud-image {
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
}

.cloud-item-2 .cloud-image {
    border-radius: 45% 55% 50% 50% / 50% 45% 55% 50%;
}

.cloud-item-3 .cloud-image {
    border-radius: 55% 45% 45% 55% / 60% 50% 50% 40%;
}

/* ===========================================
   NEW: News Cards Style
   =========================================== */
.news-card-new {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.news-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    margin-top: 5px;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #FFE66D;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 15px;
    margin-bottom: 10px;
}

.news-tag.tag-announcement {
    background: #74B9FF;
    color: #fff;
}

.news-tag.tag-gallery {
    background: #FF9FF3;
    color: #fff;
}

.news-title-new {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.news-excerpt-new {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link-new {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.news-link-new:hover {
    color: var(--secondary-color);
}

/* ===========================================
   NEW: CTA Section
   =========================================== */
.cta-section-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
}

/* ===========================================
   Responsive - New Styles
   =========================================== */
@media (max-width: 991.98px) {
    .about-text-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .about-circle-image {
        width: 260px;
        height: 260px;
    }

    .about-vertical-text {
        display: none;
    }

    .institution-circle {
        width: 220px;
        height: 220px;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .about-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .about-circle-image {
        width: 200px;
        height: 200px;
    }

    .institution-circle {
        width: 180px;
        height: 180px;
    }

    .institution-name {
        font-size: 1.4rem;
    }

    .gallery-photo {
        height: 200px;
    }

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

    .news-date {
        flex-direction: row;
        gap: 10px;
        padding: 15px;
    }

    .news-date .day {
        font-size: 1.5rem;
    }
}

/* ===========================================
   Hero Section - Full Width Cloud Style (Weige)
   =========================================== */

/* Hero wrapper - contains navbar + hero with same background */
.hero-wrapper {
    background: #E8716D; /* Green background */
    min-height: 100vh;
}

/* Remove body padding when using hero wrapper */
body {
    padding-top: 0 !important;
}

/* Navbar - same green background as hero */
.navbar-weige {
    background: #E8716D !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar-weige .brand-text-weige {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Playful navigation with icons */
.nav-playful {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link-playful {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-icon-playful {
    display: block;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.nav-icon-playful svg {
    display: block;
}

.nav-text-playful {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.nav-link-playful:hover {
    text-decoration: none;
    transform: translateY(-3px);
}

.nav-link-playful:hover .nav-icon-playful {
    transform: scale(1.2);
}

.nav-link-playful:hover .nav-text-playful {
    color: #F48FB1;
}

/* Dropdown menu - playful style */
.nav-dropdown-playful .dropdown-toggle::after {
    display: none;
}

.dropdown-menu-playful {
    background: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 15px 0;
    min-width: 180px;
    margin-top: 10px;
}

.dropdown-menu-playful .dropdown-item {
    padding: 12px 25px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-menu-playful .dropdown-item:hover {
    background: #E91E63;
    color: #fff;
}

.dropdown-menu-playful .dropdown-item-active {
    background: #E91E63;
    color: #fff;
}

.dropdown-menu-playful .dropdown-item i {
    margin-right: 8px;
}

/* Hero section - full width, photo flush with bottom */
.hero-full-cloud {
    position: relative;
    min-height: calc(100vh - 80px);
    padding-top: 80px;
    padding-bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Floating cloud decorations */
.cloud-float {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.cloud-float-1 {
    top: 80px;
    left: 20px;
    width: 180px;
    animation: cloudDrift 12s ease-in-out infinite;
}

.cloud-float-2 {
    top: 60px;
    right: 50px;
    width: 140px;
    animation: cloudDrift 15s ease-in-out infinite reverse;
}

@keyframes cloudDrift {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(20px); }
}

/* Left side text overlay */
.hero-text-left {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 280px;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C62828;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.hero-slogan-text {
    font-size: 1rem;
    line-height: 2;
    color: #333;
    font-weight: 500;
}

.slogan-hearts {
    color: #C62828;
    font-weight: 600;
}

/* Main cloud-shaped photo - full width, flush with viewport */
.hero-cloud-photo-main {
    width: 100%;
    position: relative;
    z-index: 5;
}

.cloud-shape-wrapper {
    position: relative;
    width: 100%;
    /* Use SVG clip-path for true cloud shape */
    clip-path: url(#cloudClipPath);
    -webkit-clip-path: url(#cloudClipPath);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* Swiper inside cloud */
.hero-cloud-swiper {
    width: 100%;
}

.hero-cloud-swiper .swiper-slide {
    width: 100%;
}

.hero-cloud-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    /* Maintain original aspect ratio */
    object-fit: contain;
}

/* Carousel navigation buttons */
.cloud-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 20;
}

.cloud-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.cloud-nav-btn:hover {
    background: #F9A825;
    color: white;
    transform: scale(1.1);
}

/* Pagination dots */
.cloud-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cloud-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cloud-pagination .swiper-pagination-bullet-active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Right side decoration */
.hero-right-deco {
    position: absolute;
    right: 3%;
    bottom: 10%;
    z-index: 10;
    text-align: center;
}

.hero-mascot-img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    animation: mascotBounce 3s ease-in-out infinite;
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-badge {
    background: white;
    padding: 12px 18px;
    border-radius: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-badge span {
    display: block;
    font-weight: 700;
    color: #333;
}

.badge-line1 {
    font-size: 0.9rem;
    color: #C62828 !important;
}

.badge-line2 {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-text-left {
        left: 3%;
        max-width: 220px;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .hero-slogan-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .hero-text-left {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        text-align: center;
        max-width: 100%;
        padding: 20px;
        margin-bottom: 20px;
    }

    .hero-full-cloud {
        flex-direction: column;
        padding-top: 80px;
    }

    .hero-cloud-photo-main {
        width: 95%;
    }

    .hero-right-deco {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 30px;
    }

    .cloud-float {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-tagline {
        font-size: 1.2rem;
    }

    .cloud-shape-wrapper {
        padding-bottom: 70%;
    }

    .hero-mascot-img {
        width: 80px;
    }
}

/* Old styles kept for compatibility */
.hero-cloud-photo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cloud-photo-mask {
    width: 100%;
    max-width: 600px;
    height: 400px;
    position: relative;
    /* Cloud shape using border-radius */
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.2),
        inset 0 0 0 8px rgba(255,255,255,0.3);
    animation: morphCloud 8s ease-in-out infinite;
}

.cloud-photo-mask-alt {
    border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%;
}

@keyframes morphCloud {
    0%, 100% {
        border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    }
    25% {
        border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
    }
    50% {
        border-radius: 50% 50% 45% 55% / 60% 50% 50% 40%;
    }
    75% {
        border-radius: 45% 55% 50% 50% / 45% 60% 40% 55%;
    }
}

.cloud-photo-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cloud-photo-mask:hover img {
    transform: scale(1.05);
}

/* Side decoration with mascot */
.hero-side-decoration {
    position: absolute;
    right: 30px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hero-mascot {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
    animation: bounce 2s ease-in-out infinite;
}

.hero-side-text {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    margin-top: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-side-text span {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

/* Weige Hero responsive */
@media (max-width: 991.98px) {
    .hero-title-weige {
        font-size: 2.5rem;
    }

    .cloud-photo-mask {
        max-width: 450px;
        height: 300px;
    }

    .hero-side-decoration {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section-weige .hero-carousel {
        height: auto;
        min-height: 100vh;
    }

    .hero-slide-weige .row {
        flex-direction: column-reverse;
    }

    .hero-content-weige {
        text-align: center;
        padding: 30px 20px;
    }

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

    .cloud-photo-mask {
        max-width: 300px;
        height: 220px;
        margin: 0 auto;
    }

    .hero-cloud {
        display: none;
    }
}

/* ===========================================
   Gallery Section - Simple Cards
   =========================================== */
.gallery-section-simple {
    background: var(--bg-light);
}

.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.gallery-image-wrapper {
    height: 220px;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.gallery-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.gallery-placeholder span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===========================================
   News Section - Colorful Pill Cards Style
   =========================================== */
.news-section-playful {
    padding: 80px 0;
    background: #E8ECEF;
}

.news-title-top {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.news-title-main {
    font-size: 3rem;
    font-weight: 900;
    color: #333;
    letter-spacing: 5px;
    font-family: 'Arial Black', sans-serif;
    margin-bottom: 15px;
}

.news-subtitle {
    font-size: 1rem;
    color: #666;
}

/* Pills container */
.news-pills-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Individual pill card */
.news-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 280px;
    border-radius: 110px 110px 110px 110px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 30px 20px;
}

.news-pill:hover {
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Pill colors */
.news-pill-cyan {
    background: #8DD4CF;
}

.news-pill-yellow {
    background: #FFE566;
}

.news-pill-purple {
    background: #B8A9D9;
}

.news-pill-coral {
    background: #E0918C;
}

/* Hover state - white background + rounded rectangle shape */
.news-pill-cyan:hover,
.news-pill-yellow:hover,
.news-pill-purple:hover,
.news-pill-coral:hover {
    background: #fff;
    border-radius: 30px;
}

/* Pill date */
.pill-date {
    text-align: center;
    margin-bottom: 30px;
}

.pill-day {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: #333;
    line-height: 1;
}

.pill-month {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

/* Pill title */
.pill-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
    .news-pills-container {
        gap: 20px;
    }

    .news-pill {
        width: 180px;
        height: 240px;
    }

    .pill-day {
        font-size: 2.5rem;
    }

    .news-title-main {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .news-pills-container {
        flex-direction: column;
        align-items: center;
    }

    .news-pill {
        width: 200px;
        height: 250px;
    }
}

/* ===========================================
   Subpage Styles
   =========================================== */

/* Subpage body */
body.subpage {
    padding-top: 0;
}

/* Subpage Navbar - same playful style as homepage, but with white background */
.navbar-subpage {
    background: #fff !important;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-subpage .brand-text-weige {
    color: #333;
}

.navbar-subpage .nav-text-playful {
    color: #333 !important;
}

.navbar-subpage .nav-link-playful:hover .nav-text-playful {
    color: #F48FB1 !important;
}

/* Subpage Header */
.subpage-header {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.subpage-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.subpage-icon {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 15px;
}

.subpage-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.subpage-breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.header-cloud-deco {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.header-mascot {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* Subpage Content */
.subpage-content {
    padding: 50px 0;
    background: #fff;
}

/* Sidebar */
.subpage-sidebar {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sidebar-item {
    display: block;
    padding: 18px 25px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: #f8f8f8;
    color: #E91E63;
    text-decoration: none;
}

.sidebar-item-active {
    background: #E91E63;
    color: #fff !important;
}

.sidebar-item-active:hover {
    background: #D81B60;
    color: #fff;
}

.sidebar-item i {
    margin-right: 10px;
}

/* Main Content */
.subpage-main {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

.school-badge {
    display: inline-flex;
    align-items: center;
    background: #FFF8E1;
    border: 2px solid #FFD54F;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.badge-crown {
    font-size: 1.2rem;
    margin-right: 8px;
}

.badge-text {
    font-weight: 600;
    color: #8D6E63;
}

.content-hero-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.content-hero-image img {
    width: 100%;
    height: auto;
}

.content-school-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #E8716D;
    display: inline-block;
}

.content-text {
    font-size: 1.05rem;
    line-height: 2;
    color: #555;
}

.content-text p {
    margin-bottom: 20px;
}

/* Simple Footer */
.footer-simple {
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 991px) {
    .subpage-sidebar {
        margin-bottom: 30px;
    }

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

    .header-cloud-deco {
        display: none;
    }
}

/* Environment Text Block */
.env-text-block {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #FFD54F;
}

.env-text-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.env-text-title .title-icon {
    font-size: 2rem;
}

.env-text-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F4A261;
    margin: 0;
}

.env-text-content {
    padding-left: 10px;
}

.env-text-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.6;
}

.env-text-item .check-icon {
    color: #E8716D;
    font-weight: bold;
    flex-shrink: 0;
}

.env-text-item strong {
    color: #E91E63;
}

.env-text-subtitle {
    font-weight: 700;
    color: #333;
    margin: 15px 0 10px;
    font-size: 1.05rem;
}

/* Environment Photo Block */
.env-photo-block {
    margin-top: 20px;
}

.env-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .env-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.env-photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.env-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.env-photo-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
    background: #f9f9f9;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.env-photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* Photo Modal */
.photo-modal-content {
    background: transparent;
    border: none;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    opacity: 1;
    z-index: 10;
}

.photo-modal-close:hover {
    color: #fff;
}

.photo-modal-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
}

/* Environment Gallery (legacy) */
.environment-gallery {
    margin-top: 30px;
}

.gallery-thumb {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.gallery-thumb img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 10px;
}

/* ===========================================
   Gallery Page - 活動剪影
   =========================================== */

/* Gallery List - 活動列表 */
.gallery-list {
    padding: 20px 0;
}

.gallery-card {
    display: block;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-decoration: none;
}

.gallery-card-img {
    position: relative;
    overflow: hidden;
}

.gallery-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-img img {
    transform: scale(1.05);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 30px 15px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.gallery-card-overlay i {
    font-size: 1rem;
}

.gallery-card-body {
    padding: 15px 20px;
}

.gallery-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px;
}

.gallery-card-date {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* Gallery Card More - 瀏覽更多卡片 */
.gallery-card-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px dashed #ccc;
    transition: all 0.3s ease;
}

.gallery-card-more:hover {
    transform: translateY(-8px);
    border-color: #E8716D;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Ensure gallery cards have equal height */
.gallery-section-home .row {
    display: flex;
    flex-wrap: wrap;
}

.gallery-section-home .row > [class*='col-'] {
    display: flex;
}

.gallery-section-home .gallery-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gallery-section-home .gallery-card-body {
    flex-grow: 1;
}

.gallery-card-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #666;
    text-align: center;
}

.gallery-card-more-content i:first-child {
    font-size: 3rem;
    color: #E8716D;
}

.gallery-card-more-content span {
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-card-more-content i:last-child {
    font-size: 1.5rem;
    color: #E8716D;
    transition: transform 0.3s ease;
}

.gallery-card-more:hover .gallery-card-more-content i:last-child {
    transform: translateX(5px);
}

.gallery-card-more:hover .gallery-card-more-content {
    color: #E8716D;
}

/* Home Gallery Section */
.gallery-section-home {
    background: #f9f9f9;
}

/* Gallery Detail - 活動詳情頁 */
.gallery-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F4A261;
    font-weight: 500;
    margin-bottom: 25px;
    transition: all 0.2s ease;
}

.gallery-back-btn:hover {
    color: #F57C00;
    text-decoration: none;
    transform: translateX(-5px);
}

.gallery-detail-header {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #FFD54F;
}

.gallery-detail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.gallery-detail-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #F4A261;
    margin: 0;
}

.gallery-detail-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.gallery-detail-desc {
    color: #555;
    line-height: 1.8;
}

.gallery-detail-desc p {
    margin: 0;
}

/* Gallery Photo Grid */
.gallery-detail-photos {
    margin-top: 20px;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .gallery-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-photo-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-photo-item .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-photo-item:hover .photo-overlay {
    opacity: 1;
}

.gallery-photo-item .photo-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* Teacher Card */
.teacher-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.teacher-photos {
    position: relative;
}

.teacher-main-photo {
    border-radius: 10px;
    overflow: hidden;
}

.teacher-label {
    background: #8BC34A;
    color: #fff;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.teacher-main-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.teacher-info {
    padding: 15px 0;
}

.teacher-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.teacher-title {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.teacher-desc {
    color: #555;
    line-height: 1.8;
}

/* Location Card */
.location-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.contact-info-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.contact-info-box .school-name {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.contact-list li {
    padding: 8px 0;
    color: #555;
}

.contact-list li i {
    color: #E8716D;
    margin-right: 10px;
    width: 20px;
}

.cute-map-illustration {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.google-map-container {
    height: 100%;
}

.map-placeholder {
    height: 100%;
    min-height: 400px;
}

/* ===========================================
   Additional Responsive Breakpoints (T031)
   Bootstrap breakpoints: 576px, 768px, 992px, 1200px
   =========================================== */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }

    /* Navbar */
    .navbar-brand .brand-text {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    /* Hero Section */
    .hero-fullscreen {
        min-height: 400px;
    }

    .hero-brand-name {
        font-size: 2rem;
    }

    .hero-slogan {
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-logo .logo-img {
        max-height: 60px;
    }

    /* Feature Cards */
    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    /* News Cards */
    .news-card .news-body {
        padding: 15px;
    }

    .news-title {
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 10px;
    }

    /* Footer */
    .site-footer {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* Buttons */
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Section Padding */
    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* CTA Section */
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
}

/* Small devices (landscape phones, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .feature-card {
        padding: 25px 20px;
    }

    .institution-card {
        padding: 35px 25px;
    }
}

/* Medium devices (tablets, 768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-brand-name {
        font-size: 3rem;
    }

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

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-link {
        padding: 12px 16px !important;
    }

    .btn {
        min-height: 44px;
    }

    /* Remove hover effects on touch */
    .feature-card:hover,
    .news-card:hover,
    .institution-card:hover {
        transform: none;
    }

    /* Better scrolling */
    .hero-carousel {
        -webkit-overflow-scrolling: touch;
    }
}

/* Print styles */
@media print {
    .navbar,
    .site-footer,
    .cta-section,
    .scroll-indicator {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    .hero-fullscreen {
        min-height: auto;
        padding: 20px 0;
    }

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-carousel .swiper-slide {
        transition: none !important;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* ===========================================
   WebP Image Support (T054)
   Use .webp and .no-webp classes on <html>
   =========================================== */

/* WebP background images */
.webp .hero-bg-1 {
    background-image: url('/static/img/preschool/default/hero-1.webp');
}
.no-webp .hero-bg-1,
.hero-bg-1 {
    background-image: url('/static/img/preschool/default/hero-1.jpg');
}

.webp .hero-bg-2 {
    background-image: url('/static/img/preschool/default/hero-2.webp');
}
.no-webp .hero-bg-2,
.hero-bg-2 {
    background-image: url('/static/img/preschool/default/hero-2.jpg');
}

.webp .hero-bg-3 {
    background-image: url('/static/img/preschool/default/hero-3.webp');
}
.no-webp .hero-bg-3,
.hero-bg-3 {
    background-image: url('/static/img/preschool/default/hero-3.jpg');
}

/* CTA Section background - using gradient only */
.cta-section {
    background: linear-gradient(135deg, rgba(0,123,255,0.95), rgba(40,167,69,0.95));
}

/* Image placeholder styles */
.img-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Lazy load animation */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded,
img:not([data-src]) {
    opacity: 1;
}

/* ===========================================
   Page Header - Subpage Headers
   =========================================== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 7rem 0 3rem 0;  /* 增加 top padding 以補償固定導航欄高度 (約 80px) */
    margin-bottom: 0;
    text-align: center;
}

.page-header .page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    justify-content: center;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item a:hover {
    color: white;
}

.page-header .breadcrumb-item.active {
    color: white;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Compact page header variant */
.page-header-compact {
    padding: 6rem 0 1.5rem 0;
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 6rem 0 2rem 0;
    }

    .page-header .page-title {
        font-size: 1.75rem;
    }

    .page-header-compact {
        padding: 5rem 0 1rem 0;
    }
}

/* ===========================================
   Nobel-Style Playful Theme - 2024 Redesign
   參考諾貝爾幼兒園風格的童趣設計
   =========================================== */

/* ===========================================
   Playful Navbar - Clean White Style
   =========================================== */
.navbar-playful {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-playful.scrolled {
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.navbar-mascot {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.navbar-mascot:hover {
    transform: scale(1.1) rotate(-5deg);
}

.brand-text-playful {
    color: #E8716D !important;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.navbar-toggler-playful {
    color: #E8716D;
    font-size: 1.5rem;
    padding: 8px 12px;
    background: rgba(232, 82, 122, 0.1);
    border-radius: 10px;
    border: none;
}

.navbar-toggler-playful:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 82, 122, 0.2);
}

/* Playful Navigation Links */
.nav-playful {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link-playful {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.nav-link-playful:hover {
    background: rgba(232, 82, 122, 0.08);
    transform: translateY(-2px);
}

.nav-icon-playful {
    display: block;
    margin-bottom: 3px;
    transition: transform 0.3s ease;
}

.nav-link-playful:hover .nav-icon-playful {
    transform: scale(1.1);
}

.nav-text-playful {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.nav-link-playful:hover .nav-text-playful {
    color: #E8716D;
}

/* Enrollment Button - Playful Style */
.btn-enrollment-playful {
    background: linear-gradient(135deg, #F4A261 0%, #FFB74D 100%);
    color: #fff !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 25px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.35);
    transition: all 0.3s ease;
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-enrollment-playful:hover {
    background: linear-gradient(135deg, #F57C00 0%, #F4A261 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.45);
    color: #fff !important;
    text-decoration: none;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 152, 0, 0.35); }
    50% { box-shadow: 0 4px 25px rgba(255, 152, 0, 0.5); }
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
    .navbar-playful .navbar-collapse {
        background: #fff;
        padding: 20px;
        margin-top: 10px;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    }

    .nav-playful {
        flex-direction: column;
        gap: 5px;
    }

    .nav-link-playful {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        padding: 12px 15px !important;
        border-radius: 10px;
    }

    .nav-link-playful:hover {
        background: rgba(232, 82, 122, 0.1);
    }

    .nav-icon-playful {
        margin-bottom: 0;
    }

    .nav-text-playful {
        font-size: 1rem;
        color: #333;
    }

    .btn-enrollment-playful {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* ===========================================
   Hero Cloud Section - Full Width Carousel
   =========================================== */
.hero-cloud-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -80px; /* Offset for fixed navbar */
    padding-top: 80px;
    background: #fff; /* White background throughout */
}

/* Full Width Carousel Container */
.hero-carousel-fullwidth {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-carousel-fullwidth .swiper {
    width: 100%;
}

.hero-carousel-fullwidth .swiper-slide {
    width: 100%;
}

/* Fixed aspect ratio container using padding-bottom technique */
.hero-carousel-fullwidth .slide-image-wrapper {
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio = 56.25%, 21:9 = 42.86%, 2.5:1 = 40% */
    padding-bottom: 42%; /* ~21:9 aspect ratio - wide cinematic feel */
    overflow: hidden;
    background: #f5f5f5;
}

.hero-carousel-fullwidth .slide-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Slide Caption */
.slide-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 5;
}

.slide-caption h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.slide-caption p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cloud-shaped bottom SVG overlay - fluffy cloud transition */
.hero-cloud-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    line-height: 0;
    pointer-events: none;
}

.hero-cloud-bottom svg {
    width: 100%;
    height: 150px;
    display: block;
}

/* Navigation Arrows */
.hero-carousel-fullwidth .swiper-button-prev,
.hero-carousel-fullwidth .swiper-button-next {
    color: #fff;
    background: rgba(232, 82, 122, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-carousel-fullwidth .swiper-button-prev:hover,
.hero-carousel-fullwidth .swiper-button-next:hover {
    background: rgba(232, 82, 122, 0.9);
    transform: scale(1.1);
}

.hero-carousel-fullwidth .swiper-button-prev::after,
.hero-carousel-fullwidth .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

/* Pagination Dots - positioned at bottom of carousel, above cloud wave */
.hero-carousel-fullwidth .swiper-pagination {
    bottom: 20px !important;
    z-index: 15;
}

.hero-carousel-fullwidth .swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    border: none;
    transition: all 0.3s ease;
}

.hero-carousel-fullwidth .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* Welcome Banner - Uses CSS variable for theming */
.hero-welcome-banner {
    background: var(--cs-welcome-bg, linear-gradient(180deg, var(--cs-primary, #E8716D) 0%, var(--cs-primary-dark, #D45A56) 100%));
    padding: 50px 0 60px 0;
    position: relative;
    z-index: 5;
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.welcome-mascot img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    animation: mascot-bounce 3s ease-in-out infinite;
}

@keyframes mascot-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}

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

.welcome-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-text .school-name {
    color: var(--cs-accent-light, #FCD34D);
}

.welcome-slogan {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.welcome-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #F4A261 0%, #FFB74D 100%);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    color: #fff !important;
    text-decoration: none;
}

.btn-cta-secondary {
    background: #fff;
    color: var(--cs-primary, #E8716D) !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    text-decoration: none;
    border-color: #fff;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-carousel-fullwidth .slide-image-wrapper {
        /* Slightly taller ratio on tablet */
        padding-bottom: 50%;
    }

    .welcome-content {
        flex-direction: column;
        text-align: center;
    }

    .welcome-cta {
        justify-content: center;
    }

    .slide-caption h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel-fullwidth .slide-image-wrapper {
        /* Even taller on mobile for better visibility */
        padding-bottom: 60%;
    }

    .hero-carousel-fullwidth .swiper-button-prev,
    .hero-carousel-fullwidth .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .hero-carousel-fullwidth .swiper-button-prev::after,
    .hero-carousel-fullwidth .swiper-button-next::after {
        font-size: 16px;
    }

    .hero-carousel-fullwidth .swiper-pagination {
        bottom: 70px !important;
    }

    .slide-caption {
        bottom: 60px;
    }

    .slide-caption h3 {
        font-size: 1.2rem;
    }

    .slide-caption p {
        font-size: 0.9rem;
    }

    .welcome-text h1 {
        font-size: 1.4rem;
    }

    .welcome-mascot img {
        width: 80px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===========================================
   Legacy Hero Styles (Kept for compatibility)
   =========================================== */
.hero-playful {
    display: none; /* Hide old hero */
}

/* Old floating clouds - kept for other uses */
.hero-cloud-float {
    position: absolute;
    z-index: 2;
    opacity: 0.7;
    pointer-events: none;
}

.hero-cloud-float-1 {
    top: 100px;
    left: 3%;
    width: 120px;
    animation: float-cloud 20s ease-in-out infinite;
}

.hero-cloud-float-2 {
    top: 120px;
    right: 5%;
    width: 100px;
    animation: float-cloud 15s ease-in-out infinite reverse;
}

.hero-cloud-float-3 {
    bottom: 25%;
    left: 8%;
    width: 80px;
    animation: float-cloud 18s ease-in-out infinite 2s;
}

@keyframes float-cloud {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(15px); }
}

/* Hero Content Layout */
.hero-playful-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 30px 0 0;
}

.hero-playful-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
}

/* Top Info Bar - School Name + Mascot + Slogan */
.hero-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
    margin-bottom: 30px;
}

.hero-text-area {
    flex: 1;
    max-width: 400px;
}

.hero-tagline-playful {
    font-size: 2rem;
    font-weight: 800;
    color: #D45A56;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-slogan-playful {
    font-size: 1rem;
    line-height: 2;
    color: #555;
    font-weight: 500;
}

.hero-slogan-playful p {
    margin: 0;
}

.hero-slogan-playful .highlight {
    color: #E91E63;
    font-weight: 700;
}

/* Mascot Area - Floating on Side */
.hero-mascot-area {
    text-align: center;
    padding: 20px;
}

.hero-mascot-img {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15));
    animation: bounce-mascot 3s ease-in-out infinite;
}

@keyframes bounce-mascot {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-3deg); }
}

.hero-badge-playful {
    background: #fff;
    padding: 12px 18px;
    border-radius: 15px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #FFD54F;
    display: inline-block;
}

.hero-badge-playful .line1 {
    display: block;
    font-size: 0.8rem;
    color: #E91E63;
    font-weight: 600;
}

.hero-badge-playful .line2 {
    display: block;
    font-size: 1rem;
    color: #333;
    font-weight: 700;
}

/* Full Width Cloud-Shaped Carousel */
.hero-carousel-wrapper {
    width: 100%;
    position: relative;
    margin-top: 20px;
}

.hero-carousel-cloud {
    position: relative;
    width: 100%;
    /* Cloud shape using clip-path - smooth curved top */
    clip-path: ellipse(100% 100% at 50% 100%);
    background: #fff;
    overflow: hidden;
}

/* Alternative cloud shape with border-radius */
.hero-carousel-cloud::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: inherit;
    border-radius: 50% 50% 0 0 / 20% 20% 0 0;
    z-index: -1;
}

.hero-carousel-cloud .swiper {
    width: 100%;
}

.hero-carousel-cloud .swiper-slide {
    width: 100%;
}

.hero-carousel-cloud .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    min-height: 350px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Pagination styling */
.hero-carousel-cloud .swiper-pagination {
    bottom: 20px !important;
}

.hero-carousel-cloud .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-carousel-cloud .swiper-pagination-bullet-active {
    background: #F4A261;
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

/* Wave Divider at Bottom */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

/* Hero Responsive */
@media (max-width: 1200px) {
    .hero-playful-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-text-area {
        flex: 0 0 100%;
        text-align: center;
        order: 1;
    }

    .hero-carousel-wrapper {
        order: 2;
        max-width: 90%;
    }

    .hero-mascot-area {
        flex: 0 0 100%;
        order: 3;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero-playful {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-tagline-playful {
        font-size: 1.4rem;
    }

    .hero-carousel-cloud .swiper-slide img {
        height: 300px;
    }

    .hero-mascot-img {
        width: 100px;
    }

    .hero-cloud {
        display: none;
    }
}

/* ===========================================
   Playful Section Styles
   =========================================== */

/* Section Wave Top */
.section-wave-top {
    position: relative;
    margin-top: -1px;
}

.section-wave-top::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23F9F9F9' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,45 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

/* Playful Section Title */
.section-title-playful {
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.section-title-playful::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #F4A261, #FFD54F);
    border-radius: 3px;
}

.section-subtitle-playful {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Decorative Elements */
.deco-star {
    position: absolute;
    color: #FFD54F;
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite;
}

.deco-star-1 { top: 20%; left: 10%; animation-delay: 0s; }
.deco-star-2 { top: 30%; right: 15%; animation-delay: 0.5s; }
.deco-star-3 { bottom: 20%; left: 20%; animation-delay: 1s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===========================================
   Playful About Section
   =========================================== */
.about-section-playful {
    background: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

.about-image-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 5px solid #FFD54F;
}

.about-image-frame img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image-frame:hover img {
    transform: scale(1.05);
}

.about-badge-circle {
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #F4A261 0%, #FFB74D 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
    border: 4px solid #fff;
}

.about-badge-circle .number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge-circle .text {
    font-size: 0.7rem;
    font-weight: 600;
}

.about-content-playful h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.about-content-playful .lead {
    font-size: 1.15rem;
    color: #E8716D;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content-playful p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 15px;
}

.about-features-playful {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.about-features-playful li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 1.05rem;
    color: #333;
}

.about-features-playful li i {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #E8716D 0%, #F29B98 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    margin-right: 12px;
}

.btn-about-playful {
    background: linear-gradient(135deg, #E8716D 0%, #F29B98 100%);
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    box-shadow: 0 5px 20px rgba(232, 82, 122, 0.3);
    transition: all 0.3s ease;
}

.btn-about-playful:hover {
    background: linear-gradient(135deg, #DB2777 0%, #E8716D 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 82, 122, 0.4);
}

/* ===========================================
   Playful Features Section
   =========================================== */
.features-section-playful {
    background: linear-gradient(180deg, #F9F9F9 0%, #FFF8E1 100%);
    padding: 80px 0;
    position: relative;
}

.feature-card-playful {
    background: #fff;
    border-radius: 25px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

.feature-card-playful::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--card-color, #E8716D);
}

.feature-card-playful:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: var(--card-color, #E8716D);
}

.feature-card-playful.green { --card-color: #E8716D; }
.feature-card-playful.orange { --card-color: #F4A261; }
.feature-card-playful.pink { --card-color: #E91E63; }
.feature-card-playful.cyan { --card-color: #26C6DA; }
.feature-card-playful.purple { --card-color: #9C27B0; }
.feature-card-playful.yellow { --card-color: #FFD54F; }

.feature-icon-playful {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--card-color, #E8716D) 0%, var(--card-color-light, #F29B98) 100%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.feature-card-playful:hover .feature-icon-playful {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card-playful.green .feature-icon-playful { --card-color-light: #F29B98; }
.feature-card-playful.orange .feature-icon-playful { --card-color-light: #FFB74D; }
.feature-card-playful.pink .feature-icon-playful { --card-color-light: #F48FB1; }
.feature-card-playful.cyan .feature-icon-playful { --card-color-light: #4DD0E1; }
.feature-card-playful.purple .feature-icon-playful { --card-color-light: #BA68C8; }
.feature-card-playful.yellow .feature-icon-playful { --card-color-light: #FFEE58; }

/* Support for inline style card-color (from database) */
.feature-card-playful[style*="--card-color"] .feature-icon-playful {
    background: linear-gradient(135deg, var(--card-color, #E8716D) 0%, var(--card-color, #E8716D) 100%);
}

.feature-title-playful {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.feature-desc-playful {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===========================================
   Playful News Section - Pill Cards
   =========================================== */
.news-section-playful-new {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFF4F2 0%, #FFF4F2 100%);
}

.news-pills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.news-pill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    height: 280px;
    border-radius: 110px;
    text-decoration: none !important;
    transition: all 0.4s ease;
    padding: 30px 20px;
    margin: 0 auto;
}

.news-pill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-radius: 30px;
    background: #fff !important;
}

.news-pill-card.cyan { background: #80DEEA; }
.news-pill-card.yellow { background: #FFE082; }
.news-pill-card.purple { background: #CE93D8; }
.news-pill-card.coral { background: #FFAB91; }

.pill-date {
    text-align: center;
    margin-bottom: 25px;
}

.pill-day {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: #333;
    line-height: 1;
}

.pill-month {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
}

.pill-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

/* ===========================================
   Playful Gallery Section
   =========================================== */
.gallery-section-playful {
    padding: 80px 0;
    background: #fff;
}

.gallery-card-playful {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    text-decoration: none !important;
}

.gallery-card-playful:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-card-playful .gallery-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.gallery-card-playful .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-playful:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-card-playful .gallery-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 30px 15px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.gallery-card-playful .gallery-body {
    padding: 20px;
}

.gallery-card-playful .gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.gallery-card-playful .gallery-date {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* ===========================================
   Playful CTA Section
   =========================================== */
.cta-section-playful {
    background: linear-gradient(135deg, #E8716D 0%, #F29B98 50%, #F29B98 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section-playful::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-section-playful::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.cta-mascot {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    animation: bounce-mascot 3s ease-in-out infinite;
}

.cta-title-playful {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-subtitle-playful {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.cta-buttons-playful .btn {
    margin: 5px;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 30px;
    font-size: 1.05rem;
}

.btn-cta-primary {
    background: #fff;
    color: #E8716D;
    border: 3px solid #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.btn-cta-primary:hover {
    background: #FFD54F;
    color: #333;
    border-color: #FFD54F;
}

.btn-cta-secondary {
    background: transparent;
    color: #fff;
    border: 3px solid #fff;
}

.btn-cta-secondary:hover {
    background: #fff;
    color: #E8716D;
}

/* ===========================================
   Footer Wave Hills Transition
   =========================================== */
.footer-wave-hills {
    position: relative;
    width: 100%;
    height: 150px;
    margin-top: -1px;
    margin-bottom: -2px;
    background: #FFECB3;
    overflow: visible;
}

.footer-wave-hills svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* 太陽裝飾 */
.footer-sun-decoration {
    position: absolute;
    right: 10%;
    top: 10px;
    animation: sunFloat 4s ease-in-out infinite;
    z-index: 5;
}

@keyframes sunFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

/* 太陽光芒旋轉動畫 */
.footer-sun-decoration .sun-rays {
    transform-origin: 50px 50px;
    animation: sunRaysRotate 20s linear infinite;
}

@keyframes sunRaysRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 雲朵裝飾 */
.footer-clouds-decoration {
    position: absolute;
    left: 5%;
    top: 20px;
    z-index: 4;
}

.footer-clouds-decoration .cloud {
    position: absolute;
}

.footer-clouds-decoration .cloud-1 {
    left: 0;
    top: 0;
    animation: cloudFloat1 8s ease-in-out infinite;
}

.footer-clouds-decoration .cloud-2 {
    left: 80px;
    top: 25px;
    animation: cloudFloat2 10s ease-in-out infinite;
}

@keyframes cloudFloat1 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

@keyframes cloudFloat2 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

/* 響應式調整 */
@media (max-width: 768px) {
    .footer-wave-hills {
        height: 120px;
    }

    .footer-sun-decoration {
        right: 5%;
        top: 20px;
    }

    .footer-sun-decoration svg {
        width: 60px;
        height: 60px;
    }

    .footer-clouds-decoration {
        left: 3%;
        top: 30px;
    }

    .footer-clouds-decoration .cloud-1 {
        width: 50px;
        height: 30px;
    }

    .footer-clouds-decoration .cloud-2 {
        width: 35px;
        height: 21px;
        left: 55px;
    }
}

@media (max-width: 576px) {
    .footer-wave-hills {
        height: 100px;
    }

    .footer-sun-decoration svg {
        width: 50px;
        height: 50px;
    }

    .footer-clouds-decoration .cloud-1,
    .footer-clouds-decoration .cloud-2 {
        display: none;
    }
}

/* ===========================================
   Playful Footer
   =========================================== */
.footer-playful {
    background: linear-gradient(180deg, #3D3D3D 0%, #282828 100%);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
}

/* 移除原本的彩虹頂部線條，改用山丘波浪 */
.footer-playful::before {
    display: none;
}

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

.footer-mascot {
    width: 60px;
    height: auto;
}

.footer-brand-playful h4 {
    font-weight: 700;
    margin: 0;
    font-size: 1.3rem;
}

.footer-title-playful {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFD54F;
}

.footer-links-playful {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links-playful a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links-playful a:hover {
    color: #E8716D;
    padding-left: 5px;
}

.footer-contact-playful li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}

.footer-contact-playful li i {
    color: #E8716D;
    width: 20px;
    margin-right: 10px;
    margin-top: 3px;
}

.social-links-playful {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link-playful {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link-playful.facebook { background: #1877f2; }
.social-link-playful.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link-playful.line { background: #00b900; }

.social-link-playful:hover {
    transform: translateY(-5px) scale(1.1);
    color: #fff;
}

.footer-bottom-playful {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ===========================================
   Contact Section Playful
   =========================================== */
.contact-section-playful {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFF8E1 0%, #FFECB3 100%);
}

.contact-info-playful {
    background: #fff;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    height: 100%;
    border: 3px solid #FFD54F;
}

.contact-info-playful h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.contact-item-playful {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon-playful {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon-playful.green { background: linear-gradient(135deg, #E8716D 0%, #F29B98 100%); }
.contact-icon-playful.orange { background: linear-gradient(135deg, #F4A261 0%, #FFB74D 100%); }
.contact-icon-playful.pink { background: linear-gradient(135deg, #E91E63 0%, #F48FB1 100%); }

.contact-text-playful h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.contact-text-playful p {
    margin: 0;
    color: #666;
}

/* Google Map in Contact Section */
.contact-map-playful {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 3px solid #E8716D;
}

.contact-map-playful iframe {
    display: block;
    width: 100%;
    height: 200px;
}

.contact-form-playful {
    background: #fff;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 3px solid #E8716D;
}

.contact-form-playful .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 12px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-playful .form-control:focus {
    border-color: #E8716D;
    box-shadow: 0 0 0 3px rgba(232, 82, 122, 0.1);
}

/* Fix for select elements to prevent text cutoff */
.contact-form-playful select.form-control {
    padding: 12px 18px;
    min-height: 48px;
    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.contact-form-playful .btn-submit-playful {
    background: linear-gradient(135deg, #E8716D 0%, #F29B98 100%);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(232, 82, 122, 0.3);
    transition: all 0.3s ease;
}

.contact-form-playful .btn-submit-playful:hover {
    background: linear-gradient(135deg, #DB2777 0%, #E8716D 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 82, 122, 0.4);
}

/* ===========================================
   Scroll to Top Button - Playful
   =========================================== */
.scroll-top-playful {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #F4A261 0%, #FFB74D 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-playful.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-playful:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
}

/* ===========================================
   Page Header - Playful Style
   =========================================== */
.page-header-playful {
    background: linear-gradient(135deg, #E8716D 0%, #F29B98 100%);
    color: white;
    padding: 7rem 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-header-playful::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,45 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

.page-header-playful .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header-playful .breadcrumb {
    background: transparent;
    justify-content: center;
}

.page-header-playful .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-header-playful .breadcrumb-item.active {
    color: #FFD54F;
}

/* ===========================================
   Page Section - Playful Style (White Background)
   For About, Gallery pages - matching Contact layout
   =========================================== */
.page-section-playful {
    padding: 100px 0 60px 0; /* Top padding for fixed navbar */
    background: #fff;
    min-height: calc(100vh - 300px);
}

/* About Card - Playful Style */
.about-card-playful {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 3px solid #fff4f2;
    transition: all 0.3s ease;
}

.about-card-playful:hover {
    box-shadow: 0 8px 30px rgba(232, 82, 122, 0.15);
    border-color: #E8716D;
}

.about-card-image {
    width: 100%;
}

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

.about-card-content {
    padding: 30px;
}

.about-card-title {
    font-family: 'Nunito', 'Noto Sans TC', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.about-card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    background: #E8716D;
    border-radius: 50%;
}

.about-card-text {
    color: #666;
    line-height: 1.8;
}

.about-card-text p {
    margin-bottom: 15px;
}

.about-card-text p:last-child {
    margin-bottom: 0;
}

/* Gallery Placeholder */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #E8716D 0%, #F29B98 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder i {
    font-size: 48px;
    color: #fff;
}

/* Gallery Description */
.gallery-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .page-section-playful {
        padding: 80px 0 40px 0;
    }

    .about-card-content {
        padding: 20px;
    }

    .about-card-title {
        font-size: 1.25rem;
    }
}

/* ===========================================
   Class Card - Playful Style
   =========================================== */
.class-card-playful {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.class-card-playful:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.class-card-playful.green { border-top: 5px solid #E8716D; }
.class-card-playful.orange { border-top: 5px solid #F4A261; }
.class-card-playful.pink { border-top: 5px solid #E91E63; }
.class-card-playful.cyan { border-top: 5px solid #26C6DA; }
.class-card-playful.purple { border-top: 5px solid #9C27B0; }
.class-card-playful.yellow { border-top: 5px solid #FFD54F; }

.class-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.class-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.class-card-playful:hover .class-card-image img {
    transform: scale(1.05);
}

.class-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff4f2 0%, #fff4f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.class-placeholder i {
    font-size: 48px;
    color: #E8716D;
}

.class-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #E8716D;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.class-card-playful.orange .class-badge { background: #F4A261; }
.class-card-playful.pink .class-badge { background: #E91E63; }
.class-card-playful.cyan .class-badge { background: #26C6DA; }
.class-card-playful.purple .class-badge { background: #9C27B0; }
.class-card-playful.yellow .class-badge { background: #F9A825; color: #333; }

.class-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.class-card-title {
    font-family: 'Nunito', 'Noto Sans TC', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.class-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.class-info-item i {
    color: #E8716D;
    width: 18px;
}

.class-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: auto;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .class-card-image {
        height: 150px;
    }

    .class-card-title {
        font-size: 1.1rem;
    }
}
