/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #262265;
  --dark-purple: #16124E;
  --link-color: #2C2C2C;
  --purple-border: rgba(44, 41, 105, 0.2);
  --gradient-bg: linear-gradient(269.89deg, #262265 0%, #120E49 100%);
  --gradient-border: linear-gradient(269.89deg, rgba(38, 34, 101, 0.3) 0%, rgba(18, 14, 73, 0.3) 100%);
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: #FFFFFF;
  font-family: 'Assistant', sans-serif;
  direction: rtl;
  color: var(--primary-color);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #F6F6F8;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header (106px)
   ========================================================================== */
.main-header {
  width: 100%;
  max-width: 1920px;
  height: 106px;
  margin: 0 auto;
  padding: 11px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFFFFF;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 64px;
  height: 78px;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  color: var(--primary-color);
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 38px;
  height: 46px;
}

.menu-item {
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-wrapper {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.dropdown-toggle[aria-expanded="true"] .menu-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 200px;
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 39px 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.dropdown-wrapper.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  position: relative;
  font-size: 18px;
  line-height: 194%;
  color: var(--primary-color);
  display: block;
}

.dropdown-link::before {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 25px;
  background: linear-gradient(180deg, rgba(38, 34, 101, 0.3) 0%, rgba(18, 14, 73, 0.3) 100%);
  border-radius: 2px;
}

.dropdown-link.active,
.dropdown-link:hover {
  font-weight: 700;
}

.dropdown-link.active::before,
.dropdown-link:hover::before {
  background: linear-gradient(180deg, #262265 0%, #120E49 100%);
}

.btn-share-header {
  width: 171px;
  height: 50px;
  background-color: var(--dark-purple);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  color: #FFFFFF;
}

/* ==========================================================================
   Main Layout & Header Titles
   ========================================================================== */
.page-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 48px 80px 48px;
  flex: 1;
}

.breadcrumbs {
  font-size: 18px;
  line-height: 131%;
  color: var(--primary-color);
  margin-top: 24px;
}

.breadcrumbs .active {
  font-weight: 600;
}

.form-header-section {
  text-align: center;
  margin: 40px auto 30px auto;
  max-width: 900px;
}

.page-main-title {
  font-weight: 700;
  font-size: 52px;
  line-height: 111%;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.page-description {
  font-weight: 400;
  font-size: 24px;
  line-height: 131%;
  color: var(--primary-color);
}

/* ==========================================================================
   Success / Thank You Section
   ========================================================================== */
.success-section {
  text-align: center;
  max-width: 900px;
  margin: 76px auto 120px auto;
}

.main-heading {
  font-weight: 700;
  font-size: 40px;
  line-height: 111%;
  color: var(--primary-color);
  margin-bottom: 32px;
}

.message-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.body-text {
  font-weight: 400;
  font-size: 24px;
  line-height: 131%;
  color: var(--primary-color);
}

.body-text.align-lines {
  line-height: 145%;
}

.reference-number {
  font-weight: 400;
  font-size: 24px;
  line-height: 131%;
  color: var(--primary-color);
}

.reference-number .bold-num {
  font-weight: 700;
}

/* ==========================================================================
   Form Wrapper (1205px wide, padding: 30px, radius: 20px)
   ========================================================================== */
.form-wrapper {
  width: 100%;
  max-width: 1205px;
  margin: 0 auto 80px auto;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0px 4px 30px rgba(38, 34, 101, 0.05);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-section {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Titles with border-bottom gradient */
.section-title {
  width: 100%;
  font-weight: 700;
  font-size: 28px;
  line-height: 111%;
  color: var(--primary-color);
  padding-bottom: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid;
  border-image: linear-gradient(269.89deg, rgba(38, 34, 101, 0.1) 0%, rgba(18, 14, 73, 0.1) 100%) 1;
}

/* Form Grid System */
.form-grid {
  display: grid;
  gap: 24px;
}

.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 18px;
  line-height: 131%;
  color: var(--primary-color);
}

.required-mark {
  color: #C0392B;
  margin-inline-start: 2px;
}

.form-error {
  display: none;
  font-size: 14px;
  font-weight: 500;
  color: #C0392B;
  text-align: right;
}

.form-error:not(:empty) {
  display: block;
}

.field-hint {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--primary-color);
  opacity: 0.65;
  text-align: right;
  margin-top: 4px;
}

.form-group.has-error input[type="text"],
.form-group.has-error input[type="email"],
.form-group.has-error input[type="tel"],
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #C0392B;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.form-error-summary {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: 10px;
  padding: 16px 20px;
  color: #C0392B;
  font-weight: 600;
  font-size: 15px;
  text-align: right;
}

.form-error-summary[hidden] {
  display: none;
}

.form-error-summary ul {
  margin: 8px 0 0 0;
  padding-inline-start: 18px;
  font-weight: 400;
}

.checkbox-container.has-error .checkbox-text {
  color: #C0392B;
}

/* Form Inputs, Textarea, Select */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--purple-border);
  padding: 0 16px;
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  color: var(--primary-color);
  outline: none;
  background-color: #FFFFFF;
  transition: border-color 0.2s ease;
  direction: rtl;
}

