/* =========================================
   LITTLE EINSTEINS CENTER — GLOBAL DESIGN SYSTEM
   Production-Level Base Stylesheet
   ========================================= */


/* =========================
   RESET + FOUNDATION
   ========================= */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f7fbff;
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* =========================
   ROOT DESIGN TOKENS
   ========================= */

:root {

  /* Primary Brand */
  --primary: #00aeef;
  --primary-dark: #008fc5;
  --primary-light: #e6f9ff;

  /* Autism Awareness Accent Palette */
  --blue: #00aeef;
  --green: #64bc46;
  --orange: #f58220;
  --yellow: #fff200;
  --red: #ed1c24;

  /* Core UI */
  --bg: #f7fbff;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;

  /* Section Backgrounds */
  --section-light: #ffffff;
  --section-soft: #f3f9fd;
  --section-warm: #fffaf5;

  /* Effects */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.08);

  /* Layout */
  --container-width: 1200px;
  --transition: all 0.3s ease;
}


/* =========================
   TYPOGRAPHY
   ========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

img {
  max-width: 100%;
  display: block;
}


/* =========================
   LAYOUT
   ========================= */

main {
  flex: 1;
  padding-top: 70px;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: auto;
  padding: 80px 0;
}

.section {
  position: relative;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.flex {
  display: flex;
  gap: 20px;
}


/* =========================
   NAVBAR
   ========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  width: 92%;
  max-width: 1280px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 0;
}


/* =========================
   LOGO
   ========================= */

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

.logo img {
  width: 52px;
  height: auto;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

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


/* =========================
   NAV LINKS
   ========================= */

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

.nav-item {
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
}

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

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

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

.nav-item::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;

  width: 0;
  height: 2px;

  background: var(--primary);
  transition: var(--transition);
}


/* =========================
   NAV CTA BUTTON
   ========================= */

.nav-cta {
  position: relative;
  overflow: hidden;

  padding: 12px 24px !important;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );

  color: white !important;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(0, 174, 239, 0.25);
  transition: all 0.35s ease;
}

.nav-cta::after {
  display: none;
}

.nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.22);
  transform: skewX(-25deg);
  transition: 0.6s;
}

.nav-cta:hover::before {
  left: 130%;
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 174, 239, 0.35);

  background: linear-gradient(
    135deg,
    var(--primary-dark),
    #007eb0
  );
}

.nav-cta.active {
  box-shadow: 0 14px 30px rgba(0,174,239,0.35);
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    #007eb0
  );
}



/* =========================
   MOBILE TOGGLE
   ========================= */

.nav-toggle {
  display: none;
  font-size: 2rem;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
}


/* =========================
   OVERLAY
   ========================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);

  opacity: 0;
  pointer-events: none;

  transition: var(--transition);
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}


/* =========================
   BUTTON SYSTEM
   ========================= */

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: white;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;

  border: none;
  border-radius: 999px;

  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;
  transition: var(--transition);
}

.btn:hover,
button.btn:hover {
  transform: translateY(-3px);
}

.btn-primary:hover {
  box-shadow: 0 15px 35px rgba(0, 174, 239, 0.25);
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

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


/* =========================
   CARD SYSTEM
   ========================= */

.card {
  background: var(--white);
  border-radius: var(--radius-md);

  padding: 30px;

  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 231, 235, 0.7);

  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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


/* Autism brand accent bars */
.card.blue {
  border-top: 4px solid var(--blue);
}

.card.green {
  border-top: 4px solid var(--green);
}

.card.orange {
  border-top: 4px solid var(--orange);
}

.card.red {
  border-top: 4px solid var(--red);
}


/* =========================
   FOOTER
   ========================= */

.footer {
  background:
    linear-gradient(
      135deg,
      #0f172a,
      #111827
    );

  color: white;
  margin-top: auto;
}

.footer .container {
  padding: 70px 0 30px;
}

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

.footer h3,
.footer h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.footer a {
  display: block;
  margin-bottom: 0.7rem;
}

.footer a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}


/* =========================
   UTILITIES
   ========================= */

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

.subtitle {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.section-light {
  background: var(--section-light);
}

.section-soft {
  background: var(--section-soft);
}

.section-warm {
  background: var(--section-warm);
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 992px) {

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;

    width: min(300px, 85%);
    height: 100vh;

    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(18px);

    flex-direction: column;
    align-items: flex-start;

    padding: 100px 30px;
    gap: 20px;

    box-shadow: -20px 0 50px rgba(0,0,0,0.08);

    transform: translateX(100%);
    transition: var(--transition);

    z-index: 1001;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
    font-size: 1rem;
    padding: 10px 0;
  }

  .nav-item::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 10px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .container {
    padding: 70px 0;
  }

  h1 {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
}


@media (max-width: 768px) {

  .container {
    width: 92%;
    padding: 60px 0;
  }

  .grid,
  .grid-2,
  .grid-3 {
    gap: 22px;
  }

  .card {
    padding: 24px;
  }

  .btn,
  button.btn {
    width: 100%;
  }

  .footer-grid {
    gap: 30px;
  }
}


@media (max-width: 480px) {

  .logo img {
    width: 44px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .nav-container {
    padding: 12px 0;
  }

  .container {
    padding: 50px 0;
  }

  .card {
    padding: 20px;
  }
}

/* =========================================
   GLOBAL ALERT / MESSAGE SYSTEM
   ========================================= */

.messages-wrapper {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 700px);
  z-index: 3000;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alert {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.98rem;
  box-shadow: var(--shadow-md);
  border-left: 5px solid;

  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
  overflow: hidden;

  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    max-height 0.5s ease,
    margin 0.5s ease,
    padding 0.5s ease;
}

.alert.fade-out {
  opacity: 0;
  transform: translateY(-15px);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* SUCCESS */
.alert.success {
  background: rgba(100,188,70,0.08);
  color: #2f6b1f;
  border-color: var(--green);
}

/* ERROR */
.alert.error {
  background: rgba(237,28,36,0.08);
  color: #9f1239;
  border-color: var(--red);
}

/* WARNING */
.alert.warning {
  background: rgba(245,130,32,0.08);
  color: #9a3412;
  border-color: var(--orange);
}

/* INFO */
.alert.info {
  background: rgba(0,174,239,0.08);
  color: #0c4a6e;
  border-color: var(--blue);
}

/* Django debug fallback */
.alert.debug {
  background: rgba(107,114,128,0.08);
  color: #374151;
  border-color: var(--muted);
}


/* =========================
   ANIMATION
   ========================= */

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

/* =========================================
   LITTLE EINSTEINS CENTER — HOME PAGE
   Production-Level Landing Page Styles
   ========================================= */


/* =========================
   HERO SECTION
   ========================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

/* Slideshow Background */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlideshow 18s infinite;
  transform: scale(1.08);
  filter: blur(2px);
}

/* Each slide timing */
.hero-slide:nth-child(1) {
  animation-delay: 0s;
}
.hero-slide:nth-child(2) {
  animation-delay: 6s;
}
.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

/* Slideshow animation */
@keyframes heroSlideshow {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  8% {
    opacity: 1;
  }
  30% {
    opacity: 1;
    transform: scale(1.12);
  }
  38% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Dark readable overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(10, 25, 40, 0.82),
      rgba(0, 174, 239, 0.42)
    );
  backdrop-filter: blur(2px);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding-top: 80px;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.hero p {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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


.btn.primary,
.cta-banner .btn.primary,
.contact .btn.primary {
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );

  color: white;
  box-shadow: 0 12px 28px rgba(0,174,239,0.22);
  transition: all 0.35s ease;
}

/* Shine animation */
.btn.primary::before,
.contact .btn.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.22);
  transform: skewX(-25deg);
  transition: 0.6s;
}

