/* ==========================================
   TEXAS A&M DOZEN ULTIMATE - GLOBAL STYLES
   ========================================== */

:root {
  --aggie-maroon: #500000;
  --aggie-maroon-dark: #3c0000;
  --aggie-maroon-light: #6a0000;
  --aggie-gray: #707372;
  --aggie-light-gray: #f4f4f4;
  --aggie-dark: #1a1a1a;
  --white: #ffffff;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: #333;
  line-height: 1.6;
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-in-out;
}

ul {
  list-style: none;
}

/* --- HEADER & NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--aggie-maroon);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-bar {
  background-color: var(--aggie-maroon-dark);
  color: #e0e0e0;
  font-size: 0.85rem;
  padding: 6px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a:hover {
  color: var(--white);
  text-decoration: underline;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--white);
}

.brand-logo .atm-box {
  background: var(--white);
  color: var(--aggie-maroon);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: -1px;
}

.brand-logo .team-title {
  display: flex;
  flex-direction: column;
}

.brand-logo .team-title .main-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.brand-logo .team-title .sub-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background-color: var(--white);
  color: var(--aggie-maroon) !important;
  padding: 8px 18px !important;
  border-radius: 4px;
  font-weight: 700;
}

.btn-nav::after {
  display: none !important;
}

.btn-nav:hover {
  background-color: var(--aggie-light-gray);
  transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background: linear-gradient(rgba(80, 0, 0, 0.75), rgba(26, 26, 26, 0.85)), 
              url('https://images.unsplash.com/photo-1544698310-74ea9d1c8258?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--aggie-maroon);
  color: var(--white);
  border: 2px solid var(--aggie-maroon);
}

.btn-primary:hover {
  background-color: var(--aggie-maroon-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--aggie-maroon);
}

/* HERO SLIDER CONTAINER */
.hero-slider {
  position: relative;
  height: 85vh; /* Adjust height as needed */
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SLIDES & FADE TRANSITION */
.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slider .slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* Dark tint overlay for text legibility */
}

.hero-slider .slide.active {
  opacity: 1;
}

/* HERO TEXT OVERLAY */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

/* NAVIGATION ARROWS */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: #500000; /* Aggie Maroon */
  border-color: #500000;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* BOTTOM DOT INDICATORS */
.slider-dots {
  position: absolute;
  bottom: 25px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
  background: #ffffff;
  transform: scale(1.2);
}

/* --- GENERAL SECTIONS --- */
section {
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--aggie-maroon);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--aggie-maroon);
  margin: 10px auto 0;
}

.section-title p {
  color: var(--aggie-gray);
  margin-top: 10px;
  font-size: 1.1rem;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--aggie-dark);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: #555;
  font-size: 1.05rem;
}

.stat-box-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-box {
  background-color: var(--aggie-light-gray);
  padding: 20px;
  border-left: 4px solid var(--aggie-maroon);
  text-align: center;
}

.stat-box .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--aggie-maroon);
  font-weight: bold;
}

.stat-box .label {
  font-size: 0.9rem;
  color: var(--aggie-gray);
  text-transform: uppercase;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- TEAM HISTORY SECTION --- */
.history-section {
  background-color: var(--aggie-light-gray);
  max-width: 100%;
  padding-left: 5%;
  padding-right: 5%;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--aggie-maroon);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white);
  border: 4px solid var(--aggie-maroon);
  top: 18px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--white);
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--aggie-maroon);
}

.timeline-content .year-badge {
  display: inline-block;
  background-color: var(--aggie-maroon);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: bold;
  margin-bottom: 10px;
}

/* ==========================================================================
   PRACTICE SCHEDULE SECTION
   ========================================================================== */

#practice {
  scroll-margin-top: 90px;
}

.practice-section {
  padding: 60px 20px;
  background-color: #fcfcfc;
}

/* 4-column grid for Days, Time, Location, WOL */
.practice-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto 0 auto;
}

