* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

header {
  position: relative;
  z-index: 1;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

body {
  background-image: url("../images/back-ground.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 0;
  background-attachment: fixed;
  transition: background-position 0.1s ease;
}

html,
body {
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ddd;
}

main {
  padding: 0 2rem;
}

.ql-align-justify {
  text-align: justify;
}

.ql-align-left {
  text-align: left;
}
.ql-align-center {
  text-align: center;
}
.ql-align-right {
  text-align: right;
}

.section-title {
  font-size: 1.5rem;
  margin-top: 4rem; /* Increase this value as needed */
  margin-bottom: 1rem;
}

/* Header Section */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: rgba(244, 244, 244, 0.9);
  backdrop-filter: blur(10px); /* blur the background behind the navbar */
  -webkit-backdrop-filter: blur(10px);
  /* border-bottom: 1px solid #f4f4f4; */
  position: relative;
  z-index: 999;
}

.top-left,
.top-right {
  flex: 0 0 auto;
  white-space: nowrap;
}

.top-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.trophy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.trophy img {
  height: 35px;
  margin: 0;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-right a {
  text-decoration: none;
}

.top-right a i {
  font-size: 1.2rem;
  color: #1b1c20;
  transition: color 0.3s ease;
}

.top-right a i.fa-instagram {
  font-size: 1.4rem;
}

.top-right a i.fa-youtube {
  font-size: 1.4rem;
}

.top-right a:hover i {
  color: #009836;
}

/* NAVBAR Section */
.navbar {
  width: 100%;
  height: 60px;
  overflow: visible;
  display: flex;
  align-items: center;
}

#navbar-placeholder {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(244, 244, 244, 0.9);
  backdrop-filter: blur(10px); /* blur the background behind the navbar */
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* optional subtle shadow */
}

.navbar.visible {
  top: 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  position: relative;
  height: 100px;
  margin-bottom: -50px;
  flex-shrink: 0;
  overflow: visible;
  display: flex;
  align-items: center;
}

.navbar .logo a {
  display: flex;
  height: 100%;
  align-items: center;
}

.navbar .logo img {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-links {
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  margin-left: 0 !important;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #009836;
}

.navbar-container {
  padding-left: 1.5rem !important;
}

.navbar .logo {
  margin-left: 1rem !important;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.8); /* semi-transparent white */
  border: 1px solid rgba(204, 204, 204, 0.4); /* optional: semi-transparent border */
  backdrop-filter: blur(10px); /* optional: blur effect */
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 999;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #1b1c20;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
  color: #009836;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Support for nested dropdown (e.g. "MÉRKŐZÉSEK" inside "CSAPAT") */
.dropdown-menu .dropdown {
  position: relative;
}

.dropdown-menu li.dropdown > .dropdown-menu {
  top: 0;
  left: 100%;
  position: absolute;
  display: none;
  background-color: rgba(255, 255, 255, 0.8); /* semi-transparent white */
  border: 1px solid rgba(204, 204, 204, 0.4); /* optional: semi-transparent border */
  backdrop-filter: blur(10px); /* optional: blur effect */
  -webkit-backdrop-filter: blur(10px);
  min-width: 160px;
  z-index: 998;
}

.dropdown-menu li.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu {
  list-style: none;
}

/* Footer */
.simple-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ddd;
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

.simple-footer a {
  color: #ddd;
  text-decoration: none;
}

.simple-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.scroll-to-top {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 50px;
  height: 50px;
  opacity: 0.8;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
  opacity: 1;
}

.scroll-to-top img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Match-highlights */
.match-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 6rem auto 6rem auto;
  padding: 0 1rem;
}

.match {
  flex: 1 1 450px;
  background-color: #fff;
  background-image: url("../images/14241.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  height: 1310px;
}

.match h2 {
  font-size: 1.25rem;
  color: #1b1c20;
  margin-bottom: 1rem;
}

.match-label {
  text-align: left;
  font-size: 1.1rem;
  color: #444;
  font-weight: bold;
}

.match .match-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.match .match-logo img {
  height: 90px;
  width: 90px;
  object-fit: contain;
}

.match .match-logo span {
  font-weight: bold;
  font-size: 1.25rem;
  color: #1b1c20;
}

.match .league,
.match .match-time,
.match {
  text-align: center;
  font-size: 0.9rem;
  color: #1b1c20;
  margin: 0.25rem 0;
}

.match a.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 8px 16px;
  background-color: #009836;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s;
}

.match a.button:hover {
  background-color: #00b347;
}

/* News */
.news-carousel {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.news-carousel .section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.news-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.news-card {
  flex: 0 0 auto;
  width: 360px;
  height: 360px;
  background-color: #fff;
  border-radius: 8px;
  scroll-snap-align: start;
  overflow: hidden;
  padding: 0; /* remove padding */
}

.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.news-card p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 1rem;
}

.news-container::-webkit-scrollbar {
  height: 8px;
}

.news-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.news-container::-webkit-scrollbar-track {
  background: transparent;
}

/* News page grid and card styles */
.news-page .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 6rem auto;
  padding: 0 1rem;
}

