/* --- Google Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #1a365d;
  --secondary-color: #2b6cb0;
  --accent-color: #d69e2e;
  --bg-light: #f7fafc;
  --text-dark: #2d3748;
  --white: #ffffff;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  height: 50px;
}

.logo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.85)), url('../Assets - Pictures/Court-2.jpg') center/cover;
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
  animation: fadeIn 1.2s ease-in-out;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 25px;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, background-color 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  background-color: #b7791f;
}

/* --- Page Sections --- */
.section {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  display: block;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* --- Cards & Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* --- Tables & Lists --- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1rem;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.styled-table th, .styled-table td {
  padding: 15px 20px;
  text-align: left;
}

.styled-table th {
  background-color: var(--primary-color);
  color: var(--white);
}

.styled-table tr:nth-child(even) {
  background-color: #f1f5f9;
}

/* --- Flag & Recognition Section --- */
.affiliation-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.affiliation-banner img {
  height: 80px;
  max-width: 120px; /* Restricts overly wide horizontal logos like PEAC */
  object-fit: contain;
}

/* --- Footer --- */
footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- Mobile Responsive Rules --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

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

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }

  /* Make sure wide partnership logos shrink down properly on smaller screens */
  .affiliation-banner img {
    height: 55px;
    max-width: 90px;
  }
  
  .affiliation-banner {
    gap: 15px;
    padding: 20px 10px;
  }

    /* Forcefully target the PEAC logo or wide partner images */
.affiliation-banner img[src*="PEAC"], 
.affiliation-banner img[alt*="PEAC"],
img[src*="PEAC-Logo.jpg"] {
  width: 100px !important;
  height: auto !important;
  object-fit: contain !important;
 }
}