/* ==============================
   PAGE HERO (LIKE SCREENSHOT)
============================== */
/* HERO IMAGE */
/* =========================================
   FILTER MEDIA HERO FIX
========================================= */

.page-id-33 .page-hero{
  position: relative;
  min-height: 520px;

  background-image: url("/wp-content/themes/chemtromech/assets/filter-media.png") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

/* Dark overlay for readability */
.page-id-33 .page-hero::before{
  content: "";
  צורposition: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}

/* Heading */
.page-id-33 .page-hero h1{
  position: relative;
  z-index: 1;

  margin: 0 auto;
  max-width: 1100px;

  color: #ffffff !important;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.3px;

  font-size: clamp(30px, 4.5vw, 60px);
  text-align: center;

  text-shadow:
    0 8px 25px rgba(0,0,0,0.55),
    0 2px 6px rgba(0,0,0,0.35);
}


/* Dark overlay */
.page-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* Center text */
.page-hero__content{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 0 18px;
  z-index: 2;
}

/* Heading */
.page-hero__content h1{
  color: #fff;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 1100px;

  /* slight shadow like screenshot */
  text-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

/* ===== Responsive ===== */

@media (max-width: 1024px){
  .page-hero{ height: 480px; }
  .page-hero__content h1{ font-size: 52px; }
}

@media (max-width: 768px){
  .page-hero{ height: 420px; }
  .page-hero__content h1{
    font-size: 38px;
    line-height: 1.15;
  }
}

@media (max-width: 480px){
  .page-hero{ height: 380px; }
  .page-hero__content h1{
    font-size: 30px;
    line-height: 1.2;
  }
}



/* ==============================
   MATERIALS TEXT SECTION
============================== */

.materials-text{
  width: 100%;
  background: #ffffff;
  padding: 28px 20px;          /* screenshot jesi compact spacing */
}

.materials-text__container{
  max-width: 1100px;
  margin: 0 auto;
}

.materials-text__container p{
  font-size: 16.5px;
  line-height: 1.7;
  color: #222;
  margin: 0 0 14px;
}

/* last paragraph margin remove */
.materials-text__container p:last-child{
  margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px){
  .materials-text{
    padding: 22px 16px;
  }

  .materials-text__container p{
    font-size: 16px;
    line-height: 1.75;
  }
}

@media (max-width: 480px){
  .materials-text__container p{
    font-size: 15.5px;
  }
}


.alt-wrapper{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px;
}

/* ROW */
.alt-row{
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

/* REVERSE CLASS */
.alt-row.reverse{
  flex-direction: row-reverse;
}

/* TEXT SIDE */
.alt-text{
  flex: 1;
}

.alt-text h2{
  font-size: 28px;
  color: #0b3d91;
  margin-bottom: 15px;
}

.alt-text p{
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #333;
}

/* IMAGE SIDE */
.alt-image{
  flex: 1;
}

.alt-image img{
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* RESPONSIVE */
@media(max-width: 992px){
  .alt-row{
    flex-direction: column;
  }

  .alt-row.reverse{
    flex-direction: column;
  }
}


.media-resins-cards{
  width: 100%;
  padding: 50px 15px;
}

.mrc-container{
  max-width: 1200px;
  margin: 0 auto;
}

/* GRID: desktop 3 per row */
.mrc-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* CARD */
.mrc-card{
  background: #ffffff;
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}

.mrc-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
  border-color: rgba(11, 61, 145, 0.28);
}

/* TITLE */
.mrc-card h3{
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.25;
  color: #0b3d91;
}

/* TEXT */
.mrc-card p{
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #333;
}

/* LIST */
.mrc-card ul{
  margin: 10px 0 0;
  padding-left: 18px;
}

.mrc-card li{
  margin: 8px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #333;
}

/* RESPONSIVE */
@media (max-width: 992px){
  .mrc-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .mrc-grid{
    grid-template-columns: 1fr;
  }
}


.cta-media{
  width: 100%;
  padding: 60px 15px;
  background: #ffffff;
}

.cta-container{
  max-width: 1000px;
  margin: 0 auto;
}

/* HEADING */
.cta-media h2{
  font-size: 28px;
  color: #000;
  margin-bottom: 16px;
}

/* PARAGRAPH */
.cta-media p{
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 14px;
}

/* LAST LINE LINK */
.cta-link a{
  font-weight: 600;
  color: #0b3d91;
  text-decoration: none;
  transition: .2s ease;
}

.cta-link a:hover{
  text-decoration: underline;
}

/* RESPONSIVE */
@media(max-width: 768px){
  .cta-media h2{
    font-size: 24px;
  }

  .cta-media p{
    font-size: 15px;
  }
}