.news-page .news-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.news-page .news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.news-page .news-card h3,
.news-page .news-card .news-date {
  color: #ddd;
}
.news-page .news-card h3 {
  font-size: 1.1rem;
}
.news-page .news-card .news-date {
  font-size: 0.9rem;
}

.news-page .news-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 4rem auto 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.news-page .news-filter-bar .newsletter-signup {
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #009836);
  color: white;
  border: 2px solid #fff;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2);
}

.news-page .news-filter-bar .newsletter-signup:hover {
  background: linear-gradient(135deg, #00b347);
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.news-page .news-filter-bar input[type="text"],
.news-page .news-filter-bar select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.news-page .eto-home-logo {
  display: flex;
  justify-content: flex-start;
  margin: 0 2rem 2rem 2rem;
}

.news-page .eto-home-logo img {
  height: 90px;
  object-fit: contain;
}

.news-detail-image {
  width: 1200px;
  height: 600px;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

#news-content {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 1rem;
}

#news-content img {
  max-width: 900px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

#pagination.pagination {
  display: flex !important;
  justify-content: center !important;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.news-gallery-preview {
  max-width: 640px;
  text-align: center;
}

.news-gallery-preview h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #ddd;
}

.news-gallery-preview img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  transition: 0.2s ease;
  cursor: pointer;
  display: block;
}

.news-gallery-preview img:hover {
  opacity: 0.9;
}

.news-media-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.news-gallery-preview,
.youtube-wrapper {
  flex: 1 1 480px;
  max-width: 600px;
}

.youtube-wrapper iframe {
  width: 100%;
  height: 340px;
  border-radius: 8px;
  display: block;
  text-align: center;
  margin-top: 3.1rem;
}

/* Sponsor carousel */
.sponsor-carousel {
  max-width: 100%;
  padding: 2rem 0;
  text-align: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 6rem;
}

.sponsor-track {
  position: relative;
  width: 100%;
  height: 120px;
}

.sponsor-track img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  border-radius: 4px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 0;
}

/* Active sponsor image */
.sponsor-track img.active {
  opacity: 1;
  z-index: 1;
}

/* Audi sponsor */
.sponsor-wrapper {
  width: 1224px;
  margin: 0 auto 6rem auto;
  text-align: center;
  height: auto;
}

.sponsor-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Scorers and Tables Section */
.scorers-tables-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center child(ren) horizontally */
  gap: 2rem;
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 1rem;
}

.tables-box {
  flex: 0 1 500px; /* start at 500px, shrink if needed, don’t grow to full width */
  margin: 0 auto; /* center this box if it’s the only child */
  background-image: url("../images/14241.jpg");
  background-size: cover; /* fill box properly instead of background-size:100% */
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  padding: 1.5rem;
  height: 580px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

.table-header select {
  padding: 0.4rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.league-table {
  width: 100%;
  border-collapse: collapse;
}

.tables-box .table-header h2 {
  color: #1b1c20;
  padding-left: 0.5rem;
  border-left: 4px solid #009836;
}

.league-table th,
.league-table td {
  border: 1px solid #ccc;
  padding: 0.25rem;
  text-align: left;
  font-size: 13px;
}

.league-table td:not(:nth-child(2)) {
  text-align: center;
}

.league-table th {
  background-color: #d7b262;
}

.league-table tbody tr.highlight-team {
  background-color: #d7f0d3;
  font-weight: bold;
}

.scorers-tables-section {
  transition: transform 0.4s ease-in-out;
  transform: scale(1);
}

/* .scorers-tables-section.expand-animation {
  transform: scale(1.02);
  transition: transform 0.4s ease-in-out;
} */

/* Table expands */
#table {
  scroll-margin-top: 120px;
}

#table.expand-animation {
  transform: scale(1.02);
  transition: transform 0.4s ease-in-out;
}

