/* ===================================
   Part: Section - Noticias (News)
   ================================== */
.news-section {
    padding: var(--space-xxl) 0;
    background-color: var(--color-white); /* Back to white */
    position: relative;
    overflow: hidden;
}

.news-container {
    max-width: 1000px; /* Narrower container for a tighter look */
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.news-header {
    margin-bottom: var(--space-lg);
    display: block; /* Use block for simple centering of children */
}

.news-header .section-title-es,
.news-header .section-title-sub {
    color: var(--color-dark) !important; /* Back to dark text */
}
/* ============================================
   NOTICIAS ブロック（wp-block-latest-posts）
   ============================================ */

/* ── グリッドコンテナ ─────────────────── */
ul.news-latest.wp-block-latest-posts {
  font-size: initial !important;
  list-style: none !important;
  padding: 0 var(--space-md, 24px) !important;
  margin: 0 auto !important;
  max-width: 1000px;
  display: grid !important;
  grid-template-columns: 1.4fr 1fr !important;
  grid-template-rows: repeat(4, 1fr) !important;
  gap: 10px !important;
  min-height: 380px;
}

/* ── 1件目：featured カード（左大） ──── */
ul.news-latest > li:first-child {
  grid-column: 1;
  grid-row: 1 / span 4;
  background: var(--color-dark, #1a1a1a);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
ul.news-latest > li:first-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* featured：アイキャッチ画像 */
ul.news-latest > li:first-child .wp-block-latest-posts__featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
ul.news-latest > li:first-child .wp-block-latest-posts__featured-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
}

/* featured：タイトル */
ul.news-latest > li:first-child .wp-block-latest-posts__post-title {
  color: var(--color-white, #fff);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1.3;
  padding: 15px 15px 4px;
  text-decoration: none;
  display: block;
}

/* featured：日付 */
ul.news-latest > li:first-child time {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 0 15px 15px;
  display: block;
}

/* ── 2〜5件目：サブカード（右列） ──── */
ul.news-latest > li:not(:first-child) {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: var(--color-gray-light, #f5f5f5);
  gap: 12px;
  padding: 6px 10px;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
ul.news-latest > li:not(:first-child):hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* サブカード：アイキャッチ画像 */
ul.news-latest > li:not(:first-child) .wp-block-latest-posts__featured-image {
  width: 90px;
  height: 65px;
  flex-shrink: 0;
  overflow: hidden;
}
ul.news-latest > li:not(:first-child) .wp-block-latest-posts__featured-image img {
  width: 90px !important;
  height: 65px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
}

/* サブカード：タイトル */
ul.news-latest > li:not(:first-child) .wp-block-latest-posts__post-title {
  color: var(--color-dark, #1a1a1a);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1.3;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* サブカード：日付 */
ul.news-latest > li:not(:first-child) time {
  color: var(--color-gray, #888);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-heading);
  display: block;
  margin-top: 3px;
}

/* ── レスポンシブ（1100px以下）──── */
@media (max-width: 1100px) {
  ul.news-latest.wp-block-latest-posts {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    min-height: auto;
    gap: 12px !important;
  }
  ul.news-latest > li:first-child {
    grid-row: span 1;
    flex-direction: row !important;
    height: 100px;
    background: var(--color-gray-light, #f5f5f5);
  }
  ul.news-latest > li:first-child .wp-block-latest-posts__featured-image {
    width: 140px;
    height: 80px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  ul.news-latest > li:first-child .wp-block-latest-posts__post-title {
    color: var(--color-dark, #1a1a1a) !important;
    font-size: 0.9rem;
    padding: 0 10px 0 0;
  }
  ul.news-latest > li:first-child time {
    color: var(--color-gray, #888);
    padding: 3px 10px 0 0;
  }
  ul.news-latest > li:not(:first-child) {
    height: 85px;
  }
  ul.news-latest > li:not(:first-child) .wp-block-latest-posts__featured-image {
    width: 120px;
    height: 70px;
  }
  ul.news-latest > li:not(:first-child) .wp-block-latest-posts__featured-image img {
    width: 120px !important;
    height: 70px !important;
  }
}

@media (max-width: 768px) {
  ul.news-latest.wp-block-latest-posts {
    padding: 0 16px !important;
    gap: 10px !important;
  }
  ul.news-latest > li {
    height: 75px !important;
  }
  ul.news-latest > li .wp-block-latest-posts__featured-image {
    width: 90px !important;
    height: 60px !important;
    aspect-ratio: auto !important;
  }
  ul.news-latest > li .wp-block-latest-posts__featured-image img {
    width: 90px !important;
    height: 60px !important;
  }
  ul.news-latest > li .wp-block-latest-posts__post-title {
    font-size: 0.82rem !important;
  }
}
.news-latest ul {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr !important;
  gap: 10px;
}