/* Clean Timeline News Page - Professional Design */

body {
  background-color: var(--bg);
  color: var(--words);
  line-height: 1.6;
}

/* Header Section - Clean and Simple */
.header {
  background: linear-gradient(135deg, var(--bg) 0%, #1a2333 100%);
  padding: 6rem 0 4rem 0;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/assets/images/news/news_top.jpg") center center / cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--words);
}

.header-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--words-secondary);
  font-weight: 300;
}

/* Main Section */
.section {
  padding: 4rem 0;
  background: var(--bg);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--words-secondary);
  max-width: 700px;
  margin: 0 auto 4rem auto;
  line-height: 1.7;
}

/* Timeline Design */
.news-timeline {
  position: relative;
  padding-left: 0;
}

/* Timeline vertical line */
.news-timeline::before {
  content: "";
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  z-index: 0;
}

/* Timeline Item */
.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

/* Timeline Date Circle */
.timeline-date {
  flex: 0 0 120px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.date-circle {
  background: var(--bg-secondary);
  border: 3px solid var(--accent);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  z-index: 3;
}

.date-circle .month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.date-circle .day {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--words);
  line-height: 1;
  margin: 2px 0;
}

.date-circle .year {
  font-size: 0.7rem;
  color: var(--words-secondary);
  line-height: 1;
}

/* Timeline Content */
.timeline-content {
  flex: 1;
  margin-left: 2rem;
}

/* News Cards - Clean Design */
.news-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Card Header */
.card-header {
  padding: 1.5rem 2rem 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

/* Category Colors */
.category.recognition { background: #4ade80; color: white; }
.category.expansion { background: #3b82f6; color: white; }
.category.technology { background: var(--accent); color: white; }
.category.community { background: #f59e0b; color: white; }
.category.leadership { background: #8b5cf6; color: white; }

.card-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--words);
  line-height: 1.4;
  margin: 0;
}

/* Card Body */
.card-body {
  padding: 0 2rem 1.5rem 2rem;
}

.card-body p {
  color: var(--words-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Read More Link */
.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more:hover {
  color: var(--words);
  gap: 0.8rem;
}

.read-more i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.load-more-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more-btn:hover {
  background: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.articles-info {
  margin-top: 1rem;
  color: var(--words-secondary);
  font-size: 0.85rem;
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Fallback for no-js */
.no-js .fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 4rem 0 3rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .section-intro {
    font-size: 1rem;
    margin-bottom: 3rem;
  }
  
  /* Mobile Timeline Adjustments */
  .news-timeline::before {
    left: 40px;
  }
  
  .timeline-date {
    flex: 0 0 80px;
  }
  
  .date-circle {
    width: 60px;
    height: 60px;
  }
  
  .date-circle .month {
    font-size: 0.7rem;
  }
  
  .date-circle .day {
    font-size: 1rem;
  }
  
  .date-circle .year {
    font-size: 0.6rem;
  }
  
  .timeline-content {
    margin-left: 1rem;
  }
  
  .card-header,
  .card-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .card-header h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 3rem 0 2rem 0;
  }
  
  .news-timeline::before {
    left: 30px;
  }
  
  .timeline-date {
    flex: 0 0 60px;
  }
  
  .date-circle {
    width: 50px;
    height: 50px;
  }
  
  .date-circle .month {
    font-size: 0.6rem;
  }
  
  .date-circle .day {
    font-size: 0.9rem;
  }
  
  .date-circle .year {
    font-size: 0.55rem;
  }
  
  .timeline-content {
    margin-left: 0.8rem;
  }
  
  .card-header,
  .card-body {
    padding: 1rem;
  }
}

/* Loading state styles */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Admin link styling */
.admin-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}

.admin-link:hover {
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