.table-expand.expand-animation {
  transform: scale(1.02);
  transition: transform 0.4s ease-in-out;
}

.table-expand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0;
  min-height: 500px;
  width: 100%;
  box-sizing: border-box;
}

.table-expand .scorers-box {
  flex: 0 0 728px;
  max-width: 728px;
  min-height: 500px;
  background-color: #fff;
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.table-expand .tables-box {
  flex: 0 0 600px;
  max-width: 600px;
  min-height: 500px;
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Webshop Section */
.webshop-carousel {
  max-width: 1200px;
  margin: 2rem auto 4rem auto;
  padding: 0 1rem;
}

.webshop-carousel .section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.webshop-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.product-card {
  flex: 0 0 auto;
  width: 360px;
  height: 360px;
  background-color: #fff;
  border-radius: 8px;
  scroll-snap-align: start;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.product-card h3,
.product-card p {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 0.4rem;
  background: rgba(0, 0, 0, 0.7);
  color: #ddd;
  font-size: 0.9rem;
}

.product-card h3 {
  bottom: 2.15rem;
}

.product-card p {
  bottom: 0;
  font-weight: bold;
}

.webshop-container::-webkit-scrollbar {
  height: 8px;
}

.webshop-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.webshop-container::-webkit-scrollbar-track {
  background: transparent;
}

/* Calendar section */
.calendar-section {
  max-width: 1200px;
  margin: 6rem auto 8rem auto;
  padding: 0 1rem;
  scroll-margin-top: 160px;
}

.calendar-section .section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.calendar-placeholder {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 2rem;
  font-size: 1rem;
  color: #555;
  text-align: center;
}

/* Expandable calendar container */
.calendar-expand {
  display: block;
  background-image: url("../images/14240.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease-in-out;
  /* transform: scale(1); add this line */
}

/* Expand animation for calendar container */
.calendar-expand.expand-animation {
  transform: scale(1.02);
  transition: transform 0.4s ease-in-out;
}

.fc-toolbar-title {
  color: #1b1c20;
  font-weight: bold;
}

/* FIX */
.fc-daygrid-day {
  border: 0.25px solid #1b1c20;
  background-color: transparent;
}

.fc-daygrid-day-frame {
  /* border: 0.25px solid #1b1c20; */
  border: none; /* was drawing short borders */ /* FIX */
  height: 100%; /* FIX */
  display: flex; /* FIX */
  flex-direction: column; /* FIX */
}

/* FIX */
.fc .fc-scrollgrid,
.fc .fc-scrollgrid-sync-table {
  border-collapse: collapse;
}

/* Calendar Event Styling */

.fc-day-today {
  background-color: #d7f0d3 !important;
}

.fc-event {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2px 4px;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}

.fc-event-title {
  display: block;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.2em;
  word-break: break-word;
  white-space: normal;
  text-overflow: ellipsis;
  max-height: none;
}

.fc-event-time {
  display: block;
  font-size: 0.75rem;
  color: #fff;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sync button styles for calendar section */
#calendar-section .btn {
  display: inline-block;
  background-color: #009836;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#calendar-section .btn:hover {
  background-color: #007a2e;
}

/* Calendar Popup */
.calendar-sync-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.calendar-sync-popup .popup-content {
  background-image: url("../images/14240.jpg");
  background-size: cover;
  background-position: center;
  padding: 2rem;
  border-radius: 10px;
  width: 320px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #fff;
  position: relative;
}

.calendar-sync-popup .popup-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #444;
}

.calendar-sync-popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calendar-sync-popup li {
  margin: 1rem 0;
}

.calendar-sync-popup a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #ddd;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.calendar-sync-popup a:hover {
  background: rgba(0, 0, 0, 0.7);
}

.calendar-sync-popup img.icon {
  height: 30px;
  width: 30px;
}

#close-calendar-popup {
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #009836;
  color: #444;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#close-calendar-popup:hover {
  background-color: #007a2e;
  color: #ddd;
}

/* Social Media Section */
.social-media-section {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 1rem;
}

.social-media-section .section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.social-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  justify-content: center;
}

