/* APELA Greece News Carousel 1.0.2 */

.apela-gnc {
  position: relative;
  width: 100%;
  margin: 30px 0 34px;
  padding: 0;
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
}

.apela-gnc__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--apela-orange, #f27600);
}

.apela-gnc__title {
  margin: 0;
  color: var(--apela-blue-dark, #0b608e);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.apela-gnc__source {
  margin-top: 4px;
  color: #727b82;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 500;
}

.apela-gnc__controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.apela-gnc__arrow {
  position: absolute;
  top: 67%;
  transform: translateY(-50%);
  width: 34px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--apela-blue-dark, #0b608e);
  font: inherit;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  transition: color .18s ease, transform .18s ease;
}

.apela-gnc__prev {
  left: -44px;
}

.apela-gnc__next {
  right: -44px;
}

.apela-gnc__arrow:hover,
.apela-gnc__arrow:focus-visible {
  color: var(--apela-orange, #f27600);
  outline: none;
}

.apela-gnc__arrow:active {
  transform: translateY(-50%) scale(.92);
}

.apela-gnc__arrow:disabled {
  opacity: .25;
  cursor: default;
}

.apela-gnc__viewport {
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.apela-gnc__viewport.is-dragging {
  cursor: grabbing;
}

.apela-gnc__viewport.is-dragging,
.apela-gnc__viewport.is-dragging * {
  user-select: none;
}

.apela-gnc__track {
  --apela-gnc-gap: 18px;
  display: flex;
  gap: var(--apela-gnc-gap);
  transform: translate3d(0,0,0);
  transition: transform .3s ease;
  will-change: transform;
}

.apela-gnc__card {
  flex: 0 0 calc((100% - (2 * var(--apela-gnc-gap))) / 3);
  min-width: 0;
  margin: 0;
  border: 1px solid #e1e6e9;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.apela-gnc__link {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  min-height: 102px;
  color: inherit;
  text-decoration: none;
}

.apela-gnc__image-wrap {
  min-width: 0;
  overflow: hidden;
  background: #eef2f4;
}

.apela-gnc__image {
  width: 100%;
  height: 100%;
  min-height: 102px;
  display: block;
  object-fit: cover;
}

.apela-gnc__image--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: linear-gradient(135deg, #edf2f5, #dce5ea);
  color: #66747d;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.apela-gnc__body {
  min-width: 0;
  padding: 12px 13px 10px;
}

.apela-gnc__card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #172129;
  font-size: 14.5px;
  line-height: 1.28;
  font-weight: 700;
  transition: color .18s ease;
}

.apela-gnc__link:hover .apela-gnc__card-title,
.apela-gnc__link:focus-visible .apela-gnc__card-title {
  color: var(--apela-orange, #f27600);
}

.apela-gnc__date {
  margin-top: 7px;
  color: #858e95;
  font-size: 10.5px;
  line-height: 1.2;
}

/* Μόνο desktop */
@media (max-width: 980px) {
  .apela-gnc {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apela-gnc__track {
    transition: none;
  }
}

/* Fine tuning 1.0.3 */
.apela-gnc__arrow {
  top: 61% !important;
  width: 44px !important;
  height: 76px !important;
  font-size: 58px !important;
  line-height: 1 !important;
  z-index: 8 !important;
  text-shadow: 0 1px 2px rgba(255,255,255,.65) !important;
}

.apela-gnc__prev {
  left: 6px !important;
}

.apela-gnc__next {
  right: 6px !important;
}

.apela-gnc__card {
  min-height: 116px !important;
}

.apela-gnc__link {
  grid-template-columns: 138px minmax(0, 1fr) !important;
  min-height: 116px !important;
}

.apela-gnc__image {
  min-height: 116px !important;
}

.apela-gnc__body {
  padding: 14px 14px 12px !important;
}

.apela-gnc__card-title {
  font-size: 15px !important;
  line-height: 1.3 !important;
}

.apela-gnc__date {
  margin-top: 8px !important;
  font-size: 11px !important;
}

/* Βελάκια: πορτοκαλί και έντονα */
.apela-gnc__arrow {
  color: var(--apela-orange, #f27600) !important;
  font-weight: 900 !important;
}

.apela-gnc__arrow:hover,
.apela-gnc__arrow:focus-visible {
  color: var(--apela-blue-dark, #0b608e) !important;
}

/* Fine tuning 1.0.5 - arrows slimmer / closer to edges */
.apela-gnc__arrow {
  top: 60.5% !important;
  width: 28px !important;
  height: 64px !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

.apela-gnc__prev {
  left: 3px !important;
}

.apela-gnc__next {
  right: 3px !important;
}

/* Fine tuning 1.0.6 - κατακόρυφο κεντράρισμα βελών */
.apela-gnc__arrow {
  top: 63.5% !important;
}

/* Real mouse grab / drag */
.apela-gnc__viewport {
  cursor: grab !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: pan-y !important;
}

.apela-gnc__viewport.is-dragging {
  cursor: grabbing !important;
}

.apela-gnc__viewport img,
.apela-gnc__viewport a {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

/* 1.0.9 - περισσότερο χώρος στους τίτλους */
.apela-gnc__card {
  min-height: 132px !important;
}

.apela-gnc__link {
  min-height: 132px !important;
  grid-template-columns: 142px minmax(0, 1fr) !important;
}

.apela-gnc__image {
  min-height: 132px !important;
}

.apela-gnc__body {
  padding: 13px 14px 11px !important;
}

.apela-gnc__card-title {
  font-size: 15.5px !important;
  line-height: 1.28 !important;
  -webkit-line-clamp: 4 !important;
}

/* 1.0.10 - τίτλοι έως 6 γραμμές */
.apela-gnc__card {
  min-height: 158px !important;
}

.apela-gnc__link {
  min-height: 158px !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
}

.apela-gnc__image {
  min-height: 158px !important;
}

.apela-gnc__card-title {
  font-size: 15.5px !important;
  line-height: 1.28 !important;
  -webkit-line-clamp: 6 !important;
}

/* APELA / ΕΡΤ News ενδιάμεση σελίδα */
.apela-ert-page {
  max-width: 950px;
  margin: 34px 0 60px;
}

.apela-ert-page__source {
  margin-bottom: 10px;
  color: var(--apela-orange, #f27600);
  font-size: 14px;
}

.apela-ert-page__title {
  margin: 0 0 12px;
  color: #172129;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.apela-ert-page__date {
  margin-bottom: 24px;
  color: #7a848b;
  font-size: 13px;
}

.apela-ert-page__image {
  margin: 0 0 24px;
}

.apela-ert-page__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.apela-ert-page__summary {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.65;
}

.apela-ert-page__notice {
  margin-top: 28px;
  color: #69747b;
  font-size: 13px;
}

.apela-ert-page__button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--apela-blue-dark, #0b608e);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.apela-ert-page__button:hover {
  background: var(--apela-orange, #f27600);
}

/* Πλήρες άρθρο RSS ΕΡΤ */
.apela-ert-page__content {
  max-width: 900px;
  margin-top: 24px;
  color: #20282e;
  font-size: 18px;
  line-height: 1.72;
}

.apela-ert-page__content p {
  margin: 0 0 20px;
}

.apela-ert-page__content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 26px;
  border-radius: 8px;
}

.apela-ert-page__content iframe,
.apela-ert-page__content video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 24px 0;
  border: 0;
}

.apela-ert-page__content a {
  color: var(--apela-blue-dark, #0b608e);
}

.apela-ert-page__content a:hover {
  color: var(--apela-orange, #f27600);
}

.apela-ert-page__original {
  max-width: 900px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 3px solid var(--apela-orange, #f27600);
}

.apela-ert-page__original-label {
  margin-bottom: 12px;
  color: #6d777e;
  font-size: 13px;
}

/* =========================================================
   APELA Greece News - Article layout 1.2.0
   ========================================================= */

.apela-ert-page {
  width: 100%;
  max-width: 100%;
  margin: 34px 0 42px;
}

.apela-ert-page__horizontal-ads {
  margin: 34px 0;
}

.apela-ert-more {
  margin: 42px 0 64px;
}

.apela-ert-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 21px;
}

.apela-ert-more__card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e5e8;
  border-radius: 9px;
  background: #fff;
}

.apela-ert-more__image {
  display: block;
  aspect-ratio: 950 / 580;
  overflow: hidden;
  background: #eef2f4;
}

.apela-ert-more__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.apela-ert-more__card:hover .apela-ert-more__image img {
  transform: scale(1.025);
}

.apela-ert-more__fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #6f7980;
  font-size: 13px;
  font-weight: 700;
}

.apela-ert-more__body {
  padding: 12px 13px 14px;
}

.apela-ert-more__source {
  margin-bottom: 5px;
  color: var(--apela-orange, #f27600);
  font-size: 11px;
  font-weight: 700;
}

.apela-ert-more__body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.apela-ert-more__body h3 a {
  color: #172129;
  text-decoration: none;
}

.apela-ert-more__body h3 a:hover {
  color: var(--apela-orange, #f27600);
}

.apela-ert-more__date {
  margin-top: 8px;
  color: #858e95;
  font-size: 11px;
}

@media (max-width: 980px) {
  .apela-ert-more__grid {
    grid-template-columns: 1fr;
  }
}

/* ERT article 1.2.1 - ίδια οπτική λογική με άρθρα APELA */
.apela-ert-page__title {
  font-size: clamp(30px, 3.2vw, 40px) !important;
  line-height: 1.12 !important;
}

.apela-ert-page__breadcrumb {
  margin-bottom: 20px !important;
}

.apela-ert-page__subtitle {
  margin: 12px 0 8px !important;
  color: var(--apela-muted, #66727a) !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
}

.apela-ert-page__date {
  margin-top: 10px !important;
}

/* ERT News virtual archive */
.apela-ert-archive__header {
  margin: 32px 0 28px;
}

.apela-ert-archive__header h1 {
  margin: 12px 0 8px;
  font-size: 34px;
  line-height: 1.15;
}

.apela-ert-archive__header p {
  margin: 0;
  color: var(--apela-muted, #66727a);
  font-size: 16px;
  line-height: 1.5;
}

.apela-ert-archive__grid {
  margin-bottom: 64px;
}

/* ERT News archive - 2 ειδήσεις ανά σειρά */
.apela-ert-archive__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* Μέσα στα άρθρα ΕΡΤ: 7 σειρές x 3 */
.apela-ert-more__grid:not(.apela-ert-archive__grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* ERT News embedded video */
.apela-ert-page__content .ert-iframe {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin: 26px 0;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.apela-ert-page__content .ert-iframe iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Mobile carousel */
@media (max-width: 980px) {

  .apela-gnc {
    display: block !important;
    width: 100% !important;
    margin-top: 20px !important;
  }

  .apela-gnc__head {
    margin-bottom: 10px !important;
  }

  .apela-gnc__title {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .apela-gnc__source {
    font-size: 11px !important;
  }

  .apela-gnc__viewport {
    overflow: hidden !important;
    touch-action: pan-y !important;
  }

  .apela-gnc__track {
    display: flex !important;
  }

  .apela-gnc__card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    min-height: 118px !important;
  }

  .apela-gnc__link {
    min-height: 118px !important;
    grid-template-columns: 125px minmax(0, 1fr) !important;
  }

  .apela-gnc__image {
    min-height: 118px !important;
    height: 118px !important;
    object-fit: cover !important;
  }

  .apela-gnc__body {
    padding: 10px 12px 9px !important;
  }

  .apela-gnc__card-title {
    font-size: 15px !important;
    line-height: 1.28 !important;
    -webkit-line-clamp: 5 !important;
  }

  .apela-gnc__date {
    margin-top: 6px !important;
    font-size: 10px !important;
  }

  .apela-gnc__arrow {
    top: 63% !important;
    width: 24px !important;
    height: 50px !important;
    font-size: 38px !important;
    font-weight: 700 !important;
  }

  .apela-gnc__prev {
    left: 2px !important;
  }

  .apela-gnc__next {
    right: 2px !important;
  }
}

/* Mobile: 3 θέματα ορατά ταυτόχρονα */
@media (max-width: 980px) {

  .apela-gnc__card {
    flex: 0 0 33.333333% !important;
    min-width: 33.333333% !important;
    min-height: 145px !important;
  }

  .apela-gnc__link {
    display: block !important;
    min-height: 145px !important;
  }

  .apela-gnc__image-wrap {
    width: 100% !important;
  }

  .apela-gnc__image {
    width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    object-fit: cover !important;
  }

  .apela-gnc__body {
    padding: 7px 7px 6px !important;
  }

  .apela-gnc__card-title {
    font-size: 12px !important;
    line-height: 1.22 !important;
    -webkit-line-clamp: 3 !important;
  }

  .apela-gnc__date {
    margin-top: 4px !important;
    font-size: 9px !important;
  }

  .apela-gnc__arrow {
    top: 66% !important;
    width: 20px !important;
    height: 42px !important;
    font-size: 32px !important;
  }
}
