:root {
  --fac-cream: #fff7f0;
  --fac-text: #1f1f1f;
  --fac-pink: #ff5a8a;
  --fac-orange: #ff9a3c;
  --fac-blue: #2aa4ff;
  --fac-purple: #7a6cf0;
}

.facilities-hero {
  background: radial-gradient(circle at 20% 20%, #fff1e8 0%, #fff8f3 45%, #ffffff 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.facilities-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 16px;
  color: var(--fac-text);
}

.hero-copy p {
  max-width: 520px;
  color: #555555;
  margin-bottom: 28px;
}

.hero-kicker {
  display: inline-block;
  color: #ff7a6e;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-btn {
  background: var(--fac-pink);
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: 0 10px 20px rgba(255, 90, 138, 0.25);
}

.hero-btn:hover {
  background: #f0477b;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-photo-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  position: relative;
}

.hero-photo-card img {
  width: 100%;
  max-width: 420px;
  display: block;
  border-radius: 22px;
}

.hero-doodle {
  position: absolute;
  font-size: 1.4rem;
  color: #ffb347;
  opacity: 0.8;
}

.doodle-sun {
  top: 24px;
  left: 10%;
  color: #ffb347;
}

.doodle-star {
  top: 80px;
  left: 40%;
  color: #ff6aa2;
}

.doodle-heart {
  left: 18%;
  bottom: 60px;
  color: #ff7aa9;
}

.facilities-main {
  background: #ffffff;
}


.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.intro-copy h2 {
  margin-bottom: 16px;
}

.intro-copy p {
  color: #fff;
  margin-bottom: 20px;
}

.intro-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
  color: #444444;
}

.intro-list i {
  color: var(--fac-pink);
  margin-right: 8px;
}

.intro-btn {
  background: var(--fac-pink);
  border-radius: 999px;
  padding: 12px 28px;
}

.intro-photos {
  display: flex;
  justify-content: center;
}

.photo-stack {
  position: relative;
  width: min(360px, 80vw);
  height: 280px;
}

.photo {
  position: absolute;
  border-radius: 22px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
  object-fit: cover;
  width: 75%;
  height: 220px;
}

.photo-back {
  left: 0;
  top: 20px;
}

.photo-front {
  right: 0;
  top: 0;
  border: 8px solid #ffffff;
}

.facility-programs {
  padding: 80px 0 100px;
  background: #faf9ff;
  text-align: center;
}

.facility-highlights {
  padding: 80px 0;
  background: #ffffff;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.highlight-card {
  background: #fff7f0;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffe0d6;
  color: #ff6f5e;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.facility-programs h2 {
  margin-bottom: 10px;
}

.section-subtitle {
  max-width: 620px;
  margin: 0 auto 40px;
  color: #666666;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.program-card {
  border-radius: 24px;
  padding: 18px 18px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  height: auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.program-card h3 {
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: 1.18rem;
}

.program-card p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.45;
}

.program-illustration {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-illustration img {
  width: 58px;
  height: 58px;
}

.program-blue {
  background: linear-gradient(135deg, #12a3ff, #36c1ff);
}

.program-purple {
  background: linear-gradient(135deg, #6f5cff, #9a85ff);
}

.program-pink {
  background: linear-gradient(135deg, #ff4f8b, #ff7ab1);
}

.program-card::before,
.program-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 0;
  filter: blur(0.2px);
}

.program-card::before {
  top: -45px;
  left: -35px;
  border-radius: 42% 58% 63% 37% / 50% 40% 60% 50%;
}

.program-card::after {
  bottom: -55px;
  right: -40px;
  border-radius: 60% 40% 45% 55% / 35% 60% 40% 65%;
}

.program-card > * {
  position: relative;
  z-index: 1;
}

.facility-gallery {
  display: none;
}

.gallery-page .facility-gallery {
  display: block;
  padding: 80px 0 100px;
  background: #fff;
}

.gallery-grid-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.gallery-grid-mini img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(31, 25, 76, 0.12);
  background: #ffffff;
}

.facility-calendar {
  padding: 80px 0 100px;
  background: #fdfbff;
}

.facility-events {
  padding: 80px 0 100px;
  background: radial-gradient(circle at 10% 10%, #fff7ef 0%, #fff9f5 40%, #f6f4ff 100%);
}

.events-shell {
  background: #ffffff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 28px 70px rgba(31, 25, 76, 0.12);
  border: 1px solid rgba(122, 108, 240, 0.12);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.events-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 140, 92, 0.2);
  box-shadow: 0 18px 36px rgba(31, 25, 76, 0.1);
}

.events-card:nth-child(2) {
  border-color: rgba(122, 108, 240, 0.18);
  background: #f9f7ff;
}

.events-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.events-card-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #2f2f3a;
}

.events-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff1e6;
  color: #ff7b59;
  font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(255, 123, 89, 0.25);
}