.social-media-grid > *:nth-child(1) {
  grid-column: 2;
}
.social-media-grid > *:nth-child(2) {
  grid-column: 3;
}

.social-card .social-embed {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.social-card {
  position: relative;
  height: 350px;
  padding-top: 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.social-card iframe,
.social-card blockquote {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
}

.social-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.tiktok-logo {
  width: 200px;
  margin-bottom: 1rem;
}

.social-cta {
  font-size: 1.1rem;
  color: #111;
}

/* Sponsors */

.sponsor-grid {
  background-image: url("../images/back-ground-white.jpg");
  border-radius: 8px;
  padding-bottom: 1rem;
}

#sponsors-placeholder {
  padding: 0 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.sponsor-grid-container a:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.sponsor-grid-container a {
  transition: transform 0.3s ease;
}

.sponsor-grid h2 {
  color: #1b1c20;
  margin-left: 1rem;
}

.sponsor-level {
  margin-bottom: 4rem;
}

/* Level-based sizing */
.sponsor-level-1 .sponsor-grid-container a {
  max-width: 500px;
  max-height: 250px;
}

.sponsor-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.sponsor-grid-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Players */
.players-page .players-section {
  max-width: 1200px;
  margin: 4rem auto 6rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.player-card {
  perspective: 1000px;
  width: 240px;
  height: 360px;
}

.player-card .card-inner {
  width: 240px;
  height: 360px;
}

.card-inner {
  position: relative;
  width: 240px;
  height: 360px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Disable hover flip */
.player-card:hover .card-inner {
  transform: none;
  z-index: auto;
}

/* Triggered by JS */
.player-card.active {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 360px;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.5s ease, width 0.5s ease, height 0.5s ease;
  z-index: 1001;
}

.player-card.active .card-inner {
  transform: rotateY(180deg) scale(1.2);
  z-index: 1002;
}

.team-image {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
}

/* Add a backdrop */
.player-card-backdrop {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.card-front {
  position: absolute;
  width: 240px;
  height: 360px;
  backface-visibility: hidden;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-back {
  position: absolute;
  width: 240px;
  height: 360px;
  backface-visibility: hidden;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.card-back {
  transform: rotateY(180deg);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  font-size: 0.95rem;
  background-image: url("https://ik.imagekit.io/7e18t15e/cards/card_back_qrnpyy.jpg?updatedAt=1754421089019");
  background-size: cover;
  background-position: center;
  color: #000 !important;
}

.card-back p {
  text-align: left;
  word-break: break-word !important;
  white-space: normal !important;
  line-height: 1.3;
  margin: 0.3rem 0;
}

.card-back * {
  color: #000 !important;
}

.html {
  scroll-behavior: smooth;
}
html {
  scroll-behavior: smooth;
}

/* Contact page styling */
.page-title {
  text-align: center;
  font-size: 2rem;
  margin: 4rem 0 3rem 0;
  color: #ccc;
}

.contact-info,
.shop-info {
  max-width: 800px;
  margin: 2rem auto;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 2rem;
  line-height: 1.6;
  font-size: 1rem;
}

.contact-info h2,
.shop-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ddd;
}

.contact-info p,
.shop-info p,
.shop-info ul {
  color: #ddd;
  margin-bottom: 0.5rem;
}

.shop-info ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.map-section {
  width: 100vw;
  margin: 4rem 0;
  padding: 0;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.contact-info a[href^="mailto:"],
.shop-info a[href^="mailto:"] {
  color: #009836; /* pink or any color you want */
  font-weight: bold;
}

.contact-info a[href^="http"],
.shop-info a[href^="http"] {
  color: #009836; /* Light blue */
  font-weight: bold;
  text-decoration: underline;
}

/* Media page styling */
.media-page .eto-home-logo {
  display: flex;
  justify-content: flex-start;
  margin: 2rem 0 2rem 0;
  padding-left: 0;
}

.media-page .eto-home-logo img {
  height: 90px;
  object-fit: contain;
}

.accreditation-form,
.accreditation-info {
  max-width: 800px;
  margin: 4rem auto 6rem auto;
  padding: 0 1rem;
}

.media-page .section-title h1 {
  font-size: 2rem;
  color: #ddd;
  text-align: center;
  margin-bottom: 2rem;
}

.accreditation-info {
  margin-bottom: 2rem;
  color: #ddd;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 1rem;
}

.accreditation-info p,
.accreditation-info ul {
  text-align: justify;
}

.accreditation-info p,
.accreditation-info li {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.accreditation-info h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.rules-box {
  border-left: 4px solid #009836;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.rules-box h4 {
  color: #ddd;
}

.accreditation-form form {
  color: #ddd;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accreditation-form label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.accreditation-form input[type="text"],
.accreditation-form input[type="email"],
.accreditation-form input[type="tel"],
.accreditation-form select,
.accreditation-form textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.accreditation-form textarea {
  resize: vertical;
}

.accreditation-form input[type="checkbox"] {
  margin-right: 0.5rem;
}

.accreditation-form button {
  align-self: flex-start;
  padding: 0.5rem 1.5rem;
  background-color: #009836;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accreditation-form button:hover {
  background-color: #00b347;
}

/* Management cards grid and card styles */
.management-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 6rem auto;
  padding: 0 1rem;
}

.management-row {
  display: flex;
  justify-content: center;
  gap: 6rem;
}

.management-card {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 240px;
  height: 360px;
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.management-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.management-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.management-card p {
  font-size: 0.95rem;
  color: #444;
}
.management-info h3 {
  color: #ddd; /* Change to your desired color */
}

.management-info p {
  color: #ddd; /* Change to your desired color */
}

.management-info a {
  color: #009836; /* Change to your desired link color */
  text-decoration: none;
}

.management-info a:hover {
  text-decoration: underline;
}

/* Newsletter Modal */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid #ccc;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #006837;
  font-size: 1.5rem;
  text-align: center;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content label {
  font-weight: bold;
  color: #222;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button[type="submit"] {
  padding: 0.6rem;
  background-color: #006837;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button[type="submit"]:hover {
  background-color: #004e2b;
}

.modal .close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #666;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staff card sizing */
.staff-card {
  width: 240px;
  height: 360px;
}

#staff-section {
  max-width: 1200px;
  margin: 4rem auto 6rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

#staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 4rem auto;
  padding: 0 1rem;
}

.card-back .player-name {
  color: #000 !important;
  font-weight: bold;
  font-size: 1.1rem;
}

#news-title {
  margin-top: 4rem;
}

#news-content {
  color: #ddd;
}

#news-date {
  color: #ddd;
}

#news-author {
  color: #ddd;
}

/* Matches-detail */
.tab-content {
  display: none;
  padding: 1rem 0;
}

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

.tab-button.active {
  background-color: #009836;
  color: #ddd;
  font-weight: bold;
}

.scorers-columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.scorer-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 1rem;
}

.scorer-left {
  font-weight: 500;
  text-align: left;
}

.scorer-right {
  font-weight: 500;
  text-align: right;
}

.team-column {
  flex: 1;
  min-width: 220px;
  color: #fff;
}

.team-column h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.team-column ul {
  padding-left: 1rem;
}

.team-column li {
  margin-bottom: 0.25rem;
  color: #ddd;
}

.stats-summary {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.penalty-column.home {
  order: 0;
}

.penalty-column.away {
  order: 1;
}

.penalty-column {
  flex: 1;
  min-width: 220px;
  color: #fff; /* or #ddd if it's too bright */
}

.stats-summary h4 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.stats-summary p {
  margin: 0.25rem 0;
  color: #ccc;
}

.match-hero-image {
  width: 1200px;
  height: 600px;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.match-header-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.match-result {
  text-align: center;
  font-family: "WDXL Lubrifont TC", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.match-halftime {
  text-align: center;
  font-family: "WDXL Lubrifont TC", sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 2rem;
}

.match-header-logos img {
  height: 200px;
  width: 200px;
  object-fit: contain;

  padding: 0.5rem;
}

.vs-text {
  color: #ccc;
  flex: 0 0 auto;
  text-align: center;
}

.match-info {
  margin-top: 1rem;
  color: #ccc;
  font-size: 1rem;
}

.match-info p {
  margin: 0.3rem 0;
}

.tab-button {
  margin: 0 0.25rem;
  padding: 0.6rem 1.5rem;
  background-color: #222;
  font-size: 1.1rem;
  color: #ddd;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.tab-button:hover,
.tab-button.active {
  background-color: #009836;
  color: #ddd;
}

#match-article-title {
  font-size: 2rem;
  color: #ddd;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

#match-summary,
#match-interviews {
  font-size: 1rem;
  line-height: 1.6;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ddd;
  border-radius: 8px;
  margin-bottom: 2rem;
}

#match-summary h2,
#match-interviews h2 {
  color: #ddd;
  margin-top: 1.5rem;
}

#match-summary p,
#match-interviews p {
  margin-bottom: 1rem;
}

#match-stats {
  text-align: center;
  margin: 2rem 0;
}

.scorers-columns {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.team-column {
  flex: 1 1 300px;
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  color: #ddd;
}

.team-column h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.team-column ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.team-column li {
  margin-bottom: 0.5rem;
}

.penalties p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.match-gallery-preview {
  max-width: 640px;
  text-align: center;
}

.match-gallery-preview h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #ddd;
}

.match-gallery-preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: 0.2s ease;
  cursor: pointer;
}

.match-gallery-preview img:hover {
  opacity: 0.9;
}

.match-media-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.match-gallery-preview,
.youtube-wrapper {
  flex: 1 1 480px;
  max-width: 600px;
}

.match-gallery-preview img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.youtube-wrapper iframe {
  width: 100%;
  height: 340px;
  border-radius: 8px;
  display: block;
  text-align: center;
  margin-top: 3.1rem;
}

#match-table {
  display: none !important;
}

/* GALLERY */
.gallery-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.gallery-card {
  background: rgba(0, 0, 0, 0.4);
  width: 480px;
  height: 360px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.gallery-card img {
  height: 480px;
  width: 360px;
  object-fit: contain;
}

.gallery-card h3 {
  color: #ddd;
  font-size: 2rem;
  padding: 0.75rem 0;
  text-align: center;
  width: 100%;
  border-radius: 0 0 8px 8px;
  box-sizing: border-box;
}

.gallery-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Gallery Images */
.gallery-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 6rem auto;
  padding: 0 1rem;
}

.gallery-folder-card {
  background: rgba(0, 0, 0, 0.4);
  width: 360px;
  height: 360px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-folder-card:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.gallery-folder-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a {
  padding: 0.5rem 1rem;
  background-color: #444;
  color: #ddd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.pagination a:hover {
  background: #666;
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 4rem auto 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.gallery-filter-bar input[type="text"],
.gallery-filter-bar select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Gallery Images Detail */
.gallery-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 6rem auto;
  padding: 0 1rem;
}

.gallery-image-card {
  width: 240px;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-image-card:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.gallery-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 5vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.image-modal img {
  display: block;
  margin: auto;
  max-width: 100vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  padding: 0;
  box-shadow: none;
}

.image-modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 1001;
}

#prev-btn {
  left: 20px;
}

#next-btn {
  right: 20px;
}

