/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #ffe3d4 0%, #fbe5ff 32%, #e3f0ff 70%, #fde7ff 100%);
  color: #222;
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* ===== HEADER ===== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 24px;
}

.home-header {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 24px 24px 26px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  margin-bottom: 16px;
}

.home-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  color: #1f1239;
}

/* ===== NAV ===== */

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.nav a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: #444;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
}

/* תפריט עליון – יותר בולט */
.home-header .nav-main a {
  background: linear-gradient(135deg, #ffffff, #f7ecff);
  border: 2px solid #7c3aed;
  color: #7c3aed;
  font-size: 16px;
  padding: 10px 22px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}

.nav a:hover {
  background: #7c3aed;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

/* ===== SECTIONS ===== */

.section {
  margin-top: 32px;
}

.section-card {
  background: transparent;
  box-shadow: none;
  padding: 6px 0 28px;
}

.section-title {
  font-size: 26px;
  margin-bottom: 14px;
  color: #1f2933;
  position: relative;
  padding-bottom: 6px;
}

.section-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 90px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #fb9b9b);
}

/* ===== CATEGORY GRID ===== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  background: #faf5ff;
  border-radius: 24px;
  padding: 18px 18px 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-icon {
  font-size: 26px;
}

.category-name {
  font-size: 20px;
  font-weight: 700;
  color: #1f1239;
}

.category-description {
  font-size: 15px;
  color: #4b5563;
}

/* ===== MINI GALLERY ===== */

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mini-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f9fafb;
  cursor: pointer;
}

/* ===== BUTTON-LIKE LINKS ===== */

.category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #7c3aed;
  text-decoration: none;
  align-self: flex-start;
  border: 1px solid #d5c4ff;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.18);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.category-link:hover {
  background: #7c3aed;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(124, 58, 237, 0.35);
}

/* ספר – שורה */

.book-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.book-cover-wrapper {
  flex: 0 0 190px;
}

.book-cover-wrapper img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.book-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
}

/* ===== GALLERY PAGES (עמודים פנימיים) ===== */

.gallery-header {
  margin-top: 8px;
  margin-bottom: 16px;
}

.gallery-title {
  font-size: 30px;
  margin-bottom: 4px;
}

.gallery-subtitle {
  font-size: 15px;
  color: #4b5563;
}

.gallery-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 16px;
  cursor: pointer;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.25);
}

/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox--open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ===== מי אני בעמוד הבית ===== */

.about-home-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  padding: 22px 22px 24px;
}

.about-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.8fr);
  gap: 24px;
  align-items: flex-start;
}

/* וידאו */

.about-home-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.about-home-video-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.about-home-video-frame {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.35);
  background: #000;
}

.about-home-video-text {
  font-size: 13px;
  line-height: 1.8;
  color: #4b5563;
  max-width: 360px;
}

/* טקסט וכתבות */

.about-home-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-home-intro p {
  font-size: 15px;
  line-height: 1.9;
  color: #111827;
}

.about-home-articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.about-home-article {
  background: #f9fafb;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
}

.about-home-article h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111827;
}

.about-home-article p {
  font-size: 13px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 4px;
}

.about-home-more-link {
  margin-top: 4px;
}

/* ===== צור קשר ===== */

.contact-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 20px 20px 24px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.contact-text {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 10px;
}

.contact-link {
  align-self: center;
}

/* ===== FOOTER ===== */

.footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* ===== סרטונים – כרטיסים יפים ===== */

/* רצועת הסרטונים בעמוד הבית */
.videos-home-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

/* כרטיס וידאו כללי (גם בית וגם עמוד סרטונים) */
.video-thumb {
  position: relative;
  display: block;
  width: 210px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: none;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

/* אייקון פליי באמצע */
.video-thumb span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* הובר */
.video-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* במובייל – יותר רחב */
@media (max-width: 600px) {
  .videos-home-strip {
    justify-content: center;
  }

  .video-thumb {
    width: 45vw;
    max-width: 260px;
  }
}

/* גריד לעמוד הסרטונים */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 20px 40px;
}

.video-item {
  display: flex;
  flex-direction: column;  /* כותרת מעל */
  align-items: center;     /* ממורכז */
  text-align: center;
  gap: 8px;
}

.video-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f1239;
  margin-bottom: 2px;
}


/* ===== רספונסיביות כללית ===== */

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .home-header {
    align-items: center;
    text-align: center;
  }

  .section-card {
    padding: 18px 14px 20px;
  }
}

@media (max-width: 900px) {
  .about-home-layout {
    grid-template-columns: 1fr;
  }

  .about-home-video,
  .about-home-text {
    align-items: center;
    text-align: center;
  }

  .about-home-text {
    align-items: stretch;
  }

  .about-home-articles {
    width: 100%;
  }

  .about-home-article {
    text-align: right;
  }

  .book-row {
    flex-direction: column;
  }

  .book-cover-wrapper {
    flex: 0 0 auto;
    max-width: 220px;
  }
}
.video-title {
  font-size: 14px;
  margin-top: 6px;
  text-align: center;
  color: #333;
  font-weight: 500;
}

