/* Training Page Styles */
.training-hero {
  background: linear-gradient(#000000b3, rgba(0, 0, 0, 0.7)),
    url("../../images/training/hero.jpeg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 0;
}

.training-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--light-color);
  border-bottom-color: var(--accent-color);
}

.tab-btn:hover:not(.active) {
  color: var(--dark-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.content-title {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.content-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-thumbnail {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.video-card:hover .play-btn {
  background: var(--accent-color);
  color: white;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.video-card h3 {
  margin-top: 1rem;
  color: var(--dark-color);
}

.video-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Photos Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.photos-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
  transition: transform 0.3s ease;
}

.photos-grid a:hover {
  transform: scale(1.03);
}

.photos-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Drills Accordion */
.drills-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.drill-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.drill-header {
  width: 100%;
  padding: 1.5rem;
  background: var(--accent-color);
  color: white;
  border: none;
  text-align: left;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.drill-header:hover {
  background: #172554;
}

.drill-header i {
  transition: transform 0.3s ease;
}

.drill-item.active .drill-header i {
  transform: rotate(180deg);
}

.drill-content {
  display: none;
  padding: 1.5rem;
  background: white;
}

.drill-item.active .drill-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drill-media img {
  width: 100%;
  border-radius: 8px;
  max-height: 300px;
  object-fit: cover;
}

.drill-info h4 {
  color: var(--accent-color);
  margin: 1rem 0 0.5rem;
}

/* Schedule Table */
.schedule-table {
  overflow-x: auto;
  margin-top: 2rem;
}

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.schedule-table th,
.schedule-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #ddd;
}

.schedule-table th {
  background: var(--accent-color);
  color: white;
}

.schedule-table tr:nth-child(even) {
  background: #f9fafb;
}

.schedule-table tr:hover {
  background: #f0f4f8;
}

/* Lightbox Overrides */
.lightbox .lb-image {
  border: 10px solid white;
  border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .training-tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }

  .drill-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table table {
    font-size: 0.9rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.75rem 0.5rem;
  }
}