/* Gallery Video */

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 6rem auto;
  padding: 0 1rem;
}

/* Video Gallery Pagination Styles */
#video-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

#video-pagination button {
  padding: 0.5rem 1rem;
  background-color: #444;
  color: #ddd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#video-pagination button:hover {
  background-color: #666;
}

#video-pagination button.active {
  color: #ddd;
}

#video-pagination span {
  padding: 0.5rem 1rem;
  background-color: #444;
  color: #ddd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

/* Downloads */
#public-downloads {
  list-style: none;
  padding: 0;
  margin: 0;
}

.downloads-list a {
  color: #ddd;
}

/* Results */

.results-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.result-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.5rem;
  background-color: #fff;
  background-image: url("../images/14240.jpg");
  background-size: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Result card inner styling */
.result-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.25rem 2.5rem;
  border-radius: 6px;
  min-height: 100px;
}

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.result-scores {
  text-align: right;
  font-family: "WDXL Lubrifont TC", sans-serif;
  font-size: 2.5rem !important;
}

.match-detail-button {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background-color: #009836;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.match-detail-button:hover {
  background-color: #00b347;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
}

.team-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.match-date,
.home-away-label {
  font-size: 0.9rem;
  color: #1b1c20;
}

.results-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 4rem auto 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.results-filter-bar select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.results-filter-bar label {
  color: #ddd;
  font-weight: 500;
}

