/* ---------- STANDARD TRAINING PAGE ---------- */

.training-page {
  max-width: 1250px;
  margin: 0 auto;
  padding: 50px 24px;
  color: #222;
}

/* ---------- HERO ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 45px;
  align-items: center;
  background: linear-gradient(135deg, #fffaf3, #ffe8cc);
  border-radius: 28px;
  padding: 55px;
  margin-bottom: 45px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.hero-text h1 {
  margin: 0 0 22px;
  font-size: 54px;
  font-weight: 900;
  line-height: 1.08;
  color: #222;
}

.hero-text p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

.hero-right {
  width: 100%;
}

/* ---------- HERO GALLERY ---------- */

.programme-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  transition: transform 0.35s ease;
}

.gallery-img:hover {
  transform: scale(1.04);
}

/* ---------- SCHOOL SOCIALISATION ---------- */

.school-social-section {
  margin-bottom: 45px;
  background: #f6efe3;
  border-radius: 34px;
  padding: 38px 42px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.07);
}

.school-social-content {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: center;
}

.school-gallery-trigger {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 26px;
  max-width: 430px;
  justify-self: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.school-gallery-trigger img {
  width: 100%;
  height: 315px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.school-gallery-trigger:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.48), rgba(0,0,0,0.04));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 22px;
}

.gallery-overlay span {
  background: rgba(255,255,255,0.94);
  color: #111;
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.school-social-text h2 {
  font-size: 2.8rem;
  line-height: 1.05;
  margin: 0 0 18px;
  color: #1d1d1d;
  font-weight: 900;
}

.school-social-text p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #444;
  max-width: 560px;
  margin: 0;
}

.mini-tag {
  display: inline-block;
  background: #e6c252;
  color: #111;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 0.4px;
}

/* ---------- SCHOOL ALBUM OPEN SECTION ---------- */

.school-album-section {
  background: rgba(255,255,255,0.94);
  border-radius: 28px;
  padding: 30px;
  margin-bottom: 45px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.album-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.album-header button {
  border: none;
  background: #f4b942;
  color: #111;
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.album-header h2 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 900;
}

.school-album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.school-album-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.09);
}

.school-album-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.school-album-card img:hover {
  transform: scale(1.04);
}

/* ---------- LIGHTBOX LIKE GALLERY PAGE ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

#lightbox-img,
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.45);
}

.lightbox-close,
.close-lightbox {
  position: absolute;
  top: 22px;
  right: 30px;
  color: white;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
}

/* ---------- BUTTONS ---------- */

.button-row {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.btn-yellow {
  background: #f4b942;
  color: #222;
}

.btn-yellow:hover {
  background: #e7a928;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

/* ---------- SECTION ---------- */

.section {
  background: rgba(255,255,255,0.9);
  border-radius: 28px;
  padding: 45px;
  margin-bottom: 45px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.section h2 {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 900;
}

.section p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

/* ---------- FUN LIST ---------- */

.fun-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}

.fun-list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.45;
}

.fun-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #2e9e5b;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- TRAINING GRID ---------- */

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.training-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: 0 16px 35px rgba(0,0,0,0.09);
  border: 1px solid rgba(244,185,66,0.45);
  border-top: 7px solid #f4b942;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.training-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14);
}

.age-tag {
  display: inline-block;
  background: #fff0cf;
  color: #222;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.training-card h3 {
  margin: 0 0 14px;
  font-size: 23px;
  font-weight: 900;
  color: #2e9e5b;
  line-height: 1.2;
}

.training-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: #333;
}

.training-card ul {
  padding-left: 18px;
  margin: 0;
}

.training-card li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .school-album-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .school-album-card img {
    height: 180px;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 42px 30px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .programme-gallery {
    max-width: 650px;
  }

  .school-social-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .school-gallery-trigger {
    max-width: 520px;
    justify-self: start;
  }

  .training-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .school-album-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .training-page {
    padding: 32px 16px;
  }

  .hero {
    padding: 32px 22px;
    border-radius: 22px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-text p,
  .section p {
    font-size: 16px;
  }

  .programme-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .gallery-img {
    height: 135px;
    border-radius: 14px;
  }

  .school-social-section,
  .school-album-section {
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 35px;
  }

  .school-gallery-trigger {
    max-width: 100%;
    border-radius: 22px;
  }

  .school-gallery-trigger img {
    height: 280px;
  }

  .school-social-text h2 {
    font-size: 2.2rem;
  }

  .school-social-text p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .album-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-header h2 {
    font-size: 1.8rem;
  }

  .school-album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .school-album-card {
    border-radius: 16px;
  }

  .school-album-card img {
    height: 145px;
  }

  .section {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .section h2 {
    font-size: 28px;
  }

  .fun-list {
    grid-template-columns: 1fr;
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .lightbox-close,
  .close-lightbox {
    top: 14px;
    right: 20px;
    font-size: 42px;
  }
}
#school-socialisation {
  scroll-margin-top: 150px;
}