.cta-banner .btn.primary::before{
    content: "";
    position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(0, 143, 197, 0.222);
  transform: skewX(-25deg);
  transition: 0.6s;
}


.btn.primary:hover::before,
.cta-banner .btn.primary:hover::before,
.contact .btn.primary:hover::before {
  left: 130%;
}

/* Hover */
.btn.primary:hover,
.contact .btn.primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    #007eb0
  );
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,174,239,0.3);
}

/* CTA white version */
.cta-banner .btn.primary {
  background: white;
  color: var(--primary-dark);
}

.cta-banner .btn.primary:hover {
  color: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(255,255,255,0.22);
}

/* Secondary Hero Button */
.hero .btn.secondary {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.9);
  color: white;
  background: transparent;
  transition: all 0.35s ease;
}

.hero .btn.secondary:hover {
  background: white;
  color: var(--text);
  transform: translateY(-4px);
}



/* =========================
   STATS SECTION
   ========================= */

.stat-card {
  text-align: center;
  padding: 35px 25px;
  border-top-width: 5px;
}

.stat-card:nth-child(1) {
  border-top-color: var(--blue);
}

.stat-card:nth-child(2) {
  border-top-color: var(--green);
}

.stat-card:nth-child(3) {
  border-top-color: var(--orange);
}

.stat-card h3 {
  font-size: 2.3rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.stat-card p {
  margin: 0;
  font-weight: 500;
}


/* =========================
   SERVICES SECTION
   ========================= */

.services {
  background: var(--section-soft);
}

.services h2,
.services .subtitle {
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-grid .card:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.service-grid .card:nth-child(2) {
  border-top: 4px solid var(--green);
}

.service-grid .card:nth-child(3) {
  border-top: 4px solid var(--orange);
}

.service-grid .card:nth-child(4) {
  border-top: 4px solid var(--red);
}

.service-grid h3 {
  margin-bottom: 1rem;
}

.service-grid p {
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
}

.read-more:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}


/* =========================
   CTA BANNER
   ========================= */

.cta-banner {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark)
    );
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -100px;
  right: -80px;
}

.cta-banner h2,
.cta-banner p {
  color: white;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  max-width: 700px;
  margin: 0 auto 2rem;
}






/* =========================
   WHY US SECTION
   ========================= */

.why-us {
  background: white;
}

.why-us h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.why-us .grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.why-us .card:nth-child(1) {
  border-top: 4px solid var(--yellow);
}

.why-us .card:nth-child(2) {
  border-top: 4px solid var(--green);
}

.why-us .card:nth-child(3) {
  border-top: 4px solid var(--orange);
}


/* =========================
   HOW IT WORKS
   ========================= */

section.container h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.grid-3 .card {
  text-align: center;
}

.grid-3 .card:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.grid-3 .card:nth-child(2) {
  border-top: 4px solid var(--green);
}

.grid-3 .card:nth-child(3) {
  border-top: 4px solid var(--orange);
}






/* =========================
   UPDATES SECTION
   ========================= */

.updates {
  background: var(--section-soft);
}

.updates h2 {
  text-align: center;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.post-card {
  padding: 0;
  overflow: hidden;
}

.post-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.post-body {
  padding: 25px;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.preview {
  margin-bottom: 1.2rem;
}

.view-all {
  text-align: center;
  margin-top: 50px;
}

.view-all a {
  font-weight: 700;
  color: var(--primary);
}

.view-all a:hover {
  color: var(--primary-dark);
}


/* =========================
   FINAL CONTACT CTA
   ========================= */

.contact {
  background:
    linear-gradient(
      135deg,
      #0f172a,
      #1e3a5f
    );
  text-align: center;
  color: white;
}

.contact h2,
.contact p {
  color: white;
}

.contact p {
  max-width: 720px;
  margin: 0 auto 2rem;
}




/* =========================
   SECTION SPACING REFINEMENT
   ========================= */

.services,
.cta-banner,
.why-us,
.updates,
.contact {
  padding: 90px 0;
}

/* =========================
   GLOBAL PRIMARY BUTTON FIX
   ========================= */





/* =========================================
   LITTLE EINSTEINS CENTER — ABOUT PAGE
   ========================================= */


.small-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  text-align: center;
  overflow: hidden;

  padding: 140px 0 90px;
}

/* Background Image */
.small-hero-bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.06);
  filter: blur(2px);

  z-index: 1;
}

/* Overlay */
.small-hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(0,174,239,0.72),
      rgba(15,23,42,0.82)
    );

  backdrop-filter: blur(2px);

  z-index: 2;
}

/* Content */
.small-hero-content {
  position: relative;
  z-index: 3;
}

