/* ============================================================
   English Skill Nest — Blog Theme
   Scoped to blog pages only (loaded after style.css).
   Brand palette: teal #057e84 / #0a5670, green #2ba17e, orange #ff9206
   ============================================================ */

/* ---------- Fonts ----------
   style.css sets font-family on * (matches every element directly),
   so inherited fonts lose. We re-apply per element, skipping FA icons. */
.blog-article *:not([class*="fa-"]),
.related-posts *:not([class*="fa-"]),
.blog-nav-next-prev *:not([class*="fa-"]),
body:has(#blog-cards) *:not([class*="fa-"]) {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Article shell ---------- */
.blog-article {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(10, 86, 112, 0.09);
  padding: 48px 52px;
  border: 1px solid #e8f0ee;
  line-height: 1.75;
}

.blog-header {
  border-bottom: 2px solid #e3efeb;
  margin-bottom: 34px;
}

.blog-header-label {
  background: linear-gradient(135deg, #eaf7f3, #f4fbf9);
  border: 1px solid #bfe3d8;
  color: #0a5670;
  padding: 8px 18px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.blog-logo {
  border: 2px solid #2ba17e;
  box-shadow: 0 2px 8px rgba(43, 161, 126, 0.25);
}

.blog-meta {
  color: #5b6b70;
  font-size: 0.95rem;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-meta span::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #2ba17e;
  font-size: 0.85em;
}

.blog-meta span:first-child::before { content: "\f073"; } /* calendar   */
.blog-meta span:last-child::before  { content: "\f02c"; } /* folder/tag */

.lead-text {
  font-size: 1.2rem;
  line-height: 1.65;
  color: #33454d;
  border-left: 4px solid #2ba17e;
  padding: 4px 0 4px 18px;
  margin-top: 10px;
  text-align: left;
}

/* ---------- Headings ---------- */
.blog-article h1.title-para {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0b2e3c;
  background: transparent;
  padding: 4px 0 6px;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}

/* remove the animated chevron from headings for a cleaner look */
.blog-article h1.title-para::before,
.blog-article h2.title-para::before {
  content: none !important;
}

.blog-article h2.title-para {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.35;
  font-weight: 700;
  color: #123c4c;
  background: transparent;
  padding: 26px 0 6px;
  margin: 34px 0 10px;
  border-top: 1px dashed #d9e8e3;
  letter-spacing: -0.01em;
}

/* ---------- Body text ---------- */
.blog-article .para-about {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #2f3f46;
  text-align: left;
  padding: 6px 0;
  margin: 0;
}

/* ---------- Lists (#take-away) ---------- */
.blog-article #take-away {
  list-style: none;
  padding: 6px 0 10px 4px;
  margin: 6px 0 12px;
}

.blog-article #take-away li {
  font-size: 1.03rem;
  line-height: 1.65;
  color: #2f3f46;
  padding: 10px 14px 10px 42px;
  position: relative;
  background: #f7fbfa;
  border-radius: 10px;
  margin: 7px 0;
  text-align: left;
}

/* hide the old animated hand icons; we draw a clean check instead */
.blog-article #take-away li i {
  display: none !important;
}

.blog-article #take-away li::before {
  content: "\f058"; /* fa-circle-check */
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  color: #2ba17e;
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 0.95rem;
  animation: none !important;
  display: inline-block;
}

/* ---------- Tables (beat page-inline styles via higher specificity) ---------- */
.blog-article .blog-table-wrap {
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(10, 86, 112, 0.07);
  border: 1px solid #dcebe6;
  margin: 22px 0 30px;
  background: #fff;
}

.blog-article .blog-comparison-table {
  font-size: 0.98rem;
  border-collapse: collapse;
  width: 100%;
}

