/* =============================================================
   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 — VIDEOS GALLERY
========================================== */

.ara-videos-section {
  padding: 55px 0 75px;
  background: #fff;
}

.ara-videos-section .container {
  max-width: 1450px;
  margin-inline: auto;
}

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

.ara-video-card {
  min-width: 0;
  border: 1px solid #e2e7ee;
  border-radius: 11px;
  background: #f4f6f9;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(13, 36, 68, .06);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.ara-video-card:hover {
  transform: translateY(-4px);
  border-color: #ff5a00;
  box-shadow: 0 12px 28px rgba(255, 90, 0, .14);
}

.ara-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #142137;
}

/* PLACEHOLDER BEFORE ADDING VIDEO */

.ara-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  color: #fff;
  text-align: center;
}

.ara-video-placeholder i {
  font-size: 55px;
  color: #ff0033;
}

.ara-video-placeholder span {
  font-size: 16px;
  font-weight: 700;
}

/* YOUTUBE THUMBNAIL */

.ara-video-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #142137;
  cursor: pointer;
}

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

.ara-video-thumbnail:hover img {
  transform: scale(1.035);
}

.ara-video-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .08);
  pointer-events: none;
}

.ara-video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 65px;
  height: 46px;
  border-radius: 13px;
  background: #ff0033;
  color: #fff;
  font-size: 23px;
  transition: background .25s, transform .25s;
}

.ara-video-thumbnail:hover .ara-video-play {
  background: #ff5a00;
  transform: translate(-50%, -50%) scale(1.08);
}

.ara-video-thumbnail:focus-visible {
  outline: 3px solid #ff5a00;
  outline-offset: -3px;
}

/* IFRAME */

.ara-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* RESPONSIVE */

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

@media (max-width: 600px) {
  .ara-videos-section {
    padding: 35px 0 50px;
  }

  .ara-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ara-video-card {
    border-radius: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ara-video-card,
  .ara-video-thumbnail img,
  .ara-video-play {
    transition: none;
  }
}


/* ==========================================
   VIDEO CARD — caption, provider link, fallback (YouTube / Facebook)
========================================== */

.ara-video-caption { padding: 14px 16px 16px; background: #fff; border-top: 1px solid #e2e7ee; }
.ara-video-caption h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.4; color: #0d2444; }
.ara-video-caption p { margin: 0 0 10px; color: var(--muted, #5b6778); font-size: 14px; line-height: 1.7; }
.ara-video-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: #ff5a00; text-decoration: none; }
.ara-video-link:hover { text-decoration: underline; }
.ara-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ara-video-play--facebook { background: #1877f2; }
.ara-video-thumbnail:hover .ara-video-play--facebook { background: #ff5a00; }
.ara-video-thumb-label { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; color: #fff; font-weight: 700; text-align: center; background: linear-gradient(135deg, #142137, #1f3556); }
.ara-video-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; padding: 16px; color: #fff; text-align: center; background: #142137; }
.ara-video-fallback p { margin: 0; font-weight: 700; }
.ara-video-fallback-btn { display: inline-block; padding: 10px 20px; border-radius: 8px; background: #ff5a00; color: #fff; font-weight: 700; text-decoration: none; }
.ara-video-fallback-btn:hover { background: #e24f00; }
