.team-page-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.team-title {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0;
}

.section-title {
  text-align: center;
  font-size: 1.6em;
  color: #0033a0;
  border-bottom: 2px solid #ffcb05;
  margin: 40px 0 20px;
}

.coaches-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    overflow: visible;
}


.main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.roster-column, .schedule-column {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
    width: 100%;
    max-width: 800px;
}

.roster-section-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    color: #0033a0;
    border-bottom: 2px solid #ffcb05;
    padding-bottom: 5px;
}


.coaches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}


/* Coach name and details */
.coach-contact {
  font-size: 1em;
  color: #333;
  line-height: 1.3; /* Reduce from default (~1.6) */
  margin-top: 5px;
}

.coach-contact strong {
  display: block;
  font-size: 1em;
  color: #0033a0;
  margin-bottom: 2px;
}

.coach-contact em {
  display: block;
  font-style: normal;
  color: #666;
  font-size: 1em;
  margin-bottom: 4px;
}

.coach-contact span {
  display: block;
  margin-bottom: 4px;
  font-size: 1em;
}

.email-link {
  display: inline-block;
  margin-top: 3px;
}

.email-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.header {
  background-color: #004990;
  color: white;
  padding: 30px 20px;
  width: 100%;
  border-bottom: 5px solid #ffcb05;
}

/* Flex layout for logo + centered title */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Team title centered in flex container */
.team-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0 auto;
  text-align: center;
  flex: 1;
}

/* Logo on the far left */
.team-logo {
  height: 60px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}


.coach-overlay {
  position: absolute;
  width: 300px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.coach-overlay.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}



.coach-card {
    padding: 15px;
    color: black !important;
    font-size: 1rem;
    text-align: left;
}

.arrow-toggle {
    cursor: pointer;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}

.arrow-toggle.up {
  transform: rotate(180deg);
}


.coach-card a img.email-icon {
    width: 20px;
    margin-left: 6px;
    vertical-align: middle;
}

.team-content-section {
    display: none; /* Hide all sections by default */
    padding: 80px 20px;
    min-height: 300px;
    border-top: 1px solid #ccc;
}

.team-detail-wrapper {
    display: flex;
    min-height: 100vh;
    margin-top: 0;
}

.side-nav {
    width: 200px;
    background-color: white;
    color: white;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.nav-button {
    width: 100px;
    height: 60px;
    margin: 10px auto;
    padding: 0;
    background-color: #0033a0;
    color: white;
    font-weight: bold;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background-color: #91d6e6;
}

.content-panel {
  flex: 1;
  padding: 40px;
  background-color: #f5f5f5;
  max-width: 1000px;
  box-sizing: border-box;
}
.content-section {
    display: none;
}

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

.roster-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}


.roster-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #1a3c6e;
}


.roster-grade-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.coach-item {
    display: inline-block;
    width: 160px;
    text-align: center;
}

.coach-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

.coach-name-title {
    font-size: 0.9em;
    font-weight: bold;
    color: #001f5f;
}


.grade-block {
    margin-bottom: 40px;
    width: 100%;
}


.roster-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}


.roster-flex-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  min-height: 200px;  /* enough to avoid collapsing */
  overflow: visible;
}


.roster-card {
  width: 160px;
  background: #f9f9f9;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


.roster-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

.roster-name {
    font-weight: bold;
    color: #001f5f;
    margin-top: 10px;
}

.roster-details {
    font-size: 0.85em;
    color: #333;
    margin-top: 4px;
}

.captain-badge {
    display: inline-block;
    background-color: #002244;
    color: white;
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 6px;
}
.grade-header {
    background-color: #343434;       /* Nobles blue or your preferred color */
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    padding: 12px 0;
    margin: 40px 0 20px;
    text-align: center;
    width: 100%;
    border-radius: 0px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.coach-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: #003366;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.coach-close-btn:hover {
  background-color: #001f4d;
}


.coach-overlay {
  position: absolute;
  z-index: 10000;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 8px;
  width: 300px;
  max-width: 90vw;
  padding: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(20px);
  opacity: 0;
  pointer-events: none;
}

.coach-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.coach-overlay-inner {
  position: relative;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  max-width: 300px;
  max-height: 400px; /* adjust as needed */
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.coach-bio-text {
  font-size: 0.9em;
  color: #333;
  margin-top: 10px;
}

.coach-overlay-inner::-webkit-scrollbar {
  width: 8px;
}

.coach-overlay-inner::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.coach-overlay-inner::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}


