/* ====== BASE RESET ====== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  background-color: #fff5fa;

  /* pink polka dots */
  background-image: radial-gradient(#f6a5c0 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* ====== NAV ====== */
.top-nav {
  text-align: center;
  padding: 16px 0;
  border-bottom: 2px solid #f1a7c2;
  margin-bottom: 40px;
}

.top-nav a {
  color: #b04a75;
  text-decoration: none;
  font-weight: 600;
  margin: 0 10px;
}

.top-nav a:hover {
  text-decoration: underline;
}

/* ====== MAIN NOTEBOOK CARD ====== */
.notebook {
  max-width: 900px;
  margin: 0 auto 80px;
  background: #ffffff;
  border-radius: 22px;
  padding: 60px 60px 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ====== TITLE + NAME ====== */
header {
  background: linear-gradient(135deg, #c05486, #e28fb0);
  padding: 50px 30px 40px;
  border-radius: 18px;
  margin-bottom: 45px;
}

header h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.byline {
  text-align: center;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0;
}

/* ====== INTRO ====== */
.intro {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 50px;
}

/* ====== ARTICLES ====== */
.articles h2 {
  font-size: 1.8rem;
  color: #b04a75;
  margin-bottom: 25px;
}

/* remove default list look */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ====== ARTICLE LIST ITEMS ====== */
.post-list li {
  margin-bottom: 22px;
}

/* ====== ARTICLE CARDS ====== */
.post-card {
  display: flex;
  flex-direction: column;
  justify-content: center;

  background: #ffffff;
  padding: 22px 26px;
  border-radius: 16px;
  text-decoration: none;
  border-left: 6px solid #f3a0be;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);

  min-height: 110px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card h3 {
  margin: 0 0 6px;
  color: #b04a75;
  font-size: 1.15rem;
}

.post-card .date {
  color: #777;
  font-size: 0.9rem;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

/* ============================= */
/* FIX: FORCE ALL ARTICLE CARDS TO SAME HEIGHT */
/* ============================= */

.post-card {
  display: flex;
  flex-direction: column;
  justify-content: center;

  height: 110px;
  padding: 22px 26px;

  background: #ffffff;
  border-radius: 16px;
  text-decoration: none;
  border-left: 6px solid #f3a0be;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card h2,
.post-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #b04a75;
}

.post-card p,
.post-card span {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

/* ============================= */
/* 🩷 ARTICLE PAGE HERO SECTION */
/* ============================= */

.article-hero {
  background: linear-gradient(135deg, #c05486, #e28fb0);
  padding: 80px 40px 60px;
  border-radius: 22px;
  text-align: center;
  margin-bottom: 60px;
}

.article-hero h1 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 18px;
  line-height: 1.2;
}

.article-hero .byline {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 6px;
}

.article-hero .date {
  color: #ffffff;
  opacity: 0.95;
  font-size: 0.95rem;
}

/* ============================= */
/* ARTICLE CONTENT */
/* ============================= */

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #333;
}

.article-content p {
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

/* ============================= */
/* 🩷 RETURN BUTTON */
/* ============================= */

.return-button {
  display: inline-block;
  margin-top: 60px;
  padding: 12px 28px;
  background-color: #c05486;
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.return-button:hover {
  background-color: #a8476e;
  transform: translateY(-2px);
}
/* HERO IMAGE FOR LIABILITY ARTICLE */

.hero-image {
  margin-top: 40px;
}

.hero-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
/* SECTION DIVIDER */

.article-content h2 {
  position: relative;
  padding-bottom: 10px;
}

.article-content h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #f3a0be;
  margin-top: 10px;
  border-radius: 2px;
}
/* ============================= */
/* INLINE ARTICLE IMAGE FIX */
/* ============================= */

.inline-image {
  display: block;
  width: 85%;
  max-width: 750px;
  margin: 50px auto 10px auto;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 40px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
/* ============================= */
/* SOURCES CARD (FINAL ARTICLE) */
/* ============================= */

.sources-card {
  display: flex;
  flex-direction: column;
  justify-content: center;

  height: 110px;
  padding: 22px 26px;

  background: #fff0f6;
  border-radius: 16px;
  text-decoration: none;
  border-left: 6px solid #c05486;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sources-card h3 {
  margin: 0 0 6px;
  color: #c05486;
  font-size: 1.15rem;
}

.sources-card .date {
  color: #777;
  font-size: 0.9rem;
}

.sources-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}
