@font-face {
  font-family: "ABF DIN Next Arabic";
  src: url("https://arabbadminton.com/wp-content/uploads/2026/08/ArbFONTS-DINNextLTArabic-Medium-2.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.abf-news {
  --abf-green: #76b82a;
  --abf-blue: #1d61a1;
  --abf-navy: #032650;
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-inline: 0;
  padding: 38px 0 42px;
  direction: rtl;
  color: #fff;
  background:
    radial-gradient(circle at 12% 25%, rgba(43, 139, 211, .28), transparent 28%),
    radial-gradient(circle at 82% 90%, rgba(29, 97, 161, .18), transparent 32%),
    linear-gradient(115deg, #075da8 0%, #064784 32%, #053468 58%, #032650 78%, #031b3e 100%);
  font-family: "ABF DIN Next Arabic", Tahoma, Arial, sans-serif;
}

.abf-news *,
.abf-news *::before,
.abf-news *::after {
  box-sizing: border-box;
  font-family: "ABF DIN Next Arabic", Tahoma, Arial, sans-serif;
}

.abf-news::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  opacity: .16;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px);
  background-size: 15px 15px;
  mask-image: linear-gradient(90deg, #000, transparent 45%);
}

.abf-news::after {
  position: absolute;
  z-index: 0;
  top: -25%;
  left: 6%;
  width: 1px;
  height: 145%;
  content: "";
  opacity: .2;
  background: #8dc9f0;
  box-shadow: 38px 0 rgba(141, 201, 240, .3), 76px 0 rgba(141, 201, 240, .14);
  transform: rotate(25deg);
}

.abf-news__decor {
  position: absolute;
  z-index: 1;
  top: 14%;
  left: clamp(-78px, -4vw, -42px);
  width: clamp(230px, 18vw, 270px);
  height: clamp(295px, 23vw, 350px);
  opacity: .22;
  pointer-events: none;
  filter: drop-shadow(0 14px 28px rgba(0, 21, 58, .24));
  transform: rotate(-27deg);
}

.abf-news__decor::before,
.abf-news__decor::after {
  position: absolute;
  content: "";
}

.abf-news__decor::before {
  inset: 0 8% 13% 0;
  border: 3px solid rgba(255, 255, 255, .8);
  border-radius: 48% 16% 44% 22%;
  background:
    repeating-linear-gradient(79deg, transparent 0 17px, rgba(255, 255, 255, .7) 18px 20px),
    repeating-linear-gradient(105deg, transparent 0 21px, rgba(137, 205, 247, .55) 22px 24px),
    linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(105, 188, 239, .08));
  clip-path: polygon(4% 3%, 79% 13%, 98% 78%, 67% 100%, 47% 91%, 34% 78%);
}

.abf-news__decor::after {
  right: -3%;
  bottom: 1%;
  width: 31%;
  height: 14%;
  border: 3px solid rgba(255, 255, 255, .88);
  border-radius: 52% 18% 18% 52%;
  background: linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(111, 191, 239, .22));
  box-shadow: inset -10px 0 rgba(255, 255, 255, .18), -14px 0 rgba(255, 255, 255, .16);
}

.abf-news__inner {
  position: relative;
  z-index: 2;
  width: min(88%, 1280px);
  margin-inline: auto;
  padding-bottom: 70px;
}

.abf-news__header {
  max-width: 660px;
  margin: 0 0 25px auto;
}

.abf-news__title {
  margin: 0 0 10px;
  color: #0b4f8c;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.abf-news__title-white {
  color: #ffffff !important;
}

.abf-news__title strong {
  color: var(--abf-green);
  font-weight: inherit;
}

.abf-news__subtitle {
  max-width: 620px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.7;
}

.abf-news__archive {
  position: absolute;
  left: 0;
  bottom: 8px;
  z-index: 5;
  display: inline-flex;
  width: max-content;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 2px solid var(--abf-green);
  border-radius: 10px;
  color: #fff;
  background: var(--abf-green);
  box-shadow: 0 10px 28px rgba(118, 184, 42, .24);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color .3s ease, background-color .3s ease, transform .3s ease;
}

.abf-news__archive:hover {
  color: #fff;
  background: transparent;
  transform: translateY(-2px);
}

.abf-news__archive:focus-visible,
.abf-news__card-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.abf-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.abf-news__card {
  min-width: 0;
  height: 390px;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: var(--abf-navy);
  box-shadow: 0 16px 36px rgba(0, 13, 38, .28);
  transition: transform .38s ease, box-shadow .38s ease;
}

.abf-news__card-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.abf-news__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s ease;
}

.abf-news__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(1, 25, 57, .03), rgba(1, 25, 57, .1) 30%, rgba(2, 26, 58, .72) 62%, rgba(1, 20, 48, .97) 100%);
}

.abf-news__category {
  position: absolute;
  top: 14px;
  right: 14px;
  max-width: calc(100% - 48px);
  overflow: hidden;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--abf-green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abf-news__card:nth-child(even) .abf-news__category {
  background: var(--abf-blue);
}

.abf-news__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 20px 22px;
}

.abf-news__date {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 600;
}

.abf-news__card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.abf-news__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.abf-news__more {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 9px;
  color: var(--abf-green);
  font-size: 13px;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .abf-news__card:hover {
    box-shadow: 0 20px 44px rgba(0, 13, 38, .36);
    transform: translateY(-4px);
  }

  .abf-news__card:hover .abf-news__image {
    transform: scale(1.03);
  }
}

@media (max-width: 1024px) {
  .abf-news {
    width: 100%;
    padding: 32px 0 36px;
  }

  .abf-news__inner {
    width: min(90%, 860px);
    padding-bottom: 66px;
  }

  .abf-news__archive {
    left: 0;
    right: auto;
    bottom: 6px;
  }

  .abf-news__header {
    margin-bottom: 22px;
  }

  .abf-news__title {
    font-size: 36px;
  }

  .abf-news__subtitle {
    font-size: 14px;
  }

  .abf-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .abf-news__card {
    height: 360px;
    min-height: 360px;
  }

  .abf-news__decor {
    top: 16%;
    left: -86px;
    width: 230px;
    height: 300px;
    opacity: .2;
  }
}

@media (max-width: 680px) {
  .abf-news {
    width: 100%;
    padding: 28px 0 32px;
  }

  .abf-news__inner {
    padding-bottom: 66px;
  }

  .abf-news__archive {
    left: 50%;
    right: auto;
    bottom: 6px;
    transform: translateX(-50%);
  }

  .abf-news__archive:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  .abf-news__header {
    margin-bottom: 20px;
  }

  .abf-news__title {
    font-size: 32px;
  }

  .abf-news__subtitle {
    margin: 0 0 14px;
    font-size: 13px;
  }

  .abf-news__archive {
    height: 42px;
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
  }

  .abf-news__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .abf-news__card {
    height: 350px;
    min-height: 350px;
    border-radius: 16px;
  }

  .abf-news__content {
    padding: 18px 18px 20px;
  }

  .abf-news__category {
    top: 14px;
    right: 14px;
  }

  .abf-news__card-title {
    font-size: 18px;
  }

  .abf-news__excerpt {
    font-size: 12px;
  }

  .abf-news__decor {
    top: 15%;
    left: -105px;
    width: 210px;
    height: 275px;
    opacity: .18;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abf-news__archive,
  .abf-news__card,
  .abf-news__image {
    transition: none;
  }
}


/* إزالة الزخرفة الجانبية */
.abf-news__decor {
  display: none !important;
}
