/* ===== News Page Styles ===== */

/* Hero Section */
.news-hero {
  background: linear-gradient(135deg, rgba(61, 143, 214, 0.08) 0%, rgba(39, 64, 96, 0.12) 100%);
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-hero::before,
.news-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 143, 214, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.news-hero::before {
  top: -100px;
  right: -100px;
}

.news-hero::after {
  bottom: -100px;
  left: -100px;
}

.news-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.news-hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.news-hero-ornament .ornament-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(61, 143, 214, 0.3), transparent);
  max-width: 150px;
}

.news-hero-ornament .ornament-center {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d8fd6, #2c6ba8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(61, 143, 214, 0.3);
  animation: ornamentGlow 3s ease-in-out infinite;
}

.news-hero-ornament .ornament-center i {
  font-size: 1.8rem;
  color: #fff;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes ornamentGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(61, 143, 214, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 30px rgba(61, 143, 214, 0.5), 0 0 30px rgba(61, 143, 214, 0.4);
    transform: scale(1.05);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.news-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #274060;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: 'fb', sans-serif;
}

.news-hero-title .heading-accent {
  color: #3d8fd6;
  opacity: 0.7;
  font-size: 0.8em;
}

.news-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #64748b;
  font-family: 'fr', sans-serif;
  line-height: 1.8;
}

/* Section Styles */
.featured-news-section,
.all-news-section {
  padding: 60px 20px;
}

.featured-news-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.03) 0%, rgba(61, 143, 214, 0.03) 100%);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #274060;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'fb', sans-serif;
}

.section-title i {
  color: #3d8fd6;
  font-size: 0.9em;
}

/* News Filters */
.news-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid rgba(61, 143, 214, 0.2);
  background: #fff;
  color: #64748b;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'fr', sans-serif;
}

.filter-btn:hover {
  border-color: #3d8fd6;
  color: #3d8fd6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 143, 214, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, #3d8fd6, #2c6ba8);
  color: #fff;
  border-color: #3d8fd6;
  box-shadow: 0 4px 12px rgba(61, 143, 214, 0.3);
}

.filter-btn i {
  font-size: 0.9em;
}

/* Featured News Grid */
.featured-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* News Card */
.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(61, 143, 214, 0.1);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(61, 143, 214, 0.2);
  border-color: rgba(61, 143, 214, 0.3);
}

.news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(61, 143, 214, 0.1), rgba(39, 64, 96, 0.1));
}

.news-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #274060;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  font-family: 'fb', sans-serif;
}

.news-card-content {
  padding: 25px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #94a3b8;
  font-family: 'fr', sans-serif;
}

.news-card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card-meta-item i {
  color: #3d8fd6;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #274060;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'fb', sans-serif;
}

.news-card-summary {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'fr', sans-serif;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(61, 143, 214, 0.1);
}

.news-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #64748b;
  font-family: 'fr', sans-serif;
}

.news-card-author i {
  color: #3d8fd6;
}

.news-card-read-more {
  color: #3d8fd6;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
  font-family: 'fb', sans-serif;
}

.news-card-read-more:hover {
  gap: 8px;
  color: #2c6ba8;
}

.news-card-read-more i {
  transition: transform 0.3s;
}

.news-card:hover .news-card-read-more i {
  transform: translateX(-3px);
}

/* Featured News Card (Larger) */
.news-card.featured {
  grid-column: span 1;
}

.news-card.featured .news-card-image {
  height: 280px;
}

.news-card.featured .news-card-title {
  font-size: 1.5rem;
}

/* Loading State */
.news-loading {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(61, 143, 214, 0.2);
  border-top-color: #3d8fd6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.news-loading p {
  color: #64748b;
  font-size: 1rem;
  font-family: 'fr', sans-serif;
}

/* Empty State */
.news-empty {
  text-align: center;
  padding: 80px 20px;
}

.news-empty i {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.news-empty p {
  color: #94a3b8;
  font-size: 1.1rem;
  font-family: 'fr', sans-serif;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 50px;
}

.load-more-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #3d8fd6, #2c6ba8);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(61, 143, 214, 0.3);
  font-family: 'fb', sans-serif;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 143, 214, 0.4);
}

.load-more-btn i {
  transition: transform 0.3s;
}

.load-more-btn:hover i {
  transform: translateY(3px);
}

/* News Modal */
.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.news-modal.active {
  display: flex;
}

.news-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.news-modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-modal-close {
  position: sticky;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  z-index: 10;
  float: left;
  margin: 20px 0 -60px 20px;
}

.news-modal-close:hover {
  background: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

.news-modal-close i {
  font-size: 1.2rem;
}

.news-modal-body {
  padding: 40px;
}

.news-detail-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
}

.news-detail-header {
  margin-bottom: 30px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #94a3b8;
  flex-wrap: wrap;
  font-family: 'fr', sans-serif;
}

.news-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-detail-meta-item i {
  color: #3d8fd6;
}

.news-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #274060;
  line-height: 1.4;
  margin-bottom: 20px;
  font-family: 'fb', sans-serif;
}

.news-detail-summary {
  font-size: 1.15rem;
  color: #64748b;
  line-height: 1.8;
  padding: 20px;
  background: linear-gradient(135deg, rgba(61, 143, 214, 0.05), rgba(39, 64, 96, 0.05));
  border-right: 4px solid #3d8fd6;
  border-radius: 8px;
  margin-bottom: 30px;
  font-family: 'fr', sans-serif;
}

.news-detail-content {
  font-size: 1.05rem;
  color: #475569;
  line-height: 2;
  font-family: 'fr', sans-serif;
}

.news-detail-content p {
  margin-bottom: 20px;
}

.news-detail-content h2,
.news-detail-content h3 {
  color: #274060;
  margin: 30px 0 15px;
  font-family: 'fb', sans-serif;
}

.news-detail-content ul,
.news-detail-content ol {
  margin: 20px 0;
  padding-right: 25px;
}

.news-detail-content li {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .news-hero {
    padding: 100px 20px 60px;
  }
  
  .news-hero-ornament .ornament-center {
    width: 60px;
    height: 60px;
  }
  
  .news-hero-ornament .ornament-center i {
    font-size: 1.5rem;
  }
  
  .featured-news-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .news-filters {
    width: 100%;
  }
  
  .filter-btn {
    flex: 1;
    justify-content: center;
  }
  
  .news-card-image,
  .news-card.featured .news-card-image {
    height: 200px;
  }
  
  .news-modal-body {
    padding: 20px;
  }
  
  .news-detail-image {
    height: 250px;
  }
  
  .news-modal-close {
    margin: 10px 0 -50px 10px;
  }
}

@media (max-width: 576px) {
  .news-hero-title .heading-accent {
    font-size: 0.7em;
  }
  
  .filter-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  
  .news-card-content {
    padding: 20px;
  }
  
  .news-card-title {
    font-size: 1.1rem;
  }
}
