.filters-container {
  text-align: center;
  margin-bottom: 1rem;
}

.filter-toggle-button {
  background-color: #003DA5;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-toggle-button:hover {
  background-color: #FFFFFF;
  color: #003DA5;
}

#filters-panel.collapsed {
  display: none;
}

#filters-panel.expanded {
  display: block;
  margin-top: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 350px);
  justify-content: center;
  gap: 1rem;
}

.card > * {
  flex-shrink: 0;
}

.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  background: rgba(253, 253, 253, 0.85);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  height: 350px;
  overflow-y: auto;
}

.card h3 {
  font-family: 'ABC Ginto Nord Medium', sans-serif;
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.card h3 a {
  color: #151F6D;
  text-decoration: none;
  cursor: pointer;
}

.card h3 a:hover {
  color: #003DA5 !important;
  background-color: rgba(0, 61, 165, 0.1);
}

.card h3 a:visited,
.card h3 a:active {
  color: #151F6D;
  text-decoration: none;
}

.card-logo {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  display: block;
}

.card p {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 200px;
  margin: 0;
  font-family: 'ABC Ginto Nord Light', sans-serif;
}

.card p::-webkit-scrollbar {
  width: 6px;
}

.card p::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.tags {
  margin-top: auto;
}

.tag {
  display: inline-block;
  background: #003DA5;
  color: #f5efeb;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 5px;
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: 'ABC Ginto Nord Light', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
}

.tag:hover {
  background: #151F6D;
}

.filter-tabs {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tab-headers {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-button {
  font-family: 'ABC Ginto Nord Medium';
  font-weight: 300;
  background-color: #003DA5;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 1.2;
}

.tab-button:hover {
  background-color: #FFFFFF;
  color: #151F6D;
}

.tab-button.active {
  background-color: #FFFFFF !important;
  color: #151F6D !important;
}

.tab-content {
  display: none;
}

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


.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.5rem;
  row-gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-row label {
  font-family: 'ABC Ginto Nord Medium', sans-serif;
  font-weight: bold;
  color: #151F6D;
  margin-right: 0.5rem;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  display: inline-block;
}

.filter-buttons {
  position: static;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  margin: 0 auto 2rem auto;
}

.button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-buttons button {
  font-family: 'ABC Ginto Nord Light', sans-serif;
  font-weight: 300;
  background-color: #003DA5;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 1.2;
}

.filter-buttons button:hover,
.tab-content button:hover {
  background-color: #151F6D;
  color: #FFFFFF;
}

button.selected {
  color: #FFFFFF !important;
  background-color: #003DA5 !important;
}

.reset-button-container {
  text-align: center;
  margin-top: 1em;
}

#reset-filters {
  padding: 0.5em 1.2em;
  background-color: #eee;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #151F6D;
}

.filter-tabs .tab-content button,
#reset-filters {
  padding: 0.5em 1.2em;
  background-color: #eee;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #151F6D;
  margin: 0.3em;
  transition: background-color 0.2s ease;
}

.filter-tabs .tab-content button:hover,
#reset-filters:hover {
  background-color: #ddd;
}


/*.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('../images/background.jpeg') no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
}*/

body {
  background-color: #c2c1bc;
}

/*body {
  background-color: #c2c1bc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ctext x='10' y='90' font-size='30' fill='%23003DA5'%3E+%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}*/


.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  top: 0;
  z-index: 1000;
  height: auto;
  max-width: 550px;
  margin: 0 auto;
  border-radius: 8px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.site-logo {
  height: 40px;
  margin-right: 1rem;
}

.site-title {
  font-family: 'ABC Ginto Nord', sans-serif;
  font-weight: bold;
  color: #151F6D;
  font-size: 3rem;
  margin: 0;
}

main {
  margin-top: 1.5rem;
}

.content-container {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 1rem 2rem;
}

@font-face {
  font-family: 'ABC Ginto Nord';
  src: url('fonts/ABCGintoNord-Bold-Trial.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'ABC Ginto Nord Medium';
  src: url('fonts/ABCGintoNord-Medium-Trial.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'ABC Ginto Nord Light';
  src: url('fonts/ABCGintoNord-Light-Trial.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

.site-footer {
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 2rem;
  margin-top: 3rem;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
  font-family: 'ABC Ginto Nord Light', sans-serif;
}

.footer-content a {
  color: #151F6D;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #003DA5;
  text-decoration: underline;
}

.footer-separator {
  margin: 0 1rem;
  color: #151F6D;
}