/* ===== BLOG HERO ===== */
.blog-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #0f0f0f, #1a0a00);
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.blog-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
}

/* ===== BLOG LISTING ===== */
.blog-listing {
  padding: 60px 0 90px;
  background: var(--light-gray);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255,107,0,0.12);
  border-color: rgba(255,107,0,0.2);
}
.blog-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #111;
}
.blog-thumb img,
.blog-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card:hover .blog-thumb img,
.blog-card:hover .blog-thumb video {
  transform: scale(1.05);
}
.thumb-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,107,0,0.9);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.blog-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-date {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-date i { color: var(--orange); font-size: 11px; }
.blog-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}
.blog-info p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}
.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.3s;
}
.blog-card:hover .read-more { gap: 12px; }

/* ===== BLOG DETAIL ===== */
.blog-detail {
  padding: 110px 0 80px;
  background: var(--white);
  min-height: 60vh;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 30px;
  transition: gap 0.3s;
}
.back-link:hover { gap: 12px; }
.blog-detail-content h1 {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.3;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--gray);
}
.blog-meta i { color: var(--orange); }
.blog-detail-content .blog-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.blog-media-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 260px;
  background: #111;
}
.blog-media-item img,
.blog-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-media-item:hover img,
.blog-media-item:hover video {
  transform: scale(1.03);
}
.blog-media-item::after {
  content: '\f065';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}
.blog-media-item:hover::after { opacity: 1; }
.blog-media-item.video-item::after {
  content: '\f04b';
}
.blog-detail-content .blog-text {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.9;
  width: 100%;
  text-align: justify;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.blog-text p { margin-bottom: 18px; text-align: justify; }
.blog-text h1, .blog-text h2, .blog-text h3, .blog-text h4 { white-space: normal; margin: 20px 0 10px; color: var(--black); }
.blog-text ul, .blog-text ol { white-space: normal; }
.blog-text img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.blog-text table { white-space: normal; width: 100%; border-collapse: collapse; margin: 16px 0; }
.blog-text table td, .blog-text table th { border: 1px solid #ddd; padding: 8px; }
.blog-text ul {
  margin: 16px 0;
  padding-left: 20px;
  list-style: disc;
}
.blog-text ul li {
  margin-bottom: 10px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
}
.blog-cta {
  margin-top: 40px;
  padding: 28px;
  background: rgba(255,107,0,0.06);
  border: 1px solid rgba(255,107,0,0.15);
  border-radius: var(--radius);
  text-align: center;
}
.blog-cta p {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
}

/* ===== MEDIA LIGHTBOX ===== */
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.media-lightbox.active { display: flex; }
.ml-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.93);
  cursor: pointer;
}
.ml-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 92vh;
}
.ml-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  backdrop-filter: blur(6px);
  z-index: 3;
}
.ml-close:hover { background: var(--orange); }
.ml-media img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.3s;
}
.ml-media img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}
.ml-media video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  background: #000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-hero { padding: 110px 0 40px; }
  .blog-hero h1 { font-size: 28px; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-thumb { height: 180px; }
  .blog-detail { padding: 90px 0 50px; }
  .blog-media-item { height: 200px; }
  .blog-detail-content .blog-media { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .blog-info { padding: 18px; }
  .blog-info h3 { font-size: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
}