.form-group textarea {
  height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(38, 34, 101, 0.1);
}

/* Custom Select styling */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-select::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--primary-color);
  pointer-events: none;
}

/* ==========================================================================
   Upload Section (Dropzone & Cards)
   ========================================================================== */
.upload-subheading {
  font-weight: 600;
  font-size: 18px;
  color: var(--primary-color);
}

.upload-dropzone {
  width: 100%;
  height: 200px;
  background: #F6F6FF;
  border: 1px dashed rgba(38, 34, 101, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  background: #EBEBFF;
  border-color: var(--primary-color);
}

.upload-icon-box {
  width: 50px;
  height: 50px;
  background: var(--dark-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.upload-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
}

.upload-types {
  font-weight: 500;
  font-size: 16px;
  color: var(--primary-color);
}

.upload-limit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-weight: 500;
  font-size: 14px;
  color: rgba(38, 34, 101, 0.6);
}

.upload-limit-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Uploaded Files Cards Grid */
.uploaded-files-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.file-card {
  height: 60px;
  background: #F6F6FF;
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon-wrapper {
  width: 35px;
  height: 35px;
  background: #FFFFFF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-details {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
}

.file-size {
  font-weight: 500;
  font-size: 14px;
  color: rgba(38, 34, 101, 0.6);
}

.btn-remove-file {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-file:hover {
  background: rgba(38, 34, 101, 0.1);
}

/* ==========================================================================
   Checkboxes & Rubik Font Text
   ========================================================================== */
/* ==========================================================================
   Form Bottom Row (checkboxes beside the submit action)
   ========================================================================== */
.form-bottom-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 10px;
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--purple-border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
  position: relative;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--dark-purple);
  border-color: var(--dark-purple);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-text {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: var(--primary-color);
}

/* ==========================================================================
   Actions & Submit Button (width: 175px, height: 51px, radius: 15px)
   ========================================================================== */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex-shrink: 0;
  max-width: 340px;
}

.btn-submit {
  width: 175px;
  height: 51px;
  background-color: var(--dark-purple);
  border: none;
  border-radius: 15px;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #FFFFFF;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-submit:hover {
  opacity: 0.9;
}

.contact-help {
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 130%;
  color: var(--primary-color);
}

.email-link {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 24px 36px 0 36px;
  background-color: #FFFFFF;
}

.footer-top {
  display: flex;
  justify-content: flex-start;
  gap: 240px;
  padding-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.brand-col {
  max-width: 580px;
}

.footer-logo-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-logo-wrapper img {
  width: 108px;
  height: 132px;
  flex-shrink: 0;
}

.footer-text-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.footer-description {
  font-weight: 500;
  font-size: 18px;
  line-height: 162%;
  color: var(--primary-color);
}

.footer-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

/* Reset default <button> chrome so .footer-accordion-toggle looks identical
   to a plain heading on desktop; it only becomes an interactive accordion
   header at the mobile breakpoint (see responsive.css) */
.footer-accordion-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: inherit;
  cursor: default;
  width: auto;
  display: block;
  font-weight: 700;
}

.footer-accordion-toggle .footer-accordion-icon {
  display: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links li a {
  font-size: 16px;
  line-height: 197%;
  color: var(--link-color);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  width: 100%;
  max-width: 1824px;
  /* height: 57px; */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid transparent;
  border-image: var(--gradient-border) 1;
  padding: 32px 0 20px 0;
}

.copyright-section {
  font-weight: 300;
  font-size: 14px;
  line-height: 24px;
  color: var(--primary-color);
}

.creator-tag {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Inline "terms" nav menu rendered in the footer-bottom copyright row
   (see template-parts/global/site-footer.php) - matches the plain-text
   " | "-separated fallback links visually. */
.terms-inline-list {
  display: inline;
}
.terms-inline-list li {
  display: inline;
}
.terms-inline-list li:not(:last-child)::after {
  content: "\00a0|\00a0";
}

/* ==========================================================================
   About Page ("מה בארכיון")
   ========================================================================== */
:root {
  --lavender-bg: #E1E0E8;
}

.menu-item.active {
  font-weight: 700;
}

/* Shared narrow content column used across About page sections */
.about-hero,
.about-video-section,
.about-split-section,
.faq-section,
.carousel-section,
.useful-links-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.about-hero {
  text-align: center;
  margin-top: 40px;
}

.about-hero .page-main-title {
  margin-bottom: 16px;
}

.about-hero .page-description {
  margin-bottom: 24px;
}

.about-paragraph {
  font-weight: 400;
  font-size: 18px;
  line-height: 144%;
  color: var(--primary-color);
}

/* Video Section */
.about-video-section {
  margin-top: 55px;
}

.about-video {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}

.about-video img {
  width: 100%;
  height: auto;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(17, 13, 61, 0.55);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-play-btn:hover {
  background: rgba(17, 13, 61, 0.75);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Image + Text Split Section */
.about-split-section {
  margin-top: 120px;
  display: flex;
  align-items: flex-start;
  gap: 35px;
}

.about-split-image {
  width: 430px;
  height: 338px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.about-split-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-split-text p {
  font-weight: 400;
  font-size: 18px;
  line-height: 144%;
  color: var(--primary-color);
  text-align: right;
}

/* Shared Section Heading */
.section-heading-lg {
  font-weight: 700;
  font-size: 42px;
  line-height: 120%;
  color: var(--primary-color);
  text-align: right;
  margin-bottom: 24px;
}

/* FAQ Section */
.faq-section {
  margin-top: 130px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 15px;
  overflow: hidden;
  background: var(--lavender-bg);
  transition: background 0.2s ease;
}

.faq-item.is-open {
  background: var(--dark-purple);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--primary-color);
  text-align: right;
}

.faq-item.is-open .faq-question {
  color: #FFFFFF;
}

.faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.faq-item.is-open .faq-icon {
  color: #FFFFFF;
}

.faq-answer {
  padding: 0 24px 24px 24px;
}

.faq-answer p {
  font-weight: 300;
  font-size: 18px;
  line-height: 130%;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}

/* Carousel Section */
.carousel-section {
  margin-top: 126px;
}

.carousel-card {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0px 4px 30px rgba(38, 34, 101, 0.05);
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carousel-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel-main-image {
  width: 740px;
  max-width: 100%;
  height: 468px;
  object-fit: cover;
  border-radius: 20px;
  flex-shrink: 1;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 46px;
  height: 45px;
  border-radius: 22.7px;
  border: 1px solid var(--purple-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-arrow:hover {
  background: #F6F6FF;
  border-color: var(--primary-color);
}

.carousel-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-thumb {
  position: relative;
  width: 145px;
  height: 111px;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.carousel-thumb.is-active,
.carousel-thumb:hover {
  opacity: 1;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Useful Links Section */
.useful-links-section {
  margin-top: 140px;
}

.useful-links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.useful-links-list li {
  padding-bottom: 16px;
  /* border-bottom: 1px solid; */
  border-image: linear-gradient(269.89deg, rgba(38, 34, 101, 0.1) 0%, rgba(18, 14, 73, 0.1) 100%) 1;
}

.useful-links-list li:last-child {
  border-bottom: none;
}

.useful-links-list a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.link-text {
  font-weight: 400;
  font-size: 18px;
  line-height: 131%;
  color: var(--primary-color);
  text-decoration: underline;
  text-align: right;
}

.link-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Join / CTA Section */
.join-section {
  width: 100%;
  max-width: 1826px;
  margin: 20px auto 0 auto;
  background: var(--lavender-bg);
  border-radius: 20px;
  padding: 94px 155px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.join-text {
  text-align: right;
  max-width: 780px;
}

.join-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 111%;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.join-description {
  font-weight: 400;
  font-size: 20px;
  line-height: 123%;
  color: var(--primary-color);
}

.btn-join {
  flex-shrink: 0;
  width: 275px;
  height: 61px;
  background-color: var(--dark-purple);
  border: none;
  border-radius: 15px;
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-join:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Home Page
   ========================================================================== */

.home-page {
  padding-top: 24px;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  width: 100%;
  height: 632px;
  border-radius: 20px;
  overflow: hidden;
}

.hero-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* filter: blur(14px) brightness(0.42) saturate(0.85); */
  transform: scale(1.08);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(17, 13, 61, 0.35) 0%, rgba(17, 13, 61, 0.65) 100%); */
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 0 20px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #FFFFFF;
}

.hero-title-regular,
.hero-title-bold {
  font-family: 'Assistant', sans-serif;
  font-size: 64px;
  line-height: 111%;
}

.hero-title-regular {
  font-weight: 400;
}

.hero-title-bold {
  font-weight: 700;
}

.hero-subtitle {
  font-weight: 400;
  font-size: 26px;
  line-height: 131%;
  color: #FFFFFF;
}

.hero-search {
  width: 100%;
  max-width: 857px;
  height: 78px;
  background: #FFFFFF;
  border-radius: 15px;
  padding: 14px 30px 14px 14px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}

.hero-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 857px;
}

.hero-search-btn {
  flex-shrink: 0;
  width: 140px;
  height: 50px;
  background: var(--dark-purple);
  border: none;
  border-radius: 10px;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #FFFFFF;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.hero-search-btn:hover {
  opacity: 0.9;
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Assistant', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #16124E;
  text-align: right;
  background: transparent;
}

.hero-search-input::placeholder {
  color: #16124E;
  opacity: 1;
}

.hero-search-icon {
  flex-shrink: 0;
}

/* Intro Paragraph */
.home-intro {
  max-width: 1155px;
  margin: 60px auto 0 auto;
  font-weight: 600;
  font-size: 24px;
  line-height: 154%;
  text-align: center;
  background: linear-gradient(269.89deg, #262265 0%, #120E49 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Join Section - centered variant (used on Home page) */
.join-section-centered {
  flex-direction: column;
  text-align: center;
  max-width: 1155px;
  padding: 60px 155px;
  gap: 24px;
}

.join-section-centered .join-text {
  text-align: center;
  max-width: none;
}

.join-section-centered .join-title,
.join-section-centered .join-description {
  text-align: center;
}

/* Shared Home Section Heading (with decorative bar) */
.home-section {
  margin-top: 100px;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.home-section-heading {
  font-weight: 700;
  font-size: 24px;
  line-height: 111%;
  color: var(--primary-color);
}

.home-section-bar {
  flex-shrink: 0;
  width: 4px;
  height: 25px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(38, 34, 101, 0.3) 0%, rgba(18, 14, 73, 0.3) 100%);
}

/* Category Cards */
.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.category-card {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(17, 13, 61, 0) 40%, rgba(17, 13, 61, 0.85) 100%); */
}

.category-card-text {
  position: absolute;
  bottom: 25px;
  right: 20px;
  left: 20px;
  text-align: right;
}

.category-card-text h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 111%;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.category-card-text p {
  font-weight: 400;
  font-size: 18px;
  line-height: 111%;
  color: #FFFFFF;
}

/* Recent Cards */
.recent-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 37px;
}

.recent-card {
  display: block;
}

.recent-card img {
  width: 100%;
  height: 208px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  margin-bottom: 16px;
  transition: opacity 0.2s ease;
}

.recent-card:hover img {
  opacity: 0.9;
}

.recent-card h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 111%;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.recent-card p {
  font-weight: 400;
  font-size: 14px;
  line-height: 111%;
  color: rgba(38, 34, 101, 0.8);
}

/* ==========================================================================
   Product Page
   ========================================================================== */
.product-top {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 24px;
}

.product-media-col {
  flex: 0 0 894px;
  max-width: 894px;
}

.product-info-col {
  flex: 1;
  min-width: 0;
}

.product-info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.product-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 111%;
  color: var(--primary-color);
  text-align: right;
}

.btn-share {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 51px;
  padding: 0 24px;
  background: var(--lavender-bg);
  border: none;
  border-radius: 15px;
  font-family: 'Assistant', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--primary-color);
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-share:hover {
  background: #D6D5E2;
}

.product-field-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 131%;
  letter-spacing: 8%;
  color: var(--primary-color);
  text-align: right;
  margin-bottom: 12px;
}

.product-description-block {
  margin-bottom: 32px;
}

.product-description {
  font-weight: 400;
  font-size: 18px;
  line-height: 131%;
  color: var(--primary-color);
  text-align: right;
}

.product-meta-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.product-meta-item {
  display: flex;
  flex-direction: column;
}

.product-meta-value {
  font-weight: 400;
  font-size: 18px;
  line-height: 131%;
  color: var(--primary-color);
  text-align: right;
}

.product-tags-block {
  margin-bottom: 24px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(44, 41, 105, 0.05);
  font-weight: 400;
  font-size: 14px;
  line-height: 132%;
  color: var(--primary-color);
}

/* Product Carousel (main image on top, arrows+thumbs below) */
.product-carousel-card {
  padding: 0;
  overflow: hidden;
}

.product-main-image-wrapper {
  position: relative;
  padding: 25px 20px;
  line-height: 0;
}

.product-main-image {
  width: 100%;
  height: 518px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.product-photo-badge {
  position: absolute;
  top: 45px;
  left: 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0px 4px 20px rgba(38, 34, 101, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-download-btn {
  position: absolute;
  bottom: 45px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  background: #FFFFFF;
  border: none;
  border-radius: 15px;
  box-shadow: 0px 4px 20px rgba(38, 34, 101, 0.15);
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-download-btn:hover {
  background: #F6F6FF;
}

.product-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 25px 20px;
}

.carousel-arrows-row {
  display: flex;
  gap: 10px;
}

.product-thumbs {
  justify-content: flex-end;
}

/* Related Documents + More Items (bottom two-column row) */
.product-bottom {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 100px;
}

.product-links-section {
  flex: 0 0 894px;
  max-width: 894px;
  margin-top: 0;
}

.product-more-section {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}

.product-more-cards {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .product-top,
  .product-bottom {
    flex-direction: column;
  }
  .product-media-col,
  .product-links-section {
    max-width: 100%;
    flex: 1 1 auto;
  }
  .product-more-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Category Page
   ========================================================================== */

/* Hero */
.category-hero {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 24px;
}

.category-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* filter: blur(10px) brightness(0.55) saturate(0.9); */
  transform: scale(1.05);
}

.category-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 13, 61, 0.25) 0%, rgb(0 0 0 / 55%) 100%);
}

.category-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.category-hero-title {
  font-weight: 700;
  font-size: 42px;
  line-height: 111%;
  color: #FFFFFF;
}

.category-hero-subtitle {
  font-weight: 400;
  font-size: 18px;
  line-height: 111%;
  color: #FFFFFF;
}

/* Layout: main column + sidebar */
.category-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-top: 60px;
}

.category-layout-no-hero {
  margin-top: 40px;
}

.category-main-col {
  flex: 1;
  min-width: 0;
}

.category-sidebar {
  flex: 0 0 430px;
  max-width: 430px;
  position: sticky;
  top: 24px;
}

/* Search Header */
.category-search-title {
  font-weight: 500;
  font-size: 42px;
  line-height: 111%;
  color: var(--primary-color);
  text-align: right;
  margin-bottom: 8px;
}

.category-search-title .gradient-text {
  background: linear-gradient(269.89deg, #262265 0%, #120E49 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-search-subtitle {
  font-weight: 400;
  font-size: 24px;
  line-height: 131%;
  color: var(--primary-color);
  text-align: right;
  margin-bottom: 24px;
}

.search-form-wrapper {
  position: relative;
  width: 100%;
  max-width: 857px;
}

.category-search-form {
  width: 100%;
  max-width: 857px;
  height: 78px;
  background: #FFFFFF;
  border-radius: 15px;
  padding: 14px 24px 14px 14px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0px 4px 30px rgba(38, 34, 101, 0.05);
}

/* Search Autocomplete Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0px 8px 30px rgba(38, 34, 101, 0.15);
  list-style: none;
  padding: 8px;
  margin: 0;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  color: var(--primary-color);
  text-align: right;
  cursor: pointer;
}

.search-suggestion-item mark {
  background: none;
  color: inherit;
  font-weight: 700;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active {
  background: rgba(44, 41, 105, 0.07);
}

.search-suggestion-empty {
  padding: 12px 14px;
  font-size: 14px;
  color: rgba(38, 34, 101, 0.6);
  text-align: right;
}

.category-search-btn {
  flex-shrink: 0;
  width: 140px;
  height: 51px;
  background: var(--dark-purple);
  border: none;
  border-radius: 15px;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #FFFFFF;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.category-search-btn:hover {
  opacity: 0.9;
}

.category-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Assistant', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--primary-color);
  text-align: right;
  background: transparent;
}

.category-search-input::placeholder {
  color: var(--primary-color);
  opacity: 1;
}

.category-search-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.category-results-count {
  font-weight: 400;
  font-size: 16px;
  color: rgba(38, 34, 101, 0.7);
  text-align: right;
  margin: 24px 0 16px 0;
}

/* Archive Grid + Cards */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.archive-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0px 4px 30px rgba(38, 34, 101, 0.05);
  display: flex;
  flex-direction: column;
}

.archive-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  line-height: 0;
}

.archive-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 35px;
  height: 32px;
  border-radius: 6px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.archive-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.archive-card-year {
  flex-shrink: 0;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  background: linear-gradient(269.89deg, rgba(38, 34, 101, 0.1) 0%, rgba(18, 14, 73, 0.1) 100%);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
}

.archive-card-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 111%;
  color: var(--primary-color);
  text-align: right;
}

.archive-card-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: var(--primary-color);
  text-align: right;
}

.archive-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid;
  border-image: linear-gradient(269.89deg, rgba(38, 34, 101, 0.1) 0%, rgba(18, 14, 73, 0.1) 100%) 1;
}

.archive-card-credit {
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  color: var(--primary-color);
  text-align: right;
}

.archive-card-credit span {
  font-weight: 600;
}

/* Load More */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-load-more {
  height: 51px;
  padding: 0 32px;
  background: #FFFFFF;
  border: 1px solid var(--purple-border);
  border-radius: 15px;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary-color);
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-load-more:hover {
  background: #F6F6FF;
}

/* Sidebar Filter Panel */
.filter-panel {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0px 4px 30px rgba(38, 34, 101, 0.05);
  padding: 30px;
}

.filter-panel-title {
  font-weight: 700;
  font-size: 28px;
  line-height: 111%;
  color: var(--primary-color);
  text-align: right;
  margin-bottom: 8px;
}

.filter-panel-subtitle {
  font-weight: 400;
  font-size: 22px;
  line-height: 131%;
  color: var(--primary-color);
  text-align: right;
  margin-bottom: 24px;
}

.filter-group {
  margin-bottom: 28px;
}

.filter-group-label {
  font-weight: 700;
  font-size: 18px;
  line-height: 131%;
  color: var(--primary-color);
  text-align: right;
  margin-bottom: 12px;
}

.filter-select-wrapper select {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--purple-border);
  padding: 0 16px;
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
  background: #FFFFFF;
  text-align: right;
}

/* Range Slider */
.range-slider {
  position: relative;
  width: 100%;
  height: 20px;
  margin: 20px 0 8px 0;
  /* The page is RTL, but the slider track/handles are positioned with plain
     physical values (left / px) by category.js. Without forcing ltr here,
     the logical "inset-inline-start" used for the fill bar resolves to the
     *right* edge (since inline-start flips in rtl), while the handles use
     literal "left" — causing the fill to render on the opposite side of the
     handles. Forcing ltr keeps inline-start === left so both stay in sync. */
  direction: ltr;
}

.range-slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(269.89deg, rgba(38, 34, 101, 0.3) 0%, rgba(18, 14, 73, 0.3) 100%);
}