.small-hero h1 {
  color: white;
  margin-bottom: 1rem;

  font-weight: 800;
  letter-spacing: -0.5px;

  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.small-hero p {
  color: rgba(255,255,255,0.92);

  font-size: 1.1rem;
  max-width: 700px;
  margin: auto;

  text-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

/* Optional subtle zoom effect */
.small-hero:hover .small-hero-bg {
  transform: scale(1.1);
  transition: transform 6s ease;
}


/* =========================
   ABOUT GRID
   ========================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text > p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}


/* Mission + Approach Cards */
.about-text .card {
  margin-top: 25px;
}

.about-text .card:nth-of-type(1) {
  border-top: 4px solid var(--blue);
}

.about-text .card:nth-of-type(2) {
  border-top: 4px solid var(--green);
}


/* =========================
   TEAM SECTION
   ========================= */

.image-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
  border: 1px solid rgba(229,231,235,0.7);
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.image-box:hover img {
  transform: scale(1.04);
}


/* =========================
   TEAM SECTION LAYOUT
   ========================= */

section.container h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}


/* =========================
   ENVIRONMENT GRID
   ========================= */

.environment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.environment-grid .image-box {
  position: relative;
  min-height: 240px;
}

.environment-grid .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Color accent borders for autism awareness */
.environment-grid .image-box:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.environment-grid .image-box:nth-child(2) {
  border-top: 4px solid var(--green);
}

.environment-grid .image-box:nth-child(3) {
  border-top: 4px solid var(--orange);
}

.environment-grid .image-box:nth-child(4) {
  border-top: 4px solid var(--red);
}

.environment-grid .image-box:nth-child(5) {
  border-top: 4px solid var(--yellow);
}

.environment-grid .image-box:nth-child(6) {
  border-top: 4px solid var(--blue);
}

.environment-grid .image-box:nth-child(7) {
  border-top: 4px solid var(--green);
}

.environment-grid .image-box:nth-child(8) {
  border-top: 4px solid var(--orange);
}


/* =========================
   SECTION BACKGROUNDS
   ========================= */

.about-grid {
  padding-top: 90px;
  padding-bottom: 90px;
}

.environment-grid {
  margin-top: 30px;
}


/* =========================
   CONTENT REFINEMENT
   ========================= */

.about-text strong {
  color: var(--text);
}

.about-text .card h3 {
  margin-bottom: 0.8rem;
}


/* =========================================
   LITTLE EINSTEINS CENTER — CONTACT PAGE
   Production-Level Contact + Consultation UI
   ========================================= */


/* =========================
   CONTACT PAGE LAYOUT
   ========================= */

.contact-info-section h2,
.container h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.container .grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}


/* =========================
   CONTACT INFO CARDS
   ========================= */

.container .grid .card:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.container .grid .card:nth-child(2) {
  border-top: 4px solid var(--green);
}

.container .grid .card {
  min-height: 100%;
}

.container .grid .card h3 {
  margin-bottom: 1.2rem;
}

.container .grid .card p {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.container .grid .card strong {
  color: var(--text);
}


/* =========================
   MAP SECTION
   ========================= */

.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229,231,235,0.7);
  background: white;
  position: relative;
}

.map-box iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: none;
}


/* =========================
   CONSULTATION FORM WRAPPER
   ========================= */

.form-container {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229,231,235,0.7);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-container .subtitle {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 650px;
}


/* =========================
   FORM SECTIONS
   ========================= */

.form-section {
  margin-bottom: 40px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: #f9fcff;
  border: 1px solid rgba(229,231,235,0.7);
  position: relative;
}

.form-section:nth-child(1) {
  border-left: 4px solid var(--blue);
}

.form-section:nth-child(2) {
  border-left: 4px solid var(--green);
}

.form-section:nth-child(3) {
  border-left: 4px solid var(--orange);
}

.form-section:nth-child(4) {
  border-left: 4px solid var(--red);
}

.form-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}


/* =========================
   FORM ROWS
   ========================= */

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
  align-items: center;
}


/* =========================
   INPUTS
   ========================= */

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,174,239,0.08);
}

textarea {
  resize: vertical;
  min-height: 130px;
}


/* =========================
   LIGHT BUTTONS
   ========================= */

.btn-light {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 12px 20px;
}

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


/* =========================
   REMOVE BUTTON
   ========================= */

.remove-btn {
  background: rgba(237,28,36,0.08);
  color: var(--red);
  border: 1px solid rgba(237,28,36,0.15);
}

.remove-btn:hover {
  background: var(--red);
  color: white;
}


/* =========================
   PRIMARY SUBMIT BUTTON
   ========================= */


form > .btn-primary,
form button[type="submit"],
.btn.btn-primary {
  position: relative;
  overflow: hidden;

  width: 100%;
  padding: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 16px;
  border: none;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );

  color: white;
  text-decoration: none;

  box-shadow: 0 18px 35px rgba(0,174,239,0.22);
  transition: all 0.35s ease;
}

/* Shine effect */
form > .btn-primary::before,
form button[type="submit"]::before,
.btn.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.22);
  transform: skewX(-25deg);
  transition: 0.6s;
}

form > .btn-primary:hover::before,
form button[type="submit"]:hover::before,
.btn.btn-primary:hover::before {
  left: 130%;
}

/* Hover */
form > .btn-primary:hover,
form button[type="submit"]:hover,
.btn.btn-primary:hover {
  transform: translateY(-4px);

  background: linear-gradient(
    135deg,
    var(--primary-dark),
    #007eb0
  );

  box-shadow: 0 24px 45px rgba(0,174,239,0.3);
}

/* Click */
form > .btn-primary:active,
form button[type="submit"]:active,
.btn.btn-primary:active {
  transform: scale(0.98);
}

/* =========================
   REMOVE BUTTON BLOCKED EFFECT
========================= */

.remove-btn.blocked {
  animation: shakeBtn 0.45s ease;
  background: rgba(239,68,68,0.12);
  color: #dc2626;
}

@keyframes shakeBtn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
}



/* =========================
   FORM BUTTON SPACING
   ========================= */

.form-section .btn-light {
  margin-top: 10px;
}


/* =========================
   DATE/TIME INPUT GROUP
   ========================= */

.form-section input[type="date"],
.form-section input[type="time"] {
  margin-bottom: 14px;
}


/* =========================
   ANIMATIONS
   ========================= */

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* =========================================
   LITTLE EINSTEINS CENTER — AUTH PAGES
   Login + Set Password + Secure Access UI
   Production-Level Styles
   ========================================= */


/* =========================
   AUTH PAGE WRAPPERS
   ========================= */

.container-center {
  width: 100%;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.auth-wrapper {
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* =========================
   AUTH CARD
   ========================= */

.auth-card {
  width: 100%;
  max-width: 500px;
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  position: relative;
  overflow: hidden;
}


/* Top autism awareness gradient bar */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 6px;

  background: linear-gradient(
    90deg,
    var(--blue),
    var(--green),
    var(--orange),
    var(--red)
  );
}


/* =========================
   AUTH TYPOGRAPHY
   ========================= */

.auth-card h2 {
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
}

.auth-card p {
  text-align: center;
  max-width: 400px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

/* =========================
   FOUNDER PREVIEW SECTION REDESIGN
========================= */

.founder-preview {
  position: relative;
  padding: 110px 0;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(248,250,252,1),
      rgba(240,249,255,1)
    );
}

/* Decorative background accent */
.founder-preview::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;

  background: radial-gradient(
    circle,
    rgba(0,174,239,0.12),
    transparent 70%
  );

  border-radius: 50%;
  z-index: 0;
}

