/* ===== Global page background ===== */
body {
  background: #f5f6f8;
}

/* ===== Main content width & breathing room ===== */
.page {
  max-width: 1200px;
  margin: 0 auto;
}

.page__content {
  font-size: 1.08rem;
  line-height: 1.5;
  color: #374151;
}

/* ===== Card section ===== */
.card-section {
  background: #ffffff;
  border-radius: 26px;
  padding: 20px 26px;
  margin: 0 0 10px 0;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 3px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-section:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 44px rgba(15, 23, 42, 0.12),
    0 6px 18px rgba(15, 23, 42, 0.08);
}

/* ===== Section titles ===== */
.card-section h1,
.card-section h2,
.card-section h3 {
  margin-top: 0;
  line-height: 1.3;
  color: #2f343f;
}

.card-section h1 {
  margin-bottom: 18px;
  font-size: 1.65rem;
  font-weight: 800;
}

.card-section h2 {
  margin-bottom: 22px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card-section h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ===== Paragraph spacing ===== */
.card-section p {
  margin-bottom: 1.05em;
}

.card-section p:last-child {
  margin-bottom: 0;
}

/* ===== Links ===== */
.page__content a {
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page__content a:hover {
  border-bottom-color: rgba(59, 130, 246, 0.7);
}

/* ===== Two-column layout ===== */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

/* ===== Mini cards inside sections ===== */
.sub-card {
  background: #fbfcfe;
  border: 1px solid rgba(17, 24, 39, 0.05);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.sub-card:last-child {
  margin-bottom: 0;
}

/* ===== Education entries ===== */
.edu-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-school {
  font-size: 1.05rem;
  font-weight: 800;
  color: #2f343f;
  margin-bottom: 6px;
}

.edu-meta {
  color: #4b5563;
  margin-bottom: 8px;
}

.edu-date {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== Thesis highlight ===== */
.thesis-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-left: 4px solid #60a5fa;
  background: #f8fbff;
  border-radius: 10px;
}

/* ===== News timeline ===== */
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  position: relative;
  padding: 0 0 22px 28px;
  margin: 0 0 20px 0;
  border-left: 2px solid #e5e7eb;
}

.news-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 0 4px #eff6ff;
}

.news-date {
  display: inline-block;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 6px;
}

.news-title {
  font-weight: 700;
  color: #111827;
}

.news-text {
  color: #374151;
  margin-top: 6px;
}

/* ===== Optional hero intro ===== */
.hero-intro {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.hero-intro h1 {
  margin-bottom: 12px;
}

.hero-intro .lead {
  font-size: 1.15rem;
  color: #374151;
}

/* ===== Icon spacing ===== */
.section-icon {
  margin-right: 4px;
}

/* ===== Make default hr softer if present ===== */
hr {
  border: none;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  margin: 1.5rem 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .card-section {
    padding: 24px 22px;
    border-radius: 18px;
  }

  .card-section h1 {
    font-size: 1.65rem;
  }

  .card-section h2 {
    font-size: 1.35rem;
  }

  .card-section h3 {
    font-size: 1.05rem;
  }
}
