/* Theme 5 — Preschool Kindergarten */
:root {
  --t5-primary: #F69E77;
  --t5-accent: #CB49A6;
  --t5-cream: #FBF7F4;
  --t5-yellow: #FFCD5B;
  --t5-blue: #80BEF5;
  --t5-ink: #1F2937;
  --t5-muted: #6B7280;
  --t5-white: #ffffff;
  --t5-max: 1120px;
  --t5-radius: 18px;
}

body.theme-5 {
  margin: 0;
  font-family: "Poppins", "Hind Siliguri", sans-serif;
  color: var(--t5-ink);
  background: var(--t5-white);
}

body.theme-5 a { color: inherit; text-decoration: none; }
body.theme-5 img { max-width: 100%; height: auto; display: block; }

.t5-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--t5-white); }
.t5-wrap { width: min(100% - 32px, var(--t5-max)); margin-inline: auto; }

/* Top bar */
.t5-topbar {
  background: #141213;
  color: #fff;
  font-size: 13px;
}
.t5-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.t5-social { display: flex; gap: 12px; }
.t5-social a { color: #fff; opacity: .9; }
.t5-social a:hover { opacity: 1; color: var(--t5-primary); }
.t5-top-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.t5-top-meta span, .t5-top-meta a { display: inline-flex; align-items: center; gap: 8px; color: #fff; }

/* Header */
.t5-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 18, 19, .06);
}
.t5-header::after {
  content: "";
  display: block;
  height: 14px;
  background:
    radial-gradient(circle at 10px 0, transparent 9px, #fff 10px) repeat-x;
  background-size: 20px 14px;
  transform: translateY(100%);
  margin-top: -1px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.03));
  pointer-events: none;
}
.t5-header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}
.t5-brand {
  display: inline-flex;
  align-items: center;
  max-width: 48px;
}
.t5-brand img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain;
  display: block;
}
.t5-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  align-items: center;
}
.t5-nav a {
  color: #1c1c1a;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.t5-nav a:hover, .t5-nav a.on { color: var(--t5-primary); }
.t5-nav .has-kids { position: relative; }
.t5-nav .kids {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  z-index: 20;
}
.t5-nav .has-kids:hover .kids { display: grid; }
.t5-nav .kids a { display: block; padding: 8px 14px; font-size: 14px; }
.t5-actions { display: flex; align-items: center; gap: 10px; }
.t5-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--t5-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: .2s background;
}
.t5-btn:hover { background: var(--t5-accent); }
.t5-btn-dark { background: #141213; }
.t5-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--t5-cream);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.t5-menu-btn span { width: 18px; height: 2px; background: #141213; }

/* Hero */
.t5-hero {
  background: var(--t5-cream);
  padding: 48px 0 24px;
  overflow: hidden;
}
.t5-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: end;
}
.t5-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--t5-primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: 14px;
  margin: 0 0 12px;
}
.t5-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.25;
  font-weight: 700;
  color: #151414;
}
.t5-hero p { margin: 0 0 22px; color: #555; max-width: 34rem; line-height: 1.7; }
.t5-hero-art {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.t5-hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 8% 0;
  background: #F8D9C8;
  border-radius: 999px 999px 40px 40px;
  z-index: 0;
}
.t5-hero-art img { position: relative; z-index: 1; max-height: 420px; object-fit: contain; }

/* Programs */
.t5-section { padding: 56px 0; }
.t5-section-head { text-align: center; margin-bottom: 28px; }
.t5-section-head .sub {
  margin: 0 0 6px;
  color: var(--t5-primary);
  font-weight: 700;
  text-transform: capitalize;
}
.t5-section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: #222;
}
.t5-programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.t5-card {
  border-radius: 22px;
  padding: 22px 18px 20px;
  color: #fff;
  text-align: center;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.t5-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.12); }
