/* ===========================================================
   Freedom4um - Latest Articles Page (2025-10-21s balanced)
   Matches LatestComments layout, no sidebar
   =========================================================== */

/* Override global content-wrapper constraint for Latest Articles */
body.latest-articles-page .content-wrapper {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Red frame — balanced margins, aligned under nav */
body.latest-articles-page main.article-frame {
  background-color: #F9E9C7;
  border: 1px solid #A32D2D;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  padding: 1.2rem 2rem;

  /* Balanced left/right offset (matches readarticle feel) */
  margin-top: 0;
  margin-left: 40px;   /* aligns perfectly under “Home” nav link */
  margin-right: 40px;  /* symmetrical spacing on right */
  width: calc(100% - 80px);
  box-sizing: border-box;
}

/* Internal content block */
body.latest-articles-page .article-block {
  margin-top: 0.2rem;
}

/* Title heading (smaller to match Latest Comments) */
.article-block h2 {
  font-size: 1.4em;
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
  color: #000;
}

/* Search form */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 1em;
}

.search-form input,
.search-form select,
.search-form button {
  font-family: "Times New Roman", Times, serif;
  font-size: 1em;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.search-form button {
  background: linear-gradient(to right, #A32D2D, #7D1F1F);
  color: var(--bg-color);
  font-weight: bold;
  cursor: pointer;
}
.search-form button:hover {
  background: linear-gradient(to right, #7D1F1F, #A32D2D);
}

/* Article cards */
.article-list {
  list-style: none;
  padding: 0;
  margin-top: 0.8em;
}

.article-item {
  background: #FFFDF8;
  border: 1px solid #D9C3A5;
  border-left: 4px solid #A32D2D;
  border-radius: 6px;
  padding: 0.8em 1em;
  margin-bottom: 0.8em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.article-item:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.article-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.2em;
}

.article-meta,
.article-stats {
  font-size: 0.9em;
  color: #000;
}

/* Responsive */
@media (max-width: 900px) {
  body.latest-articles-page .content-wrapper {
    flex-direction: column;
  }
  body.latest-articles-page main.article-frame {
    width: auto;
    margin: 10px 20px;
  }
}
