@import url("base.css");
@import url("fonts.css");

/* === BLOG DETAIL BANNER === */
.blog-detail-banner {
  position: relative;
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #024441 100%);
  margin-top: var(--header-height);
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 88, 84, 0.6);
  z-index: 1;
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* === BLOG DETAIL CONTENT === */
.blog-detail-content {
  padding: 50px 0 80px;
  background-color: var(--bg-color);
    margin-top: var(--header-height);

}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}

/* === MAIN CONTENT === */
.main-content {
  background-color: var(--white);
  padding: 40px 50px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.content-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--bg-color);
}

.category-badge {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-header h1 {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.meta-info {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--gray-600);
}

.meta-info .date {
  font-weight: var(--font-weight-medium);
}

/* === CONTENT BODY === */
.content-body {
  line-height: 1.8;
  color: var(--text-color);
}

.content-body h2 {
  font-size: 26px;
  color: var(--primary-color);
  margin-top: 35px;
  margin-bottom: 20px;
  font-weight: var(--font-weight-bold);
}

.content-body h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 16px;
  font-weight: var(--font-weight-semibold);
}

.content-body h4 {
  font-size: 18px;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 12px;
  font-weight: var(--font-weight-semibold);
}

.content-body p {
  margin-bottom: 18px;
  font-size: 15px;
  text-align: justify;
}

.content-body ul,
.content-body ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.content-body li {
  margin-bottom: 10px;
  font-size: 15px;
}

.content-body strong {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
}

/* === QUOTE BOX === */
.quote-box {
  background-color: #F5F1E8;
  border-left: 4px solid var(--secondary-color);
  padding: 25px 30px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.quote-box::before {
  content: '"';
  font-size: 60px;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 15px;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-box p {
  font-size: 16px;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 0;
  padding-left: 30px;
  line-height: 1.6;
}

.quote-box cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-600);
  font-style: normal;
  font-weight: var(--font-weight-medium);
  padding-left: 30px;
}

.quote-box.highlight {
  background-color: #EBE1C6;
  border-left-color: var(--primary-color);
}

.quote-box.highlight::before {
  color: var(--primary-color);
}

/* === INFO BOX === */
.info-box {
  background-color: #E8F4F3;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 25px 30px;
  margin: 30px 0;
}

.info-box h4 {
  color: var(--primary-color);
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box h4::before {
  content: "ℹ";
  font-size: 20px;
  font-weight: bold;
}

.info-box p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* === CONTENT FOOTER === */
.content-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share span {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-color);
}

.share-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* === SIDEBAR === */
.sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-box {
  background-color: #EBE1C6;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sidebar-box h3 {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(1, 88, 84, 0.2);
}

/* === NEWS ITEM === */
.news-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-image {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #024441 100%);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-item .news-date {
  display: block;
  font-size: 11px;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-weight-medium);
}

.news-item strong {
  display: block;
  margin-bottom: 8px;
}

.news-item strong a {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-item strong a:hover {
  color: var(--secondary-color);
}

.news-item .news-link {
  font-size: 12px;
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: var(--font-weight-medium);
  display: inline-block;
  transition: all 0.3s ease;
}

.news-item .news-link:hover {
  color: var(--primary-color);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .detail-grid {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
  
  .main-content {
    padding: 35px 40px;
  }
}

@media (max-width: 992px) {
  .blog-detail-banner {
    height: 220px;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .sidebar {
    position: relative;
    top: 0;
  }
  
  .main-content {
    padding: 30px 35px;
  }
  
  .content-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .blog-detail-banner {
    height: 180px;
  }
  
  .blog-detail-content {
    padding: 30px 0 50px;
  }
  
  .main-content {
    padding: 25px 20px;
  }
  
  .content-header h1 {
    font-size: 24px;
  }
  
  .content-body h2 {
    font-size: 22px;
  }
  
  .content-body h3 {
    font-size: 19px;
  }
  
  .content-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quote-box {
    padding: 20px 20px;
  }
  
  .quote-box p {
    font-size: 14px;
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .blog-detail-banner {
    height: 150px;
  }
  
  .main-content {
    padding: 20px 15px;
  }
  
  .content-body p,
  .content-body li {
    font-size: 14px;
  }
  
  .sidebar-box {
    padding: 20px;
  }
}/* ==============================================
   BLOG DETAIL GALLERY STYLES
   ============================================== */

/* Gallery Container */
.blog-content-gallery {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.blog-content-gallery h4 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-content-gallery h4 i {
    color: var(--primary-color, #007bff);
}

/* Grid Layout (1-3 images) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #e9ecef;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Overlay */
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 2rem;
    color: white;
}

/* Slider Layout (4+ images) */
.gallery-slider {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.gallery-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}

.gallery-slider .gallery-item {
    flex: 0 0 calc(33.333% - 11px);
    min-width: calc(33.333% - 11px);
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-nav i {
    color: #333;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: white;
    transform: rotate(90deg);
}

.lightbox-close i {
    font-size: 1.5rem;
    color: #333;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: white;
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

.lightbox-nav i {
    font-size: 1.5rem;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-content-gallery {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-slider {
        padding: 0 40px;
    }

    .gallery-slider .gallery-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-nav {
        width: 30px;
        height: 30px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}