.t5-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.45);
  margin-bottom: 6px;
}
.t5-card h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.t5-card .age { margin: 0; opacity: .95; font-size: 14px; }
.t5-card p { margin: 4px 0 10px; font-size: 14px; line-height: 1.55; opacity: .95; flex: 1; }
.t5-card .t5-btn {
  background: #fff !important;
  color: var(--t5-card-btn, var(--t5-primary)) !important;
}
.t5-card .t5-btn:hover { filter: brightness(.96); background: #fff !important; }

/* Notices / teachers strips */
.t5-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
}
.t5-panel {
  background: #fff;
  border: 1px solid #f0e8e2;
  border-radius: var(--t5-radius);
  padding: 20px;
}
.t5-panel h3 { margin: 0 0 14px; font-size: 1.2rem; }
.t5-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.t5-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--t5-cream);
  color: var(--t5-ink);
  font-weight: 500;
}
.t5-list a:hover { background: #fff1e8; color: var(--t5-primary); }
.t5-list small { color: var(--t5-muted); white-space: nowrap; }
.t5-teachers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.t5-teacher {
  text-align: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--t5-cream);
}
.t5-teacher img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid #fff;
}
.t5-teacher strong { display: block; font-size: 15px; }
.t5-teacher span { color: var(--t5-muted); font-size: 13px; }

.t5-messages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.t5-msg {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f0e8e2;
}
.t5-msg img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.t5-msg h4 { margin: 0 0 6px; }
.t5-msg p { margin: 0; color: var(--t5-muted); font-size: 14px; line-height: 1.55; }

/* Inner pages */
.t5-main { flex: 1; }
.t5-page {
  padding: 36px 0 56px;
  background: linear-gradient(180deg, var(--t5-cream), #fff 180px);
}
.t5-page-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(20,18,19,.05);
}
.t5-page-card h1 { margin: 0 0 16px; font-size: 1.6rem; }
.t5-page-card table { width: 100%; border-collapse: collapse; }
.t5-page-card th, .t5-page-card td { padding: 10px 12px; border-bottom: 1px solid #f0e8e2; text-align: left; }
.t5-page-card .btn, .t5-page-card button, .t5-page-card .button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 8px; padding: 8px 14px;
  background: var(--t5-primary); color: #fff; font-weight: 600;
}
.t5-page-card input, .t5-page-card select, .t5-page-card textarea {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px;
}

/* Footer */
.t5-footer {
  margin-top: auto;
  color: #fff;
  background: #CB49A6 url('/site/theme5/demo/footer-bg.png') center/cover no-repeat;
  position: relative;
}
.t5-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(203, 73, 166, .72);
}
.t5-footer-inner {
  position: relative;
  z-index: 1;
  padding: 48px 0 18px;
}
.t5-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 22px;
}
.t5-footer h4 {
  margin: 0 0 14px;
  display: inline-block;
  background: var(--t5-primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  text-transform: capitalize;
}
.t5-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t5-footer a { color: #fff; opacity: .92; }
.t5-footer a:hover { opacity: 1; text-decoration: underline; }
.t5-footer p { margin: 0 0 8px; line-height: 1.6; opacity: .95; }
.t5-copy {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.2);
  padding: 14px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-size: 13px;
}
.t5-copy a { color: #fff; font-weight: 600; }

/* Mobile drawer */
.t5-drawer, .t5-backdrop { display: none; }
.t5-shell.nav-open .t5-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 50;
}
.t5-shell.nav-open .t5-drawer {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 320px);
  background: #fff;
  z-index: 60;
  padding: 20px;
  overflow: auto;
  box-shadow: 8px 0 30px rgba(0,0,0,.15);
}
.t5-drawer strong { display: block; margin-bottom: 14px; font-size: 1.1rem; }
.t5-drawer nav { display: grid; gap: 4px; }
.t5-drawer a { padding: 10px 8px; border-radius: 8px; color: #1c1c1a; }
.t5-drawer a:hover { background: var(--t5-cream); color: var(--t5-primary); }

@media (max-width: 980px) {
  .t5-header-row { grid-template-columns: auto auto; }
  .t5-nav { display: none; }
  .t5-menu-btn { display: inline-flex; }
  .t5-hero-grid, .t5-grid-2, .t5-footer-grid { grid-template-columns: 1fr; }
  .t5-programs, .t5-teachers { grid-template-columns: repeat(2, 1fr); }
  .t5-messages { grid-template-columns: 1fr; }
  .t5-top-meta span:nth-child(n+2) { display: none; }
}
@media (max-width: 560px) {
  .t5-programs, .t5-teachers { grid-template-columns: 1fr; }
  .t5-actions .t5-btn span { display: none; }
}