.blog-article .blog-comparison-table th {
  background: linear-gradient(135deg, #0a5670, #057e84) !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 14px 16px;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-align: left;
}

.blog-article .blog-comparison-table td {
  border: none;
  border-bottom: 1px solid #e4f0ec;
  padding: 13px 16px;
  color: #2f3f46;
  vertical-align: top;
  background: transparent;
}

.blog-article .blog-comparison-table tr:last-child td {
  border-bottom: none;
}

.blog-article .blog-comparison-table tr:nth-child(even) td {
  background: #f6fbf9;
}

/* ---------- Links ---------- */
.blog-article a {
  color: #0a7d6f;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(43, 161, 126, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-article a:hover {
  color: #057e84;
  border-bottom-color: #057e84;
}

/* plain-text URLs (youtube/instagram) get a calmer look */
.blog-article p.para-about > a[href^="http"] {
  font-weight: 500;
  border-bottom-style: dashed;
}

/* ---------- Prev / Next navigation ---------- */
.blog-article .blog-navigation {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.blog-article .blog-nav-link {
  flex: 1 1 240px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: #f2f9f7;
  border: 1px solid #cfe8e0;
  color: #0a5670;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #cfe8e0;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.blog-article .blog-nav-link:hover {
  background: #0a5670;
  color: #ffffff;
  border-bottom-color: #0a5670;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 86, 112, 0.25);
}

/* ---------- Emphasis ---------- */
.blog-article .para-about strong,
.blog-article .para-about b {
  color: #0a5670;
}

/* ============================================================
   RELATED POSTS BLOCK (older blog pages)
   ============================================================ */
.related-posts {
  background: #ffffff;
  border: 1px solid #dcebe6;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(10, 86, 112, 0.06);
  padding: 26px 28px;
  margin: 30px auto 0;
  max-width: 980px;
}

.related-posts h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: #123c4c;
}

.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

.related-posts li { margin: 0; }

.related-posts a {
  display: block;
  padding: 10px 12px 10px 34px;
  position: relative;
  border-radius: 10px;
  background: #f7fbfa;
  color: #0a7d6f;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  line-height: 1.5;
  transition: background 0.18s ease, color 0.18s ease;
}

.related-posts a::before {
  content: "\f058"; /* fa-circle-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #2ba17e;
  position: absolute;
  left: 12px;
  top: 12px;
}

.related-posts a:hover {
  background: #0a5670;
  color: #ffffff;
}

/* ============================================================
   PREV / NEXT CARDS (older blog pages)
   ============================================================ */
.blog-nav-next-prev {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 980px;
  margin: 22px auto 0;
}

.blog-nav-card {
  flex: 1 1 260px;
  background: #f2f9f7;
  border: 1px solid #cfe8e0;
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-nav-card:hover {
  background: #0a5670;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 86, 112, 0.25);
}

.blog-nav-card .blog-nav-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2ba17e;
  margin-bottom: 4px;
}

.blog-nav-card:hover .blog-nav-label { color: #a5e3cf; }

.blog-nav-card .blog-nav-title {
  font-weight: 700;
  color: #0a5670;
  line-height: 1.45;
}

.blog-nav-card:hover .blog-nav-title { color: #ffffff; }

.blog-nav-card .fa-arrow-left,
.blog-nav-card .fa-arrow-right { color: #2ba17e; }

.blog-nav-card:hover .fa-arrow-left,
.blog-nav-card:hover .fa-arrow-right { color: #a5e3cf; }

/* ============================================================
   BLOG LISTING (blog.html) — prefix with body to beat inline <style>
   ============================================================ */
body:has(#blog-cards) {
  background: linear-gradient(180deg, #f4faf8 0%, #eef6f3 100%);
}

body #blog-cards {
  gap: 26px;
  padding: 34px 0;
}

body .blog-card {
  background: #ffffff;
  border-radius: 16px;
  border-left: 4px solid #2ba17e;
  padding: 26px 26px 22px;
  box-shadow: 0 4px 18px rgba(10, 86, 112, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 86, 112, 0.16);
}

body .blog-card h3 {
  color: #0a5670;
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 12px;
}

body .blog-card h3::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0a9"; /* fa-circle-arrow-right */
  color: #2ba17e;
  margin-right: 9px;
  font-size: 0.95em;
}

body .blog-card p {
  color: #52646b;
  font-size: 0.95rem;
  line-height: 1.65;
}

body .blog-card .read-more {
  color: #0a7d6f;
  font-size: 0.95rem;
}

body .blog-card .read-more::after {
  content: "\2192";
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.22s ease;
}

body .blog-card:hover .read-more::after {
  transform: translateX(5px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 900px) {
  .blog-article {
    padding: 34px 30px;
    border-radius: 14px;
  }
}

@media screen and (max-width: 720px) {
  .blog-article {
    padding: 26px 20px;
    line-height: 1.7;
    border-radius: 12px;
  }

  .related-posts {
    padding: 20px 16px;
  }

  .related-posts ul {
    grid-template-columns: 1fr;
  }

  .blog-nav-next-prev {
    flex-direction: column;
  }

  .blog-article h1.title-para {
    font-size: 1.6rem;
  }

  .blog-article h2.title-para {
    font-size: 1.34rem;
    margin: 26px 0 8px;
    padding-top: 20px;
  }

  .lead-text {
    font-size: 1.06rem;
    padding-left: 14px;
  }

  .blog-article .para-about {
    font-size: 1rem;
    line-height: 1.75;
  }

  .blog-article #take-away li {
    font-size: 0.97rem;
    padding-left: 36px;
  }

  .blog-article #take-away li::before {
    left: 12px;
    top: 11px;
  }

  .blog-article .blog-comparison-table th,
  .blog-article .blog-comparison-table td {
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .blog-header-label {
    padding: 6px 14px;
    font-size: 0.88rem;
  }

  .blog-meta {
    font-size: 0.9rem;
  }

  .blog-article .blog-navigation {
    flex-direction: column;
  }

  .blog-article .blog-nav-link {
    flex-basis: auto;
  }

  body .blog-card {
    padding: 20px 18px;
  }

  body .blog-card h3 {
    font-size: 1.02rem;
  }
}

@media screen and (max-width: 480px) {
  .blog-article {
    padding: 20px 14px;
  }

  .blog-article h1.title-para {
    font-size: 1.4rem;
  }

  .blog-article h2.title-para {
    font-size: 1.22rem;
  }

  .lead-text {
    font-size: 1rem;
  }
}
