/* ═══════════════════════════════════════════════════
   modular-twocolumns.css
   Two-column modular section for Grav / Oxygen theme
   ═══════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.modular-twocolumns {
  padding: 1rem 0;
}

.modular-twocolumns .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

/* ── Two-column grid ── */
.twocolumns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
}


/* ── Column headers ── */
.column-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
  opacity: 0.85;
}

/* ── Page cards stack ── */
.page-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Individual card ── */
.page-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: start;
}


/* ── Thumbnail ── */
.card-thumb-link {
  display: block;
}

.card-thumb {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 4px;
  background: #e9ecef;
  flex-shrink: 0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.card-thumb-link:hover .card-thumb img {
  transform: scale(1.05);
}


/* ── Card body ── */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

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

.card-date {
  font-size: 1rem;
}

.card-abstract {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0.2rem 0 0.4rem;
}

.card-readmore {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  align-self: flex-start;
}

/* ── Divider between stacked cards ── */
.page-cards .page-card + .page-card {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Empty state ── */
.no-pages {
  font-size: 0.9rem;
  opacity: 0.6;
  font-style: italic;
}

/* ── Responsive ── */ 
@media (width < 1280px) {
  .column-title {
    font-size: 1.5rem;
  }
  .card-title {
    font-size: 1.2rem;
  }
  .card-thumb {
    width: 100%;
  }
  .card-date {
    font-size: 0.7rem;
  }
  .card-abstract, .card-readmore {
    font-size: 0.9rem;
  }
}
@media (width < 768px) {
  .twocolumns-grid {
    grid-template-columns: 1fr!important;
  }
}
@media (width < 480px) {
  .twocolumns-left,.twocolumns-right {
    width: 90vw;
  }
  .page-card {
    grid-template-columns: 100px 1fr!important;
  }
  .card-thumb {
    width: 100px;
    height: 150px;
  }
}