/* =========================================================
   Latest Author Category Post - Styles (v1.4.2)
   ========================================================= */

/* Custom 300x300 style to match the user's request */
.lacp-box.custom-300x300 {
    width: 300px;
    height: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Brand variables */
:root{
  --lacp-accent: #E74C3C;         /* default red for styles 1/2 */
  --lacp-text:   #111111;
  --lacp-muted:  #6B7280;
  --lacp-border: rgba(0,0,0,0.10);
  --lacp-shadow: 0 6px 16px rgba(0,0,0,0.06);

  /* Style 3 tuning */
  --lacp-style3-title-max: 55%;   /* μέγιστο πλάτος τίτλου ώστε να μην “μπαίνει” στην εικόνα */

  /* Site brand red (όπως στο navbar) */
  --brand-red: #F15A29;
  --brand-red-hover: #E0471F;
}

/* ========== COMMON CARD ========== */
.lacp-box{
  border-radius: 16px;
  padding: 22px 20px;             /* κάποια styles προσθέτουν extra κάτω */
  margin: 20px 0;
  background: #ffffff;
  box-shadow: var(--lacp-shadow);
  position: relative;
  overflow: hidden;                /* ώστε να “κόβεται” σωστά το ::before/εικόνα */
  display: flex;
  gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.lacp-box:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.lacp-header{
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #E74C3C;
}

.lacp-author-avatar img{
  border-radius: 50% !important;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.lacp-author-name{ font-weight: 700; }
.lacp-author-name a{
  color: var(--lacp-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lacp-author-name a:hover{ border-color: rgba(17,17,17,.3); }

.lacp-title{
  margin: 6px 0 2px;
  font-weight: 800;
  line-height: 1.35;
}
.lacp-title a{
  color: var(--lacp-accent);
  text-decoration: none;
}
.lacp-title a:hover{ text-decoration: underline; }

.lacp-date{
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: .75rem;
  color: var(--lacp-muted);
  font-weight: 600;
}

/* =========================================================
   STYLE 1 — MAGAZINE
   ========================================================= */
.lacp-box.style1{
  position: relative;              /* για το ::before */
  flex-direction: column;          /* κάθετη διάταξη */
  align-items: flex-start;
  text-align: left;
  background:#fff;
  border: 1px solid #e9e9e9;
  border-radius:16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  padding: 24px 22px 48px;         /* extra bottom για ημερομηνία */
  gap: 10px;
}

/* κάθετη μπάρα (ρύθμισε πλάτος κατά βούληση) */
.lacp-box.style1::before{
  content:"";
  position:absolute; left:0; top:0; bottom:0;
  width:24px;
  background: linear-gradient(180deg, rgba(231,76,60,.90) 0%, rgba(231,76,60,.35) 100%);
  border-radius:16px 0 0 16px;
  pointer-events:none;
}

.lacp-box.style1 .lacp-header{
  width: 100%;
  font-size: .92rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lacp-border);
  padding-left: 20px;
  margin-left: 10px;
}

/* avatar + author name */
.lacp-box.style1 .lacp-author-avatar{
  display: inline-block;
  margin: 0 10px 0 40px;
  vertical-align: middle;
}
.lacp-box.style1 .lacp-author-avatar img{
  width: 120px; height: 120px;
  border: 0; box-shadow: none;
}
.lacp-box.style1 .lacp-author-name{
  display: inline-block;
  vertical-align: middle;
  font-size: 1rem;
  margin: 0;
  padding-left: 25px;
  color:#ab1f1f;
}

.lacp-box.style1 .lacp-title{
  font-size: 1.32rem;
  line-height: 1.35;
  margin-top: 8px;
  max-width: 95%;
  padding-left: 25px;
}
.lacp-box.style1 .lacp-title a{ color: #E74C3C; }
.lacp-box.style1 .lacp-title a:hover{ color: #C0392B !important; }

/* =========================================================
   STYLE 2 — CENTERED
   ========================================================= */
.lacp-box.style2{
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 0;
  border-top: 5px solid #E74C3C;
  border-radius: 12px;
  padding: 22px 20px 44px;
  background-color: #fff;
  box-shadow: none;
}
.lacp-box.style2 .lacp-header{
  width: 100%;
  color: #E74C3C;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
}
.lacp-box.style2 .lacp-author-avatar{ margin-bottom: 10px; }
.lacp-box.style2 .lacp-author-avatar img{
  width: 128px; height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lacp-accent);
  box-shadow: 0 12px 22px rgba(226,67,67,.18);
}
.lacp-box.style2 .lacp-author-name{
  color: #0F172A;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.lacp-box.style2 .lacp-title{
  margin: 6px 0 2px;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #0F172A;
}
.lacp-box.style2 .lacp-title a{ color:#0F172A; }
/* (υπήρχε παλιότερα "hover" selector λάθος — το αφήνω ως είχε για συμβατότητα) */
.lacp-box.style2 .lacp-title hover{ color: #E74C3C; }
.lacp-box.style2 .lacp-date{ right: 12px; bottom: 12px; }

/* =========================================================
   STYLE 3 — EDITORIAL RIGHT IMAGE (Grid, dynamic)
   - Top line: Κατηγορία + Όνομα (μία γραμμή)
   - Τίτλος στο κέντρο, επάνω
   - Avatar BW, χωρίς πλαίσιο, blend με το φόντο
   - Η εικόνα ΕΦΑΠΤΕΤΑΙ δεξιά & κάτω στο πλαίσιο της κάρτας
   - Ημερομηνία: κρυφή μόνο στο style 3
   ========================================================= */
:root{
  --lacp-card-bg: #f1f8f7;     /* φόντο κάρτας */
  --lacp-style3-title-max: 92%;
}

.lacp-box.style3{
  display: grid;
  grid-template-columns: 1fr minmax(180px, 42%);  /* κείμενο | εικόνα */
  grid-template-rows: auto auto auto;             /* topline | title | media */
  gap: 6px 16px;
  position: relative;
  min-height: 0;
  padding: 18px 20px 22px;                        /* <-- κράτα sync με τα vars πιο κάτω */
  background: var(--lacp-card-bg);
  margin: auto;
	margin-top: 1em;	

  /* vars για «κόλλημα» στα άκρα */
  --card-pad-x: 20px;
  --card-pad-bottom: 22px;
  --card-radius: 16px;
}

/* Topline */
.lacp-box.style3 .lacp-topline{
  grid-column: 1 / -1; grid-row: 1;
  display:flex; align-items:center; gap:12px; z-index:2;
}
.lacp-box.style3 .lacp-topline .lacp-header{
  color: var(--brand-red); text-transform:none; letter-spacing:0; font-weight:800;
}
.lacp-box.style3 .lacp-topline .lacp-author-inline a{
  color: var(--lacp-text); text-decoration:none; border-bottom:1px solid transparent;
  font-size: 0.9rem;
  line-height: 1.1;
}
.lacp-box.style3 .lacp-topline .lacp-author-inline a:hover{
  color: var(--brand-red); border-color: currentColor;
}

/* Title */
.lacp-box.style3 .lacp-title{
	grid-column: 1 / -1; 
	grid-row: 2;
  	text-align:left; 
	z-index:2; 
	margin-top: 1em !important;
  	font-size: 1em;
}


.lacp-box.style3 .lacp-title a{ color:#111; text-decoration:none; }
.lacp-box.style3 .lacp-title a:hover{ color: var(--brand-red); }
.lacp-box.style3 .lacp-title-inner{
  max-width: var(--lacp-style3-title-max);
  margin: 4px auto 0; line-height: 1.22;
}

/* MEDIA — εφαπτομένη δεξιά & κάτω στο πλαίσιο */
.lacp-box.style3 .lacp-media{
  grid-column: 2; grid-row: 3;
  align-self: end;                 /* κάθεται χαμηλά στη σειρά της */
  justify-self: end;               /* δεξιά */
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  transform-origin: bottom right;
  transform: scale(0.8);
	  margin-top: -25px;
	
  /* «Ακυρώνει» το εσωτερικό padding της κάρτας για να κολλήσει στα άκρα */
  margin-right: calc(-1 * var(--card-pad-x));
  margin-bottom: calc(-1 * var(--card-pad-bottom));

  /* radius ώστε να συνεχίζει αρμονικά με της κάρτας 
  border-radius: 8px var(--card-radius) var(--card-radius) 8px;
  overflow: hidden;
*/
  /* χωρίς πλαίσιο/σκιά για καθαρό κόλλημα */
  border: 0;
  box-shadow: none;
  background: transparent;
  pointer-events: none;
}

/* Εικόνα: BW + multiply, με fade ΜΟΝΟ προς τα δεξιά (όχι κάτω) */
.lacp-box.style3 .lacp-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 20%;
  filter: grayscale(100%) contrast(1.06) brightness(0.98);
  mix-blend-mode: multiply;        /* λευκά -> ίδιο με το φόντο */
  opacity: 1;

  /* “Χάνεται” μόνο στη δεξιά γωνία 
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent 100%);
  mask-image:         linear-gradient(to right, #000 0%, #000 88%, transparent 100%);

  -webkit-mask-composite: source-over;
  mask-composite: add;
} */

/* Κατάργηση οποιουδήποτε overlay/fade layer */
.lacp-box.style3 .lacp-media::after{ display: none !important; }

/* Ημερομηνία κρυφή */
.lacp-box.style3 .lacp-date{ display: none !important; }

/* --- Cutout mode (PNG με άλφα): καθαρό PNG, εφάπτεται κι εδώ στα άκρα --- */
.lacp-box.style3.cutout .lacp-media{
  margin-right: calc(-1 * var(--card-pad-x));
  margin-bottom: calc(-1 * var(--card-pad-bottom));
  border: 0; box-shadow: none; background: transparent; overflow: visible;
  border-radius: 0 var(--card-radius) var(--card-radius) 0; /* συνεχίζει τη δεξιά γωνία της κάρτας */
}
.lacp-box.style3.cutout .lacp-media::after{ display: none; }
.lacp-box.style3.cutout .lacp-media img{
  width: 100%; height: auto; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.18)) saturate(1.02) contrast(1.03) grayscale(0%);
  mix-blend-mode: normal;  /* καμία ανάμειξη για PNG */
  opacity: 1;
}

/* Responsive */
@media (max-width: 520px){
  .lacp-box.style3{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .lacp-box.style3 .lacp-media{
    grid-column: 1; grid-row: 3;
    width: 72%; aspect-ratio: 3 / 4;
    justify-self: center; align-self: end;
    /* δεν χρειάζονται αρνητικά margins σε μονή στήλη */
    margin-right: 0; margin-bottom: 0;
    border-radius: 10px; overflow: hidden;
  }
  .lacp-box.style3 .lacp-media img{
    -webkit-mask-image: none; mask-image: none;  /* χωρίς δεξί fade στο mobile */
  }
  .lacp-box.style3 .lacp-title-inner{ max-width: 78%; }
}



/* ===== Utilities ===== */
.lacp-line-clamp-2{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}