.founder-preview::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 320px;
  height: 320px;

  background: radial-gradient(
    circle,
    rgba(15,23,42,0.08),
    transparent 70%
  );

  border-radius: 50%;
  z-index: 0;
}

/* =========================
   LAYOUT
========================= */

.founder-grid {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

/* =========================
   IMAGE SIDE
========================= */

.founder-image {
  position: relative;
  display: flex;
  justify-content: flex-start;
}

.founder-image img {
  width: 100%;
  max-width: 470px;
  border-radius: 28px;
  object-fit: cover;

  box-shadow:
    0 30px 60px rgba(15,23,42,0.18),
    0 8px 20px rgba(0,174,239,0.12);

  transition: transform 0.5s ease;
}

/* Floating effect */
.founder-image:hover img {
  transform: translateY(-8px) scale(1.02);
}

/* Colored frame accent */
.founder-image::before {
  content: "";
  position: absolute;
  width: 88%;
  height: 88%;
  top: 30px;
  left: -25px;

  border-radius: 28px;

  background: linear-gradient(
    135deg,
    rgba(0,174,239,0.18),
    rgba(15,23,42,0.12)
  );

  z-index: -1;
}

/* Accent badge */
.founder-image::after {
  content: "Lead Therapist";
  position: absolute;
  bottom: 20px;
  right: 20px;

  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);

  font-weight: 700;
  font-size: 0.9rem;

  box-shadow: 0 10px 25px rgba(15,23,42,0.12);
}

/* =========================
   CONTENT SIDE
========================= */

.founder-content {
  max-width: 620px;
}

.section-tag {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 20px;

  border-radius: 999px;

  background: rgba(0,174,239,0.12);
  color: var(--primary-dark);

  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.founder-content h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;

  color: var(--text);
}

.founder-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-light);

  margin-bottom: 1.3rem;
}

/* CTA button spacing */
.founder-content .btn {
  margin-top: 12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .founder-image {
    justify-content: center;
  }

  .founder-image::before {
    left: 0;
    right: 0;
    margin: auto;
  }

  .founder-content {
    max-width: 100%;
  }

  .section-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .founder-image::after {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 768px) {
  .founder-preview {
    padding: 80px 0;
  }

  .founder-content h2 {
    font-size: 2rem;
  }

  .founder-content p {
    font-size: 1rem;
  }

  .founder-image img {
    max-width: 100%;
  }

  .founder-image::after {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

/* =========================
   AUTH FORM
   ========================= */

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 25px;
}


/* =========================
   INPUT FIELDS
   ========================= */

.auth-card input {
  width: 100%;
  padding: 16px 18px;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  font-size: 1rem;
  font-family: inherit;

  background: #f9fbff;
  color: var(--text);

  transition: var(--transition);
}

.auth-card input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.08);
}

.auth-card input::placeholder {
  color: #9ca3af;
}


/* =========================
   BUTTONS
   ========================= */

.auth-card .btn,
.auth-card .btn.primary,
.auth-card button {
  width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
}



/* =========================
   OPTIONAL PASSWORD HELP TEXT
   ========================= */

.auth-help {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.95rem;
}

.auth-help a {
  color: var(--primary);
  font-weight: 600;
}

.auth-help a:hover {
  color: var(--primary-dark);
}


/* =========================
   VISUAL BACKGROUND SUPPORT
   ========================= */

.container-center,
.container .auth-wrapper {
  position: relative;
}


/* Soft branded background accents */
.container-center::before,
.container .auth-wrapper::before {
  content: "";
  position: absolute;

  width: 320px;
  height: 320px;

  background: rgba(0, 174, 239, 0.06);
  border-radius: 50%;

  top: 10%;
  left: -120px;

  z-index: 0;
}

.container-center::after,
.container .auth-wrapper::after {
  content: "";
  position: absolute;

  width: 280px;
  height: 280px;

  background: rgba(245, 130, 32, 0.05);
  border-radius: 50%;

  bottom: 5%;
  right: -100px;

  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 2;
}


/* =========================
   FORM SPACING FIX
   ========================= */

.auth-card br {
  display: none;
}




/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 768px) {
  .auth-wrapper{
    width: 70%;
  }

  .auth-card {
    padding: 40px 28px;
    max-width: 100%;
  }

  .auth-card h2 {
    font-size: 2rem;
  }

  .auth-card input {
    padding: 15px 16px;
  }

  .container-center {
    padding: 40px 16px;
  }
}


@media (max-width: 480px) {

  .auth-card {
    padding: 34px 22px;
    border-radius: var(--radius-md);
  }

  .auth-card h2 {
    font-size: 1.8rem;
  }

  .auth-card input {
    font-size: 0.95rem;
    padding: 14px;
  }

  .auth-card .btn {
    padding: 15px;
  }
}




/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 992px) {

  .form-container {
    padding: 40px;
  }

  .form-section {
    padding: 24px;
  }

  .map-box iframe {
    min-height: 360px;
  }
}


@media (max-width: 768px) {

  .form-container {
    padding: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 22px;
  }

  .btn-light,
  .remove-btn,
  .btn.btn-primary {
    width: 100%;
  }

  .map-box iframe {
    min-height: 300px;
  }
}


@media (max-width: 480px) {
  .auth-wrapper{
    width: 100%;
  }

  .form-container {
    padding: 22px;
    border-radius: var(--radius-md);
  }

  .form-section {
    padding: 18px;
  }

  .form-container h2 {
    font-size: 2rem;
  }

  .form-container .subtitle {
    font-size: 0.95rem;
  }

  input,
  select,
  textarea {
    padding: 13px 14px;
  }
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 992px) {

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    order: 1;
  }

  .about-grid section.container {
    order: 2;
  }

  .small-hero {
    padding: 120px 0 80px;
  }
}




@media (max-width: 768px) {

   .small-hero { 
       min-height: 42vh;
      padding: 120px 0 70px; 
     } 
   .small-hero h1 { 
       font-size: 2.2rem;  
      }  
   .small-hero p {  
      font-size: 1rem; 
      padding: 0 12px; 
    }

  .about-text > p {
    font-size: 1rem;
  }

  .environment-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
  }

  .environment-grid .image-box {
    min-height: 180px;
  }
}


