/* Article Page Styles */

.page-banner {
  width: 100%;
  height: 550px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('../images/topBanner.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.banner-content h1 {
  font-size: 42px;
  margin: 0 0 10px;
  font-weight: 700;
}

.banner-content p {
  font-size: 16px;
  opacity: 0.9;
  letter-spacing: 2px;
}

.article-nav {
  background: linear-gradient(to right, #1fa464, #0ea5e9);
  padding: 0;
}

.article-nav .nav-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.article-nav a {
  flex: 1;
  padding: 15px 2px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.article-nav a:last-child {
  border-right: none;
}

.article-nav a:hover,
.article-nav a.active {
  background: rgba(255, 255, 255, 0.2);
}

.article-content {
  padding: 60px 0;
  background: #fff;
}

.article-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.article-inner h2 {
  font-size: 32px;
  color: var(--green);
  margin: 0 0 10px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.article-inner > div:first-of-type {
  text-align: right;
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
}

.article-inner h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--orange);
}

.article-inner h3 {
  font-size: 24px;
  color: var(--green);
  margin: 50px 0 30px;
  font-weight: 700;
  border-left: 4px solid var(--green);
  padding-left: 15px;
}

.article-image {
  width: 100%;
  margin-bottom: 30px;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-text {
  margin-bottom: 30px;
}

.article-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin: 0 0 20px;
  text-indent: 2em;
  text-align: justify;
}

.article-text p strong {
  color: #333;
  font-weight: 600;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.article-gallery.multi {
  grid-template-columns: repeat(4, 1fr);
}

.article-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: var(--orange);
  transform: rotate(90deg);
}

/* Scroll Animation */
.article-text,
.article-image,
.article-gallery {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.article-text.visible,
.article-image.visible,
.article-gallery.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .article-gallery.multi {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .page-main {
    margin-top: 60px;
  }

  .page-banner {
    height: 300px;
  }

  .banner-content h1 {
    font-size: 28px;
  }

  .banner-content p {
    font-size: 14px;
  }

  .article-nav .nav-inner {
    flex-wrap: wrap;
  }

  .article-nav a {
    flex: 0 0 calc(50% - 1px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .article-content {
    padding: 40px 0;
  }

  .article-inner h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .article-inner h3 {
    font-size: 20px;
    margin: 40px 0 20px;
  }

  .article-text p {
    font-size: 14px;
  }

  .article-gallery {
    grid-template-columns: 1fr;
  }

  .article-gallery.multi {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-gallery img {
    height: 150px;
  }
}

@media (max-width: 420px) {
  .page-banner {
    height: 240px;
  }

  .banner-content h1 {
    font-size: 24px;
  }

  .article-nav a {
    flex: 0 0 100%;
  }

  .article-inner h2 {
    font-size: 22px;
  }

  .article-inner h3 {
    font-size: 18px;
  }

  .article-gallery.multi {
    grid-template-columns: 1fr;
  }
}
