/*
Theme Name: Trường Mầm Non Nam Nha Trang
Theme URI: https://mnnamnhatrang.ksk.vn
Author: Ban Giám Hiệu Trường Mầm Non Nam Nha Trang
Author URI: https://mnnamnhatrang.ksk.vn
Description: Giao diện cổng thông tin điện tử Trường Mầm Non Nam Nha Trang chuẩn quốc gia: Cấu hình Logo, Tên trường, Hotline, Giờ đón trả, Menu active từ WordPress Admin, tin tức nhà trường, thông báo ngành GD&ĐT, chương trình học 3 độ tuổi, thực đơn 4 bữa/ngày, quản lý hồ sơ ~300 giáo viên, video & hình ảnh hoạt động.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mamnon-nhatrang
Tags: education, kindergarten, responsive-layout, custom-menu, featured-images, custom-post-type
*/

/* ==========================================================================
   1. Theme Variables & Reset
   ========================================================================== */
:root {
  --primary: #ff9f1c;
  --primary-hover: #f38d05;
  --primary-light: #fff3e0;
  --primary-glow: rgba(255, 159, 28, 0.35);
  
  --secondary: #2ec4b6;
  --secondary-hover: #20a396;
  --secondary-light: #e6faf7;
  
  --accent-red: #e63946;
  --accent-blue: #3a86ff;
  --accent-purple: #8338ec;
  --accent-yellow: #ffbe0b;
  --accent-green: #2a9d8f;

  --bg-main: #fcfbfa;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f7f9fc;
  
  --text-main: #2b2d42;
  --text-muted: #5c677d;
  --text-light: #8d99ae;
  
  --border-color: #e5e7eb;
  --border-radius-sm: 10px;
  --border-radius-md: 18px;
  --border-radius-lg: 28px;
  --border-radius-pill: 999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);

  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

html[data-theme="ocean"] {
  --primary: #0077b6;
  --primary-hover: #023e8a;
  --primary-light: #e0f2fe;
  --primary-glow: rgba(0, 119, 182, 0.35);
  --secondary: #00b4d8;
  --secondary-light: #e0f7fa;
}

html[data-theme="candy"] {
  --primary: #f72585;
  --primary-hover: #b5179e;
  --primary-light: #fce7f3;
  --primary-glow: rgba(247, 37, 133, 0.35);
  --secondary: #7209b7;
  --secondary-light: #f3e8ff;
}

html[data-theme="nature"] {
  --primary: #2d6a4f;
  --primary-hover: #1b4332;
  --primary-light: #d8f3dc;
  --primary-glow: rgba(45, 106, 79, 0.35);
  --secondary: #52b788;
  --secondary-light: #edfbf4;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.3;
}

p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

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

.section {
  padding: 42px 0;
  position: relative;
  z-index: 2;
}

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

/* Section Header */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-title .highlight { color: var(--primary); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

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

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

/* Header Hotline Badge */
.btn-hotline-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #22c55e;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
  transition: var(--transition-fast);
}

.btn-hotline-badge:hover {
  background: #16a34a;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-hotline-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.btn-hotline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.btn-hotline-text small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.btn-hotline-text strong {
  font-size: 0.92rem;
  font-family: var(--font-heading);
  white-space: nowrap;
}

/* Floating Decor */
.floating-bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  color: rgba(255, 159, 28, 0.08);
  font-size: 2.5rem;
}

.cloud-1 { top: 15%; left: 5%; font-size: 4rem; color: rgba(58, 134, 255, 0.06); animation: floatCloud 25s infinite linear; }
.cloud-2 { top: 65%; right: 5%; font-size: 4.5rem; animation: floatCloud 30s infinite linear reverse; }
.balloon-1 { top: 35%; left: 3%; animation: floatBob 8s ease-in-out infinite; }
.balloon-2 { top: 75%; right: 8%; animation: floatBob 10s ease-in-out infinite 2s; }
.star-1 { top: 25%; right: 15%; }
.star-2 { top: 85%; left: 10%; }
.star-3 { top: 5%; right: 35%; }

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

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

/* ==========================================================================
   2. Header & Navigation (Chuẩn 1 dòng & Active Menu)
   ========================================================================== */