@media (max-width: 480px) {

  .small-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .small-hero p {
    font-size: 1rem;
  }

  .environment-grid {
    grid-template-columns: 1fr 1fr;
  }

  .environment-grid .image-box {
    min-height: 150px;
  }
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 992px) {

  .hero {
    min-height: 90vh;
  }

  .hero-content {
    text-align: center;
    margin: auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}


@media (max-width: 768px) {

  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding-top: 40px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero .btn {
    width: 100%;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .post-img img {
    height: 220px;
  }

  .services,
  .cta-banner,
  .updates,
  .contact {
    padding: 70px 0;
  }

   .why-us {
    padding: 70px 0;
  }

  .why-us h2 {
    margin-bottom: 1.5rem;
  }

  .why-us .grid {
    gap: 14px;
  }

  .why-us .card {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .why-us .card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .why-us .card p {
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0;
  }
}


@media (max-width: 480px) {

  .hero h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

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

  .post-img img {
    height: 200px;
  }

  .post-body {
    padding: 20px;
  }

  .stat-card {
    padding: 28px 20px;
  }

  .why-us {
    padding: 40px 0;
  }

  .why-us .grid {
    gap: 12px;
  }

  .why-us .card {
    padding: 12px;
  }

  .why-us .card h3 {
    font-size: 0.95rem;
  }

  .why-us .card p {
    font-size: 0.85rem;
    line-height: 1.35;
  padding: 0px;
  }
}

/* =========================================
   LITTLE EINSTEINS CENTER — DASHBOARD SYSTEM
   Admin + Client + Staff Dashboards
   ========================================= */


/* =========================
   DASHBOARD WRAPPER
   ========================= */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 35px;
}


/* =========================
   PAGE HEADER
   ========================= */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.page-header h2 {
  margin-bottom: 0.4rem;
}

.page-header .subtitle {
  margin: 0;
  color: var(--muted);
}


/* =========================
   STATS GRID
   ========================= */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.stat-card {
  text-align: center;
  padding: 35px 20px;
  transition: var(--transition);
}

.stat-card a {
  display: block;
  color: inherit;
}

.stat-card h3 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.stat-card p {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.stat-card:hover {
  transform: translateY(-6px);
}


/* Color accents */
.stats .stat-card:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.stats .stat-card:nth-child(2) {
  border-top: 4px solid var(--green);
}

.stats .stat-card:nth-child(3) {
  border-top: 4px solid var(--orange);
}

.stats .stat-card:nth-child(4) {
  border-top: 4px solid var(--red);
}


/* =========================
   ALERTS SECTION
   ========================= */

.alerts {
  display: grid;
  gap: 20px;
}

.alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 25px;
  font-weight: 600;
  border-left: 5px solid;
}

.alert a {
  font-weight: 700;
  color: inherit;
}

.alert.danger {
  background: rgba(237,28,36,0.08);
  border-color: var(--red);
  color: #991b1b;
}

.alert.warning {
  background: rgba(245,130,32,0.08);
  border-color: var(--orange);
  color: #9a3412;
}


/* =========================
   DASHBOARD MAIN GRID
   ========================= */

.dashboard-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}


/* =========================
   LISTS
   ========================= */

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.list li,
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(229,231,235,0.7);
}

.list li:last-child,
.list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list span {
  color: var(--muted);
  font-size: 0.92rem;
}


/* =========================
   QUICK ACTIONS
   ========================= */

.actions-grid,
.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.actions-grid .btn,
.actions .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px 18px;
  border-radius: 14px;

  background: linear-gradient(135deg, #008fc5, #00aeef);
  color: white;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;

  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.actions-grid .btn:hover,
.actions .btn:hover {
  background: linear-gradient(135deg,  #008fc5, #00aeef );
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.actions-grid .btn:active,
.actions .btn:active {
  transform: scale(0.97);
}

/* Optional subtle shine animation */
.actions-grid .btn::before,
.actions .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.actions-grid .btn:hover::before,
.actions .btn:hover::before {
  left: 125%;
}


/* =========================
   TABLE SYSTEM
   ========================= */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  overflow-x: auto;
}

.table th,
.table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid rgba(229,231,235,0.7);
}

.table th {
  background: var(--section-soft);
  font-weight: 700;
  color: var(--text);
}

.table tr:hover {
  background: rgba(0,174,239,0.03);
}


/* =========================
   BADGES
   ========================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(0,174,239,0.08);
  color: var(--primary-dark);
  margin: 4px 4px 4px 0;
}

.badge.warning {
  background: rgba(245,130,32,0.12);
  color: #9a3412;
}


/* =========================
   MUTED TEXT
   ========================= */

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 20px 0;
}


/* =========================
   CHILD CARD SYSTEM
   ========================= */

.child-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 4px solid var(--blue);
}

.child-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.child-avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(0,174,239,0.12);
}


/* =========================
   STAFF AVATAR
   ========================= */

.avatar-lg {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 4px solid rgba(0,174,239,0.1);
}

.avatar-lg.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--section-soft);
  font-size: 2.5rem;
}


/* =========================
   STAT BLOCKS
   ========================= */

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 10px;
}

.warning {
  color: #b45309;
  font-weight: 600;
  margin-top: 10px;
}


/* =========================
   CARD ACTIONS
   ========================= */

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.card-actions .btn {
  flex: 1;
}


/* =========================
   SECTION DIVIDERS
   ========================= */

.section {
  padding-top: 10px;
  border-top: 1px solid rgba(229,231,235,0.6);
}

.section h4 {
  margin-bottom: 0.8rem;
}


