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

:root {
  --primary: #000000; /* black */
  --secondary: #0b5ed7; /* blue */
  --accent: #ffffff; /* white */
  --light: #ffffff; /* page background */
  --dark: #111111;
  --white: #ffffff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

/* Header & Navigation */
header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.site-logo {
  width: 55px;
  height: 55px;
  display: block;
  object-fit: contain;
}

.site-title {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  cursor: pointer;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
}

h3 {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Page Display */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero */
.hero {
  /* hero uses an image if present, otherwise falls back to the gradient */
  background-color: var(--primary);
  background-image: url("../images/hero-bg.jpg"), linear-gradient(135deg, var(--primary), var(--secondary));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero::before {
  /* dark overlay to keep text readable over images */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

.hero .home-logo,
.hero h1,
.hero p,
.hero .btn {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  border: none;
  font-size: 3rem;
}

.home-logo {
  width: 280px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
  object-fit: contain;
}

/* Coaches Corner logo on podcast page */
.podcast-logo {
  width: 180px;
  max-width: 45%;
  height: auto;
  display: block;
  margin: 0.75rem auto 1.25rem auto;
}

.hero p {
  font-size: 1.3rem;
  margin: 1rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--secondary);
  color: var(--white);
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  margin: 0.5rem;
}

.btn:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
}

.btn-primary:hover {
  background: #0d1f2d;
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card h3 {
  margin-top: 0;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary);
  margin: 1rem 0;
}

.features-list {
  list-style: none;
  margin: 1rem 0;
}

.features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

.features-list li:before {
  content: "✓ ";
  color: var(--secondary);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Forms */
form {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Livestream Items */
.livestream-item {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--secondary);
}

.livestream-item.live {
  background: rgba(211, 47, 47, 0.1);
  border-left-color: var(--secondary);
}

.live-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.news-card {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.news-date {
  background: var(--secondary);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: bold;
}

.news-content {
  padding: 1.5rem;
}

.news-content h3 {
  margin-top: 0;
}

.news-category {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Podcast Grid */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.podcast-card {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

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

.podcast-date {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: bold;
}

.podcast-content {
  padding: 1.5rem;
}

.podcast-content h3 {
  margin-top: 0;
}

/* Job Grid */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.job-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
  transition: all 0.3s;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Athlete Cards Grid */
.athlete-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.athlete-card {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

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

.athlete-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.athlete-info {
  padding: 1.5rem;
}

.athlete-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary);
}

.athlete-number {
  font-weight: 700;
  color: var(--secondary);
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.athlete-meta {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
}

.athlete-bio {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.75rem 0 1rem 0;
  color: #333;
}

.athlete-card .btn {
  width: 100%;
  text-align: center;
}

.job-title {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.job-meta {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.info-box {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.info-box h3 {
  margin-top: 0;
  color: var(--secondary);
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem;
  }

  nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
  }

  .header-container {
    justify-content: space-between;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid, .news-grid, .podcast-grid, .job-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.success-msg {
  background: #4caf50;
  color: white;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  display: none;
}

.success-msg.show {
  display: block;
}
