/* Breadcrumb */
.breadcrumb {
  background: var(--light-gray);
  padding: 1rem 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: var(--accent-color);
}

.breadcrumb-nav span {
  color: var(--text-light);
}

.breadcrumb-nav .current {
  color: var(--primary-color);
  font-weight: 600;
}

/* Article Hero */
.article-hero {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem;
  color: white;
}

.article-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.article-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Article Content */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-content h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

.article-content h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* Highlight Box */
.highlight-box {
  background: var(--gradient-primary);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(15, 164, 175, 0.2);
}

.highlight-box h3 {
  color: white !important;
  margin-top: 0 !important;
}

/* Photo Gallery Grid */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.article-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

/* Team Section */
.team-section {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  text-align: center;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
  align-items: flex-start;
}

/* 3 members: 1 row of 3 */
.team-grid:has(.team-member:nth-child(3):last-child) {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 4 members: 2 rows of 2 */
.team-grid:has(.team-member:nth-child(4):last-child) {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-member {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-cream) 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  border: 2px solid var(--border-color);
  width: 250px;
  max-width: 100%;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.team-member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(15, 164, 175, 0.3);
  overflow: hidden;
  position: relative;
}

.team-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.team-member-avatar i {
  position: relative;
  z-index: 1;
}

.team-member h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.team-member .team-nim {
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.3rem 0;
}

.team-member .team-major {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.3rem 0;
  font-style: italic;
}

.team-member p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  font-size: 0.9rem;
}

/* Share Buttons */
.share-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 12px;
  text-align: center;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.whatsapp {
  background: #25d366;
}

.share-btn.telegram {
  background: #0088cc;
}

/* Navigation Buttons */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--light-gray);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateX(-5px);
  box-shadow: 0 4px 15px rgba(15, 164, 175, 0.3);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .article-hero {
    height: 300px;
  }

  .article-hero h1 {
    font-size: 1.8rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .share-buttons {
    flex-direction: column;
  }

  .article-nav {
    flex-direction: column;
    gap: 1rem;
  }
}
