@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&family=Permanent+Marker&family=Shadows+Into+Light+Two&display=swap');

/* === Global Styles === */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* ✅ Prevent horizontal scrolling */
  background: #e6e9ec;
  box-sizing: border-box;
}
.site-nav{
  height: 5vh;
  width: 93vw;
    background: rgba(39, 108, 121, 0.95); 

}


/* === Page Layout === */
.blog-detail-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  padding: 130px 5%;
  max-width: 1700px; 
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* === Main Blog Area === */
.blog-main {
  flex: 0 0 72%; /* ✅ Larger left side */
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.blog-title {
  font-size: 3.0rem;
  color: #000;
  margin-bottom: 0.8rem;
}

.blog-meta {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.blog-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 2rem;
  object-fit: cover;
  max-height: 460px;
}

.blog-body {
  font-size: 1.1rem;
  /* color: #374151; */
  line-height: 1.7;
}


.blog-body p {
  margin-bottom: 1.5rem;
}

.blog-footer {
  margin-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.2rem;
  font-size: 0.95rem;
}

.blog-footer strong {
  color: #111827;
}

.blog-footer .tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 5px 6px 0 0;
  transition: 0.3s ease;
}

.blog-footer .tag:hover {
  background: #0369a1;
  color: #fff;
}

/* === Sidebar === */
.blog-sidebar {
  flex: 0 0 25%; /* ✅ Smaller right side */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  height: fit-content;
}

.card-recent {
  background: linear-gradient(135deg, #201841, #6c50dc);
  padding: 20px;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card-recent h3 {
  font-size: 1.1rem;
  margin: 0;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.recent-item {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 1rem;
}

.recent-item:hover {
  transform: translateX(5px);
}

.recent-item img {
  width: 90px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.recent-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #111827;
  line-height: 1.4;
}

.recent-text p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* === Responsive === */
@media (max-width: 992px) {
    
  .blog-title {
      font-size: 2.0rem;
      color: #000;
      margin-bottom: 0.8rem;
    }
  .blog-detail-page {
    flex-direction: column;
    padding: 100px 6%;
  }

  .blog-main,
  .blog-sidebar {
    flex: 100%;
  }

  .blog-sidebar {
    margin-top: 2rem;
    position: relative;
    top: 0;
  }
}
.marker {
  background-color: yellow; /* or the color CKEditor uses */
  padding: 0.1em 0.2em;
  border-radius: 3px;
}
.blog-body img {
  float: left;
  margin: 10px 30px 20px 0;  /* Top | Right | Bottom | Left */
  max-width: 45%;
  height: auto;
  border-radius: 6px;
}


