/*
Theme Name: Dimokratiki 2026V2
Theme URI: http://dimokratiki.gr
Author: Future Media / L. Theodossiadis / Damianos Athanasiou
Author URI: https://futuremedia.gr
Description: A customised theme for the Dimokratiki newspaper
Version: 2.0.0
License: BSD 3-Clause License
License URI: https://opensource.org/licenses/BSD-3-Clause
Text Domain: fmedia
*/
.icon-twitter-button::before{content:none !important;}
.icon-twitter-button{display:inline-block !important;width:40px !important;height:40px !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='8' fill='%23454545'/%3E%3Cpath fill='white' transform='translate(8,8) scale(1)' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.746l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.911-5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:center !important;background-size:100% !important;border-radius:0 !important;font-family:none !important;vertical-align:-2px !important;}
.twitter:hover .icon-twitter-button{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='8' fill='%2355acee'/%3E%3Cpath fill='white' transform='translate(8,8) scale(1)' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.746l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.911-5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") !important;}
.icon-facebook{position:relative !important;top:2px !important;}
.icon-twitter::before{content:none !important;}
.icon-twitter{display:inline-block !important;width:1em !important;height:1em !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1 2 22 20' fill='white'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.746l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.911-5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:center !important;background-size:100% !important;font-family:none !important;position:relative !important;top:4px !important;}
.author-desc .icon-facebook::before{content:none !important;}
.author-desc .icon-facebook{display:inline-block !important;width:25px !important;height:25px !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%233b5998'/%3E%3Cpath fill='white' d='M13.397 20.997v-8.196h2.765l.411-3.209h-3.176V7.548c0-.926.258-1.56 1.587-1.56h1.684V3.127A22.336 22.336 0 0 0 14.201 3c-2.444 0-4.122 1.492-4.122 4.231v2.355H7.332v3.209h2.753v8.202h3.312z'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:center !important;background-size:100% !important;position:relative !important;top:4px !important;font-family:none !important;}
.author-desc .icon-twitter{width:25px !important;height:25px !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%2355acee'/%3E%3Cpath fill='white' transform='translate(9,9) scale(0.9167)' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.746l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.911-5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") !important;top:4px !important;}
.author-desc .icon-google{display:none !important;}
.author-desc .icon-instagram::before{content:none !important;}
.author-desc .icon-instagram{display:inline-block !important;width:25px !important;height:25px !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23E1306C'/%3E%3Cpath fill='white' d='M20 12c-2.2 0-2.5 0-3.3.1-2.9.1-4.5 1.7-4.6 4.6C12 17.5 12 17.8 12 20s0 2.5.1 3.3c.1 2.9 1.7 4.5 4.6 4.6.8.1 1.1.1 3.3.1s2.5 0 3.3-.1c2.9-.1 4.5-1.7 4.6-4.6.1-.8.1-1.1.1-3.3s0-2.5-.1-3.3c-.1-2.9-1.7-4.5-4.6-4.6C22.5 12 22.2 12 20 12zm0 1.8c2.1 0 2.4 0 3.2.1 2 .1 3 1.1 3.1 3.1.1.8.1 1.1.1 3.2s0 2.4-.1 3.2c-.1 2-1.1 3-3.1 3.1-.8.1-1.1.1-3.2.1s-2.4 0-3.2-.1c-2-.1-3-1.1-3.1-3.1-.1-.8-.1-1.1-.1-3.2s0-2.4.1-3.2c.1-2 1.1-3 3.1-3.1.8-.1 1.1-.1 3.2-.1zm0 3a3.2 3.2 0 1 0 0 6.4 3.2 3.2 0 0 0 0-6.4zm0 5.2a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm4.1-6.1a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5z'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:center !important;background-size:100% !important;position:relative !important;top:4px !important;font-family:none !important;}
.author-desc .icon-linkedin::before{content:none !important;}
.author-desc .icon-linkedin{display:inline-block !important;width:25px !important;height:25px !important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%230077B5'/%3E%3Cpath fill='white' d='M13 14.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-1.5 2h3v11h-3zm5 0h3v1.5c.5-.9 1.7-1.7 3.5-1.7 3.5 0 4 2.3 4 5.3V27.5h-3v-5.3c0-1.3 0-2.9-1.8-2.9s-2.2 1.4-2.2 2.8v5.4h-3z'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:center !important;background-size:100% !important;position:relative !important;top:4px !important;font-family:none !important;}

@media screen and (max-width: 959px) {
   .wea-current { flex-wrap: wrap !important; align-items: center !important; }
   .wea-temp { flex-shrink: 0 !important; }
   .wea-description { word-break: normal !important; overflow-wrap: normal !important; hyphens: none !important; font-size: 20px !important; }
}

/* ── Weather widget desktop fix (≥960px) ── */
@media screen and (min-width: 960px) {
   .wea-current {
      display: flex !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
      gap: 14px !important;            /* σταθερό κενό θερμοκρασίας–περιγραφής, δεν κολλάνε ποτέ */
   }
   .wea-temp {
      flex: 0 0 auto !important;       /* η θερμοκρασία δεν συμπιέζεται */
      line-height: 1 !important;
   }
   .wea-description {
      flex: 0 1 auto !important;
      min-width: 0 !important;         /* επιτρέπει σωστό wrap μέσα στο flex */
      margin: 0 !important;            /* μηδενίζει αρνητικά margins που προκαλούν το overlap */
      white-space: normal !important;  /* σπάει στο κενό, ΟΧΙ μονογραμμή */
      word-break: normal !important;   /* ακυρώνει το break-word */
      overflow-wrap: normal !important;/* ακυρώνει το anywhere */
      hyphens: none !important;        /* καμία παύλα */
      -webkit-hyphens: none !important;
      line-height: 1.2 !important;
   }
}

@media print {
   .main-footer, footer,
   .post-sidebar, .sidebar,
   .post-meta,
   .share, [class*="share"],
   .das-snapshot-box,
   .comments-area, #comments,
   [class*="related"], [class*="widget"],
   [class*="ad-"], [class*="-ad"],
   [class*="popup"], [class*="cookies"],
   nav, .navigation,
   .brand-date, .cdate,
   .site-search, .menu-toggle,
   .site-header .navigation {
       display: none !important;
   }

   .entry-content > div:last-of-type,
   .entry-content > div:last-child {
       display: none !important;
   }

   .site-header {
       position: relative !important;
       border-bottom: 1px solid #111 !important;
   }
   .brand { display: flex !important; }
   .brand-logo { display: flex !important; }
   .brand-logo a { margin: 0 auto !important; height: 4rem !important; }
   .brand-logo img {
       max-width: 200px !important;
       max-height: 60px !important;
       background: transparent !important;
   }

   .main-image {
       position: static !important;
       height: auto !important;
       padding: 0 !important;
   }
   .main-image::before { display: none !important; }
   .main-image img, .main-image > * {
       position: static !important;
       width: auto !important;
       height: auto !important;
       max-width: 40% !important;
       max-height: 180px !important;
       object-fit: contain !important;
       display: block !important;
       margin: 6px auto !important;
   }

   p {
       margin-top: 0 !important;
       margin-bottom: 2px !important;
       padding: 0 !important;
   }
   .entry-content p,
   .entry-content > p,
   .freetext p {
       margin: 0 0 2px 0 !important;
       padding: 0 !important;
       max-width: 100% !important;
       width: 100% !important;
   }
   .entry-content br, .freetext br {
       content: "" !important;
       display: block !important;
       margin: 0 !important;
       padding: 0 !important;
       line-height: 0 !important;
       height: 0 !important;
   }

   .entry-content img, .freetext img {
       max-width: 40% !important;
       max-height: 180px !important;
       object-fit: contain !important;
       display: block !important;
       margin: 6px auto !important;
   }

   body, .main-content, .post-container, .post-inner, .entry-content {
       width: 100% !important;
       max-width: 100% !important;
       margin: 0 !important;
       padding: 0 !important;
       float: none !important;
   }
}

/* Agenda social icons - final alignment */

.agenda .agenda-social-wrap {
	padding: 1rem 1rem 0.75rem 1rem !important;
}

.agenda .social-inner {
	display: flex !important;
	align-items: flex-start !important;
	justify-content: center !important;
	gap: 18px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	line-height: 0 !important;
}

.agenda .social-inner a {
	width: 40px !important;
	height: 40px !important;
	display: inline-flex !important;
	align-items: flex-start !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
}

/* Same 40x40 outer box for all icons */
.agenda .social-inner a > i.social {
	width: 40px !important;
	height: 40px !important;
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 40px !important;
	font-size: 40px !important;
	position: relative !important;
	top: 0 !important;
	vertical-align: top !important;
}

/* X uses background SVG */
.agenda .social-inner a.twitter > i.icon-twitter-button {
	width: 40px !important;
	height: 40px !important;
	background-size: 40px 40px !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

/* Instagram final size/position correction */
.agenda .social-inner a.instagram > i.icon-instagram {
	width: 40px !important;
	height: 40px !important;
	font-size: 40px !important;
	line-height: 40px !important;
	top: -5px !important;
}

/* Correct order */
.agenda .social-inner a.facebook {
	order: 1 !important;
}

.agenda .social-inner a.instagram {
	order: 2 !important;
}

.agenda .social-inner a.twitter {
	order: 3 !important;
}

.agenda .social-inner a.youtube {
	order: 4 !important;
}

/* Namedays */
.agenda .agenda-namedays {
	padding: 1rem 1rem 0 1rem !important;
}

/* === Δημο-Κρίσεις homepage block: final live implementation === */
.home #dimokriseis.dimokriseis {
  position: relative;
  background: #f4f8fa;
  border-radius: 4px;
  padding: 1rem 1.5rem;
  margin-bottom: 3rem;
}

.home #dimokriseis .section-heading {
  margin-bottom: 1rem;
}

.home #dimokriseis .section-footer {
  border: none;
  padding: 0.5rem;
  margin-top: 1rem;
  background: #edf3f6;
}

.home #dimokriseis .dimokriseis-slider {
  width: 100%;
}

.home #dimokriseis .swiper-slide {
  height: 190px;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}

.home #dimokriseis .card-img-overlay {
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}

.home #dimokriseis .card-img-overlay .card-title {
  font-size: 1.15rem;
  line-height: 1.12;
  margin-bottom: 0;
  font-weight: 600;
}

