/* =========================
   NAVBAR & HEADER
========================= */

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar {
  position: relative;   /* NOT fixed */
  width: 100%;
  background: #fff;
  z-index: 20;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.navbar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* LOGO */

.logo-image {
  height: 90px;
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 90px); /* subtract navbar height */
  padding-top: 90px;              /* push content below nav */
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* =========================
   STORY / FEATURE IMAGES
========================= */

.story-image {
  width: 100%;
  min-height: 400px;
  border-radius: 16px;
  overflow: hidden;
}

.story-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) contrast(1.05);
}

/* =========================
   TEACHER / PROFILE IMAGES
========================= */

.teacher-photo {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
}

.teacher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   GALLERY GRID
========================= */

.gallery-image {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-img {
  width: calc(50% - 4px);   /* 2 per row */
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.gallery-cover-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* =========================
   HORIZONTAL SCROLL GALLERY
========================= */

.gallery-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.gallery-scroll img {
  flex: 0 0 auto;
  width: 300px;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.gallery-scroll img:hover {
  transform: scale(1.05);
}

/* =========================
   SPONSORS
========================= */

.sponsor-img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}