.result-match-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.home-away-label,
.match-date {
  font-size: 1rem;
  margin-left: 90px;
}

.match-league {
  display: inline-block;
  background-color: #eee;
  color: #333;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  margin-left: 80px;
}

/* Banner Row Styles */
.banner-row {
  max-width: 1300px;
  margin: 4rem auto;
  padding: 0 1rem;
  position: relative;
  overflow: visible;
}

.banner-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  padding: 0;
  overflow-x: hidden;
}

.banner-link {
  flex: 1 1 0;
  max-width: calc((100% - 3rem) / 4);
  height: 100px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: block;
}

.banner-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  transition: transform 0.3s ease;
}

.banner-link img:hover {
  transform: scale(1.03);
}

/* Audi Arena */
#arena-section {
  color: #ddd;
  text-align: center;
}

#arena-section img {
  max-width: 900px;
  max-height: 600px;
  width: auto;
  height: auto;
  display: block;
  margin: 1rem auto;
  object-fit: contain;
  border-radius: 8px;
}

/* History */
#history-section {
  color: #ddd;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

#history-section img {
  max-width: 900px;
  max-height: 600px;
  width: auto;
  height: auto;
  display: block;
  margin: 1rem auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Ticket Info */
#ticket-section {
  color: #ddd;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

#ticket-section img {
  max-width: 900px;
  max-height: 600px;
  width: auto;
  height: auto;
  display: block;
  margin: 1rem auto;
  object-fit: contain;
  border-radius: 8px;
}

