/* General */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f7fa;
  color: #333;
}

header {
  text-align: center;
  padding: 2.5%;
  background: #002d72;
  color: white;
  border-radius: 0 0 12px 12px;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header .quote {
  font-size: 1rem;
  margin-top: 0.5rem;
  font-style: italic;
  opacity: 0.9;
}

/* Publication Card */
.publication-card {
  margin: 1rem auto;
  padding: 0;
  max-width: 1100px;
  background: white;
  border-radius: 28px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Tabs (Sticky inside Card) */
.tab-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #ffffff;
  position: sticky;
  top: 0;              /* stays at top inside card */
  z-index: 1000;
  border-bottom: 2px solid #ddd;
}

.tab {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #e0e0e0;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  flex-shrink: 0;
}

.tab.active,
.tab:hover {
  background: #002d72;
  color: white;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 1rem;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Table Wrapper (Scrollable) */
.table-wrapper {
  overflow-x: auto;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 8px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  min-width: 600px;
}

th, td {
  padding: 0.8rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

th {
  background: #002d72;
  color: white;
  position: sticky;
  top: 0;   /* sticks under tabs */
  z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.4rem;
  }
  th, td {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
  .tab {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .tab-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.5rem;
  }
  .tab {
    flex: none;
    white-space: nowrap;
  }
}
