/* =========================================
   GALLERY PAGE — SMA YAHYA
========================================= */

.gallery-hero {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 90px solid rgba(245, 166, 35, 0.08);
}

.gallery-hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 70px solid rgba(11, 122, 99, 0.1);
}

.gallery-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.gallery-badge {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: var(--gold);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.gallery-hero h1 {
  font-family: "Lora", serif;
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 600;
  max-width: 760px;
  margin-bottom: 1rem;
}

.gallery-hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.gallery-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.gallery-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================
   GALLERY STATS
========================================= */

.gallery-stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.gallery-stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.gallery-stat h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.gallery-stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* =========================================
   FILTERS
========================================= */

.gallery-filter-section {
  padding: 2rem;
  background: var(--cream);
}

.gallery-filters {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.gallery-filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* =========================================
   FEATURED STORY
========================================= */

.featured-gallery {
  padding: 5rem 2rem;
  background: var(--white);
}

.featured-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.featured-image {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.featured-content {
  padding: 1rem;
}

.featured-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.featured-content h2 {
  font-family: "Lora", serif;
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.featured-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.featured-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.featured-meta span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
}

/* =========================================
   MASONRY GALLERY
========================================= */

.gallery-section {
  padding: 5rem 2rem;
  background: var(--cream);
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;

  columns: 3 320px;
  column-gap: 1.25rem;
}

.gallery-card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gallery-card-image {
  overflow: hidden;
  position: relative;
}

.gallery-card-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 39, 68, 0.88),
    rgba(13, 39, 68, 0.1)
  );

  opacity: 0;
  transition: opacity 0.3s ease;

  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.gallery-overlay-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.6;
}

.gallery-card-content {
  padding: 1.2rem;
}

.gallery-category {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.gallery-card-content h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.gallery-card-content p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* =========================================
   STUDENT LIFE STRIP
========================================= */

.student-life {
  background: var(--navy);
  padding: 5rem 2rem;
  overflow: hidden;
}

.student-life-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.student-life-head {
  text-align: center;
  margin-bottom: 3rem;
}

.student-life-head h2 {
  font-family: "Lora", serif;
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.student-life-head p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

.life-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.life-scroll::-webkit-scrollbar {
  display: none;
}

.life-card {
  min-width: 320px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.life-card img {
  height: 220px;
  object-fit: cover;
}

.life-card-content {
  padding: 1.2rem;
}

.life-card-content h3 {
  color: var(--white);
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.life-card-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  line-height: 1.7;
}

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

.gallery-cta {
  background: var(--white);
  padding: 5rem 2rem 6rem;
}

.gallery-cta-box {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 28px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gallery-cta-box::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(245, 166, 35, 0.06);
  top: -140px;
  right: -100px;
}

.gallery-cta-box h2 {
  position: relative;
  z-index: 2;
  font-family: "Lora", serif;
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.gallery-cta-box p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.68);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* =========================================
   ACCESSIBILITY
========================================= */

.gallery-filter-btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 3px solid rgba(245, 166, 35, 0.4);
  outline-offset: 3px;
}

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

@media (max-width: 768px) {
  .gallery-hero {
    padding: 5rem 1.25rem 4rem;
  }

  .gallery-hero h1 {
    font-size: 2.6rem;
  }

  .gallery-hero-actions {
    flex-direction: column;
  }

  .gallery-hero-actions a {
    width: 100%;
    text-align: center;
  }

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

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

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

  .gallery-grid {
    columns: 1;
  }

  .student-life-head h2 {
    font-size: 2rem;
  }

  .gallery-cta-box {
    padding: 3rem 1.5rem;
  }

  .gallery-cta-box h2 {
    font-size: 2rem;
  }
}