#ticket-section a[href^="http"] {
  color: #009836 !important;
  font-weight: bold !important;
}

/* Impressum */
.impressum-content {
  margin-top: 4rem;
  padding: 0 2rem;
}

.impressum-content h1 {
  margin-bottom: 3rem;
}

.impressum-box {
  color: #ddd;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.impressum-content p {
  padding: 1rem 0;
}

.impressum-content ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.impressum-content li {
  padding: 0.5rem 0;
}

/* Privacy Policy */
.privacy-policy-content {
  margin-top: 4rem;
  padding: 0 2rem;
}

.privacy-policy-content h1 {
  margin-bottom: 3rem;
}

.privacy-box {
  color: #ddd;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.privacy-policy-content p {
  padding: 1rem;
}

/* Mobile Styles for navbar, burger-menu, and nav-links */
@media (max-width: 600px) {
  .navbar-container {
    position: relative;
    z-index: 100;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    margin-top: 220px;
    left: 0;
    width: 100%;
    background-color: rgba(244, 244, 244, 0.95);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    display: none;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .burger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 1rem;
    margin-left: auto;
  }

  .burger-menu .line {
    width: 25px;
    height: 3px;
    background-color: #333;
  }

  .nav-links a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #1b1c20;
    text-decoration: none;
  }
}

@media (max-width: 600px) {
  .top-header {
    padding: 0.5rem; /* Optional: reduce padding */
  }

  .top-center {
    gap: 0.1rem !important; /* reduce space between trophies */
  }

  .top-center .trophy img {
    width: auto;
    height: 25px !important;
  }

  .top-right {
    gap: 0.25rem; /* reduce space between social icons */
    font-size: 1.1rem; /* optionally adjust icon size */
  }
}