/* Individual Card Box Styling */
.practice-metric-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.practice-metric-card:hover {
  transform: translateY(-3px);
  border-color: #500000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Middle / Highlighted Card */
.practice-metric-card.highlight {
  border-color: #500000;
  box-shadow: 0 4px 15px rgba(80, 0, 0, 0.08);
}

/* Icon */
.practice-metric-card .icon-wrapper {
  font-size: 1.8rem;
  color: #500000; /* Aggie Maroon */
  margin-bottom: 12px;
}

/* Label (DAYS, TIME, etc.) */
.practice-metric-card .metric-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #777777;
  margin-bottom: 8px;
}

/* Value Text */
.practice-metric-card .metric-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.2;
}

/* WOL Card Specific Styling */
.practice-metric-card.wol-card {
  border-color: #500000;
  background-color: #fff9f9;
}

/* Required Badge Floating on top of WOL card */
.required-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #500000;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.wol-link {
  color: #500000;
  text-decoration: underline;
  font-size: 1.2rem;
  font-weight: bold;
}

.wol-link:hover {
  color: #300000;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
  .practice-quick-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 576px) {
  .practice-quick-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
}
/* --- ROSTER SECTION --- */
.roster-section {
  background-color: var(--aggie-light-gray);
  max-width: 100%;
  padding-left: 5%;
  padding-right: 5%;
}

.roster-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--aggie-maroon);
  background: transparent;
  color: var(--aggie-maroon);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--aggie-maroon);
  color: var(--white);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.player-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.player-card:hover {
  transform: translateY(-5px);
}

.player-img {
  height: 280px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  position: relative;
}

.player-number {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--aggie-maroon);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.player-info {
  padding: 20px;
}

.player-info h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--aggie-dark);
}

.player-info .position {
  color: var(--aggie-maroon);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.player-details {
  font-size: 0.85rem;
  color: var(--aggie-gray);
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
}

/* --- SCHEDULE SECTION --- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

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

.schedule-table th {
  background-color: var(--aggie-maroon);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-table tr {
  border-bottom: 1px solid #eee;
}

.schedule-table tr:last-child {
  border-bottom: none;
}

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

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-upcoming {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.status-completed {
  background-color: #e8f5e9;
  color: #1b5e20;
}

/* ==========================================================================
   GET CONNECTED SECTION
   ========================================================================== */
.connect-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

/* Individual Card Container */
.connect-card {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Dark gradient overlay behind text for readability */
.connect-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

/* Top Title Text overlaid on background */
.connect-overlay-title {
  position: relative;
  z-index: 2;
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #500000; /* Aggie Maroon */
  text-transform: uppercase;
  text-align: center;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.7);
}

/* Semi-Transparent Inner Content Box */
.connect-content-box {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.connect-content-box h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.connect-content-box h3 a {
  color: #333333;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.connect-content-box h3 a:hover {
  color: #500000; /* Aggie Maroon */
}

/* Subtitle text matching red accent tone */
.connect-content-box .subtitle.red-text {
  color: #701010;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.connect-content-box .description {
  font-size: 0.88rem;
  color: #555555;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .connect-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .connect-card {
    height: 420px;
  }
}

/* --- JOIN / RECRUITMENT SECTION --- */

#join {
  scroll-margin-top: 30px;
}

.join-section {
  background: linear-gradient(rgba(80, 0, 0, 0.9), rgba(60, 0, 0, 0.9)), 
              url('https://images.unsplash.com/photo-1517649763962-0c623266010b?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--white);
  max-width: 100%;
}

.join-container {
  max-width: 800px;
  margin: 0 auto;
}

.join-section .section-title h2 {
  color: var(--white);
}

.join-section .section-title h2::after {
  background-color: var(--white);
}

.join-section .section-title p {
  color: #ddd;
}

.join-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  height: 100px;
}

.join-form button {
  grid-column: span 2;
  width: 100%;
  margin-top: 10px;
}

/* --- FOOTER --- */
footer {
  background-color: var(--aggie-dark);
  color: #888;
  padding: 60px 5% 20px;
  border-top: 5px solid var(--aggie-maroon);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 15px;
  font-size: 1.5rem;
  margin-top: 15px;
}

.social-links a {
  color: #aaa;
}

.social-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }

  .main-nav {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .join-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width, .join-form button {
    grid-column: span 1;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-container::after {
    left: 21px;
  }

  .timeline-right {
    left: 0%;
  }
}