.home #dimokriseis .card-img-overlay a {
  color: #fafafa;
}

.home #dimokriseis .card-img-overlay a:hover {
  color: gold;
}

.home #dimokriseis .dimokriseis-button-next {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  z-index: 5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eee;
  background-color: rgba(52,58,64,0.7);
  border-radius: 50%;
}

.home #dimokriseis .dimokriseis-button-next:after {
  content: "";
  font-family: "icons-2021";
  font-size: 32px;
  line-height: 1;
}

.home #dimokriseis .dimokriseis-button-next.swiper-button-disabled,
.home #dimokriseis .dimokriseis-button-next.swiper-button-lock {
  opacity: 0.25;
  cursor: auto;
  pointer-events: none;
}

@media screen and (max-width: 640px) {
  .home #dimokriseis.dimokriseis {
    padding: 1rem;
  }

  .home #dimokriseis .swiper-slide {
    height: 180px;
  }
}
/* === / Δημο-Κρίσεις homepage block === */


/* === Single Exofilo page === */
article.single-exofilo {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

article.single-exofilo .page-header {
  text-align: center;
  margin: 0 auto 1.5rem;
  padding-top: 0.5rem;
}

article.single-exofilo .entry-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

article.single-exofilo .post-meta {
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.95rem;
}

article.single-exofilo .single-exofilo-cover {
  text-align: center;
  margin: 0 auto 2.5rem;
}

article.single-exofilo .single-exofilo-cover a {
  display: inline-block;
  line-height: 0;
}

article.single-exofilo .single-exofilo-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
  height: auto;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0,0,0,0.18);
}

@media screen and (max-width: 640px) {
  article.single-exofilo {
    padding: 0 0.75rem 2rem;
  }

  article.single-exofilo .page-header {
    margin-bottom: 1rem;
  }

  article.single-exofilo .entry-title {
    font-size: 2rem;
  }

  article.single-exofilo .single-exofilo-image {
    width: 100%;
    max-height: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
  }
}
/* === / Single Exofilo page === */
