/* News Section - Inline overlay (same pattern as projects) */

.news-section {
  position: fixed;
  bottom: -100vh;
  left: 0;
  width: calc(100% - 450px);
  height: 90vh;
  background-color: rgba(10, 25, 40, 0.98);
  border-top: 1px solid rgba(59, 193, 199, 0.5);
  z-index: 900;
  overflow-y: auto;
  transition: bottom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  padding-bottom: 50px;
  padding-left: 20px;
  padding-right: 20px;
}

.news-section.active {
  bottom: 0;
}

.news-section-header {
  text-align: left;
  padding: 30px 40px;
  position: sticky;
  top: 0;
  background-color: rgba(10, 25, 40, 0.98);
  z-index: 10;
  border-bottom: 1px solid rgba(59, 193, 199, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 2.5rem;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.news-section-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 2px;
  background-color: #3bc1c7;
  transition: width 0.3s ease;
}

.news-section.active .news-section-header h2::after {
  width: 120px;
}

.news-section-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(59, 193, 199, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.news-section-close:hover {
  opacity: 1;
  color: #3bc1c7;
  border-color: #3bc1c7;
  transform: rotate(90deg);
  background: rgba(59, 193, 199, 0.1);
}

.news-section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Cormorant', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 20px 40px 0;
  margin: 0;
}

.news-articles {
  max-width: 850px;
  margin: 30px 0 40px 40px;
  padding: 0 20px;
}

.news-card {
  background-color: rgba(20, 50, 70, 0.9);
  border: 1px solid rgba(59, 193, 199, 0.4);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: all 0.4s ease, opacity 0.8s ease, transform 0.8s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.news-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover {
  background-color: rgba(25, 60, 85, 0.95);
  border-color: rgba(59, 193, 199, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.news-card-header {
  padding: 30px 35px 20px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-card-date {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Cormorant', serif;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.news-card-author {
  color: #3bc1c7;
  font-family: 'Cormorant', serif;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.news-card-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-category-tag {
  background-color: rgba(59, 193, 199, 0.25);
  border: 1px solid rgba(59, 193, 199, 0.6);
  border-radius: 20px;
  padding: 6px 14px;
  color: #ffffff;
  font-family: 'Cormorant', serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.news-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1.4;
  color: #ffffff;
}

.news-card-expand {
  color: #3bc1c7;
  font-family: 'Cormorant', serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.news-card:hover .news-card-expand {
  color: #5dd8de;
}

.news-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, padding 0.4s ease;
  padding: 0 35px;
}

.news-card.expanded .news-card-body {
  max-height: 3000px;
  padding: 0 35px 30px;
}

.news-card.expanded .news-card-expand {
  display: none;
}

.news-section-block {
  margin-bottom: 24px;
  padding: 22px;
  background-color: rgba(0, 0, 0, 0.3);
  border-left: 3px solid rgba(59, 193, 199, 0.5);
  border-radius: 4px;
}

.news-section-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: 0.08em;
  color: #3bc1c7;
}

.news-section-block p {
  font-family: 'Cormorant', serif;
  color: #ffffff;
  line-height: 1.8;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.news-loading {
  text-align: center;
  padding: 60px 20px;
  color: #3bc1c7;
  font-family: 'Cormorant', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.news-empty h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: #ffffff;
}

.news-empty p {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: 1.1rem;
}

@media (max-width: 1200px) {
  .news-section { width: calc(100% - 400px); }
  .news-articles { margin: 30px auto 40px 20px; max-width: 800px; }
}

@media (max-width: 992px) {
  .news-section { width: calc(100% - 350px); }
}

@media (max-width: 768px) {
  .news-section {
    width: 100%;
    padding-bottom: 100px;
  }
  .news-articles { margin: 30px auto; padding: 0 15px; }
  .news-card-header { padding: 20px; }
  .news-card-body { padding: 0 20px; }
  .news-card.expanded .news-card-body { padding: 0 20px 20px; }
  .news-card-title { font-size: 1.4rem; }
  .news-section-block { padding: 15px; }
}

@media (max-width: 480px) {
  .news-card-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Bullet list styling for article content */
.news-section-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-section-block ul li {
  font-family: 'Cormorant', serif;
  color: #ffffff;
  line-height: 1.8;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid rgba(59, 193, 199, 0.1);
}

.news-section-block ul li:last-child {
  border-bottom: none;
}

.news-section-block ul li::before {
  content: '●';
  color: #3bc1c7;
  position: absolute;
  left: 0;
  font-size: 0.5rem;
}

/* Source citation */
.news-source {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(59, 193, 199, 0.7);
  font-weight: 300;
}
