/* index.html — homepage-style content blocks */

.index-page-main {
  --index-pale-blue: #f0f7ff;
  --index-line: rgba(3, 19, 35, 0.15);
  --index-text: #2b2f33;
  --index-link-blue: #5d9cec;
}

.index-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.index-section-title h2 {
  flex-shrink: 0;
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--bs-heading-color);
}

.index-section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--index-line);
  min-width: 2rem;
}

/* Featured Article — split card */
.index-fa-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(3, 19, 35, 0.08);
}

@media (min-width: 768px) {
  .index-fa-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
  }
}

.index-fa-media {
  flex: 1 1 45%;
  min-height: 200px;
  position: relative;
}

.index-fa-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.index-fa-body {
  flex: 1 1 55%;
  padding: 1.75rem 1.5rem;
  color: var(--index-text);
  background-color: #f2f1ef;
  background-image:
    radial-gradient(ellipse 100% 80% at 20% 10%, rgba(255, 255, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(0, 0, 0, 0.04), transparent 50%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
}

.index-fa-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  margin-bottom: 0.75rem;
}

.index-fa-body p {
  margin-bottom: 0;
  line-height: 1.65;
  font-size: 0.9375rem;
}

.index-fa-readmore {
  color: var(--index-link-blue);
  font-weight: 500;
  text-decoration: none;
}

.index-fa-readmore:hover {
  text-decoration: underline;
}

.index-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(3, 19, 35, 0.08);
}

.index-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.index-author__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5a7a9a, #3d556d);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.index-author__name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bs-heading-color);
  font-size: 0.95rem;
}

.index-author__role {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 400;
  color: #7a8288;
  margin: 0;
}

/* On This Day / In the News */
.index-news-pair {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .index-news-pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.index-news-card {
  background: var(--index-pale-blue);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  color: var(--index-text);
}

.index-news-card__grid {
  display: grid;
  gap: 1rem 1.25rem;
}

@media (min-width: 576px) {
  .index-news-card__grid {
    grid-template-columns: 1fr minmax(120px, 150px);
    align-items: start;
  }
}

.index-news-card__thumb img {
  width: 100%;
  height: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  margin-inline: auto;
  background: #d1d1d1;
  border-radius: 6px;
}

@media (min-width: 576px) {
  .index-news-card__thumb {
    margin-inline: 0 0 auto;
  }
}

.index-star-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-star-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.index-star-list li:last-child {
  margin-bottom: 0;
}

.index-star-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.65rem;
  color: var(--bs-heading-color);
}

.index-star-list--span2 {
  grid-column: 1 / -1;
}

.index-inline-link {
  color: var(--bs-primary);
  font-weight: 500;
  text-decoration: none;
}

.index-inline-link:hover {
  text-decoration: underline;
}

/* Featured Picture */
.index-fp-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .index-fp-row {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
  }
}

.index-fp-img-wrap {
  flex: 1 1 48%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(3, 19, 35, 0.1);
}

.index-fp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
}

.index-fp-aside {
  flex: 1 1 48%;
  background: var(--index-pale-blue);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  color: var(--index-text);
}

.index-fp-aside h3 {
  font-weight: 700;
  color: var(--bs-heading-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.index-fp-aside p {
  line-height: 1.65;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.index-fp-aside p:last-of-type {
  margin-bottom: 0;
}

.index-fp-credit {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(3, 19, 35, 0.08);
  font-size: 0.9rem;
  color: var(--index-text);
}

.index-fp-credit a {
  color: var(--bs-primary);
  font-weight: 600;
  text-decoration: none;
}

.index-fp-credit a:hover {
  text-decoration: underline;
}

/* Did You Know */
.index-dyk-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .index-dyk-row {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
  }
}

.index-dyk-list-wrap {
  flex: 1 1 50%;
  background: var(--index-pale-blue);
  border-radius: 10px;
  padding: 1.5rem 1.35rem;
  color: var(--index-text);
}

.index-dyk-img-wrap {
  flex: 1 1 50%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(3, 19, 35, 0.08);
}

.index-dyk-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px;
}

.index-dyk-list .index-inline-link {
  color: var(--index-link-blue);
}

/* Other categories grid */
.index-cat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 992px) {
  .index-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.index-cat-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
  display: block;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 2px 12px rgba(3, 19, 35, 0.12);
  transition: box-shadow 0.15s ease;
}

.index-cat-card:hover,
.index-cat-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.95);
  color: #fff;
}

.index-cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-cat-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(to top, rgba(3, 19, 35, 0.88), rgba(3, 19, 35, 0) 65%);
}

.index-cat-card__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.index-cat-card__count {
  font-size: 0.875rem;
  opacity: 0.9;
}
