
/* MASTER LAYOUT*/

.home-layout {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
  align-items: flex-start;
}

.home-main {
  flex: 3;
  min-width: 0;
}

.home-sidebar {
  flex: 1;
  max-width: 320px;
}


/* HERO IMAGE */
.hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}


.hero img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* EBOOK PROMO */

.ebook-promo {
  background: #ffffff;
  margin-top: 24px;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.ebook-container {
  display: flex;
  gap: 24px;
  align-items: center;
}

.ebook-container img {
  width: 140px;
  border-radius: 8px;
}

/* NAVIGATION LINKS */

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.section-links a {
  flex: 1 1 45%;
  padding: 16px;
  background: #f3f1ff;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: #4b3db8;
}


nav {
  position: relative;
  z-index: 1000;
}
/* SIDEBAR STYLINGS */

.home-sidebar section {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.latest-articles h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.home-sidebar {
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.home-sidebar img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* =========================
   BLOG CATEGORY LAYOUT
========================= */

.blog-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.category-block {
  margin-bottom: 60px;
}

.category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1d4ed8; /* editorial blue */
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 6px;
}

.category-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Article card */
.post-card {
  flex: 1 1 260px;
  max-width: 300px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-card p {
  font-size: 0.9rem;
  color: #475569;
}

.post-card a {
  text-decoration: none;
  color: #1e40af;
}

/* Mobile */
@media (max-width: 768px) {
  .category-grid {
    flex-direction: column;
  }

  .post-card {
    max-width: 100%;
  }
}

/* Home Widgets Grid */
.home-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

.widget-box {
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.widget-box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.lesson-layout {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.lesson-toc {
  width: 25%;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.lesson-content {
  width: 75%;
}

/* JW style */

.lesson-toc a {
  display: block;
  padding: 6px;
  text-decoration: none;
  color: #333;
}

.lesson-toc a:hover {
  background: #eee;
}

.lesson-nav{
display:flex;
gap:20px;
margin:20px;
}

.breadcrumb{
font-size:14px;
margin:10px;
}



/* MASTER LAYOUT*/

.home-layout {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.home-main {
  flex: 3; /* 70% */
}

.home-sidebar {
  flex: 1; /* 30% */
}

/* HERO IMAGE */
.hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.hero img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* EBOOK PROMO */

.ebook-promo {
  background: #ffffff;
  margin-top: 24px;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.ebook-container {
  display: flex;
  gap: 24px;
  align-items: center;
}

.ebook-container img {
  width: 140px;
  border-radius: 8px;
}

/* NAVIGATION LINKS */

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.section-links a {
  flex: 1 1 45%;
  padding: 16px;
  background: #f3f1ff;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: #4b3db8;
}


nav {
  position: relative;
  z-index: 1000;
}
/* SIDEBAR STYLINGS */

.home-sidebar section {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.latest-articles h2 {
  margin-top: 0;
  font-size: 1.2rem;
}
/* =========================
   BLOG CATEGORY LAYOUT
========================= */

.blog-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.category-block {
  margin-bottom: 60px;
}

.category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1d4ed8; /* editorial blue */
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 6px;
}

.category-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Article card */
.post-card {
  flex: 1 1 260px;
  max-width: 300px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-card p {
  font-size: 0.9rem;
  color: #475569;
}

.post-card a {
  text-decoration: none;
  color: #1e40af;
}

/* Mobile */
@media (max-width: 768px) {
  .category-grid {
    flex-direction: column;
  }

  .post-card {
    max-width: 100%;
  }
}
.home-widgets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.widget-box {
  border: 1px solid #ddd;
  background: white;
  padding: 10px;
}

.lesson-layout {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.lesson-toc {
  width: 25%;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.lesson-content {
  width: 75%;
}

/* JW style */

.lesson-toc a {
  display: block;
  padding: 6px;
  text-decoration: none;
  color: #333;
}

.lesson-toc a:hover {
  background: #eee;
}

.lesson-nav{
display:flex;
gap:20px;
margin:20px;
}

.breadcrumb{
font-size:14px;
margin:10px;
}


.lesson-list li{
  margin:10px 0;
}

.grid {
  display:grid;
  grid-template-columns:
  repeat(auto-fit, minmax(250px,1fr));
  gap:20px;
}


.card {

background:white;
padding:10px;
text-decoration:none;
color:black;

}

.card img {

width:100%;

}

@media (max-width: 900px) {
  .home-layout {
    flex-direction: column;
  }
  .home-sidebar {
    max-width: 100%;
    position: static;
  }
  .home-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .home-widgets {
    grid-template-columns: 1fr;
  }
}

/* ===== Latest Articles Cards ===== */

.latest-articles {
  background: white;
  padding: 12px;
  border-radius: 8px;
}

.latest-card {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.latest-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.latest-card h4 {
  font-size: 14px;
  margin: 0;
}

.latest-card p {
  font-size: 12px;
  margin: 2px 0;
  color: #555;
}

.latest-card a {
  text-decoration: none;
  color: black;
}
/* ===== Article Grid ===== */

.home-cards {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 16px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-card h3 {
  font-size: 16px;
  padding: 8px;
  margin: 0;
}

.article-card p {
  font-size: 13px;
  padding: 0 8px 10px;
  color: #555;
}

.article-card a {
  text-decoration: none;
  color: black;
  display: block;
}

@media (max-width: 900px) {

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .article-grid {
    grid-template-columns: 1fr;
  }

}
/* ===== HERO ARTICLE ===== */

.hero {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

.hero-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 16px;
  border-radius: 8px;
  max-width: 400px;
}

.hero-text h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero-text p {
  font-size: 14px;
  margin-bottom: 10px;
}

.hero-btn {
  background: #ff4a4a;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

@media (max-width: 700px) {

  .hero-card img {
    height: 240px;
  }

  .hero-text {
    position: static;
    background: #222;
    margin-top: -4px;
  }

}

/* ===== Widget strip image size ===== */

.widget-box img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.widget-box {
  padding: 10px;
}

.widget-box h3 {
  font-size: 16px;
  margin-bottom: 8px;
}