.affiliate-program {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  direction: rtl;
  position: relative;
}

.affiliate-program-background {
  width: 100%;
  min-height: 100vh;
  background-image: url('/wp-content/themes/lynkco-theme-24/assets/img/affiliate-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem;
}

.affiliate-program-content {
  max-width: 45rem;
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  text-align: center;
  position: relative;
}

.affiliate-program h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: unset;
  line-height: 1;
}

.affiliate-program-amount {
  font-size: 4.5rem;
  font-weight: bold;
  /* margin: 1rem 0; */
  color: #FFF;
  text-align: center;
  /* text-shadow: 0px 3.586px 7.979px rgba(255, 255, 255, 0.58); */
  font-size: 105.559px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -3.828px;
  margin-top: -0.8rem;
  margin-bottom: 0.5rem;
}

.affiliate-program-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  display: none;
}

.affiliate-program-divider {
  width: 50%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 1.5rem auto;
}

.affiliate-program-info {
  font-size: 1.5rem;
  font-weight: bold;
  /* margin-bottom: 1.5rem; */
  position: relative;
}

.affiliate-program-bonus {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.affiliate-program-bonus span {
  /* color: #DB1A61; */
  font-weight: 400;
  color: white;
  font-size: 1.2rem;
  line-height: 1;
}

.affiliate-program h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: unset;
}

.affiliate-program-description {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  margin: auto;
  /* width: 58%; */
}

.affiliate-program-description span {
  color: #ff4081;
  font-weight: bold;
}

.affiliate-program-link-container {
  position: relative;
  margin: 0.5rem auto;
  max-width: 30rem;
  display: flex;
  border: 1.013px solid #FFF;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(7.349999904632568px);
  padding-left: 2rem;
}

.affiliate-program-link {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.25rem;
  font-family: inherit;
  direction: ltr;
  text-align: left;
}

