/* ===== TEACHING HERO SECTION ===== */
.teaching-hero {
  background: linear-gradient(rgba(13, 43, 123, 0.8), rgba(13, 43, 123, 0.9)), 
              url('../images/teaching-banner.jpg') center/cover;
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
}

.teaching-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.teaching-hero .subtitle {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ===== LIVE STREAM SECTION ===== */
.live-section {
  background-color: #f8f9fa;
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.live-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #e63946;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.video-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.live-video-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.live-video-wrapper iframe {
  width: 100%;
  height: 450px;
  display: block;
}

.live-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.live-badge {
  background-color: #e63946;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.viewer-count {
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-info {
  flex: 0 0 320px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.live-info h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.preacher {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

.schedule {
  background-color: var(--light);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== VIDEOS SECTION ===== */
.videos-section {
  padding: 4rem 0;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-group label {
  font-weight: 500;
}

.filter-group select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  min-width: 150px;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-option {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--gray);
}

.view-option.active {
  background: var(--light);
  color: var(--primary);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.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);
}

.duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(244, 197, 66, 0.85);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .play-btn {
  opacity: 1;
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.excerpt {
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ===== AUDIO SECTION ===== */
.audio-section {
  background-color: #f8f9fa;
  padding: 4rem 0;
}

.audio-list {
  max-width: 800px;
  margin: 0 auto;
}

.audio-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.audio-info {
  flex: 1;
  min-width: 250px;
}

.audio-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.audio-player {
  flex: 2;
  min-width: 300px;
}

.audio-player audio {
  width: 100%;
}

.audio-actions {
  flex: 0 0 auto;
}

/* ===== BOOKS SECTION ===== */
.books-section {
  padding: 4rem 0;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.book-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.book-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--light-gray);
}

.book-info {
  padding: 1.5rem;
  text-align: center;
}

.book-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.author {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
  .live-video-wrapper iframe {
    height: 350px;
  }
  
  .video-thumbnail {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .teaching-hero {
    padding: 6rem 0 3rem;
  }
  
  .teaching-hero h1 {
    font-size: 2.2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .live-video-wrapper iframe {
    height: 250px;
  }
  
  .video-thumbnail {
    height: 140px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .video-container {
    flex-direction: column;
  }
  
  .live-info {
    flex: 1;
  }
  
  .audio-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .audio-player {
    width: 100%;
  }
}