/* =============================================================
   MEDIA PAGES — PHOTOS + VIDEOS + ARTICLES
============================================================== */
.media-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.media-card { overflow: hidden; }
.media-card__image { min-height: 240px; background: var(--bg-soft); position: relative; display: grid; place-items: center; }
.media-card__body { padding: 18px; }
.media-card__body h3 { margin: 0 0 8px; }
.media-card__body p { color: var(--muted); margin: 0 0 12px; }
.video-play { width: 70px; height: 70px; border-radius: 50%; background: #ff1738; color: #fff; display: grid; place-items: center; font-size: 26px; }
@media (max-width: 800px) { .media-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px) { .media-grid { grid-template-columns: 1fr; } }







/* ==============================================
   ARAFA CNC — ARTICLES & ARTICLE DETAILS
============================================== */

.ara-articles-section,
.ara-article-detail-section {
  --article-orange: #ff5a00;
  --article-navy: #0d2444;
  --article-muted: #718096;

  background: #f8fafc;
  padding: 55px 0 75px;
}

.ara-articles-section .container,
.ara-article-detail-section .container {
  width: min(100% - 36px, 1320px);
  max-width: 1320px;
  margin-inline: auto;
}

/* ==============================================
   ARTICLES HEADING
============================================== */

.ara-articles-heading {
  margin-bottom: 30px;
}

.ara-articles-heading > span {
  color: #ff5a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ara-articles-heading h2 {
  margin: 8px 0;
  color: #0d2444;
  font-size: 32px;
  font-weight: 800;
}

.ara-articles-heading p {
  margin: 0;
  color: #718096;
  font-size: 14px;
}

/* ==============================================
   ARTICLES GRID
============================================== */

.ara-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

/* CARD */

.ara-article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;

  background: #fff;
  border: 1px solid #e4eaf1;
  border-radius: 12px;

  box-shadow: 0 7px 24px rgba(13,36,68,.07);

  transition:
    transform .3s,
    box-shadow .3s,
    border-color .3s;
}

.ara-article-card:hover {
  transform: translateY(-6px);
  border-color: #ff5a00;
  box-shadow: 0 15px 35px rgba(255,90,0,.13);
}

/* IMAGE */

.ara-article-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9edf2;
}

.ara-article-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s;
}

.ara-article-card:hover .ara-article-card__image img {
  transform: scale(1.055);
}

.ara-article-category {
  position: absolute;
  bottom: 14px;
  right: 14px;

  padding: 7px 13px;
  border-radius: 6px;

  background: #ff5a00;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* BODY */

.ara-article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.ara-article-date {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 12px;
  color: #8593a4;
  font-size: 12px;
}

.ara-article-card h3 {
  margin: 0 0 13px;
  color: #0d2444;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 800;
}

.ara-article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ara-article-card h3 a:hover {
  color: #ff5a00;
}

.ara-article-card__body > p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.9;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* READ MORE */

.ara-article-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: auto;
  color: #ff5a00;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ara-article-readmore:hover {
  color: #d94c00;
}

/* ==============================================
   ARTICLE DETAILS
============================================== */

.ara-article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 13px;
  color: #7b889c;
}

.ara-article-breadcrumb a {
  color: #697b91;
  text-decoration: none;
}

.ara-article-breadcrumb a:hover {
  color: #ff5a00;
}

/* MAIN ARTICLE */

.ara-article-detail {
  max-width: 1050px;
  margin: 0 auto;

  background: #fff;
  border: 1px solid #e4eaf1;
  border-radius: 15px;
  overflow: hidden;

  box-shadow: 0 8px 30px rgba(13,36,68,.05);
}

.ara-article-detail__image {
  width: 100%;
  max-height: 470px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  background: #e9edf2;
}

.ara-article-detail__body {
  padding: 35px 45px 45px;
}

.ara-article-detail__category {
  display: inline-block;
  margin-bottom: 14px;
  color: #ff5a00;
  font-size: 12px;
  font-weight: 800;
}

.ara-article-detail__body > h1 {
  margin: 0 0 18px;
  color: #0d2444;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 800;
  line-height: 1.55;
}

.ara-article-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e7ebf1;

  color: #8290a2;
  font-size: 13px;
}

