/* ==========================================
   SANSKAR ACADEMY - GALLERY STYLESHEET
   ========================================== */

@import url("css/style.css");

:root {
  --primary-color: #0B2C5F;
  --primary-dark: #071D40;
  --accent-color: #F4C430;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --bg-light: #d4ebfe;
  --white: #ffffff;
  --max-width: 1280px;
  --radius-md: 16px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- HERO SECTION ---------- */
.gallery-hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
}

.gallery-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 24, 54, 0.9) 0%, rgba(11, 44, 95, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
}

.hero-content span {
  display: inline-block;
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero-content p {
  color: #cbd5e1;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- GALLERY SECTION & GRID ---------- */
.gallery-section-block {
  padding: 80px 24px;
}

.gallery-section-block:nth-child(even) {
  background: var(--white);
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading span {
  color: #d97706;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.25;
}

.section-heading p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 15px;
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.gallery-item img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

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

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */

/* Laptop / Small Desktop (<= 1024px) */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .gallery-item img {
    height: 240px;
  }
}

/* Tablet / Mobile (<= 768px) */
@media (max-width: 768px) {
  .gallery-hero,
  .gallery-section-block {
    padding: 60px 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item img {
    height: 230px;
  }
}