/* styles.css */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fbbc04;
  margin-left: 1rem;
  display: inline-block;
  height: 100%;
}

.logo a {
  display: inline-block;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #fbbc04;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  width: 100%;
  flex: 1;
}

.table-container {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  overflow: auto;
}

.table-wrapper {
  overflow-x: auto;
}

input[type="text"] {
  padding: 0.5rem;
  width: 14.28%;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  table-layout: fixed;
}

th, td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  width: 16.66%;
  word-wrap: break-word;
}

th {
  cursor: pointer;
  background-color: #fafafa;
}

th:hover {
  background-color: #f3f3f3;
}

.pagination {
  text-align: center;
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination button {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border: none;
  background-color: #fbbc04;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  min-height: 44px;
}

.pagination button:disabled {
  background-color: #ddd;
  color: #999;
  cursor: not-allowed;
}

a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.2s;
}

a:hover {
  color: #fbbc04;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #f3f3f3;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
}

.tab-button:hover:not(.active) {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.tab-button.active {
  background-color: #fbbc04;
  color: white;
}

table tbody tr {
  transition: background-color 0.3s ease;
}

table tbody tr:hover {
  background-color: #f0f0f0;
}

.faq-container {
  max-width: 100%;
  padding: 1rem;
  margin-left: 0;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

.faq-question {
  font-weight: bold;
  cursor: pointer;
  padding: 0.75rem;
  background: #f9f9f9;
  border-radius: 5px;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-answer {
  display: none;
  padding: 0.75rem 1rem;
  background: #fff;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  display: block;
}

footer {
  background-color: #f9f9f9;
  padding: 2rem 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95rem;
  color: #555;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-section {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-section h4,
.footer-section h5 {
  margin-bottom: 0.75rem;
  color: #111;
}

.footer-section p,
.footer-section a {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #fbbc04;
}

.footer-legal .disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #888;
}

.footer-legal .copyright {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.5rem;
}

@media (max-width: 800px) {

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-section {
    text-align: center;
  }

  header {
    padding: 1rem;
  }

  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo {
    margin: 0 auto 1rem;
  }

  nav {
    position: static;
    transform: none;
    flex-direction: column;
    gap: 1rem;
  }

  input[type="text"] {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .table-container {
    padding: 1rem;
  }

  table,
  th,
  td {
    font-size: 0.7rem;
  }

  .hide-when-narrow {
    display: none;
  }

  .pagination {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pagination button {
    width: 100%;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
