/**
 * Homepage Styles for IJCRES Theme
 * Converted from LESS to CSS
 */

/* ============================================
   Journal Performance Metrics
   ============================================ */

.journal_performance_metrics {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  font-family: 'Times New Roman', Times, serif;
}

.journal_performance_metrics h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
}

.metrics-container {
  width: 100%;
}

.metrics-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.metric-item {
  padding: 0.5rem 1rem;
  border-left: 3px solid #0b8585;
  flex: 1;
  min-width: 0;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.metric-label {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.25rem;
}

.metric-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.metric-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #0b8585;
  color: #fff;
  border-radius: 2px;
  font-size: 1.5rem;
  line-height: 1;
}

.metric-link-text {
  font-size: 0.85rem;
  color: #0b8585;
}

/* Responsive metrics */
@media (max-width: 768px) {
  .metrics-grid {
    flex-wrap: wrap;
  }

  .metric-item {
    flex: 0 0 calc(50% - 0.5rem);
    margin-bottom: 1rem;
  }

  .metric-link {
    flex: 0 0 100%;
    justify-content: center;
  }
}

/* ============================================
   Editorial Board Section
   ============================================ */

.editorial-board-section {
  background: #000a66;
  color: #fff;
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.editorial-board-section h3 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  color: #fff;
  /* Explicitly white */
}

.editorial-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.view-full-board {
  color: #fff;
  text-decoration: none;
  /* Remove underline */
  font-size: 0.9rem;
  opacity: 0.9;
}

.view-full-board:hover {
  opacity: 1;
  text-decoration: none;
}

.editorial-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.editorial-slider {
  overflow: hidden;
  flex: 1;
}

.editorial-slider-track {
  display: flex;
  transition: transform 0.3s ease;
  gap: 1.5rem;
}

.editor-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  text-align: center;
}

.editor-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.editor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #555;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 0.75rem;
  transition: all 0.2s ease;
}

.editor-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  display: block;
  background: #555;
  transition: all 0.2s ease;
}

.editor-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #fff;
}

.editor-affiliation {
  font-size: 0.8rem;
  color: #aaa;
  margin: 0;
  line-height: 1.3;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease;
}

.slider-dot.active {
  background: #fff;
}

/* Responsive editorial slider */
@media (max-width: 992px) {
  .editor-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 576px) {
  .editor-card {
    flex: 0 0 100%;
  }

  .editorial-board-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ============================================
   Articles Section with Tabs
   ============================================ */

.articles-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

.articles-section>h3 {
  font-size: 1.2rem;
  color: #000;
  /* Changed to black */
  margin: 0 0 1rem;
  font-weight: 600;
}

.article-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.5rem;
}

.article-tab {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0;
  /* No margin below */
  border-radius: 0;
  /* No border radius */
}

.tab-content {
  display: none;
}

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

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

.article-card {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  /* Reduced spacing */
  flex-wrap: wrap;
}

.article-type {
  font-size: 0.75rem;
  color: #666;
}

.open-access {
  font-size: 0.75rem;
  color: #2e7d32;
  font-weight: 500;
}

.article-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1 !important;
}

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

.article-title a:hover {
  color: #0066cc;
}

.article-authors {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.15rem;
  /* Reduced spacing */
}

.article-date {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 0.5rem;
  /* Reduced spacing */
}

.view-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #c62828;
  text-decoration: none;
}

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

.pdf-icon {
  font-size: 1rem;
}

.no-articles {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Responsive articles grid */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-tabs {
    flex-wrap: wrap;
  }

  .article-tab {
    flex: 0 0 50%;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   Journal Performance Metrics
   ============================================ */

.journal_performance_metrics {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  font-family: 'Times New Roman', Times, serif;
}

.journal_performance_metrics h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
}

.metrics-container {
  width: 100%;
}

.metrics-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.metric-item {
  padding: 0.5rem 1rem;
  border-left: 3px solid #0b8585;
  flex: 1;
  min-width: 0;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.metric-label {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.25rem;
}

.metric-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.metric-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #0b8585;
  color: #fff;
  border-radius: 2px;
  font-size: 1.5rem;
  line-height: 1;
}

.metric-link-text {
  font-size: 0.85rem;
  color: #0b8585;
}

/* Responsive metrics */
@media (max-width: 768px) {
  .metrics-grid {
    flex-wrap: wrap;
  }

  .metric-item {
    flex: 0 0 calc(50% - 0.5rem);
    margin-bottom: 1rem;
  }

  .metric-link {
    flex: 0 0 100%;
    justify-content: center;
  }
}

/* ============================================
   Editorial Board Section
   ============================================ */

.editorial-board-section {
  background: #000a66;
  color: #fff;
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.editorial-board-section h3 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

.editorial-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.editorial-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.editorial-slider {
  overflow: hidden;
  flex: 1;
}

.editorial-slider-track {
  display: flex;
  transition: transform 0.3s ease;
  gap: 1.5rem;
}

.editor-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  text-align: center;
}

.editor-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.editor-link:hover {
  text-decoration: none !important;
}

.editor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #555;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 0.75rem;
  transition: background 0.2s ease;
}

.editor-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #fff;
}

.editor-affiliation {
  font-size: 0.8rem;
  color: #aaa;
  margin: 0;
  line-height: 1.3;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease;
}

.slider-dot.active {
  background: #fff;
}

/* Responsive editorial slider */
@media (max-width: 992px) {
  .editor-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 576px) {
  .editor-card {
    flex: 0 0 100%;
  }

  .editorial-board-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ============================================
   Articles Section with Tabs
   ============================================ */

.articles-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

.articles-section>h3 {
  font-size: 1.2rem;
  color: #0066cc;
  margin: 0 0 1rem;
  font-weight: 600;
}

.article-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.5rem;
}

.article-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-tab:hover {
  color: #333;
  background-color: transparent;
}

.article-tab.active {
  color: #333;
  border-bottom-color: rgb(11, 133, 133);
  font-weight: 500;
}

.tab-content {
  display: none;
}

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

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

.article-card {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.article-type {
  font-size: 0.75rem;
  color: #666;
}

.open-access {
  font-size: 0.75rem;
  color: #2e7d32;
  font-weight: 500;
}

.article-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

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

.article-title a:hover {
  color: #0066cc;
}

.article-authors {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.25rem;
}

.article-date {
  font-size: 0.8rem;
  color: #888;
  margin: 0 0 0.75rem;
}

.view-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #c62828;
  text-decoration: none;
}

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

.pdf-icon {
  font-size: 1rem;
}

.no-articles {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Responsive articles grid */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-tabs {
    flex-wrap: wrap;
  }

  .article-tab {
    flex: 0 0 50%;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}