/* styles.css for Athletics Website */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6fa;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header and Navigation */
header {
  background: #004F91;
  color: #fff;
  padding: 24px 0 12px;
  box-shadow: 0 2px 8px rgba(0,79,145,0.08);
}

header h1 {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

nav {
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-link {
  color: #e3eefa;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 6px 16px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: #e3eefa;
  color: #004F91;
}

/* Main Content */
main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 16px;
}

/* Hero Section (Homepage) */
.hero {
  background: linear-gradient(90deg, #004F91 60%, #2ecc40 100%);
  color: #fff;
  padding: 44px 28px 36px 28px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(0,79,145,0.07);
}

.hero-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.15rem;
}

/* Highlights Section (Homepage) */
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.highlight-card {
  background: #fff;
  border-left: 6px solid #004F91;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,79,145,0.08);
  padding: 22px 18px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
}

.highlight-card h3 {
  color: #004F91;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

/* Calendar Section */
.calendar-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 30px 20px;
  margin-bottom: 32px;
}

.calendar-section h2 {
  color: #004F91;
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

/* Grid Layout for Cards */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* Card Styling */
.calendar-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 2px solid #004F91;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.calendar-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0,79,145,0.10);
}

.calendar-card.soccer {
  border-left: 6px solid #2ecc40;
}

.calendar-card.volleyball {
  border-left: 6px solid #ffb347;
}

.calendar-card h3 {
  color: #004F91;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Toggle Button */
.toggle-btn {
  background-color: #004F91;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 8px;
  transition: background 0.2s;
}

.toggle-btn:hover {
  background-color: #2ecc40;
  color: #004F91;
}

/* Smooth Toggle Animation for Iframe */
.calendar-iframe-container {
  overflow: hidden;
  transition: max-height 0.4s ease;
  max-height: 0;
  margin-top: 16px;
  border-radius: 8px;
}

.calendar-iframe-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* Teams Section */
.teams-section h2 {
  text-align: center;
  color: #004F91;
  margin-bottom: 28px;
  font-size: 1.8rem;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.team-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,79,145,0.09);
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
}

.team-card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 28px rgba(0,79,145,0.13);
}

.team-photo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 3px solid #004F91;
}

.team-card h3 {
  color: #004F91;
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.team-card p {
  color: #444;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  background: #004F91;
  color: #fff;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.18s;
  margin-top: 8px;
}

.btn:hover {
  background: #2ecc40;
  color: #004F91;
}

/* Contact Section */
.contact-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 30px 20px;
  max-width: 700px;
  margin: 0 auto 32px;
}

.contact-section h2 {
  color: #004F91;
  text-align: center;
  margin-bottom: 18px;
}

.coaches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.coach-card {
  background: #f7fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,79,145,0.08);
  padding: 18px 14px;
  text-align: center;
  min-width: 180px;
  max-width: 220px;
}

.coach-photo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
  border: 2px solid #004F91;
}

.coach-card h3 {
  color: #004F91;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.contact-form label {
  font-weight: 500;
  color: #004F91;
}

.contact-form input,
.contact-form textarea {
  padding: 8px 10px;
  border: 1.5px solid #b4c7e7;
  border-radius: 5px;
  font-size: 1rem;
  resize: vertical;
}

.contact-form textarea {
  min-height: 80px;
}

.contact-form button {
  margin-top: 8px;
  background: #004F91;
  color: #fff;
  border: none;
  padding: 10px 0;
  border-radius: 5px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}

.contact-form button:hover {
  background: #2ecc40;
  color: #004F91;
}

/* Footer */
footer {
  background: #004F91;
  color: #e3eefa;
  text-align: center;
  padding: 16px 0;
  font-size: 1rem;
  margin-top: auto;
  box-shadow: 0 -2px 8px rgba(0,79,145,0.07);
}

/* Responsive Design */
@media (max-width: 800px) {
  .highlights, .coaches-list {
    flex-direction: column;
    align-items: center;
  }
  .calendar-grid, .teams-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 0 6px;
  }
}

@media (max-width: 500px) {
  header h1 {
    font-size: 1.3rem;
  }
  .hero h2 {
    font-size: 1.15rem;
  }
  .calendar-section h2,
  .teams-section h2,
  .contact-section h2 {
    font-size: 1.2rem;
  }
}
