/* CSS Reset & Variables */
:root {
    --primary-color: #4A90E2;    /* 溫暖活力的主調藍 */
    --secondary-color: #F5A623;  /* 點綴與重點強調 */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F9F9FB;
    --bg-white: #FFFFFF;
    --font-heading: 'Noto Sans TC', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2C3E50;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(74, 144, 226, 0.2);
    z-index: -1;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-speed) ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 25px;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f0f4fd 0%, #ffffff 100%);
    padding-top: 80px; /* Offset for navbar */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,226,0.1) 0%, rgba(255,255,255,0) 70%);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(74,144,226,0.3);
}

.btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74,144,226,0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

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

/* Sections General */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-title span {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 10px;
    font-weight: 500;
    margin-top: 5px;
}

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

/* Cards System */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.card-header {
    height: 200px;
    background-color: #E2E8F0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* Icon placeholder for items without photos */
.icon-bg-primary {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
}

.header-icon {
    font-size: 4rem;
}

.card-body {
    padding: 25px;
}

/* Tags */
.tags {
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tag-blue { background: rgba(74, 144, 226, 0.1); color: var(--primary-color); }
.tag-orange { background: rgba(245, 166, 35, 0.1); color: var(--secondary-color); }
.tag-purple { background: rgba(155, 89, 182, 0.1); color: #9B59B6; }
.tag-green { background: rgba(46, 204, 113, 0.1); color: #2ECC71; }

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Kindergarten Horizontal Cards */
.card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-left: 4px solid var(--primary-color);
}

.card-img-container {
    flex: 0 0 200px;
    overflow: hidden;
}

.card-horizontal .card-img {
    height: 100%;
    width: 100%;
}

.card-horizontal .card-content {
    flex: 1;
    padding: 25px;
}

.card-horizontal h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Extra section layout */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.layout-item {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.item-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.photo-gallery {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.photo-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #EEE;
    transition: transform 0.3s;
}

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

.video-container {
    margin-top: 20px;
    padding: 30px;
    background: #EED;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #CCC;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: #2C3E50;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        padding-top: 50px;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

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

    .nav-links a {
        margin: 20px 0;
        font-size: 1.2rem;
    }

    .two-col-layout { grid-template-columns: 1fr; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .btn-secondary { margin-left: 0; }

    .card-horizontal {
        flex-direction: column;
    }

    .card-img-container {
        flex: 0 0 180px;
    }
}
