/* =========================
   Base Page Styles
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #e0f7fa;
  color: #014f86;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #0288d1;
  outline-offset: 4px;
  border-radius: 6px;
}

section {
  padding: 48px 20px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  text-align: center;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* =========================
   Header and Navigation
========================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #81d4fa;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0277bd;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list a {
  font-weight: bold;
  color: #0277bd;
}

.nav-list a:hover {
  text-decoration: underline;
}

/* =========================
   Hero Section
========================= */

.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #b3e5fc;
  padding: 120px 20px;
  overflow: hidden;
}

.hero-with-logo-bg {
  background-image:
    linear-gradient(
      rgba(179, 229, 252, 0.18),
      rgba(179, 229, 252, 0.18)
    ),
    url("../img/logo.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(82vw, 720px) auto;
}

.hero-section h1,
.hero-subtitle,
.hero-link {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: #014f86;
  text-shadow:
    0 2px 4px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 28px;
  color: #014f86;
  text-shadow:
    0 2px 4px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.9);
}

.hero-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0288d1;
  color: #ffffff;
  font-weight: bold;
  border-radius: 8px;
}

.hero-link:hover {
  background-color: #0277bd;
}

/* =========================
   Featured Video Section
========================= */

.featured-video-section {
  background-color: #e0f7fa;
}

.featured-video-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid #81d4fa;
  border-radius: 12px;
}

/* =========================
   Video Wrapper
========================= */

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #b3e5fc;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   Video Grid Section
========================= */

.video-grid-section {
  background-color: #f0fbff;
}

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

.video-card {
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #81d4fa;
  border-radius: 12px;
}

.video-description {
  margin-bottom: 0;
}

/* =========================
   Browse by Sefer Section
========================= */

.browse-by-sefer-section {
  background-color: #e0f7fa;
  text-align: center;
}

.sefer-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sefer-list a {
  display: inline-block;
  padding: 10px 18px;
  background-color: #ffffff;
  color: #0277bd;
  font-weight: bold;
  border: 1px solid #4fc3f7;
  border-radius: 8px;
}

.sefer-list a:hover {
  background-color: #b3e5fc;
}

/* =========================
   Meet Lazer Section
========================= */

.meet-lazer-section {
  background-color: #f0fbff;
}

.meet-lazer-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid #81d4fa;
  border-radius: 12px;
}

/* =========================
   Footer
========================= */

.site-footer {
  padding: 24px 20px;
  text-align: center;
  background-color: #0277bd;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
}

/* =========================
   Responsive Design
========================= */

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .site-branding {
    justify-content: center;
  }

  .nav-list {
    justify-content: center;
  }

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

  .hero-section {
    min-height: 460px;
    padding: 100px 20px;
  }

  .hero-with-logo-bg {
    background-size: min(88vw, 560px) auto;
  }
}

@media (max-width: 600px) {
  section {
    padding: 36px 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-section {
    min-height: 420px;
    padding: 88px 16px;
  }

  .hero-with-logo-bg {
    background-size: min(95vw, 420px) auto;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
  }
}