/* =========================
   SMALL BUTTON
   ========================= */

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 992px) {

  .dashboard-main,
  .stats,
  .actions-grid {
    gap: 22px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


@media (max-width: 768px) {

  .child-header {
    flex-direction: column;
    text-align: center;
  }

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

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

  .stat-card h3 {
    font-size: 2rem;
  }

  .avatar-lg {
    width: 90px;
    height: 90px;
  }
}


@media (max-width: 480px) {

  .dashboard {
    gap: 25px;
  }

  .stat-card {
    padding: 28px 18px;
  }

  .stat-card h3 {
    font-size: 1.8rem;
  }

  .child-avatar {
    width: 60px;
    height: 60px;
  }

  .table th,
  .table td {
    padding: 12px;
  }

  .badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* =========================================
   LITTLE EINSTEINS CENTER — POSTS SYSTEM
   Admin Post Management + Public Posts
   ========================================= */


/* =========================
   PAGE HEADER BUTTON GROUP
   ========================= */

.page-header > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* =========================
   POSTS GRID
   ========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}


/* =========================
   POST CARD
   ========================= */

.post-card,
.card.post-card,
.card.post-management {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 4px solid var(--blue);
  height: 100%;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-header h3 {
  margin: 0;
  line-height: 1.3;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.card p.meta {
  min-height: 48px;
}


/* =========================
   POST ACTIONS
   ========================= */

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.card-actions .btn {
  flex: 1;
  justify-content: center;
}


/* =========================
   BUTTON VARIANTS
   ========================= */

.btn-danger {
  background: rgba(237,28,36,0.1);
  color: var(--red);
  border: 1px solid rgba(237,28,36,0.18);
}

.btn-danger:hover {
  background: var(--red);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(107,114,128,0.08);
  color: var(--text);
  border: 1px solid rgba(107,114,128,0.12);
}

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


/* =========================
   FORM SYSTEM
   ========================= */

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.form-actions .btn {
  flex: 1;
  justify-content: center;
}


/* =========================
   POST IMAGE PREVIEW
   ========================= */

.post-preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(229,231,235,0.7);
  box-shadow: var(--shadow-sm);
}


/* =========================
   DELETE CONFIRMATION
   ========================= */

.container-center .card {
  max-width: 650px;
  width: 100%;
}

.container-center .card h2 {
  text-align: center;
}

.container-center .card p {
  text-align: center;
}

.container-center .card h3 {
  text-align: center;
  margin-top: 12px;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.actions form {
  margin: 0;
}


/* =========================
   POST DETAIL PAGE
   ========================= */

.post-detail {
  max-width: 900px;
  margin: auto;
  border-top: 4px solid var(--blue);
}

.post-detail h2 {
  margin-top: 20px;
  margin-bottom: 0.5rem;
}

.post-image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin: 25px 0;
  box-shadow: var(--shadow-md);
}

.post-image.large {
  max-height: 500px;
}

.post-body {
  margin-top: 10px;
}

.post-body p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-line;
}


/* =========================
   EMPTY STATES
   ========================= */

.empty {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 1rem;
}


/* =========================
   ADMIN POST CARD COLORS
   ========================= */

.grid .card:nth-child(4n+1) {
  border-top: 4px solid var(--blue);
}

.grid .card:nth-child(4n+2) {
  border-top: 4px solid var(--green);
}

.grid .card:nth-child(4n+3) {
  border-top: 4px solid var(--orange);
}

.grid .card:nth-child(4n+4) {
  border-top: 4px solid var(--red);
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 992px) {

  .post-detail {
    padding: 30px;
  }

  .post-image.large {
    max-height: 420px;
  }
}


@media (max-width: 768px) {

  .form-actions,
  .actions,
  .card-actions {
    flex-direction: column;
  }

  .form-actions .btn,
  .card-actions .btn,
  .actions .btn,
  .actions form,
  .actions form button {
    width: 100%;
  }

  .page-header > div:last-child {
    width: 100%;
    flex-direction: column;
  }

  .page-header > div:last-child .btn {
    width: 100%;
  }

  .post-body p {
    font-size: 1rem;
  }

  .post-image.large {
    max-height: 340px;
  }
}


@media (max-width: 480px) {

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

  .post-detail {
    padding: 22px;
  }

  .post-detail h2 {
    font-size: 1.8rem;
  }

  .post-image.large {
    max-height: 260px;
  }

  .form {
    gap: 20px;
  }
}

/* =========================================
   LITTLE EINSTEINS CENTER — STAFF + NOTIFICATIONS
   Admin Staff Management + Notification Center
   ========================================= */


/* =========================
   SEARCH + SORT BAR
   ========================= */

.search-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 35px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229,231,235,0.7);
}

.search-sort-bar input,
.search-sort-bar select {
  flex: 1;
  min-width: 180px;
}

.search-sort-bar button {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: white;
  transition: var(--transition);
}

.search-sort-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,174,239,0.22);
}


/* =========================
   STAFF GRID
   ========================= */

.staff-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  border-top: 4px solid var(--blue);
}

.grid .staff-card:nth-child(4n+1) {
  border-top-color: var(--blue);
}

.grid .staff-card:nth-child(4n+2) {
  border-top-color: var(--green);
}

.grid .staff-card:nth-child(4n+3) {
  border-top-color: var(--orange);
}

.grid .staff-card:nth-child(4n+4) {
  border-top-color: var(--red);
}


/* =========================
   STAFF PROFILE HEADER
   ========================= */

.child-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.child-header h3 {
  margin-bottom: 6px;
}


/* =========================
   AVATARS
   ========================= */

.avatar-lg {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(0,174,239,0.12);
  box-shadow: var(--shadow-sm);
}

.avatar-lg.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--section-soft);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 10px;
}


/* =========================
   STAFF FORM PAGES
   ========================= */

.container-center .page-header {
  width: 100%;
  max-width: 700px;
  margin-bottom: 24px;
}

.container-center .card {
  width: 100%;
  max-width: 700px;
}


/* =========================
   FORM SYSTEM
   ========================= */

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.form-actions .btn {
  flex: 1;
  justify-content: center;
}


/* =========================
   DELETE STAFF CONFIRMATION
   ========================= */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.actions form {
  margin: 0;
}


/* =========================
   NOTIFICATIONS PAGE
   ========================= */

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notification {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-left: 5px solid var(--blue);
  transition: var(--transition);
}

.notification.unread {
  background: rgba(0,174,239,0.03);
}

.notification:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.notification-content {
  flex: 1;
}

.notification-content p {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.notification-actions {
  flex-shrink: 0;
}

.notification-actions .btn {
  white-space: nowrap;
}


/* =========================
   BADGES + STATUS
   ========================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(0,174,239,0.08);
  color: var(--primary-dark);
}

.badge.warning {
  background: rgba(245,130,32,0.12);
  color: #9a3412;
}


/* =========================
   EMPTY STATES
   ========================= */

.empty {
  text-align: center;
  padding: 50px 0;
  color: var(--muted);
  font-size: 1rem;
}


/* =========================
   PAGE HEADER FLEX FIX
   ========================= */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.page-header > div:last-child {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 992px) {

  .notification {
    flex-direction: column;
    align-items: stretch;
  }

  .notification-actions {
    width: 100%;
  }

  .notification-actions .btn {
    width: 100%;
  }
}


@media (max-width: 768px) {

  .search-sort-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-sort-bar input,
  .search-sort-bar select,
  .search-sort-bar button {
    width: 100%;
  }

  .child-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .form-actions,
  .actions {
    flex-direction: column;
  }

  .form-actions .btn,
  .actions .btn,
  .actions form,
  .actions form button {
    width: 100%;
  }

  .page-header > div:last-child {
    width: 100%;
    flex-direction: column;
  }

  .page-header > div:last-child .btn {
    width: 100%;
  }
}


@media (max-width: 480px) {

  .staff-card,
  .notification {
    padding: 20px;
  }

  .avatar-lg {
    width: 68px;
    height: 68px;
  }

  .notification-content p {
    font-size: 0.95rem;
  }

  .search-sort-bar {
    padding: 16px;
  }
}

/* =========================================
   LITTLE EINSTEINS CENTER — CONSULTATIONS + CHILD MANAGEMENT
   Production-Level Admin / Child System Styles
   ========================================= */


/* =========================
   GLOBAL FILTER BAR
   ========================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(229,231,235,0.7);
  box-shadow: var(--shadow-sm);
}

.filters .btn {
  flex: 0 0 auto;
}


/* =========================
   CONSULTATION CARDS
   ========================= */

.grid .card {
  height: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.card-header h3 {
  margin-bottom: 0;
}

.card-section {
  margin: 22px 0;
}

.card-section strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
}


/* =========================
   STATUS BADGES
   ========================= */

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-submitted {
  background: rgba(0,174,239,0.08);
  color: var(--blue);
}

.status-scheduled {
  background: rgba(245,130,32,0.12);
  color: #9a3412;
}

.status-confirmed {
  background: rgba(100,188,70,0.12);
  color: #2f6b1f;
}

.status-rejected {
  background: rgba(237,28,36,0.12);
  color: #9f1239;
}


/* =========================
   CONSULTATION DETAIL PAGE
   ========================= */

.info-row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(229,231,235,0.7);
}

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