.events-card:nth-child(2) .events-icon {
  background: #ece9ff;
  color: #7a6cf0;
  box-shadow: 0 10px 22px rgba(122, 108, 240, 0.25);
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: #4b4b5b;
  line-height: 1.5;
}

.events-list li {
  position: relative;
  padding-left: 28px;
}

.events-list li::before {
  content: "\f111";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.6rem;
  color: #ff7b59;
  position: absolute;
  left: 0;
  top: 8px;
}

.events-card:nth-child(2) .events-list li::before {
  color: #7a6cf0;
}

.events-footer {
  margin-top: 26px;
  background: #fff7fb;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed rgba(255, 122, 169, 0.35);
}

.events-footer p {
  margin: 0;
  color: #5a5a6b;
}

.events-badge {
  background: #ff7aa9;
  color: #ffffff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 12px 24px rgba(255, 122, 169, 0.3);
}

.calendar-shell {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(32, 29, 72, 0.12);
  padding: 28px;
  border: 1px solid rgba(122, 108, 240, 0.12);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(122, 108, 240, 0.2);
}

.calendar-title {
  display: flex;
  gap: 8px;
}

.calendar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff7aa9;
  box-shadow: 0 6px 12px rgba(255, 122, 169, 0.3);
}

.calendar-dot:nth-child(2) {
  background: #ffc857;
}

.calendar-dot:nth-child(3) {
  background: #6dd3ff;
}

.calendar-label {
  font-weight: 600;
  color: #6b6b86;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.78rem;
}

.calendar-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.calendar-card {
  background: linear-gradient(135deg, #fff7f8, #f4f7ff);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(122, 108, 240, 0.12);
  box-shadow: 0 14px 28px rgba(31, 25, 76, 0.08);
  display: grid;
  gap: 10px;
  min-height: 120px;
}

.calendar-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--fac-purple);
  background: rgba(122, 108, 240, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
  font-size: 0.95rem;
}

.calendar-date::before {
  content: "\f073";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  color: #6d5cff;
}

.calendar-event {
  color: #3f3f4b;
  font-weight: 600;
  line-height: 1.4;
}

.calendar-note {
  margin: 22px 0 0;
  color: #666666;
  text-align: center;
}

.facility-core {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
}

.curriculum-shell {
  background: #ffffff;
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 26px 60px rgba(28, 20, 68, 0.12);
  border: 1px solid rgba(122, 108, 240, 0.12);
}

.curriculum-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #ffe3ef, #e7f3ff);
  padding: 16px 20px;
  border-radius: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 122, 169, 0.2);
}

.banner-title {
  font-weight: 700;
  color: #3d2d5f;
}

.banner-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b6b86;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.curriculum-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.curriculum-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff7f9;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 34px rgba(31, 25, 76, 0.1);
  border: 1px solid rgba(122, 108, 240, 0.1);
}

.curriculum-card:nth-child(2) {
  background: #f3f7ff;
}

.curriculum-card:nth-child(3) {
  background: #fff3e8;
}

.curriculum-card:nth-child(4) {
  background: #f1fffb;
}

.curriculum-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--fac-purple);
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(31, 25, 76, 0.12);
}

.curriculum-text {
  display: grid;
  gap: 6px;
}

.curriculum-title {
  font-weight: 700;
  color: #2f2f3a;
}

.curriculum-detail {
  color: #5a5a6b;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .facilities-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .intro-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-list {
    justify-items: center;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid-mini {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  .facilities-hero {
    padding-top: 120px;
  }

  .photo-stack {
    height: 240px;
  }

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

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

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

  .calendar-shell {
    padding: 22px;
  }

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

  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .curriculum-shell {
    padding: 22px;
  }

  .curriculum-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .events-shell {
    padding: 22px;
  }

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