/* Academy Page Styles */

/* Hero Section */
.academy-hero {
  position: relative;
  background: linear-gradient(135deg, #235560 0%, #2d6e7c 50%, #3a8a9a 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  overflow: hidden;
}

.academy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.academy-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.academy-hero .hero-copy {
  position: relative;
  z-index: 2;
  color: white;
  padding: 80px 20px;
}

.academy-hero h1 {
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.academy-hero .lead {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 35px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.academy-hero .btn {
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 50px;
  background: white;
  color: #235560;
  border: 2px solid white;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.academy-hero .btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Academy Content Section */
.academy-content {
  background: #f5f4ec;
  padding: 80px 0;
  min-height: calc(100vh - 500px);
}

.section-title {
  font-size: 42px;
  font-weight: bold;
  color: #235560;
  margin-bottom: 15px;
  font-family: 'Cairo', sans-serif;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
  font-family: 'Cairo', sans-serif;
}

/* Course Tabs */
.nav-tabs {
  border-bottom: 3px solid #235560;
  margin-bottom: 40px;
}

.nav-tabs > li {
  margin-bottom: -3px;
}

.nav-tabs > li > a {
  border-radius: 8px 8px 0 0;
  padding: 20px 25px;
  font-size: 16px;
  font-weight: bold;
  color: #575756;
  background: white;
  border: 2px solid #ddd;
  margin-right: 5px;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.nav-tabs > li > a:hover {
  background: #f8f8f8;
  border-color: #235560;
  color: #235560;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background: #235560;
  color: white;
  border: 2px solid #235560;
  border-bottom-color: transparent;
}

.nav-tabs > li > a .course-description {
  font-size: 13px;
  font-weight: normal;
  margin-top: 5px;
  opacity: 0.8;
}

/* Video Player */
.video-wrapper {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.academy-player {
  width: 100%;
  height: auto;
  min-height: 400px;
  display: block;
  background: #000;
}

/* Playlist Panel */
.playlist {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.playlist .panel-heading {
  background: linear-gradient(135deg, #235560 0%, #2d6e7c 100%);
  color: white;
  padding: 20px;
  border: none;
}

.playlist .panel-title {
  font-size: 18px;
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  margin: 0;
}

.playlist .list-group {
  max-height: 520px;
  overflow-y: auto;
  margin-bottom: 0;
}

.playlist-item {
  border-left: 4px solid transparent;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  border-right: none;
  border-top: 1px solid #e8e8e8;
}

.playlist-item:first-child {
  border-top: none;
}

.playlist-item:hover {
  background: #f8f8f8;
  border-left-color: #235560;
  transform: translateX(5px);
}

.playlist-item.active {
  background: linear-gradient(90deg, rgba(35, 85, 96, 0.1) 0%, rgba(35, 85, 96, 0.05) 100%);
  border-left-color: #235560;
  font-weight: bold;
}

.playlist-item-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-title {
  font-size: 15px;
  color: #333;
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
}

.lesson-duration {
  font-size: 13px;
  color: #999;
  font-family: 'Cairo', sans-serif;
}

.lesson-duration i {
  margin-right: 5px;
}

.playlist-item.active .lesson-title {
  color: #235560;
}

.playlist-item.active .lesson-duration {
  color: #235560;
}

/* Tab Content */
.tab-content {
  background: white;
  padding: 40px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-pane {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #235560 0%, #2d6e7c 100%);
  color: white;
  padding: 80px 0;
  margin-top: 60px;
}

.cta-section h2 {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'Cairo', sans-serif;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Cairo', sans-serif;
}

.cta-section .btn {
  padding: 15px 45px;
  font-size: 18px;
  border-radius: 50px;
  background: white;
  color: #235560;
  border: 2px solid white;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.academy-footer {
  background: #1f4148;
  color: white;
  padding: 50px 0 30px;
  font-family: 'Cairo', sans-serif;
}

.academy-footer h5 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
}

.academy-footer p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.academy-footer ul {
  padding: 0;
}

.academy-footer ul li {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.academy-footer ul li i {
  margin-right: 10px;
  color: #fff;
  width: 20px;
}

/* Responsive Design */
@media (max-width: 991px) {
  .academy-hero h1 {
    font-size: 42px;
  }

  .academy-hero .lead {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .video-wrapper {
    margin-bottom: 30px;
  }

  .playlist {
    max-height: 400px;
  }

  .nav-tabs > li > a {
    font-size: 14px;
    padding: 15px 15px;
  }

  .tab-content {
    padding: 25px;
  }
}

@media (max-width: 767px) {
  .academy-hero {
    min-height: 400px;
  }

  .academy-hero h1 {
    font-size: 32px;
  }

  .academy-hero .lead {
    font-size: 15px;
  }

  .academy-hero .btn {
    padding: 12px 30px;
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .nav-tabs > li > a {
    padding: 12px 10px;
    font-size: 13px;
  }

  .nav-tabs > li > a .course-description {
    font-size: 11px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .cta-section p {
    font-size: 16px;
  }
}

/* Custom Scrollbar for Playlist */
.playlist .list-group::-webkit-scrollbar {
  width: 8px;
}

.playlist .list-group::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.playlist .list-group::-webkit-scrollbar-thumb {
  background: #235560;
  border-radius: 4px;
}

.playlist .list-group::-webkit-scrollbar-thumb:hover {
  background: #1f4148;
}

/* Loading State */
.academy-player[poster] {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

