.boe,
.boe *,
.boe *::before,
.boe *::after {
  box-sizing: border-box;
}

.boe {
  --boe-bg: #09121a;
  --boe-accent: #fe5300;
  --boe-text: #ffffff;
  --boe-muted: #a3adb7;
  --boe-hairline: rgba(255, 255, 255, 0.1);

  position: relative;
  display: grid;
  grid-template-columns: 100%;
  grid-template-areas:
    "brand"
    "photo"
    "story";
  margin: 0 0 1.5rem;
  overflow: hidden;
  background: var(--boe-bg);
  color: var(--boe-text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.boe a {
  color: inherit;
  text-decoration: none;
}

.boe a:focus-visible {
  outline: 2px solid var(--boe-accent);
  outline-offset: -2px;
}

.boe-brand {
  grid-area: brand;
  position: relative;
  margin: 0;
  font: inherit;
  line-height: 0;
}

.boe-brand::before {
  content: "";
  display: block;
  padding-top: 33.333%; /* 3:1 */
}

.boe-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--boe-bg) 0, rgba(9, 18, 26, 0) 22%);
  pointer-events: none;
}

.boe-brand__link {
  position: absolute;
  inset: 0;
  display: block;
}

.boe-brand__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 53% 48%;
}

.boe-story {
  grid-area: story;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1rem 1rem 1.25rem;
}

.boe-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.boe-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.boe-cat::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--boe-accent);
}

.boe a.boe-cat:hover {
  color: var(--boe-accent);
}

.boe-date {
  color: var(--boe-muted);
  font-weight: 500;
}

.boe-title {
  margin: 0.5rem 0 0;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--boe-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.boe-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.boe-descr {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--boe-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.boe-author {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--boe-text);
}

.boe-photo {
  grid-area: photo;
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0;
}

.boe-photo::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}


.boe-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--boe-bg) 0, rgba(9, 18, 26, 0) 16%),
    linear-gradient(to top, var(--boe-bg) 0, rgba(9, 18, 26, 0) 40%);
  pointer-events: none;
}

.boe-photo__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  .boe-photo:hover .boe-photo__img {
    transform: scale(1.04);
  }
}

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


@media (min-width: 768px) {
  .boe {
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "photo story";
  }

  .boe-brand::before {
    padding-top: 25%; /* 4:1 */
  }

  .boe-photo {
    min-height: 220px;
  }

  .boe-photo::before {
    display: none;
  }

  .boe-photo::after {
    background:
      linear-gradient(to bottom, var(--boe-bg) 0, rgba(9, 18, 26, 0) 14%),
      linear-gradient(to left, var(--boe-bg) 0, rgba(9, 18, 26, 0) 30%);
  }

  .boe-story {
    padding: 1.5rem 1.75rem;
  }

  .boe-title {
    font-size: 1.375rem;
  }
}


@media (min-width: 1200px) {
  .boe {
    grid-template-columns: 40% minmax(0, 1fr) 30%;
    grid-template-areas: "brand story photo";
  }

  .boe-brand::before {
    padding-top: 47.6%;
  }

  .boe-brand::after {
    background: linear-gradient(to left, var(--boe-bg) 0, rgba(9, 18, 26, 0) 14%);
  }

  .boe-photo {
    min-height: 0;
  }

  .boe-photo::after {
    background: linear-gradient(to right, var(--boe-bg) 0, rgba(9, 18, 26, 0) 30%);
  }

  .boe-story {
    padding: 1.25rem 1.5rem;
  }

  .boe-title {
    font-size: 1.25rem;
  }

  /* Στα 1200–1399 η λωρίδα είναι χαμηλή — κρύβουμε την περίληψη */
  .boe-descr {
    display: none;
  }
}

@media (min-width: 1400px) {
  .boe-story {
    padding: 1.5rem 2rem;
  }

  .boe-title {
    font-size: 1.4375rem;
  }

  .boe-descr {
    display: -webkit-box;
  }
}
