/*
Theme Name: Longevity Lab
Theme URI: https://example.com/longevity-lab
Author: OpenAI
Description: Editabilna block tema za edukativnu platformu o zdravlju, prevenciji i dugovječnosti.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: longevity-lab
*/

:root { --ll-radius: 24px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.ll-shell { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.ll-card { border-radius: var(--ll-radius); overflow: hidden; }
.ll-soft-shadow { box-shadow: 0 16px 50px rgba(44, 61, 45, .08); }
.ll-kicker { letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.ll-hero { min-height: 650px; }
.ll-hero-image { min-height: 560px; border-radius: 120px 0 0 120px; overflow: hidden; }
.ll-hero-image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.ll-topic-card { min-height: 220px; transition: transform .2s ease, box-shadow .2s ease; }
.ll-topic-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(44,61,45,.10); }
.ll-topic-icon { width: 70px; height: 70px; border-radius: 50%; display:flex; align-items:center; justify-content:center; font-size:2rem; margin-bottom:18px; }
.ll-article-card img { aspect-ratio: 16 / 10; object-fit: cover; width:100%; }
.ll-article-card { height:100%; }
.ll-tag { display:inline-block; border-radius:999px; padding:5px 10px; font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; }
.ll-newsletter { border-radius: 24px; }
.ll-nav-row { gap: 26px; }
.ll-footer-grid { gap: 48px; }
@media (max-width: 900px) {
  .ll-hero { min-height: auto; }
  .ll-hero-image { min-height: 420px; border-radius: 60px 0 0 60px; }
  .ll-hero-image img { min-height: 420px; }
  .ll-nav-desktop { display:none !important; }
}
@media (max-width: 600px) {
  .ll-shell { padding-inline: 18px; }
  .ll-hero-image { min-height: 320px; border-radius: 36px; }
  .ll-hero-image img { min-height: 320px; }
  .ll-topic-card { min-height: auto; }
}


/* Layout fixes: prevent narrow cards and broken words */
.ll-articles-section {
  width: min(100% - 48px, 1180px);
  max-width: 1180px;
  margin-inline: auto;
}
.ll-articles-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}
.ll-articles-grid > .wp-block-column {
  min-width: 0;
  width: auto;
  margin: 0;
}
.ll-article-card,
.ll-article-card .wp-block-group {
  min-width: 0;
}
.ll-article-card h3,
.ll-article-card p,
.ll-article-card a,
.ll-tag {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
  white-space: normal;
}
.ll-article-card h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.65rem) !important;
  line-height: 1.2;
}
.ll-tag {
  max-width: 100%;
  display: inline-block;
  line-height: 1.25;
}

/* Keep all multi-column sections usable in the editor and frontend */
.wp-block-columns.alignwide,
.wp-block-columns.ll-wide-columns {
  width: 100%;
  max-width: 1180px;
}

@media (max-width: 1050px) {
  .ll-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .ll-articles-section { width: min(100% - 36px, 1180px); }
  .ll-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ll-article-card h3 { font-size: 1.45rem !important; }
}
