/* ===========================================
   Global & Theme-Aware Base
   =========================================== */
body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.4s ease, color 0.4s ease;
}

main {
  text-align: left;
  max-width: 750px;
  margin: 60px auto;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ===========================================
   Highlights (Light Mode)
   =========================================== */
.highlight-yellow {
  background: #fff89a;
  padding: 0 2px;
}

.highlight-green {
  background: #d4ed91;
  padding: 0 2px;
}

.highlight-blue {
  background: #aee2ff;
  padding: 0 2px;
}

/* ===========================================
   Highlights (Dark Mode)
   =========================================== */
body.dark-mode .highlight-yellow {
  background: rgba(255, 240, 140, 0.3);
}

body.dark-mode .highlight-green {
  background: rgba(180, 255, 160, 0.25);
}

body.dark-mode .highlight-blue {
  background: rgba(120, 190, 255, 0.25);
}

/* ===========================================
   Typography
   =========================================== */
article h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  text-transform: capitalize;
}

article h2,
article h3 {
  color: var(--text-color);
  font-weight: 600;
  margin-top: 1.6em;
  text-transform: capitalize;
}

article p {
  margin-top: 0.8em;
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1rem;
  text-align: justify;        
  text-justify: inter-word;
}

article ul {
  margin-top: 0.5em;
  padding-left: 1.2em;
}

article li {
  margin-bottom: 0.4em;
  color: var(--text-color);
}

/* ===========================================
   Back Link Button
   =========================================== */
.btn {
  display: inline-block;
  margin-top: 2em;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 25px;
  background: var(--btn-bg);
  color: var(--btn-text);
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-2px);
}

/* ===========================================
   Responsive Layout
   =========================================== */
@media (max-width: 768px) {
  main {
    margin: 30px 15px;
    padding: 25px;
  }

  article h1 {
    font-size: 1.6rem;
  }
}
