/* Academy Page Styles - Mobile First */

.academy-page {
  background-color: #181818;
  color: #ffffff;
  min-height: 100vh;
}

/* Academy Custom Header */
.academy-header {
  /* background-color: #181818; */
  /* padding: 32px 0; */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.academy-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.academy-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
}

.logo-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #00d4aa;
  border-radius: 50%;
}

.logo-dot:first-child {
  top: 8px;
  left: 12px;
}

.academy-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 14px;
  color: #ffffff;
  font-style: normal;
  font-weight: 400;
  line-height: 115%; /* 16.1px */
  letter-spacing: -0.14px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ff6b35;
}

.academy-actions {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-shrink: 0;
}

.search-action,
.menu-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.search-action:hover,
.menu-action:hover {
  opacity: 0.7;
}

.action-text {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 115%; /* 16.1px */
  letter-spacing: -0.14px;
  color: #ffffff;
}

.search-action svg,
.menu-action svg {
  color: #ffffff;
}

/* Mobile Responsive Navigation */
@media (max-width: 767px) {
  .academy-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .academy-menu {
    order: 2;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .academy-logo {
    order: 1;
  }

  .academy-actions {
    order: 3;
    justify-content: center;
    width: 100%;
  }

  .logo-text {
    font-size: 1.8rem;
  }

  /* .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0;
  } */
}

/* Hero Section */
.academy-hero {
  padding: 2rem 0 4rem;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 0px;
}

.hero-title {
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  padding-top: 32px;
  line-height: 1.25;
  /* margin-bottom: 4rem; */
  color: #ffffff;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 763px;
  margin: 0 auto;
  border-radius: 23px;
  overflow: hidden;
  border: 1px solid #ffffff;
  margin-top: 64px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 23px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 23px;
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  margin: 4rem 0;
  opacity: 0.2;
}

/* Featured Courses Section */
.featured-courses {
  padding: 2rem 0;
}

.courses-header {
  margin-bottom: 3rem;
}

.section-title {
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 3rem;
  color: #ffffff;
  text-align: center;
}

.courses-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 1rem 1rem;
  border-radius: 64px;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn.active {
  border-color: #fff1eb;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: rgba(255, 241, 235, 0.4);
}

.view-controls {
  display: flex;
  gap: 0.75rem;
}

.view-btn {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 1rem;
  border-radius: 64px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn.active {
  border-color: rgba(255, 241, 235, 0.2);
}

.view-btn.disabled {
  opacity: 0.2;
}

.view-btn:hover:not(.disabled) {
  border-color: rgba(255, 241, 235, 0.4);
}

/* Courses Grid */
.courses-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.course-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.course-thumbnail img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-thumbnail:hover img {
  transform: scale(1.05);
}

.placeholder-image {
  width: 100%;
  height: 240px;
  background-color: #f5f5f5;
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.875rem;
}

.course-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-title {
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0;
}

.course-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.course-title a:hover {
  color: #ff6b35;
}

.course-subtitle {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.5);
  text-transform: capitalize;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.course-date {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.course-author {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Tablet Styles */
@media (min-width: 768px) {
  .academy-page {
    /* padding: 3rem 0; */
  }

  .academy-header {
    /* padding: 2.5rem 0; */
  }

  .academy-nav {
    gap: 3rem;
  }

  .logo-text {
    font-size: 2.5rem;
  }

  .academy-menu {
    gap: 2.5rem;
  }

  /* .nav-link {
    font-size: 1rem;
  } */

  .academy-actions {
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 48px;
  }

  .section-title {
    font-size: 3.5rem;
    text-align: left;
  }

  .courses-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .filter-buttons {
    justify-content: flex-start;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .course-thumbnail img,
  .placeholder-image {
    height: 280px;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .academy-page {
    /* padding: 4rem 0; */
  }

  .hero-title {
    font-size: 48px;
    /* margin-bottom: 64px; */
  }

  .section-title {
    font-size: 4rem;
  }

  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .course-thumbnail img,
  .placeholder-image {
    height: 320px;
  }

  .course-title {
    font-size: 1.5rem;
  }

  .course-subtitle {
    font-size: 1.125rem;
  }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .course-thumbnail img,
  .placeholder-image {
    height: 380px;
  }
}

/* Grid View Styles */
.courses-grid.grid-view {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.courses-grid.grid-view .course-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses-grid.grid-view .course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* List View Styles */
.courses-grid.list-view {
  grid-template-columns: 1fr;
}

.courses-grid.list-view .course-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.courses-grid.list-view .course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.courses-grid.list-view .course-thumbnail {
  flex: 0 0 200px;
}

.courses-grid.list-view .course-thumbnail img,
.courses-grid.list-view .placeholder-image {
  height: 150px;
}

.courses-grid.list-view .course-content {
  flex: 1;
}

.courses-grid.list-view .course-meta {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