.range-slider-fill {
  position: absolute;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(269.89deg, #262265 0%, #120E49 100%);
}

.range-slider-handle {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(269.89deg, #262265 0%, #120E49 100%);
  border: none;
  transform: translate(50%, -50%);
  cursor: pointer;
  z-index: 1;
}

.range-slider-handle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.range-slider-labels {
  display: flex;
  justify-content: space-between;
  direction: ltr;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-color);
}

/* Category Checkboxes */
.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.filter-checkbox-content {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 1;
}

.filter-checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: var(--dark-purple);
  cursor: pointer;
  order: 2;
  flex-shrink: 0;
}

.filter-checkbox-label {
  font-weight: 500;
  font-size: 16px;
  color: var(--primary-color);
}

.filter-checkbox-icon {
  flex-shrink: 0;
  width: 35px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(269.89deg, rgba(38, 34, 101, 0.1) 0%, rgba(18, 14, 73, 0.1) 100%);
}

/* Filter Action Buttons */
.filter-actions {
  display: flex;
  gap: 20px;
}

.btn-filter-clear,
.btn-filter-apply {
  flex: 1;
  height: 51px;
  border-radius: 15px;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-filter-clear {
  background: #FFFFFF;
  border: 1px solid var(--dark-purple);
  color: var(--primary-color);
}

.btn-filter-apply {
  background: var(--dark-purple);
  border: none;
  color: #FFFFFF;
}

.btn-filter-clear:hover,
.btn-filter-apply:hover {
  opacity: 0.85;
}

@media (max-width: 1200px) {
  .category-layout {
    flex-direction: column;
  }
  .category-sidebar {
    max-width: 100%;
    flex: 1 1 auto;
    position: static;
  }
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Video Modal
   ========================================================================== */
body.video-modal-open {
  overflow: hidden;
}

.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 36, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.video-modal-overlay[hidden] {
  display: none;
}

.video-modal {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 16px;
  /* overflow: hidden; */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-modal-title {
  /* Announced to screen readers; not shown visually since the video itself is the content */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.video-modal-body {
  width: 100%;
  height: 100%;
}

.video-modal-body iframe,
.video-modal-body video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Image lightbox variant (assets/js/about.js -> assets/js/video-modal.js) -
   size to the image itself instead of the fixed 16:9 video frame. */
.video-modal.is-image {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  aspect-ratio: auto;
  background: #111;
}
.video-modal-image {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

.carousel-main-image-clickable {
  cursor: zoom-in;
}
.carousel-main-image-clickable:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.video-modal-close {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-purple, #16124E);
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.15s ease;
}

.video-modal-close:hover {
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .video-modal-close {
    top: 8px;
    left: 8px;
  }
}
/* ---------------------------------------------------------------------
   Yehud Archive Child additions
   --------------------------------------------------------------------- */

/* Cards are now wrapped in a real <a> (see assets/js/category.js) so each
   archive item links to its actual WordPress permalink. display:contents
   keeps the wrapper out of the grid/flex layout entirely, so none of the
   original .archive-card CSS needs to change. */
.archive-card-link-wrapper {
  display: contents;
}

/* Flexible-content "split_text_image" layout: reverse column order when
   the editor picks image_position = "start" (see template-parts/layouts/
   section-split_text_image.php). Uses the same .about-split-section flex
   layout, just reversed. */
.about-split-section-reverse {
  flex-direction: row-reverse;
}

/* ==========================================================================
   Accessibility - global focus-visible indicator
   --------------------------------------------------------------------
   Several controls above set `outline: none` (native text inputs, the
   hero/category search inputs) with no replacement, which left keyboard
   users with no visible focus indicator at all. This restores one,
   scoped to :focus-visible so it doesn't add an outline on mouse clicks.
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="option"]:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ==========================================================================
   AJAX Loader - shown on the archive/category/search grid while a
   request is in flight (assets/js/category.js), and on the submission
   form while it posts (assets/js/form.js already disables/labels its
   own submit button; this covers the grid + a shared spinner glyph).
   ========================================================================== */
.archive-grid-wrapper {
  position: relative;
  min-height: 120px;
}
.archive-grid[aria-busy="true"] {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.archive-grid-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}
.archive-grid-loader[hidden] {
  display: none;
}
.loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(38, 34, 101, 0.15);
  border-top-color: var(--primary-color, #262265);
  border-radius: 50%;
  animation: yehud-spin 0.8s linear infinite;
}
.loader-spinner.loader-spinner-sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}
@keyframes yehud-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .loader-spinner {
    animation-duration: 2.4s;
  }
}

/* ==========================================================================
   Custom Datepicker (assets/js/datepicker.js)
   --------------------------------------------------------------------
   Replaces the native <input type="date"> browser widget with an
   RTL/Hebrew calendar popover consistent with the rest of the form.
   ========================================================================== */
.datepicker-field {
  position: relative;
  display: flex;
  align-items: center;
}
.datepicker-input {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--purple-border);
  padding: 0 44px 0 16px;
  font-family: 'Assistant', sans-serif;
  font-size: 16px;
  color: var(--primary-color);
  background-color: #FFFFFF;
  transition: border-color 0.2s ease;
  direction: ltr;
  text-align: right;
}
.datepicker-toggle {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}
.datepicker-toggle:hover {
  background: rgba(38, 34, 101, 0.08);
}
.datepicker-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: 340px;
  background: #FFFFFF;
  border: 1px solid var(--purple-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 13, 61, 0.16);
  padding: 16px;
}
.datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.datepicker-selects {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.datepicker-select {
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--purple-border);
  background-color: #FFFFFF;
  color: var(--primary-color);
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 0 6px;
  cursor: pointer;
}
.datepicker-select-year {
  width: 84px;
}
.datepicker-select-month {
  width: 110px;
}
.datepicker-nav-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--primary-color);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.datepicker-nav-btn:hover:not(:disabled) {
  background: rgba(38, 34, 101, 0.08);
}
.datepicker-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.datepicker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.datepicker-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  opacity: 0.6;
}
.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 38px;
  gap: 3px;
}
.datepicker-day {
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  color: var(--primary-color);
  cursor: pointer;
}
.datepicker-day:hover:not(:disabled) {
  background: rgba(38, 34, 101, 0.08);
}
.datepicker-day.is-today {
  font-weight: 700;
  text-decoration: underline;
}
.datepicker-day.is-selected {
  background: var(--primary-color);
  color: #FFFFFF;
}
.datepicker-day.is-disabled,
.datepicker-day:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: none;
}
.datepicker-footer {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(38, 34, 101, 0.1);
}
.datepicker-today-btn {
  border: 1px solid var(--purple-border);
  border-radius: 8px;
  background: transparent;
  color: var(--primary-color);
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 20px;
  cursor: pointer;
}
.datepicker-today-btn:hover {
  background: rgba(38, 34, 101, 0.08);
}
@media (max-width: 480px) {
  .datepicker-popover {
    width: 100%;
    right: 0;
    left: 0;
  }
  .datepicker-select-year {
    width: 76px;
  }
  .datepicker-select-month {
    width: 96px;
  }
}

/* Flexible-content "free_text" layout (section-free_text.php) - a fully
   open WYSIWYG block per the spec doc, so it needs generic heading/image/
   video styling rather than relying on more specific component classes. */
.free-text-section {
  margin-top: 55px;
}
.free-text-content {
  font-weight: 400;
  font-size: 18px;
  line-height: 144%;
  color: var(--primary-color);
}
.free-text-content h1,
.free-text-content h2,
.free-text-content h3,
.free-text-content h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin: 28px 0 12px;
}
.free-text-content p {
  margin: 0 0 16px;
}
.free-text-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}
.free-text-content video {
  max-width: 100%;
  border-radius: 12px;
  margin: 16px 0;
}
.free-text-content ul,
.free-text-content ol {
  margin: 0 0 16px;
  padding-inline-start: 24px;
  list-style: revert;
}
.free-text-content a {
  color: var(--primary-color);
  text-decoration: underline;
}
