:root {
  --main-green: #21A96C;
  --dark-green: #006231;
  --highlight-yellow: #FFEA01;
  --section-bg: #FDDBAB;
  --text-dark: #0A0A0A;
}

.news__section {
  background: var(--section-bg);
  padding: 4rem 0 1rem 0;
  position: relative;
  z-index: 11;
}

.news__section:before,
.news__section:after {
  content: '';
  position: absolute;
  height: 100%;
  bottom: 0;
  background: url('../../includes/images/afterPage.png') no-repeat;
  opacity: 0.3;
  z-index: -1;
}
.news__section:before { left: 0; width: 13%; }
.news__section:after  { right: 0; width: 14%; }

.news__section .main-heading {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-green);
  font-family: "DecoType Thuluth";
  font-size: 4.25rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* الكارت */
.news__section .item {
  overflow: hidden;
  position: relative;
  transition: all .35s ease;
  margin: 1rem 0;
}
.news__section .item .image{
  padding: 0;
}
.news__section .item:hover {
  
}

/* الصورة */
.news__section .image img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform .35s ease;
}
.news__section .item:hover .image img {
  transform: scale(1.05);
}

/* الكابشن */
.news__section .caption {
  padding: 1.5rem 2rem;
  background: #fff;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.news__section .caption h4 {
  color: #777;
  font-size: 1.1rem;
  font-weight: 800;
}
.news__section .caption p {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
}

/* زرار مخصص */
/*.custom-btn {*/
/*  display: inline-flex;*/
/*  align-items: center;*/
/*  gap: 0.5rem;*/
/*  position: relative;*/
/*  overflow: hidden;*/
/*}*/
/*.custom-btn span:nth-child(2) {*/
/*  background: var(--main-green);*/
/*  color: #fff;*/
/*  border-radius: 2rem;*/
/*  padding: 0.5rem 1.5rem;*/
/*  font-weight: bold;*/
/*}*/

/* أيقونات */
/*.custom-btn .icon-left,*/
/*.custom-btn .icon-right {*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  width: 40px;*/
/*  height: 40px;*/
/*  border-radius: 50%;*/
/*  transition: transform .3s ease, opacity .3s ease;*/
/*}*/
/*.custom-btn .icon-right {*/
/*  background: var(--highlight-yellow);*/
/*}*/
/*.custom-btn .icon-left {*/
/*  background: var(--main-green);*/
/*  transform: translateX(20px);*/
/*  opacity: 0;*/
/*}*/

/* عند الهوفر */
/*.custom-btn:hover .icon-right {*/
/*  transform: translateX(-20px);*/
/*  opacity: 0;*/
/*}*/
/*.custom-btn:hover .icon-left {*/
/*  transform: translateX(0);*/
/*  opacity: 1;*/
/*}*/

/* زرار readMore */
.readMore {
  padding-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* اللينك في الكابشن: مخفي افتراضي */
.news__section .caption .custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

/* لما اعمل hover على الكارت يظهر اللينك */
.news__section .item:hover .caption .custom-btn {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width:768px) {
    .news__section:before,
    .news__section:after{
    left: 0;
    width: 30%;
    background-size: 100% 100%;
}
.news__section:after{
    right: 0;
}
}