.affiliate-program-copy {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.affiliate-program-share {
  background-color: white;
  color: black;
  border: none;
  border-radius: 0.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: unset;
  border-radius: 9.359px;
  background: white;
}

.affiliate-program-share:hover {
  background-color: black;
  color: white;
}

.affiliate-program-info::before {
  content: '';
  width: 24%;
  height: 1px;
  position: absolute;
  background: #FFF;
  left: 11%;
  top: 50%;
  /* transform: translate(-50%, -50%); */
  z-index: 1;
  z-index: 1;
}
.affiliate-program-info::after {
  content: '';
  width: 24%;
  height: 1px;
  position: absolute;
  background: #FFF;
  right: 11%;
  top: 50%;
  /* transform: translate(-50%, -50%); */
  z-index: 1;
  z-index: 1;
}
.affiliate-program-info span {
  /* background: #000000; */
  z-index: 1;
  position: relative;
  padding: 0 1.5rem;
}

a.taknon_new {
  position: absolute;
  bottom: 1rem;
  right: 19rem;
}

a.taknon_new b {
  font-weight: 300 !important;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .speftics__items a {
    margin-top: 2rem;
  }
  .affiliate-program-content {
    padding: 2rem 1rem;
  }
  .affiliate-program h2 {
    font-size: 1.25rem;
  }
  .affiliate-program-amount {
    font-size: 2.5rem;
  }
  .affiliate-program-background {
    padding: 4rem 2rem;
  }
  .affiliate-program-content {
    border: unset;
  }
}

/* ============================================
   POPUP
   ============================================ */
.popup-overlay,
.popup-container {
  display: none;
}

.popup-overlay.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

.popup-container .popup-content {
  width: 100%;
  background-color: unset;
}

.popup-container.active {
  display: flex;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: #00080C;
  padding: 2rem;
  border-radius: 8px;
  max-width: 55%;
  max-height: 90vh;
  width: 97%;
  overflow: auto;
  flex-direction: column;
}

.popup-close {
  position: absolute;
  top: -4px;
  left: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

h2.popup-title {
  text-align: center;
  font-weight: 500;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .single-projects.product-hero {
    margin-top: 6rem;
  }
  .faq-item .content {
    padding-right: 5rem !important;
  }
}

@media (max-width: 768px) {
  .faq-item .content {
    padding-right: 2rem !important;
  }
  .popup-container.active {
    max-width: 92%;
  }
}

/* ============================================
   PAGE 3385 — original centered variant (green)
   ============================================ */
@media (min-width: 768px) {
  .page-id-3385 .affiliate-program {
    margin-top: 2rem;
  }
  .page-id-3385 a.taknon_new {
    position: absolute;
    bottom: 4rem;
  }
  .page-id-3385 .affiliate-program-background {
    width: 100%;
    min-height: 94vh;
  }
  .page-id-3385 .affiliate-program-description {
    width: 85%;
  }
}

.page-id-3385 .affiliate-program-description strong {
  color: black;
}

.page-id-3385 .affiliate-program-share {
  background: black;
  color: black;
}

.page-id-3385 .affiliate-program-info span {
  background: unset;
}

.page-id-3385 .affiliate-program-info::before {
  content: '';
  width: 19%;
  height: 2px;
  position: absolute;
  background: #FFF;
  left: 23%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.page-id-3385 .affiliate-program-info::after {
  content: '';
  width: 19%;
  height: 2px;
  position: absolute;
  background: #FFF;
  right: 4%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.page-id-3388 .landing-page {
  width: 100%;
  min-height: 100vh;
  background-position: 9%;
}

.page-id-3388 .landing-content {
  border: 1px solid beige;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
}

.page-id-3388 .landing-intro {
  margin-bottom: unset;
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: center;
}

.page-id-3388 .landing-main-title {
  font-size: 1.475rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.page-id-3388 .landing-main-title b {
  color: black;
}

.page-id-3388 .landing-bottom-text {
  font-weight: 400;
}

.page-id-3388 .landing-bottom-text strong {
  color: black;
}

.page-id-3388 .landing-form-button {
  background: black;
  color: black;
}

.page-id-3388 .landing-form-button path {
  fill: black;
}

.page-id-3388 .landing-form-button:hover {
  background-color: black;
}

.page-template-page-ffiliate_program:not(.page-id-3385) .img_N.mobile {
  display: none;
}

@media (max-width: 768px) {
  .page-id-3385 .affiliate-program-content {
    padding: unset;
  }
  .page-id-3385 .neturan_da {
    padding: 0 2rem;
    margin-top: -4.5rem;
  }
  .img_N.mobile img {
    width: 100%;
    height: auto;
    margin-top: 0.5rem;
  }
  .page-id-3385 a.taknon_new {
    position: absolute;
    bottom: 4rem;
    right: 1rem;
  }
  .page-id-3385 .affiliate-program-info::before {
    content: '';
    width: 15%;
    height: 2px;
    position: absolute;
    background: #FFF;
    left: 10%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
  .page-id-3385 .affiliate-program-info::after {
    content: '';
    width: 15%;
    height: 2px;
    right: -4%;
  }
  .page-id-3385 .affiliate-program-description {
    font-size: 1rem;
    line-height: 1.5;
    margin: auto;
    margin-bottom: 2rem;
    width: unset;
  }
  .page-id-3385 .affiliate-program-background {
    padding: 2rem 0 8rem 0 !important;
  }
  .page-id-3385 .affiliate-program h2 {
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 400;
  }
  .page-id-3388 .landing-content {
    border: unset;
  }
  .page-id-3388 .landing-main-title {
    font-size: 1rem;
  }
  .page-id-3388 .landing-bottom-text {
    font-size: 1rem;
  }
  .page-id-3388 .landing-form-column {
    margin-top: unset;
  }
  .page-id-3388 a.link_mnob {
    display: none;
  }
  .page-id-3388 .landing-container {
    margin-top: 19rem;
  }
  .page-id-3388 .landing-page {
    padding: 1rem;
    background-position: bottom;
  }
}

#cookie-consent-acf-modal {
  z-index: 99999999999999 !important;
}

#cookie-consent-acf-backdrop {
  position: fixed;
  z-index: 99999999998 !important;
}

/* ============================================
   LEFT-ALIGNED VARIANT (Volvo-style)
   Add class "affiliate-left" via ACF toggle.
   Layout: content block sits on the LEFT side
   of the viewport, text CENTERED within the block,
   white button, lines on both sides of "BUYME-ב".
   ============================================ */
.affiliate-left .affiliate-program-background {
  justify-content: flex-end; /* RTL: flex-end = visual LEFT */
  align-items: center;
  padding: 4rem 5rem;
}

.affiliate-left .affiliate-program-content {
  max-width: 32rem;
  width: 100%;
  border: unset;
  background: transparent;
  padding: 2rem 0;
  text-align: center;
  margin: 0;
}

/* Logo at top of the block */
.affiliate-left .logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.affiliate-left .logo img {
  max-width: 110px;
  height: auto;
  display: inline-block;
}

/* Center everything inside the block */
.affiliate-left .affiliate-program h2,
.affiliate-left .affiliate-program-amount,
.affiliate-left .affiliate-program-info,
.affiliate-left .affiliate-program-bonus,
.affiliate-left .affiliate-program-how,
.affiliate-left .affiliate-program h3,
.affiliate-left .affiliate-program-description {
  text-align: center;
}

.affiliate-left .affiliate-program h2 {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Huge, light-weight amount */
.affiliate-left .affiliate-program-amount {
  font-size: 7rem;
  font-weight: 300;
  letter-spacing: -3px;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
}

/* Hide "על כל חבר" subtitle in left layout */
.affiliate-left .affiliate-program-subtitle {
  display: none;
}

/* "BUYME-ב" — transparent background, lines on BOTH sides */
.affiliate-left .affiliate-program-info {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
}

.affiliate-left .affiliate-program-info::before,
.affiliate-left .affiliate-program-info::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: #fff;
  transform: translateY(-50%);
}

.affiliate-left .affiliate-program-info::before {
  left: 0;
  right: auto;
}

.affiliate-left .affiliate-program-info::after {
  right: 0;
  left: auto;
  display: block;
}

.affiliate-left .affiliate-program-info span {
  background: transparent;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
  display: inline-block;
}

/* Bonus paragraph */
.affiliate-left .affiliate-program-bonus {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Horizontal divider BEFORE "?איך זה עובד" */
.affiliate-left .affiliate-program-how {
  position: relative;
  padding-top: 1.5rem;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.affiliate-left .affiliate-program-how::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

/* Description */
.affiliate-left .affiliate-program-description {
  font-size: 0.9rem;
  line-height: 1.5;
  width: 100%;
  margin: 0 auto 1.5rem;
}

/* Link input — clean, transparent */
.affiliate-left .affiliate-program-link-container {
  background: transparent;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  margin: 1rem 0;
  padding-left: 2.5rem;
  max-width: 100%;
}

.affiliate-left .affiliate-program-link {
  background: transparent;
  color: white;
}

.affiliate-left .affiliate-program-link::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.affiliate-left .affiliate-program-copy svg path {
  fill: white;
}

/* WHITE share button with black text */
.affiliate-left .affiliate-program-share {
  background: #fff;
  color: #000;
  display: block;
  margin: 1rem auto 0;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  width: 100%;
  max-width: 30rem;
}

.affiliate-left .affiliate-program-share:hover {
  background: #f0f0f0;
  color: #000;
}

/* Mobile */
@media (max-width: 768px) {
  .affiliate-program:not(.affiliate-left) .affiliate-program-info {
    font-size: 1.2rem !important;

}
.affiliate-program-bonus .affiliate-program-info::after {

    right: 3%;

}
.affiliate-program-bonus .affiliate-program-info::before {

    left: 3%;

}
  .affiliate-left .affiliate-program-background {
    justify-content: center;
    padding: 2rem 1.5rem 4rem;
  }
  .affiliate-left .affiliate-program-content {
    max-width: 100%;
    padding: 1rem 0;
  }
  .affiliate-left .logo img {
    max-width: 90px;
  }
  .affiliate-left .affiliate-program-amount {
    font-size: 4.5rem;
  }
  .affiliate-left .affiliate-program-info::before,
  .affiliate-left .affiliate-program-info::after {
    width: 20%;
  }
  .affiliate-left .affiliate-program-how {
    padding-top: 1.25rem;
    font-size: 1rem;
  }
}
.logo {
    max-width: 16.875rem;
    display: block;
    margin: auto;
    margin-bottom: 1rem;
}
p.nbn {
    font-size: 1.22rem;
    margin-top: -0.5rem;
}
.affiliate-program-bonus .affiliate-program-info{
  font-size: 1.1rem;
  font-weight: bold;
  /* margin-bottom: 1.5rem; */
  position: relative;
}
.affiliate-program-bonus .affiliate-program-info::before{
  width: 21%;
}
.affiliate-program-bonus .affiliate-program-info::after{
  width: 21%;
}
span.nnd {
    font-size: 4rem;
}
