/* General Body and Reset */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e6e6e6; /* Light gray background */
  color: #333; /* Dark text for readability */
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #003366; /* Dark blue for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0055aa; /* Slightly lighter blue on hover */
}

/* Header */
header {
  background-color: #003366; /* Dark blue header */
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

header h1 {
  margin: 0;
  font-size: 1.8em;
  flex-shrink: 0; /* Prevent shrinking on smaller screens */
}

/* Navigation */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: white;
  font-weight: bold;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #aaddff; /* Lighter blue on hover */
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; /* Hidden by default for desktop */
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  cursor: pointer;
  padding: 0;
}

/* Main Content Layout */
main {
  flex-grow: 1;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  background-color: #ffffff; /* White background for main content */
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

section {
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

section:last-child {
  border-bottom: none;
}

h2,
h3,
h4 {
  color: #003366; /* Dark blue headings */
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

h2 {
  font-size: 2.2em;
  border-bottom: 2px solid #0055aa;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.8em;
  margin-top: 30px;
  text-align: left; /* Default for sub-headings */
}

h4 {
  font-size: 1.4em;
  margin-top: 20px;
}

p {
  margin-bottom: 15px;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensures no extra space below image */
  margin: 20px auto; /* Center images within sections */
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-image {
  max-width: 80%; /* Smaller for internal section images */
  margin-top: 30px;
  margin-bottom: 30px;
}

.article-image {
  max-width: 70%; /* Even smaller for article images */
  margin-top: 25px;
  margin-bottom: 25px;
}

/* Homepage Specifics */
.banner {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(
    to right,
    #003366,
    #0055aa
  ); /* Gradient for banner */
  color: white;
  border-radius: 8px 8px 0 0;
  margin: -20px -20px 20px -20px; /* Adjust to fill header padding */
  position: relative;
  overflow: hidden; /* For image positioning */
}

.banner h2 {
  color: white;
  font-size: 2.5em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom: none;
  padding-bottom: 0;
}

.banner p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
}

.banner .banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  z-index: 0;
}

.banner > *:not(.banner-img) {
  position: relative; /* Ensure text is above image */
  z-index: 1;
}

.introduction .intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.introduction .intro-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.introduction .intro-item h3 {
  text-align: center;
  font-size: 1.5em;
  color: #004488;
  margin-bottom: 15px;
}

.introduction .intro-item img {
  max-width: 90%;
  margin-bottom: 15px;
  border-radius: 5px;
}

.news-list article {
  margin-bottom: 20px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 15px;
}

.news-list article:last-child {
  border-bottom: none;
}

.news-list h4 a {
  font-size: 1.2em;
  font-weight: bold;
  color: #003366;
}

.news-list .date {
  font-size: 0.9em;
  color: #777;
  display: block;
  margin-top: 5px;
}

.infobox {
  background-color: #e0eaf3; /* Lighter blue for infobox */
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #0055aa;
}

.infobox h3 {
  color: #003366;
  margin-top: 0;
  font-size: 1.8em;
}

.infobox p {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.infobox strong {
  color: #0055aa;
}

/* Overview Page Specifics */
.overview-section {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.overview-section:last-child {
  border-bottom: none;
}

.infographie-textuelle {
  background-color: #f0f6fa;
  border-left: 4px solid #0055aa;
  padding: 25px;
  margin: 30px 0;
  border-radius: 5px;
}

.infographie-textuelle p {
  margin-bottom: 10px;
}

.participants-table,
.palmares-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.participants-table th,
.palmares-table th {
  background-color: #003366;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: bold;
}

.participants-table td,
.palmares-table td {
  padding: 10px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.participants-table tbody tr:nth-child(even),
.palmares-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.participants-table tbody tr:hover,
.palmares-table tbody tr:hover {
  background-color: #e9e9e9;
}

.stadium-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.stadium-list li {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #004488;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Groups & Calendar Specifics */
.group-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.groupe {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.groupe h3 {
  color: #003366;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.6em;
  text-align: center;
}

.groupe table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.groupe th,
.groupe td {
  border: 1px solid #eee;
  padding: 10px;
  text-align: center;
}

.groupe th {
  background-color: #004488;
  color: white;
  font-weight: normal;
}

.groupe img {
  max-width: 120px; /* Smaller logos for groups */
  margin-top: 20px;
  border-radius: 50%; /* Optional: round logos */
  border: 2px solid #0055aa;
}

.group-description,
.calendar-note {
  font-style: italic;
  color: #666;
  margin-top: 20px;
  text-align: center;
}

.match-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.match-list li {
  background-color: #f0f6fa;
  border: 1px solid #e0eaf3;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.1em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.match-list li:last-child {
  margin-bottom: 0;
}

.match-date {
  font-weight: bold;
  color: #003366;
  flex-basis: 150px; /* Fixed width for date */
  flex-shrink: 0;
}

.match-group {
  font-style: italic;
  color: #555;
  flex-basis: 120px;
  flex-shrink: 0;
}

/* News Page Specifics */
.news-list-section .news-item {
  display: flex;
  flex-direction: column; /* Stack for smaller screens */
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  background-color: #fcfcfc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-list-section .news-item:last-child {
  border-bottom: none;
}

.news-list-section .news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 0;
  border-radius: 8px 8px 0 0;
}

.news-list-section .news-item h3 {
  margin: 15px 20px 10px 20px;
  font-size: 1.5em;
  text-align: left;
}

.news-list-section .news-item h3 a {
  color: #003366;
}

.news-list-section .news-item p {
  margin: 0 20px 10px 20px;
  flex-grow: 1;
}

.news-list-section .news-item .date {
  font-size: 0.9em;
  color: #777;
  margin: 0 20px 15px 20px;
  text-align: right;
}

.pagination {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.pagination a {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  background-color: #0055aa;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.pagination a:hover:not(.disabled) {
  background-color: #003366;
}

.pagination a.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Full Article Page Specifics */
.full-article {
  padding: 40px 0;
}

.full-article h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #0055aa;
  padding-bottom: 15px;
}

.full-article h3 {
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #004488;
  text-align: left;
}

.full-article .date {
  display: block;
  text-align: center;
  font-style: italic;
  color: #777;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.full-article p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.full-article .article-image {
  max-width: 80%;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 25px;
  background-color: #0055aa;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.back-link:hover {
  background-color: #003366;
}

/* History Page Specifics */
.history-section h3 {
  text-align: left;
}

.palmares-table .table-description,
.records-list .records-description {
  font-style: italic;
  color: #666;
  margin-top: 20px;
  text-align: center;
}

.records-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.records-list li {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.records-list li strong {
  color: #004488;
  display: block;
  margin-bottom: 5px;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.9em;
}

footer p {
  margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  header h1 {
    width: 100%;
    margin-bottom: 15px;
  }

  nav {
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    display: none; /* Hidden by default on mobile */
    margin-top: 15px;
  }

  nav ul.active {
    display: flex; /* Show when active */
  }

  nav ul li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block; /* Show menu toggle button */
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .banner {
    padding: 40px 20px;
  }

  .banner h2 {
    font-size: 2em;
  }

  .banner p {
    font-size: 1em;
  }

  .introduction .intro-grid {
    grid-template-columns: 1fr;
  }

  .group-container {
    grid-template-columns: 1fr;
  }

  .news-list-section .news-item {
    flex-direction: column;
  }

  .news-list-section .news-item img {
    height: 180px;
  }

  .match-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-date,
  .match-group {
    flex-basis: auto;
    width: 100%;
    margin-bottom: 5px;
  }

  .full-article h2 {
    font-size: 2em;
  }

  .full-article h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5em;
  }

  .banner h2 {
    font-size: 1.8em;
  }

  main {
    padding: 0 10px;
    margin: 10px auto;
  }

  section {
    padding: 20px 0;
  }

  h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  h3 {
    font-size: 1.4em;
  }

  .infobox {
    padding: 20px;
    margin: 20px 0;
  }

  .infobox h3 {
    font-size: 1.5em;
  }

  .participants-table th,
  .participants-table td,
  .palmares-table th,
  .palmares-table td {
    padding: 8px 10px;
    font-size: 0.9em;
  }

  .groupe {
    padding: 15px;
  }

  .groupe h3 {
    font-size: 1.4em;
  }

  .match-list li {
    font-size: 1em;
  }
}

/* ... (existing CSS styles) ... */

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.9em;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: #aaddff; /* Lighter blue for footer links */
  text-decoration: underline;
  margin: 0 10px;
}

footer a:hover {
  color: white;
}

/* Legal Pages Specifics (Privacy Policy, Terms & Conditions) */
.legal-section {
  padding: 40px 20px;
}

.legal-section h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #0055aa;
  padding-bottom: 15px;
}

.legal-section h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #004488;
  text-align: left;
}

.legal-section p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.legal-section ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section .date {
  display: block;
  text-align: right;
  font-style: italic;
  color: #777;
  margin-top: 30px;
  font-size: 0.9em;
}

/* ... (existing responsive media queries) ... */
