/* Rugby Teams Frontend Styles */
.rt-team-hero-image {
  height: 20em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin-bottom: 2em;
}

/*
Text needs to go bigger for the h1 and cool font.
*/
.rt-team-hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.rt-team-nickname {
  font-size: 5em;
  color: white;
}

.rt-team-age-group {
  color:white;
  font-size: 1.5em;
}

.rt-team-intro-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rt-team-intro-text-content {
  width: 60%;
  text-align: center;
}

.rt-w-75 {
  width: 75%;
  justify-self: center;
}

.rt-row {
  align-items: center;
  display: flex;
  margin-left: 1em;
  margin-right: 1em;
}

.rt-column {
  float: left;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rt-column-25 {
  float: left;
  width: 25%;
  display: flex;
  justify-content: center;
}

.rt-column-75 {
  float: left;
  width: 25%;
  display: flex;
  justify-content: center;
}

/* Clear floats after the columns */
.rt-row:after {
  content: "";
  display: table;
  clear: both;
}

.rt-playlist {
  margin-top: 2em;
  width: 100%;
}

.rt-playlist h2 {
  margin-left: 1em;
  margin-bottom: 2em;
}

.rt-playlist-message {
  width: 70%;
  text-align: center;
}

.rt-card-container {
  margin-top: 2em;
  width: 100%;
}

.rt-card-container>h3 {
  margin-left: 3em;
}

.rt-cards {
  display: flex;
  justify-content: center;
  column-gap: 3em;
}

.rt-card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  width: 200px;
}

.rt-card-info {
  padding: 2px 5px;
  max-width: 200px;
}

.rt-card-info>h4 {
  padding: 0.5em;
  justify-self: center;
  font-size: 20px;
}

.rt-card-img {
  position: relative;
  text-align: center;
  background-color: #3D7A94;
  width: fit-content;
  justify-self: center;
  display:flex;
  align-items:flex-end;
}

.rt-role {
  position: absolute;
  right: 0px;
  background: white;
  opacity: 0.75;
  padding: 10px;
  border-top-left-radius: 10px;
  font-size: 1em;
  font-weight: 600;
}

/* Laws Section */
.rt-laws {
  margin-left: 2em;
  margin-right: 2em;
}

.rt-laws-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.rt-law-item {
  background: #e9f5ff;
  border-left: 4px solid #0073aa;
  padding: 1em;
  border-radius: 6px;
  flex: 1 1 220px;
  min-width: 200px;
  position: relative;      /* Ensure absolute children are positioned inside */
  min-height: 180px;       /* Adjust as needed for your content */
  padding-bottom: 3em;     /* Space for the button */
}

.rt-law-item h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #0073aa;
}

/* Points list under each law */
.rt-law-points {
  margin: 0.5em 0 0 0;
  padding-left: 1.5em;
  list-style-type: disc;
  color: #222;
  font-size: 1em;
}

.rt-law-points li {
  margin-bottom: 0.3em;
  line-height: 1.5;
  padding-left: 0.2em;
}

/* Optional: visually separate points from the law description */
.rt-law-item p+.rt-law-points {
  margin-top: 0.5em;
  border-top: 1px solid #e0e0e0;
  padding-top: 0.5em;
}
#rt-laws-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
}
.rt-laws-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 2em;
  border-radius: 8px;
  max-width: 600px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
#rt-laws-modal-close {
  position: absolute;
  top: 1em; right: 1em;
  font-size: 2em;
  cursor: pointer;
}
.rt-law-findoutmore {
  position: absolute;
  right: 1em;
  bottom: 1em;
  background: #0073aa;
  color: #fff;
  padding: 0.4em 1em;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95em;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.rt-law-findoutmore:hover,
.rt-law-findoutmore:focus {
  background: #005177;
  color: #fff;
  text-decoration: underline;
}
#rt-view-all-laws{
  width:100%;
  display:flex;
  justify-content:end;
}
#rt-view-older-laws {
  margin-top: 1em;
}

/* Place all styles under .rt-team-archive to avoid cross-naming issues */
.rt-team-archive > h1 {
  margin-top: 0.5em;
  margin-left: auto;
  margin-right:auto;
  text-align: center;
  width: 5em;
  align-self: center;
}
.rt-team-archive .rt-team-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  width: 100%;
  padding-bottom: 2em;
  align-items: center;
}
.rt-team-archive .rt-team-card {
  display: flex;
  align-items: center;
  background: #ececec;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5em;
  width: 60%;
}
.rt-team-archive .rt-team-card.img-right .rt-team-card-content { order: 1; }
.rt-team-archive .rt-team-card.img-right .rt-team-card-img { order: 2; margin-left: 2em; }
.rt-team-archive .rt-team-card.img-left .rt-team-card-img { order: 1; margin-right: 2em; }
.rt-team-archive .rt-team-card.img-left .rt-team-card-content { order: 2; text-align: right; }
.rt-team-archive .rt-team-card-img {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rt-team-archive .rt-coach-img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  background: #fff;
  border: 2px solid #0073aa;
}
.rt-team-archive .rt-team-card-content {
  flex: 1;
}
.rt-team-archive .rt-team-card-content h2 {
  margin: 0 0 0.5em 0;
}
.rt-team-archive .rt-team-nickname {
  font-size: 1.2em;
  color: #0073aa;
  margin-bottom: 0;
}
.rt-team-archive .rt-team-view-btn {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  padding: 0.5em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1em;
  transition: background 0.2s;
}
.rt-team-archive .rt-team-view-btn:hover,
.rt-team-archive .rt-team-view-btn:focus {
  background: #005177;
}
@media (max-width: 700px) {
  .rt-team-archive .rt-team-card {
    flex-direction: column;
    text-align: center;
  }
  .rt-team-archive .rt-team-card-img,
  .rt-team-archive .rt-team-card-content {
    order: unset !important;
    margin: 0 !important;
  }
}
.rt-personnel-list {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.rt-person-card {
  cursor: pointer;
  text-align: center;
  width: 140px;
  transition: box-shadow 0.2s;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 1em 0.5em 0.5em 0.5em;
}
.rt-person-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  background: #f7f7f7;
}
.rt-person-img-wrap {
  position: relative;
  display: inline-block;
}
.rt-person-img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  background: #f1f1f1;
  border: 2px solid #0073aa;
}
.rt-person-role {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #0073aa;
  color: #fff;
  padding: 0.2em 0.8em;
  border-radius: 12px 12px 0 0;
  font-size: 0.9em;
  white-space: nowrap;
}
.rt-person-name {
  margin-top: 0.7em;
  font-weight: bold;
  font-size: 1.1em;
}

/* Modal styles */
#rt-person-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
}
.rt-person-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 2em;
  border-radius: 8px;
  max-width: 400px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
}
#rt-person-modal-close {
  position: absolute;
  top: 1em; right: 1em;
  font-size: 2em;
  cursor: pointer;
}
.rt-training{
  margin-top: 2em;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rt-training>h2 {
  margin-left: 2em;
}
.rt-training>p {
  text-align: center;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
}
.rt-contact {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}
.rt-contact form {
  width: 100%;
}
.rt-contact form input {
  width: 100%;
}