/* תנועת שליחות למנהיגות תורנית - עיצוב האתר */

:root {
  --blue-hero: #0332CB;
  --blue-hero-dark: #02258f;
  --navy-footer: #000E3B;
  --red-accent: #FF3644;
  --red-accent-dark: #e01f2d;
  --light-blue: #CFDEFC;
  --gray-overlay: rgba(94, 94, 92, 0.88);
  --text-dark: #1a1a2e;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: Arial, "Arial Hebrew", Helvetica, sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Header / Nav ===== */
.site-header {
  background: var(--blue-hero);
  padding: 34px 24px;
}

.hero-wrap {
  background: var(--blue-hero);
}

.hero {
  background:
    linear-gradient(180deg, rgba(3,50,203,.45) 0%, rgba(2,37,143,.55) 100%),
    url("images/hero.jpg") center center / cover no-repeat;
}

.nav-wrap {
  direction: ltr;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.build-badge {
  background: var(--red-accent);
  color: var(--white);
  font-weight: bold;
  font-size: 20px;
  padding: 14px 26px;
  border-radius: 4px;
  white-space: nowrap;
}

.brand {
  color: var(--white);
  font-weight: bold;
  font-size: 18px;
}

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

.main-nav a {
  color: var(--white);
  font-size: 17px;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.main-nav a:hover {
  border-color: var(--red-accent);
  color: var(--red-accent);
}

.main-nav a.active {
  background: var(--white);
  color: var(--navy-footer);
  border-radius: 4px;
  border-color: transparent;
}

/* ===== Hero ===== */
.hero {
  color: var(--white);
  padding: 70px 24px 90px;
  text-align: center;
}

.hero h1 {
  line-height: 1.3;
  margin: 0 0 10px;
}

.hero-line1 { font-size: 38px; font-weight: 700; }
.hero-line2 { font-size: 78px; font-weight: 700; }
.hero-line3 { font-size: 28px; font-weight: 700; }

.hero .hero-sub {
  font-size: 22px;
  font-weight: normal;
  opacity: .95;
}

.hero-features {
  max-width: 900px;
  margin: 50px auto 0;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--white);
  width: 160px;
  height: 160px;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.hero-feature img {
  width: 56px;
  height: 56px;
}

.hero-feature span {
  font-size: 17px;
  font-weight: bold;
  color: var(--text-dark);
}

.cta-button {
  display: inline-block;
  background: var(--red-accent);
  color: var(--white) !important;
  padding: 16px 40px;
  border-radius: 30px;
  font-size: 17px;
  margin-top: 45px;
  font-weight: bold;
  transition: background .2s;
}

.cta-button:hover { background: var(--red-accent-dark); }

/* ===== Carousel section ===== */
.carousel-section {
  background: var(--gray-overlay);
  padding: 60px 0 70px;
  text-align: center;
}

.carousel-heading {
  color: var(--white);
  font-size: 48px;
  font-weight: bold;
  margin: 0 0 36px;
}

.carousel-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.carousel-track img {
  flex: 0 0 auto;
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

/* ===== Vision / about section ===== */
.vision-section {
  background: var(--light-blue);
  padding: 70px 24px;
}

.vision-inner {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.vision-inner h2 {
  font-size: 38px;
  color: var(--white);
  text-align: right;
  margin: 0 0 28px;
}

.vision-inner p {
  font-size: 35px;
  line-height: 1.4;
  color: #000;
  text-align: justify;
}

.secondary-button {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 40px;
  background: var(--red-accent);
  color: var(--white) !important;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 17px;
  transition: background .2s;
}

.secondary-button:hover {
  background: var(--red-accent-dark);
}

/* ===== Quote section ===== */
.quote-section {
  background: var(--white);
  color: var(--navy-footer);
  padding: 60px 24px 80px;
  text-align: center;
}

.quote-section blockquote {
  max-width: 900px;
  margin: 0 auto;
  font-size: 36px;
  line-height: 1.5;
  font-style: italic;
}

.quote-section cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 28px;
  opacity: 1;
}

/* ===== Generic page content ===== */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.page-content h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
}

.page-content .page-sub {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
}

.page-content p {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 18px;
}

.content-block {
  background: var(--light-blue);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 24px;
}

.content-block h3 {
  margin-top: 0;
  color: var(--blue-hero);
}

/* ===== Video list (ימי עיון / גדולי ישראל) ===== */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.video-item {
  background: var(--light-blue);
  border-right: 5px solid var(--red-accent);
  padding: 22px 26px;
  border-radius: 6px;
}

.video-item-title {
  font-size: 17px;
  line-height: 1.6;
  font-weight: bold;
  margin-bottom: 16px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 6px;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

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

/* ===== Blog listing ===== */
.blog-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.blog-tabs {
  text-align: center;
  padding: 20px 0;
  font-weight: bold;
  color: var(--blue-hero);
  border-bottom: 2px solid var(--light-blue);
  max-width: 900px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 18px;
  flex-wrap: wrap;
}

.blog-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.blog-card-body { flex: 1; min-width: 200px; }

.blog-card-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.blog-card-body p {
  margin: 0 0 10px;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}

.blog-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  gap: 14px;
}

/* ===== Single post ===== */
.post-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 24px 10px;
  text-align: center;
}

.post-header h1 { font-size: 28px; margin-bottom: 8px; }
.post-header .post-date { color: #888; font-size: 14px; }

.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  font-size: 17px;
  line-height: 1.95;
}

.post-body p { margin: 0 0 18px; }
.post-body img { margin: 24px auto; border-radius: 8px; }

.recent-posts {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  border-top: 2px solid var(--light-blue);
}

.recent-posts h4 {
  color: var(--blue-hero);
  margin-bottom: 16px;
}

.recent-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-posts a {
  color: var(--blue-hero);
  font-size: 16px;
}

.recent-posts a:hover { text-decoration: underline; }

/* ===== Newsletter ===== */
.newsletter {
  background: var(--navy-footer);
  color: var(--white);
  padding: 50px 24px;
  text-align: center;
}

.newsletter h3 { font-size: 22px; margin-bottom: 20px; }

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  padding: 12px 16px;
  border-radius: 4px;
  border: none;
  width: 280px;
  max-width: 80vw;
  font-size: 15px;
}

.newsletter-form button {
  background: var(--red-accent);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.newsletter-form button:hover { background: var(--red-accent-dark); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-footer);
  color: var(--white);
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.footer-name { font-size: 15px; margin-bottom: 14px; }

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icons img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  opacity: .85;
}

.social-icons a:hover img { opacity: 1; }

@media (max-width: 640px) {
  .hero-line1 { font-size: 24px; }
  .hero-line2 { font-size: 40px; }
  .hero-line3 { font-size: 20px; }
  .blog-card { flex-direction: column; align-items: stretch; }
  .blog-card img { width: 100%; height: 180px; }
  .carousel-heading { font-size: 32px; }
  .carousel-track img { width: 220px; height: 300px; }
  .vision-inner h2 { font-size: 26px; text-align: center; }
  .vision-inner p { font-size: 19px; text-align: right; }
  .quote-section blockquote { font-size: 22px; }
  .quote-section cite { font-size: 17px; }
}