.info-row strong {
  color: var(--text);
  font-size: 1rem;
}

.approval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.approval-actions {
  margin-top: 24px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  margin-top: 35px;
}


/* =========================
   SUCCESS BUTTON
   ========================= */

.btn-success {
  background: linear-gradient(
    135deg,
    var(--green),
    #4f9f36
  );
  color: white;
  border: none;
  box-shadow: 0 14px 28px rgba(100,188,70,0.22);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(100,188,70,0.3);
}


/* =========================
   DANGER BUTTON
   ========================= */

.btn-danger {
  background: linear-gradient(
    135deg,
    var(--red),
    #c4161c
  );
  color: white;
  border: none;
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(237,28,36,0.25);
}


/* =========================
   ADD CHILD PAGE
   ========================= */

.multi-select {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--section-soft);
  border: 1px solid rgba(229,231,235,0.7);
  max-height: 320px;
  overflow-y: auto;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(229,231,235,0.7);
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-item:hover {
  border-color: var(--primary);
  background: rgba(0,174,239,0.03);
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--primary);
}

.hint {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}


/* =========================
   CHILD LIST PAGE
   ========================= */

.child-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  border-top: 4px solid var(--blue);
}

.grid .child-card:nth-child(4n+1) {
  border-top-color: var(--blue);
}

.grid .child-card:nth-child(4n+2) {
  border-top-color: var(--green);
}

.grid .child-card:nth-child(4n+3) {
  border-top-color: var(--orange);
}

.grid .child-card:nth-child(4n+4) {
  border-top-color: var(--red);
}

.child-photo {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--section-soft);
  border: 1px solid rgba(229,231,235,0.7);
}

.child-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.child-photo .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 500;
}

.child-card .section {
  padding-top: 8px;
  border-top: 1px solid rgba(229,231,235,0.5);
}

.child-card .section strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
}

.child-card ul {
  padding-left: 18px;
  margin-bottom: 14px;
}

.child-card li {
  margin-bottom: 8px;
  color: var(--muted);
}


/* =========================
   CHILD DETAIL PAGE
   ========================= */

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(229,231,235,0.6);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item strong {
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.actions .btn {
  flex: 0 0 auto;
}


/* =========================
   ASSIGN STAFF PAGE
   ========================= */

.multi-select .staff-card {
  width: 100%;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.multi-select .staff-card strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.multi-select .staff-card p {
  margin: 0;
  font-size: 0.92rem;
}


/* =========================
   TABLET RESPONSIVE
   ========================= */

@media (max-width: 992px) {

  .approval-grid {
    grid-template-columns: 1fr;
  }

  .child-photo {
    height: 220px;
  }
}


/* =========================
   MOBILE RESPONSIVE
   ========================= */

@media (max-width: 768px) {

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters .btn {
    width: 100%;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions-row,
  .actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions-row .btn,
  .actions .btn,
  .form-actions .btn {
    width: 100%;
  }

  .multi-select {
    max-height: none;
  }

  .child-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .child-photo {
    height: 200px;
  }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {

  .filters,
  .search-sort-bar {
    padding: 16px;
  }

  .child-card,
  .card {
    padding: 20px;
  }

  .child-photo {
    height: 180px;
  }

  .status {
    font-size: 0.76rem;
    padding: 7px 12px;
  }

  .checkbox-item {
    padding: 10px 12px;
  }

  .approval-actions .btn,
  .btn-success,
  .btn-danger {
    width: 100%;
  }
}

/* =========================================================
   PARENTS / CHILD MANAGEMENT PAGES
   Covers:
   - create_parent.html
   - delete_parent.html
   - edit_child.html
   - edit_parent.html
   - manage_parents.html
   PROFESSIONAL HEALTHCARE / ADMIN STYLE
========================================================= */

/* ---------- PAGE STRUCTURE ---------- */
.container,
.container-center {
    width: min(1150px, 92%);
    margin: 0 auto;
    padding: 40px 0 70px;
}

.container-center {
    max-width: 760px;
}

/* ---------- HEADINGS ---------- */
.container h2,
.container-center h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 28px;
    line-height: 1.2;
}

.container h3,
.container-center h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 18px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* ---------- CARDS ---------- */
.card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(46, 49, 146, 0.08);
    border: 1px solid rgba(46, 49, 146, 0.06);
    margin-bottom: 28px;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(46, 49, 146, 0.12);
}

/* ---------- FORMS ---------- */
form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(46, 49, 146, 0.15);
    background: #f9fbff;
    font-size: 1rem;
    color: var(--text);
    transition: 0.25s ease;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12);
    background: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

small,
.hint {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 4px;
}



/* ---------- ACTION GROUPS ---------- */
.form-actions,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

/* ---------- MULTI SELECT ---------- */
.multi-select {
    display: grid;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding: 14px;
    background: #f9fbff;
    border-radius: 18px;
    border: 1px solid rgba(46, 49, 146, 0.08);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: white;
    border: 1px solid rgba(46, 49, 146, 0.06);
    transition: 0.2s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #eef4ff;
    transform: translateX(4px);
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    accent-color: var(--dark-blue);
}

/* ---------- PARENT RELATION BLOCKS ---------- */
.parent-item,
.relation-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(46, 49, 146, 0.08);
}

.parent-item:last-child,
.relation-item:last-child {
    border-bottom: none;
}

