/* Global default */
body {
  font-family: 'Inter', sans-serif;
  background-color: #fff8dc;
  color: #000;
}

/* Article headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
}

/* Navbar and menu */
.navbar,
.navbar .nav-link,
.navbar .dropdown-menu,
.navbar .dropdown-item {
  font-family: 'Inter', sans-serif;
}

/* Read More button */
.btn-read-more {
  background-color: white;
  border: 3px solid #ffcc00;
  color: black;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}


.btn-read-more:hover {
  background-color: #ffcc00;
  color: black;
}

/* Story card images */
.story-card img {
  max-height: 150px;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}

.navbar {
  background-color: #ffcc00 !important;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: #000 !important;
}

.navbar .dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
}

.story-card img {
  max-height: 150px;
  object-fit: cover;
}

.story-card {
  display: flex;
  flex-direction: column;
}

.story-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.read-more-container {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.btn-read-more {
  background-color: white;
  border: 3px solid #ffcc00;
  color: black;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.btn-read-more:hover {
  background-color: #ffcc00;
  color: black;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 14px;
  color: #333;
}

thead {
  background-color: #f5f5f5;
}

thead th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid #ccc;
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

tbody tr:hover {
  background-color: #f9f9f9;
}

tr:nth-child(even) td {
  background-color: #fcfcfc;
}

tr:nth-child(odd) td {
  background-color: #ffffff;
}

td, th {
  padding: 10px;
}

caption {
  caption-side: top;
  font-weight: bold;
  margin-bottom: 0.5em;
  font-size: 16px;
}


@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    position: relative;
    padding-left: 50%;
    border: none;
    border-bottom: 1px solid #eee;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: bold;
    white-space: nowrap;
  }
}