@media (max-width: 600px) {
  /* News container and cards stack */
  .news-container {
    flex-direction: column !important;
    overflow-x: visible !important;
  }
  .news-card {
    width: 100% !important;
    height: auto !important;
  }

  /* Match highlights */
  .match-highlights {
    margin-bottom: 1rem !important;
  }
  .match .match-logo img {
    height: 100px;
    width: 100px;
  }

  /* Sponsor track */
  .sponsor-carousel {
    margin-bottom: 0 !important;
  }

  /* News carousel */
  .news-container {
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .news-card {
    flex: 0 0 auto !important;
    width: 250px !important;
    height: 250px !important;
    scroll-snap-align: start !important;
  }

  .news-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .banner-container {
    flex-wrap: wrap !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
    justify-content: center !important;
  }

  .banner-link {
    flex: 0 0 auto !important;
    min-width: 260px !important;
    max-width: 300px;
  }

  /* Scorers and tables stack */
  .table-expand {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin: 1rem auto !important;
    padding: 0 1rem !important;
  }

  .scorers-box {
    background-image: url("../images/14241.jpg");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
  }

  .table-expand .scorers-box {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    overflow-y: auto !important;
  }

  .scorer-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  #scorer-selector {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
  }

  .scorers-box .scorer-header h2 {
    color: #1b1c20;
    font-size: 1.5rem;
    text-align: left;
    margin: 0.5rem 0 0.5rem 0.5rem;
    border-left: 4px solid #009836;
  }

  .scorer-list li span {
    position: static;
    order: -1;
    margin-bottom: 0.5rem;
    bottom: 0;
    width: 100%;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
  }

  .table-expand .tables-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    min-height: 610px !important;
  }

  /* Webshop */
  .webshop-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }

  .product-card {
    flex: 0 0 auto;
    width: 250px;
    height: 250px;
    background-color: #fff;
    border-radius: 8px;
    scroll-snap-align: start;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }

  /* Sponsor wrapper */
  .sponsor-wrapper {
    padding: 0.5rem;
  }

  .sponsor-banner img {
    max-width: 326px !important;
    margin: 0 !important;
    display: block;
  }

  /* Calendar */

  .fc-event {
    height: 20px !important;
    padding: 0 !important;
    border-radius: 4px !important;
  }

  .fc-event-main {
    color: gray !important;
  }

  .fc-event::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
  }

  /* Optional: make event box smaller and cleaner */
  .fc-daygrid-event-harness {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
  }

  /* Optional: reduce grid cell height if you want a tighter look */
  .fc-daygrid-day-frame {
    height: 60px;
  }

  /* Social Media */
  .social-media-grid {
    grid-template-columns: 1fr; /* One column */
    gap: 16px; /* Tighter gap for smaller screens */
  }

  .social-card {
    height: 400px; /* Slightly taller for vertical view */
  }

  .tiktok-logo {
    width: 120px; /* Smaller logo on mobile */
  }

  .social-cta {
    font-size: 1rem;
  }

  /* Sponsor grid */
  .sponsor-grid-container {
    gap: 1rem;
    justify-content: center;
  }

  /* Level 1: large, max 1 per row */
  .sponsor-level-1 .sponsor-grid-container a {
    flex: 1 1 100%;
    max-width: 100%;
    max-height: 200px;
    margin: 0.5rem auto;
  }

  /* Level 2: medium-large, 2 per row */
  .sponsor-level-2 .sponsor-grid-container a {
    flex: 1 1 48%;
    max-width: 48%;
    max-height: 150px;
    margin: 0.5rem;
  }

  /* Level 3: 2–3 per row */
  .sponsor-level-3 .sponsor-grid-container a {
    flex: 1 1 30%;
    max-width: 30%;
    max-height: 100px;
    margin: 0.5rem;
  }

  /* Level 4: 3–4 per row */
  .sponsor-level-4 .sponsor-grid-container a {
    flex: 1 1 22%;
    max-width: 22%;
    max-height: 60px;
    margin: 0.5rem;
  }

  /* Level 5: smallest, 4+ per row */
  .sponsor-level-5 .sponsor-grid-container a {
    flex: 1 1 18%;
    max-width: 18%;
    max-height: 50px;
    margin: 0.5rem;
  }

  /* Image styling remains consistent */
  .sponsor-grid-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Reduce margin between levels */
  .sponsor-level {
    margin-bottom: 2rem;
  }

  /* Footer stacked & centered */
  .simple-footer {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  /* Gallery folders stack and full width */
  .gallery-folder-card {
    height: 250px;
    width: 300px;
  }

  .gallery-folder-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .gallery-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-image-card {
    width: 150px;
    height: 150px;
    border-radius: 8px !important;
    overflow: hidden;
  }

  .gallery-image-card img {
    border-radius: inherit;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Management */
  .management-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
  }

  /* Navbar menu vertical */
  .nav-links {
    flex-direction: column !important;
    width: 100% !important;
    gap: 1rem !important;
    position: static !important;
    transform: none !important;
  }

  /* Make images responsive globally */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}