.top-bar {
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.84rem;
  padding: 8px 0;
  z-index: 100;
  position: relative;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-info i { color: var(--primary); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-label { font-size: 0.78rem; color: #94a3b8; }
.theme-buttons { display: flex; gap: 5px; }
.theme-btn { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.theme-btn[data-theme="sunshine"] { background: #ff9f1c; }
.theme-btn[data-theme="ocean"] { background: #0077b6; }
.theme-btn[data-theme="candy"] { background: #f72585; }
.theme-btn[data-theme="nature"] { background: #2d6a4f; }
.theme-btn.active { border-color: #ffffff; transform: scale(1.2); }

.main-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 99;
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-image-box img {
  max-height: 48px;
  width: auto;
  border-radius: 8px;
}

.logo-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #ffbe0b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Nav Menu: 1 dòng ngang, chuẩn WordPress active class */
.nav-menu {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-list > li {
  position: relative;
  list-style: none;
}

.nav-list > li > a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--border-radius-pill);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-list > li > a i {
  color: var(--primary);
  font-size: 0.8rem;
}

/* Active Menu Item States from WordPress */
.nav-list > li:hover > a,
.nav-list > li.current-menu-item > a,
.nav-list > li.current_page_item > a,
.nav-list > li.current-menu-ancestor > a,
.nav-list > li.current-menu-parent > a,
.nav-list > li.active > a {
  background: var(--primary-light);
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 90px 0;
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual { position: relative; }
.hero-image-card {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-circle-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
  border-radius: 50%;
}

.hero-main-illustration {
  position: relative;
  z-index: 2;
  text-align: center;
}

.illustration-bubble {
  background: #ffffff;
  padding: 28px 22px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
}

.kid-emoji {
  font-size: 3.8rem;
  display: block;
  margin-bottom: 6px;
}

.hero-main-text h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.hero-main-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.floating-badge {
  position: absolute;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  z-index: 3;
}

.floating-badge strong { display: block; font-size: 0.85rem; }
.floating-badge small { font-size: 0.72rem; color: var(--text-muted); }

.icon-tag {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
}

.icon-tag.orange { background: #ff9f1c; }
.icon-tag.blue { background: #3a86ff; }
.icon-tag.green { background: #2a9d8f; }

.badge-top-left { top: -10px; left: -20px; }
.badge-top-right { top: 10px; right: -20px; }
.badge-bottom-left { bottom: -16px; left: -10px; }

.custom-shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.custom-shape-divider svg {
  width: 100%;
  height: 45px;
}

.custom-shape-divider .shape-fill { fill: var(--bg-main); }

/* ==========================================================================
   4. Tin Tức & Thông Báo (Slider Trượt Ngang)
   ========================================================================== */
.news-section { background: var(--bg-main); }
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.sh-left { flex: 1; min-width: 280px; }
.section-subtitle-compact {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
.news-slider-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.slider-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
}
.news-slider-wrapper {
  overflow: hidden;
  position: relative;
  padding: 6px 2px;
}
.news-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.news-card.slider-item {
  flex: 0 0 calc(25% - 15px);
  min-width: 260px;
  background: #ffffff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.news-card.slider-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.news-thumb {
  height: 170px;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

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

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

.news-placeholder-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #ffffff;
}

.color-bg-1 { background: linear-gradient(135deg, #ff9f1c, #ffbe0b); }
.color-bg-2 { background: linear-gradient(135deg, #2a9d8f, #52b788); }
.color-bg-3 { background: linear-gradient(135deg, #3a86ff, #00b4d8); }
.color-bg-4 { background: linear-gradient(135deg, #8338ec, #c77dff); }

.news-date {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--border-radius-pill);
}

.news-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-title { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.35; }
.news-title a:hover { color: var(--primary); }
.news-excerpt { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; flex-grow: 1; }
.news-readmore { font-size: 0.82rem; font-weight: 800; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

/* Thông Báo Ngành */
.notices-section { background: var(--bg-alt); }
.notices-box {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.notices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 14px;
}

.nh-icon i { font-size: 2.2rem; color: var(--primary); opacity: 0.3; }

.notices-list { display: flex; flex-direction: column; gap: 14px; }
.notice-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--primary);
  transition: var(--transition-fast);
}

.notice-item:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.notice-date-badge {
  background: var(--primary);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: center;
  min-width: 54px;
}

.nd-day { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 900; line-height: 1; display: block; }
.nd-month { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.notice-content { flex-grow: 1; }
.notice-content h4 { font-size: 0.98rem; margin-bottom: 4px; }
.notice-content p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0; }
.notice-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--border-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.notice-btn:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }

/* ==========================================================================
   5. Chương Trình Học 3 Độ Tuổi
   ========================================================================== */
.programs-section { background: var(--bg-main); }
.program-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.prog-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
}
.tab-emoji { font-size: 1.2rem; }
.tab-text { font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem; }
.tab-text small { display: block; font-size: 0.74rem; color: var(--text-light); }
.prog-tab-btn.active { background: var(--primary); border-color: var(--primary); }
.prog-tab-btn.active .tab-text, .prog-tab-btn.active .tab-text small { color: #ffffff; }

.prog-panel { display: none; }
.prog-panel.active { display: block; animation: fadeIn 0.3s ease; }

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

.prog-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  background: #ffffff;
  padding: 36px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.prog-age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 10px;
}

.prog-details h3 { font-size: 1.45rem; margin-bottom: 8px; }
.prog-details p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 20px; }
.prog-highlights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph-item { display: flex; align-items: center; gap: 8px; background: var(--bg-alt); padding: 8px 12px; border-radius: var(--border-radius-sm); font-size: 0.82rem; }
.ph-item i { font-size: 1.1rem; }
.color-icon-1 { color: #ff9f1c; }
.color-icon-2 { color: #3a86ff; }
.color-icon-3 { color: #2a9d8f; }
.color-icon-4 { color: #8338ec; }

.prog-card-preview { background: #f8fafc; padding: 24px; border-radius: var(--border-radius-md); border-left: 5px solid var(--primary); }
.preview-title { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; margin-bottom: 12px; display: block; }
.preview-list li { font-size: 0.88rem; margin-bottom: 8px; }
.preview-stat-footer { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border-color); display: flex; justify-content: space-between; font-size: 0.76rem; font-weight: 700; color: var(--text-muted); }

/* ==========================================================================
   6. Lịch Sinh Hoạt Một Ngày
   ========================================================================== */
.routine-section { background: var(--bg-alt); }
.timeline-container { position: relative; max-width: 820px; margin: 0 auto; padding: 16px 0; }
.timeline-container::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: linear-gradient(to bottom, var(--primary), var(--secondary)); transform: translateX(-50%); }
.timeline-item { position: relative; margin-bottom: 24px; width: 50%; padding-right: 32px; }
.timeline-item:nth-child(even) { left: 50%; padding-right: 0; padding-left: 32px; }
.timeline-dot { position: absolute; top: 12px; right: -16px; width: 32px; height: 32px; background: #ffffff; border: 3px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 0.8rem; z-index: 2; }
.timeline-item:nth-child(even) .timeline-dot { left: -16px; right: auto; border-color: var(--secondary); color: var(--secondary); }
.timeline-card { background: #ffffff; padding: 18px 22px; border-radius: var(--border-radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.t-time { display: inline-block; font-family: var(--font-heading); font-weight: 800; font-size: 0.84rem; color: var(--primary); background: var(--primary-light); padding: 3px 8px; border-radius: var(--border-radius-pill); margin-bottom: 6px; }
.timeline-item:nth-child(even) .t-time { color: var(--secondary); background: var(--secondary-light); }
.timeline-card h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.t-tag { font-size: 0.74rem; font-weight: 700; color: var(--text-light); }

/* ==========================================================================
   7. Thực Đơn 4 Bữa / Ngày (4 Bữa 1 Khung Ngang)
   ========================================================================== */
.nutrition-section { background: var(--bg-main); }
.menu-board-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.menu-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px dashed var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}
.menu-header-info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--text-main);
}
.calorie-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #e63946;
  background: #ffe3e3;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
  display: inline-block;
}
.menu-history-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}
.custom-select-menu {
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  border: 1.5px solid var(--border-color);
  background: #f8fafc;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}
.custom-select-menu:focus {
  border-color: var(--primary);
}

/* 4 Bữa Nằm Trên 1 Khung Ngang */
.menu-meals-horizontal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0;
}
.meal-col {
  background: var(--bg-alt);
  border-radius: var(--border-radius-md);
  padding: 18px 16px;
  border: 1.5px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}
.meal-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.meal-col-breakfast { border-color: #fed7aa; background: #fffcf7; }
.meal-col-lunch { border-color: #bbf7d0; background: #f7fdf9; }
.meal-col-snack { border-color: #bfdbfe; background: #f8faff; }
.meal-col-late { border-color: #fbcfe8; background: #fdf8fb; }

.meal-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.meal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  flex-shrink: 0;
}
.meal-col-breakfast .meal-icon-badge { background: linear-gradient(135deg, #ff9f1c, #f59e0b); }
.meal-col-lunch .meal-icon-badge { background: linear-gradient(135deg, #16a34a, #22c55e); }
.meal-col-snack .meal-icon-badge { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.meal-col-late .meal-icon-badge { background: linear-gradient(135deg, #db2777, #ec4899); }

.meal-col-title .m-time {
  font-size: 0.72rem;
  font-weight: 800;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}
.meal-col-title h4 {
  font-size: 1rem;
  margin: 0;
  font-weight: 800;
  color: var(--text-main);
}
.meal-col-content {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
}

.menu-note-box {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  font-size: 0.86rem;
  color: #854d0e;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.menu-note-box i { font-size: 1.1rem; color: #ca8a04; }

.menu-download-box { margin-top: 24px; padding: 16px 20px; background: #f8fafc; border-radius: var(--border-radius-md); border: 1.5px dashed var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.mdb-info { display: flex; align-items: center; gap: 12px; }
.mdb-info i { font-size: 1.8rem; color: #e63946; }
.mdb-info strong { display: block; font-size: 0.92rem; }
.mdb-info p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0; }

/* ==========================================================================
   8. Đội Ngũ Giáo Viên & Nhân Viên (~300 GV)
   ========================================================================== */
.teachers-section { background: var(--bg-alt); }
.teacher-control-bar { background: #ffffff; padding: 16px 20px; border-radius: var(--border-radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.teacher-search-box { display: flex; align-items: center; gap: 8px; background: var(--bg-alt); padding: 8px 14px; border-radius: var(--border-radius-pill); border: 1.5px solid var(--border-color); }
.teacher-search-box input { flex-grow: 1; background: transparent; border: none; outline: none; font-size: 0.9rem; }
.teacher-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.t-filter-btn { background: var(--bg-alt); border: 1px solid var(--border-color); padding: 5px 14px; border-radius: var(--border-radius-pill); font-family: var(--font-heading); font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.t-filter-btn.active, .t-filter-btn:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }

.teachers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.teacher-card { background: #ffffff; border-radius: var(--border-radius-md); padding: 20px 16px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition-normal); }
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.teacher-avatar { position: relative; width: 90px; height: 90px; margin: 0 auto 12px auto; }
.teacher-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.teacher-avatar-bg { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #ffffff; }
.t-color-1 { background: linear-gradient(135deg, #ff9f1c, #ffbe0b); }
.t-color-2 { background: linear-gradient(135deg, #3a86ff, #00b4d8); }
.t-color-3 { background: linear-gradient(135deg, #2a9d8f, #52b788); }
.t-color-4 { background: linear-gradient(135deg, #8338ec, #c77dff); }
.cert-badge { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #ffffff; font-size: 0.65rem; font-weight: 800; padding: 2px 7px; border-radius: var(--border-radius-pill); white-space: nowrap; }
.teacher-info h4 { font-size: 1.05rem; margin-bottom: 3px; }
.t-class { display: block; font-size: 0.82rem; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.t-qual { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.t-phone { font-size: 0.8rem; font-weight: 700; color: #16a34a; border-top: 1px dashed var(--border-color); padding-top: 6px; }

/* ==========================================================================
   9. Hình Ảnh & Video
   ========================================================================== */
.media-section { background: var(--bg-main); }
.media-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.m-tab-btn { background: #ffffff; border: 1.5px solid var(--border-color); padding: 8px 18px; border-radius: var(--border-radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; cursor: pointer; }
.m-tab-btn.active { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.media-panel { display: none; }
.media-panel.active { display: block; animation: fadeIn 0.3s ease; }

.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.photo-card { border-radius: var(--border-radius-md); overflow: hidden; }
.photo-box { height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #ffffff; }
.photo-bg-1 { background: linear-gradient(135deg, #ff9f1c, #ffbe0b); }
.photo-bg-2 { background: linear-gradient(135deg, #2a9d8f, #52b788); }
.photo-bg-3 { background: linear-gradient(135deg, #3a86ff, #00b4d8); }
.photo-bg-4 { background: linear-gradient(135deg, #8338ec, #c77dff); }
.photo-bg-5 { background: linear-gradient(135deg, #e63946, #ff758f); }
.photo-bg-6 { background: linear-gradient(135deg, #f72585, #b5179e); }
.photo-icon { font-size: 2.8rem; margin-bottom: 8px; }
.photo-caption { font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; text-align: center; padding: 0 12px; }

.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.video-card { background: #ffffff; border-radius: var(--border-radius-md); padding: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.video-card h4 { font-size: 0.95rem; margin-top: 10px; line-height: 1.35; }

/* ==========================================================================
   10. Góc Tư Vấn Chăm Sóc Trẻ (FAQ)
   ========================================================================== */
.faq-section { background: var(--bg-alt); }
.faq-container { max-width: 800px; }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item { background: #ffffff; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); overflow: hidden; }
.acc-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: transparent; border: none; font-family: var(--font-heading); font-weight: 800; font-size: 0.98rem; text-align: left; cursor: pointer; }
.acc-header i { color: var(--primary); transition: var(--transition-normal); }
.acc-header.active i { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 20px; }
.acc-body.show { max-height: 300px; padding-bottom: 16px; }
.acc-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* ==========================================================================
   11. Liên Hệ & Bản Đồ
   ========================================================================== */
.contact-section { background: #ffffff; }
.contact-grid-info-only { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.contact-info-col h2 { font-size: 1.65rem; margin-bottom: 10px; }
.contact-info-list { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.ci-item { display: flex; gap: 12px; }
.ci-icon { width: 38px; height: 38px; background: var(--primary-light); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ci-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.ci-item p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }

.map-container-box { background: var(--bg-alt); padding: 16px; border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); }
.map-header { font-size: 0.95rem; margin-bottom: 10px; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.main-footer { background: #1e293b; color: #ffffff; position: relative; padding-top: 45px; }
.footer-wave { position: absolute; top: -45px; left: 0; width: 100%; height: 45px; overflow: hidden; }
.footer-wave svg { width: 100%; height: 100%; }
.footer-wave-fill { fill: #1e293b; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 900; color: #ffbe0b; margin-bottom: 12px; }
.about-col p { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; margin-bottom: 14px; }
.cert-logos { display: flex; gap: 6px; flex-wrap: wrap; }
.cert-badge-mini { background: rgba(255, 255, 255, 0.1); font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: var(--border-radius-pill); }

.footer-col h4 { color: #ffffff; font-size: 1rem; margin-bottom: 14px; position: relative; padding-bottom: 5px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #94a3b8; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--primary); transform: translateX(3px); }
.footer-col p { color: #94a3b8; font-size: 0.85rem; margin-bottom: 5px; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 0.8rem; color: #64748b; flex-wrap: wrap; gap: 10px; }

/* Floating Quick Contact */
.floating-quick-contact { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 98; }
.quick-btn { display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: var(--border-radius-pill); box-shadow: var(--shadow-md); color: #ffffff; }
.btn-text { font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; padding-left: 8px; display: none; }
.quick-btn:hover .btn-text { display: inline-block; }
.icon-circle { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.zalo-btn { background: #0068ff; }
.phone-btn { background: #22c55e; }
.scroll-top-btn { background: #1e293b; border: none; width: 38px; height: 38px; border-radius: 50%; color: #ffffff; cursor: pointer; display: none; align-items: center; justify-content: center; }
.scroll-top-btn.show { display: flex; }

/* Responsive */
@media (max-width: 1200px) {
  .nav-list > li > a { font-size: 0.82rem; padding: 6px 8px; }
  .logo-title { font-size: 1.1rem; }
  .menu-meals-horizontal-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-grid, .contact-grid-info-only { grid-template-columns: 1fr; gap: 26px; }
  .hero-title { font-size: 2.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prog-grid { grid-template-columns: 1fr; }
  .menu-meals-horizontal-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .top-bar { display: none; }
  .section { padding: 36px 0; }
  .section-title { font-size: 1.7rem; }
  .hero-title { font-size: 1.9rem; }
  .mobile-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    padding: 20px;
    overflow-y: auto;
    display: block;
  }
  .nav-menu.open { left: 0; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
  .nav-link, .nav-list > li > a { width: 100%; font-size: 0.95rem; }
  
  .timeline-container::before { left: 16px; }
  .timeline-item { width: 100%; padding-left: 40px; padding-right: 0; }
  .timeline-item:nth-child(even) { left: 0; padding-left: 40px; }
  .timeline-dot { left: 0 !important; right: auto !important; }
  
  .notices-box, .prog-grid, .menu-board-card { padding: 18px 14px; }
  .prog-highlights-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-card.slider-item { min-width: 270px; max-width: 270px; }
}

@media (max-width: 640px) {
  .section { padding: 30px 0; }
  .menu-meals-horizontal-row { grid-template-columns: 1fr; }
  .news-slider-wrapper { padding: 6px 0 16px; }
  .news-card.slider-item { min-width: 85vw; max-width: 85vw; }
  .menu-board-header { flex-direction: column; align-items: flex-start; }
  .notices-header { flex-direction: column; align-items: flex-start; }
  .notices-list .notice-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .notice-btn { width: 100%; text-align: center; }
  .section-title { font-size: 1.45rem; }
  .hero-title { font-size: 1.65rem; }
  .btn-view-all { width: 100%; justify-content: center; }
}