.parent-item strong,
.relation-item strong {
    color: var(--dark-blue);
    font-size: 1rem;
}

.parent-meta {
    color: #6b7280;
    margin-top: 4px;
}

/* ---------- MANAGE PARENTS ---------- */
.manage-parent-list .card {
    padding: 24px;
}

.manage-parent-list hr {
    border: none;
    border-top: 1px solid rgba(46, 49, 146, 0.08);
    margin: 20px 0;
}

/* ---------- CHILD PHOTO ---------- */
.child-photo-preview {
    margin-top: 10px;
    border-radius: 18px;
    overflow: hidden;
    max-width: 220px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.child-photo-preview img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ---------- EMPTY STATES ---------- */
.empty {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    background: #f9fbff;
    color: #6b7280;
    font-weight: 500;
}

/* ---------- INFO TEXT ---------- */
p {
    line-height: 1.7;
    color: var(--text);
}

/* ---------- SELECT DROPDOWNS ---------- */
select {
    cursor: pointer;
}

/* ---------- DELETE CONFIRM ---------- */
.warning-box,
.delete-warning {
    padding: 18px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #b91c1c;
    font-weight: 600;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .card {
        padding: 24px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .container,
    .container-center {
        width: 94%;
        padding: 30px 0 60px;
    }

    .card {
        padding: 22px;
        border-radius: 20px;
    }

    .form-actions,
    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .multi-select {
        max-height: 260px;
    }
}

@media (max-width: 480px) {
    .container h2,
    .container-center h2 {
        font-size: 1.6rem;
    }

    .card {
        padding: 18px;
    }

    input,
    textarea,
    select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .checkbox-item {
        flex-direction: row;
        align-items: center;
        padding: 10px 12px;
    }
}

/* =========================================================
   APPOINTMENTS / CONSULTATIONS / SCHEDULING SYSTEM CSS
   Production-level clean UI
   Covers:
   - Appointment admin list
   - Appointment detail
   - Public appointment view
   - Reschedule
   - Success / confirmation pages
   - Consultation cards
   ========================================================= */

/* =========================
   FILTER / STATUS BAR
========================= */
.filters,
.actions.card,
.card.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    margin-bottom: 28px;
    align-items: center;
    justify-content: flex-start;
}

/* =========================
   APPOINTMENT GRID
========================= */
.appointment-grid,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* =========================
   CONSULTATION / APPOINTMENT CARD
========================= */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.card p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.97rem;
}

/* =========================
   CARD HEADER
========================= */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
}

/* =========================
   STATUS BADGES
========================= */
.status,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.4px;
}

/* Consultation statuses */
.status-submitted,
.badge.submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-scheduled,
.badge.scheduled {
    background: #fef3c7;
    color: #b45309;
}

.status-confirmed,
.badge.confirmed {
    background: #dcfce7;
    color: #15803d;
}

.status-rejected,
.badge.rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.status-reschedule_requested,
.badge.reschedule_requested {
    background: #fef3c7;
    color: #92400e;
}

/* =========================
   META TEXT
========================= */
.meta {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* =========================
   CARD SECTIONS
========================= */
.card-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.card-section strong {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
}

/* =========================
   LISTS
========================= */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.list li:last-child {
    border-bottom: none;
}

/* =========================
   ACTION BUTTON GROUP
========================= */
.card-actions,
.actions,
.actions-row,
.approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* =========================
   INFO GRID
========================= */
.info-grid,
.approval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.info-item {
    background: #f8fafc;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

/* =========================
   ALERTS
========================= */
.alert {
    padding: 18px;
    border-radius: 16px;
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 5px solid transparent;
}

.alert.success {
    background: #dcfce7;
    border-left-color: #16a34a;
    color: #166534;
}

.alert.warning {
    background: #fef3c7;
    border-left-color: #d97706;
    color: #92400e;
}

.alert.danger {
    background: #fee2e2;
    border-left-color: #dc2626;
    color: #991b1b;
}

/* =========================
   FORMS
========================= */
.form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    background: #fff;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    outline: none;
}

/* =========================
   TIMELINE
========================= */
.timeline {
    list-style: none;
    padding-left: 18px;
    margin-top: 18px;
    border-left: 3px solid #dbeafe;
}

.timeline li {
    position: relative;
    margin-bottom: 18px;
    padding-left: 16px;
    color: #475569;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #2563eb;
    border-radius: 50%;
}

/* =========================
   SUCCESS / CONFIRMATION
========================= */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.success-card {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 50px 40px;
}

.success-card h2 {
    font-size: 2rem;
    color: #15803d;
    margin-bottom: 18px;
}

.success-card p {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 18px;
}

.success-card .info {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin: 22px 0;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

/* =========================
   EMPTY STATE
========================= */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 1rem;
}

/* =========================
   HORIZONTAL RULE
========================= */
hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 28px 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions,
    .card-actions,
    .filters {
        flex-direction: column;
        width: 100%;
    }

    .actions .btn,
    .card-actions .btn,
    .filters .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
    }

    .success-card {
        padding: 35px 24px;
    }

    .appointment-grid,
    .grid {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .approval-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card h3 {
        font-size: 1.1rem;
    }

    .success-card h2 {
        font-size: 1.6rem;
    }

    .status,
    .badge {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
    }
}


/* #clientSearch {
    width: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

#clientSearch:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.15);
} */

#resultsBox {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

#resultsBox div {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px 12px;
    cursor: pointer;
    transition: 0.15s ease;
}

#resultsBox div:hover {
    background: #f5f7ff;
}


/* =========================
   PARENT SEARCH PICKER
========================= */

.parent-search-wrapper{
    position: relative;
    width: 100%;
}

.parent-search-input{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    transition: 0.2s ease;
}

.parent-search-input:focus{
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.parent-results-box{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.parent-result-item{
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.parent-result-item:last-child{
    border-bottom: none;
}

.parent-result-item:hover{
    background: #f9fafb;
}

.parent-result-item strong{
    display: block;
    font-size: 14px;
    color: #111827;
}

.parent-result-item small{
    color: #6b7280;
    font-size: 12px;
}

/* =========================
   SELECTED PARENTS
========================= */

.selected-parents-list{
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parent-selected-card{
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    background: #fafafa;
}

.parent-selected-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.parent-selected-top strong{
    font-size: 14px;
}

.parent-role-select{
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: white;
}

.parent-remove-btn{
    border: none;
    background: #fee2e2;
    color: #dc2626;
    padding: 7px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s ease;
}

.parent-remove-btn:hover{
    background: #fecaca;
}

.post-detail h2,
.post-body p {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}