.ara-article-detail__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ara-article-detail__content {
  color: #475569;
  font-size: 16px;
  line-height: 2.1;
}

.ara-article-detail__content h2 {
  margin: 32px 0 14px;
  color: #0d2444;
  font-size: 24px;
  font-weight: 800;
}

.ara-article-detail__content p {
  margin: 0 0 18px;
}

.ara-article-detail__content ul {
  margin: 10px 0 25px;
  padding-inline-start: 25px;
}

.ara-article-detail__content li {
  margin-bottom: 10px;
}

.ara-article-detail__content img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  margin: 25px auto;
  border-radius: 10px;
}

.ara-article-detail__content iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
}

/* CONTACT CTA */

.ara-article-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;

  margin-top: 35px;
  padding: 25px;
  background: #fff5ed;
  border-radius: 10px;
  border-inline-start: 4px solid #ff5a00;
}

.ara-article-cta h3 {
  margin: 0 0 5px;
  color: #0d2444;
  font-size: 20px;
}

.ara-article-cta p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.ara-article-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: #ff5a00;
  color: #fff;
  text-decoration: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.ara-article-cta a:hover {
  background: #df4c00;
}

/* RELATED ARTICLES */

.ara-related-section {
  margin-top: 65px;
}

.ara-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.ara-related-header h2 {
  margin: 0;
  color: #0d2444;
  font-size: 27px;
  font-weight: 800;
}

.ara-related-header > a {
  color: #ff5a00;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ara-related-section .ara-articles-grid {
  max-width: 1050px;
  margin: auto;
}

/* ==============================================
   RESPONSIVE
============================================== */

@media (max-width: 991px) {
  .ara-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ara-article-detail__body {
    padding: 30px;
  }
}

@media (max-width: 650px) {
  .ara-articles-section,
  .ara-article-detail-section {
    padding: 35px 0 50px;
  }

  .ara-articles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ara-articles-heading h2 {
    font-size: 26px;
  }

  .ara-article-detail__image {
    aspect-ratio: 16 / 10;
  }

  .ara-article-detail__body {
    padding: 22px 18px;
  }

  .ara-article-detail__body > h1 {
    font-size: 25px;
  }

  .ara-article-detail__content {
    font-size: 14px;
    line-height: 2;
  }

  .ara-article-detail__content h2 {
    font-size: 20px;
  }

  .ara-article-cta {
    padding: 20px;
  }

  .ara-article-cta a {
    width: 100%;
  }

  .ara-related-header h2 {
    font-size: 22px;
  }
}




/* ==============================================
   RELATED ARTICLES — MOBILE SWIPE SLIDER
============================================== */

@media (max-width: 767px) {

  /* RELATED SECTION */
  .ara-related-section {
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
  }

  /* HEADING */
  .ara-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
  }

  .ara-related-header h2 {
    font-size: 21px;
    line-height: 1.4;
  }

  .ara-related-header > a {
    font-size: 12px;
    white-space: nowrap;
    color: #ff5a00;
  }

  /* HORIZONTAL SCROLL */
  .ara-related-section .ara-articles-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;

    padding: 5px 1px 18px;

    scrollbar-width: none;
    -ms-overflow-style: none;

    -webkit-overflow-scrolling: touch;
  }

  .ara-related-section .ara-articles-grid::-webkit-scrollbar {
    display: none;
  }

  /* EACH CARD TAKES FULL AVAILABLE WIDTH */
  .ara-related-section .ara-article-card {
    box-sizing: border-box;

    flex: 0 0 100%;
    width: 100%;
    min-width: 0;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    border-radius: 12px;
    margin: 0;
  }

  /* IMAGE */
  .ara-related-section .ara-article-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .ara-related-section .ara-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* TEXT */
  .ara-related-section .ara-article-card__body {
    padding: 18px;
  }

  .ara-related-section .ara-article-card h3 {
    font-size: 18px;
    line-height: 1.6;
  }

  .ara-related-section .ara-article-card__body > p {
    font-size: 13px;
    line-height: 1.8;
  }

  /* REMOVE HOVER MOVEMENT ON MOBILE */
  .ara-related-section .ara-article-card:hover {
    transform: none;
  }

}
