/* ===== GNPS Gallery Caption Enhancement ===== */

.teacher {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.teacher-info {
  padding: 14px 14px 16px;
  background: #ffffff;
}

.teacher-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.gallery-subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 10px;
}

.gallery-link a {
  font-size: 13px;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
}

.gallery-link a:hover {
  text-decoration: underline;
}

/* ===== Year Badge ===== */

.teacher-img {
  position: relative;
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(13, 110, 253, 0.95);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Optional color variation */
.gallery-item[data-year="2024"] .year-badge {
  background: rgba(25, 135, 84, 0.95); /* green */
}

/* ===============================
   GNPS Gallery – Visual Enhancement
   =============================== */

/* Card polish */
.teacher {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
}

/* Image container */
.teacher-img {
  position: relative;
}

/* YEAR BADGE – STRONG & COLORFUL */
.year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #0d6efd, #084298);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  z-index: 3;
}

/* Green tone for older year */
.gallery-item[data-year="2024"] .year-badge {
  background: linear-gradient(135deg, #198754, #0f5132);
}

/* Caption area */
.teacher-info {
  padding: 16px 16px 18px;
  background: #ffffff;
}

/* Event title – bold & clear */
.teacher-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

/* Subtitle (if used) */
.gallery-subtitle {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* CTA link – button feel */
.gallery-link a,
.teacher-info span a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.gallery-link a:hover,
.teacher-info span a:hover {
  background: #0d6efd;
  color: #ffffff;
}

/* ===============================
   GNPS Orange Heading Section
   =============================== */

.gnps-highlight-section {
  margin: 40px 0 30px;
}

.gnps-highlight-box {
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  border-radius: 24px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

/* soft decorative circles */
.gnps-highlight-box::before,
.gnps-highlight-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
}

.gnps-highlight-box::before {
  width: 140px;
  height: 140px;
  background: #fde68a;
  top: -40px;
  left: -40px;
}

.gnps-highlight-box::after {
  width: 120px;
  height: 120px;
  background: #fdba74;
  bottom: -40px;
  right: -40px;
}

.gnps-highlight-box h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 8px;
}

.gnps-highlight-box p {
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  max-width: 600px;
}

/* =========================================
   GNPS – UNIVERSAL IMAGE HOVER ZOOM (FINAL)
   Works on ALL gallery & event pages
   No HTML change required
   ========================================= */

/* Allow zoom to escape parent grid safely */
.teacher,
.teacher-img {
  overflow: visible !important;
}

/* Image container */
.teacher-img {
  position: relative;
}

/* Image default */
.teacher-img img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-origin: center center;
  cursor: zoom-in;
  z-index: 1;
}

/* Hover zoom */
.teacher-img:hover img {
  transform: scale(1.25);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  z-index: 999;
}


