/**
 * Articles Section Styles
 * CSS for Articles listing with tabs functionality
 */

.articles-section {
  background: #ffffff;
  padding: 2rem 0;
  margin: 0;
  border-top: 1px solid #e9ecef;
}

/* Using global .containerr from index.css - removed duplicate container styles */

.articles-header {
  margin-bottom: 2rem;
}

.articles-title {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  margin: 0;
  padding: 0;
  position: relative;
  display: inline-block;
}

.articles-title::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background: #1e3a8a;
}

/* === TABS STYLING === */
.articles-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
  overflow-x: auto;
  font-family: "Noto Sans", Arial, Helvetica, Roboto, sans-serif !important;
}

/* Force Noto Sans for all articles-tabs elements */
.articles-tabs,
.articles-tabs *,
.articles-tabs .tab-button {
  font-family: "Noto Sans", Arial, Helvetica, Roboto, sans-serif !important;
}

.tab-button {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 14px;
  color: #6c757d;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 16px;
  font-family: "Noto Sans", Arial, Helvetica, Roboto, sans-serif !important;
}

.tab-button:hover {
  color: #000;
  background: #f8f9fa;
}

.tab-button.active {
  color: #000;
  border-bottom: 3px solid #00275d;
  background: transparent;
}

/* === TAB CONTENT === */
.articles-content {
  position: relative;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content .coming-soon {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
  font-style: italic;
  font-size: 16px;
}

/* === ARTICLES GRID === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.article-card {
  background: #fff;
  border: none;
  border-radius: 4px;
  padding: 1.5rem;
  position: relative;
  height: 208px;
  transform: none !important;
  transition: none !important;
}

.article-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Removed hover effect for article-card
.article-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}
*/

/* === ARTICLE BADGES === */
.article-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 0;
  border-radius: 0;
  margin: 0;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
}

.article-badge::before {
  content: "○";
  margin-right: 0.5rem;
  font-size: 8px;
}

.article-badge.research {
  color: #666;
}

.article-badge.access {
  color: #666;
}

.article-badge.access.open-access {
  color: #28a745;
}

.article-badge.access.open-access::before {
  content: "●";
  color: #28a745;
}

/* === ARTICLE CONTENT === */
.article-title {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
  display: block;
}

.article-title a {
  color: #1f1f1f;
  text-decoration: none;
}

.article-title a:hover {
  color: #007bff;
  text-decoration: none;
}

.article-title a:visited {
  color: #1f1f1f;
  text-decoration: none;
}

.article-title a:active {
  color: #1f1f1f;
  text-decoration: none;
}

.article-title:hover {
  color: #007bff;
  cursor: pointer;
}

.article-authors {
  font-size: 14px;
  color: #007bff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.author {
  color: #1f1f1f;
  font-size: 13px;
  text-decoration: none;
  font-weight: 400;
}

.article-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 0.5rem;
}

.article-stats {
  font-size: 13px;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-actions {
  margin-top: auto;
}

.no-articles {
  text-align: center;
  padding: 3rem 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 2rem 0;
}

.no-articles .coming-soon {
  color: #6c757d;
  font-size: 16px;
  font-style: italic;
  margin: 0;
  padding: 0;
}

.pdf-link {
  font-size: 12px;
  color: #00275d;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pdf-link:hover {
  text-decoration: underline;
}

/* === READ MORE SECTION === */
.read-more-section {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  border: none !important;
}

.read-latest-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #5c5cb5;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-latest-btn:hover {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  /* Using global .containerr responsive styles from index.css */

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .articles-tabs {
    gap: 0;
  }

  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  /* Using global .containerr responsive styles from index.css */

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .articles-title {
    font-size: 24px;
  }

  .tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 12px;
  }

  .article-card {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .articles-section {
    padding: 1.5rem 0;
  }

  .articles-title {
    font-size: 20px;
  }

  .articles-tabs {
    margin-bottom: 1.5rem;
  }

  .tab-button {
    padding: 0.5rem;
    font-size: 11px;
    min-width: auto;
  }
}
