/* =========================================================
   PALLINI NEWS - ΓΕΝΙΚΕΣ ΜΙΚΡΕΣ ΔΙΟΡΘΩΣΕΙΣ
   Δεν πειράζει container / row / columns / sidebar layout
   ========================================================= */

/* Κρύβει συγκεκριμένα widgets */
.mg-widget#block-4,
.mg-widget#block-5,
.mg-widget#block-6 {
  display: none !important;
}

/* Κρύβει featured image ΜΟΝΟ μέσα στο single article */
body.single-post img.img-fluid.single-featured-image.wp-post-image {
  display: none !important;
}

/* Γενική γραμματοσειρά */
body {
  font-family: 'Roboto', sans-serif !important;
}


/* =========================================================
   INFO BOX - KIMDIS
   ========================================================= */

.kimdis-top-note {
  background: linear-gradient(135deg, #f2f6fb, #ffffff);
  border-left: 6px solid #1e73be;
  padding: 18px 20px;
  margin: 0 0 22px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  color: #333;
  box-sizing: border-box;
}

.kimdis-top-note h3 {
  margin: 0 0 10px;
  color: #1e73be;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 900;
}

.kimdis-top-note p {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.4;
}


/* =========================================================
   KIMDIS BUTTONS
   ========================================================= */

.kimdis-info-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin: 30px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.kimdis-info-actions a {
  display: inline-block !important;
  background: #1e73be !important;
  color: #ffffff !important;
  padding: 14px 20px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  font-family: 'Sofia Sans Extra Condensed', sans-serif !important;
  line-height: 1 !important;
  border: none !important;
  box-sizing: border-box !important;
}

.kimdis-info-actions a:hover {
  background: #155a96 !important;
  color: #ffffff !important;
}

.kimdis-info-actions a:visited {
  color: #ffffff !important;
}

@media (max-width: 700px) {
  .kimdis-info-actions a {
    width: 100% !important;
    text-align: center !important;
  }
}


/* =========================================================
   CATEGORY TITLE
   ========================================================= */

.category .mg-breadcrumb-title h1.title {
  font-size: 0 !important;
}

.category .mg-breadcrumb-title h1.title span {
  font-size: 36px !important;
}

.category .mg-breadcrumb-title h1.title::before {
  content: "Κατηγορία: ";
  font-size: 36px !important;
}


/* =========================================================
   PALLINI NEWS - CARDS ΜΟΝΟ ΓΙΑ ΚΙΝΗΤΑ
   Ισχύει μόνο σε λίστες άρθρων έως 767px
   Δεν επηρεάζει single άρθρο / πλαϊνό
   ========================================================= */

@media (max-width: 767px) {

  .mg-posts-sec-inner article.mg-posts-sec-post {
    display: block !important;
    width: 100% !important;
    padding: 12px !important;
    margin: 0 0 20px 0 !important;
    background: #ffffff !important;
    border: 1px solid #e4e4e4 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.10) !important;
    box-sizing: border-box !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .col-12.col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-post-thumb {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 8.5 !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #111 !important;
    border-radius: 5px !important;
    overflow: hidden !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-post-thumb.lazyload,
  .mg-posts-sec-inner article.mg-posts-sec-post .mg-post-thumb.lazyloading,
  .mg-posts-sec-inner article.mg-posts-sec-post .mg-post-thumb.lazyloaded {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .post-form {
    display: none !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-sec-top-post {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 0 0 0 !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-blog-category {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-blog-category a {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    word-break: break-word !important;
    background: #d79a25 !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post h4.entry-title,
  .mg-posts-sec-inner article.mg-posts-sec-post h4.entry-title.title {
    margin: 8px 0 !important;
    padding: 0 !important;
    line-height: 1.18 !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post h4.entry-title a {
    display: block !important;
    color: #111111 !important;
    font-size: 23px !important;
    line-height: 1.14 !important;
    font-weight: 900 !important;
    letter-spacing: -0.4px !important;
    text-decoration: none !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post h4.entry-title a:hover {
    color: #b40000 !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-blog-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 12px !important;
    margin: 8px 0 !important;
    color: #555555 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-blog-meta a,
  .mg-posts-sec-inner article.mg-posts-sec-post .mg-blog-meta span {
    color: #555555 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-blog-meta i {
    margin-right: 4px !important;
    color: #333333 !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-content {
    margin-top: 6px !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-content p {
    margin: 0 !important;
    color: #444444 !important;
    font-size: 16px !important;
    line-height: 1.42 !important;
    font-weight: 400 !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post:not(.has-post-thumbnail) {
    padding-top: 16px !important;
  }

  .mg-posts-sec-inner .navigation.pagination {
    margin-top: 10px !important;
  }
}


/* =========================================================
   ΠΟΛΥ ΣΤΕΝΑ ΚΙΝΗΤΑ
   ========================================================= */

@media (max-width: 420px) {

  .mg-posts-sec-inner article.mg-posts-sec-post {
    padding: 10px !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post h4.entry-title a {
    font-size: 21px !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-blog-category a {
    font-size: 9px !important;
    padding: 4px 6px !important;
  }

  .mg-posts-sec-inner article.mg-posts-sec-post .mg-content p {
    font-size: 15px !important;
  }
}






























/* =====================================================
   MOBILE PORTRAIT ONLY
   Να φαίνεται ολόκληρη η φωτογραφία στα post banners
   ===================================================== */

@media only screen and (max-width: 767px) and (orientation: portrait) {

  article.mg-posts-sec-post .mg-post-thumb.back-img,
  article.mg-posts-sec-post .mg-post-thumb.back-img.md,
  article.mg-posts-sec-post .mg-post-thumb.lazyloaded {
    width: 100% !important;

    /* Κρατάει αναλογία περίπου 1717x916 χωρίς κόψιμο */
    aspect-ratio: 1717 / 916 !important;

    height: auto !important;
    min-height: unset !important;
    max-height: none !important;

    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;

    background-color: #000 !important;

    display: block !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  article.mg-posts-sec-post .mg-post-thumb.back-img .link-div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

}



/* =========================================================
   PALLINI NEWS - MOBILE PORTRAIT ONLY
   Να φαίνεται ΟΛΟΚΛΗΡΗ η φωτογραφία στα άρθρα της λίστας
   Homepage / category cards / banners
   ========================================================= */

@media only screen and (max-width: 767px) and (orientation: portrait) {

  body.home article.mg-posts-sec-post,
  body.archive article.mg-posts-sec-post,
  body.category article.mg-posts-sec-post {
    display: block !important;
  }

  body.home article.mg-posts-sec-post > div[class*="col-"],
  body.archive article.mg-posts-sec-post > div[class*="col-"],
  body.category article.mg-posts-sec-post > div[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.home article.mg-posts-sec-post .mg-post-thumb.back-img,
  body.archive article.mg-posts-sec-post .mg-post-thumb.back-img,
  body.category article.mg-posts-sec-post .mg-post-thumb.back-img {
    width: 100% !important;

    /* Αυτό είναι το κρίσιμο: αναλογία της εικόνας 1717x916 */
    aspect-ratio: 1717 / 916 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;

    background-color: #000 !important;

    display: block !important;
    position: relative !important;
    overflow: hidden !important;
  }

  body.home article.mg-posts-sec-post .mg-post-thumb.back-img.md,
  body.archive article.mg-posts-sec-post .mg-post-thumb.back-img.md,
  body.category article.mg-posts-sec-post .mg-post-thumb.back-img.md {
    height: auto !important;
    min-height: 0 !important;
  }

  body.home article.mg-posts-sec-post .mg-post-thumb.back-img a.link-div,
  body.archive article.mg-posts-sec-post .mg-post-thumb.back-img a.link-div,
  body.category article.mg-posts-sec-post .mg-post-thumb.back-img a.link-div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

}

/* =========================================================
   FORCE VERSION - MOBILE PORTRAIT ONLY
   Για όλα τα post banners που είναι background-image
   ========================================================= */

@media only screen and (max-width: 767px) and (orientation: portrait) {

  article.mg-posts-sec-post {
    display: block !important;
  }

  article.mg-posts-sec-post > div[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  article.mg-posts-sec-post .mg-post-thumb,
  article.mg-posts-sec-post .mg-post-thumb.back-img,
  article.mg-posts-sec-post .mg-post-thumb.back-img.md,
  article.mg-posts-sec-post .mg-post-thumb.back-img.sm,
  article.mg-posts-sec-post .mg-post-thumb.back-img.lg {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    aspect-ratio: 1717 / 916 !important;

    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #000 !important;

    display: block !important;
    position: relative !important;
    overflow: hidden !important;
  }

}
