:root {
  --primary-blue: #0033aa;
  --primary-dark: #002255;
  --turquoise-green: #10b981;
  --turquoise-hover: #059669;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --white: #ffffff;
  --border: #cbd5e1;
  --border-subtle: #e2e8f0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* אכיפת גופן Assistant */
body.media-page-body,
h1, h2, h3, h4, h5, h6,
p, span:not(.material-symbols-outlined),
a, button, input, textarea, select, small, strong, blockquote {
  font-family: 'Assistant', sans-serif !important;
}

body {
  margin: 0;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* הגנה מוחלטת על ספריית האייקונים של גוגל */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-turquoise {
  color: var(--turquoise-green) !important;
}

/* =========================================
   1. Hero Stage
========================================= */
.media-hero-stage {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--primary-dark);
  color: #ffffff;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
  text-align: right;
}

.hero-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  filter: saturate(0.95) contrast(1.08);
  opacity: 0.72;
}

.hero-gradient-side {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 34, 85, 0.12) 0%,
    rgba(0, 34, 85, 0.35) 45%,
    rgba(0, 34, 85, 0.88) 75%,
    var(--primary-dark) 100%
  );
}

.hero-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--primary-dark) 0%, transparent 55%);
}

.hero-stage-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-right: clamp(2rem, 7vw, 7.5rem);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  max-width: 620px;
}

.hero-main-title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 1.25rem 0;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 25px rgba(0, 34, 85, 0.7);
  color: #ffffff;
}

.hero-lead-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 550px;
  line-height: 1.8;
  margin: 0 0 2rem 0;
  text-shadow: 0 2px 15px rgba(0, 34, 85, 0.7);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.btn-hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--turquoise-green);
  padding-bottom: 6px;
  color: var(--turquoise-green);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-hero-scroll:hover {
  gap: 14px;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-hero-scroll .material-symbols-outlined {
  transition: transform 0.25s ease;
}

.btn-hero-scroll:hover .material-symbols-outlined {
  transform: translateY(3px);
}

/* =========================================
   2. כותרות נקיות וברורות (ללא מספרים מעל)
========================================= */
.media-content-section {
  padding: 5.5rem 0 6.5rem 0;
  background-color: var(--bg-light);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 900;
  color: var(--primary-dark);
  margin: 0;
  text-align: right;
  border-right: 5px solid var(--turquoise-green);
  padding-right: 1.25rem;
  line-height: 1.15;
}

.section-gap-top {
  margin-top: 5rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
  padding-right: 1.25rem;
}

/* =========================================
   3. ראיונות מצולמים - ממוקד וקומפקטי
========================================= */
.compact-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  max-width: 1100px;
}

.compact-video-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 34, 85, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 34, 85, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 34, 85, 0.12);
}

.video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background-color: #000;
  overflow: hidden;
}

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

.compact-video-content {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.compact-video-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0.85rem 0 0.4rem 0;
  line-height: 1.35;
}

.media-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.media-meta-row .material-symbols-outlined {
  font-size: 17px;
  color: var(--turquoise-green);
}

.media-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

/* =========================================
   4. תגיות קטגוריה בולטות ומובחנות
========================================= */
.media-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
}

.media-tag.broadcast {
  background: rgba(0, 51, 170, 0.08);
  color: var(--primary-blue);
  border: 1px solid rgba(0, 51, 170, 0.25);
}

.media-tag.press {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.media-tag.entertainment {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* תגית ייעודית מכובדת לכנסת */
.media-tag.knesset {
  background: rgba(0, 34, 85, 0.08);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 34, 85, 0.3);
}

/* =========================================
   5. קרוסלות עם חצי צד צפים (ללא סליידר תחתון)
========================================= */
.carousel-outer-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: visible;
}

/* מסלול גלילה - מוסתר לחלוטין מכל הדפדפנים */
.horizontal-scroll-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 1rem 0.5rem 1.5rem 0.5rem;
  width: 100%;
  
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

.horizontal-scroll-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* חצי צד מעוצבים וצפים */
.side-nav-btn {
  position: absolute;
  z-index: 25;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 34, 85, 0.16);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-nav-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 26px rgba(0, 51, 170, 0.3);
}

.side-prev-btn {
  right: -24px;
}

.side-next-btn {
  left: -24px;
}

/* =========================================
   6. כרטיסיות כתבות עיתונות עם תמונה
========================================= */
.article-carousel-card {
  position: relative;
  flex: 0 0 calc((100% - 3.5rem) / 3); /* בדיוק 3 כרטיסיות סימטריות במסך מלא */
  min-width: 340px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid rgba(0, 34, 85, 0.09);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 34, 85, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-carousel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 36px rgba(0, 34, 85, 0.1);
}

.article-thumb-wrap {
  width: 100%;
  height: 185px;
  overflow: hidden;
  background-color: var(--primary-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
  display: block;
}

.article-carousel-card:hover .article-thumb-img {
  transform: scale(1.06);
}

.article-card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-carousel-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0.9rem 0 0.4rem 0;
  line-height: 1.35;
}

.article-card-body .media-desc {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* =========================================
   7. כרטיסיות אינסטגרם / בידור עם רווח מושלם לכפתור
========================================= */
.horizontal-card {
  flex: 0 0 calc((100% - 3.5rem) / 3);
  min-width: 340px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(0, 34, 85, 0.08);
  box-shadow: 0 8px 24px rgba(0, 34, 85, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 34, 85, 0.1);
}

.embed-wrapper.video-only-embed {
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 400px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.embed-wrapper.video-only-embed .instagram-media,
.embed-wrapper.video-only-embed iframe {
  margin-top: -56px !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 280px !important;
  border: none !important;
  box-shadow: none !important;
}

.horizontal-card .media-card-content {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.horizontal-card .media-card-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0.85rem 0 0.4rem;
  line-height: 1.35;
}

/* הבטחת רווח נושם וברור לכפתור האינסטגרם */
.horizontal-card .media-desc {
  margin-bottom: 1.75rem !important;
  flex-grow: 1;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 51, 170, 0.05);
  border: 1px solid rgba(0, 51, 170, 0.15);
  border-radius: 10px;
  color: var(--primary-blue);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  margin-top: auto; /* מצמיד תמיד לתחתית הכרטיס */
}

.read-more-btn .material-symbols-outlined {
  font-size: 19px;
  transition: transform 0.25s ease;
}

.read-more-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

.read-more-btn:hover .material-symbols-outlined {
  transform: translateX(-4px);
}

/* =========================================
   8. התאמות רספונסיביות
========================================= */
@media (max-width: 1200px) {
  .article-carousel-card,
  .horizontal-card {
    flex: 0 0 350px;
  }
}

@media (max-width: 992px) {
  .hero-stage-content {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .side-prev-btn { right: -10px; }
  .side-next-btn { left: -10px; }
}

@media (max-width: 768px) {
  .compact-video-grid {
    grid-template-columns: 1fr;
  }

  .side-nav-btn {
    display: none; /* במובייל הגלילה טבעית במגע יד */
  }

  .article-carousel-card,
  .horizontal-card {
    flex: 0 0 300px;
  }

  .embed-wrapper.video-only-embed {
    height: 350px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-stage-content {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .hero-main-title {
    font-size: 2.8rem;
  }
}
