/* Main Content */
.main-content {
  padding-top: 80px;
  background: transparent;
}

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Learn Details Section */
.learn-details-section {
  padding: 40px 0;
}

/* Details Layout - Two Columns */
.details-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

/* ==================== LEFT COLUMN ==================== */
.details-left-column {
  display: flex;
  flex-direction: column;
}

.content-block {
  background: #FFF;
  border-radius: 25px;
  border: 1px solid #E8E0D6;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

/* Content Header */
.content-header {
  background: linear-gradient(0deg, #FFF 0.07%, #E8E0D6 119.44%, #DCE1EB 239.38%);
  border-bottom: 1px solid #E8E0D6;
  padding: 16px 30px 22px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: flex-start;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.header-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.resource-badge-primary {
  border-radius: 6px;
  border: 1px solid #2C3342;
  background: transparent;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  width: fit-content;
  font-family: 'Chewie DEMO';
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #252A34;
}

.badge-icon {
  width: 18px;
  height: 18px;
}

.resource-badge-free {
  display: inline-block;
  padding: 8px 15px;
  background: transparent;
  font-family: 'Chewie DEMO';
  color: #27A63D;
  border: 1px solid #27A63D;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  flex-shrink: 0;
}

.content-title {
  font-family: 'Chewie DEMO';
  font-size: 24px;
  font-weight: 700;
  color: #252A34;
  margin: 0;
  line-height: 21px;
}

.content-description {
  font-family: 'Chewie DEMO';
  font-size: 14px;
  font-weight: 600;
  color: #5E6678;
  margin: 0;
  line-height: 21px;
}

.category-badges {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-block;
  padding: 8px 21px;
  border: 1px solid #E8E0D6;
  border-radius: 8px;
  background: transparent;
  font-family: 'Chewie DEMO';
  font-size: 12px;
  font-weight: 700;
  color: #5E6678;
}

.header-right {
  flex-shrink: 0;
}

.header-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Podcast Player */
.podcast-player {
  padding-left: 30px;
  padding-right: 32px;
  border-bottom: 1px solid #E8E0D6;
  display: flex;
  align-items: center;
  gap: 32px;
  background: #FFF;
  width: 100%;
  box-sizing: border-box;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 400px;
  flex: 0 1 auto;
  padding: 0;
  min-width: 0;
}

.play-button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.player-progress {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.progress-bar {
  flex: 1;
  height: 2px;
  background: #E8E0D6;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  min-width: 100px;
}

.progress-fill {
  height: 100%;
  background: #ECA455;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.player-time {
  font-family: 'Chewie DEMO';
  font-size: 12px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
  white-space: nowrap;
}

.player-divider {
  width: 1px;
  height: 70px;
  background: #E8E0D6;
  flex-shrink: 0;
}

.player-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}

.player-title {
  font-family: 'Chewie DEMO';
  font-size: 12px;
  font-weight: 700;
  color: #2C3342;
  margin: 0;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta {
  font-family: 'Chewie DEMO';
  font-size: 12px;
  font-weight: 500;
  color: #A1A7B3;
  margin: 0;
  line-height: 20px;
}

.player-nav-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-nav-btn:hover {
  transform: scale(1.15);
}

/* Podcast Description */
.podcast-description {
  padding: 25px 30px;
  background: #FFF;
  border-bottom: 1px solid #E8E0D6;
}

.podcast-description p {
  font-size: 14px;
  font-weight: 400;
  color: #5E6678;
  line-height: 24px;
  margin: 0;
}

.podcast-description p:last-child {
  margin-bottom: 0;
}

/* Episodes List */
.episodes-list {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.episode-item {
  background: #FCF9F6;
  border: 1px solid #E8E0D6;
  border-radius: 15px;
  padding: 16px 19px;
  display: flex;
  gap: 15px;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.episode-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #ECA455;
}

.episode-item.active {
  background: #FFF;
  border-color: #ECA455;
  box-shadow: 0 4px 12px rgba(236, 164, 85, 0.15);
}

.episode-icon {
  flex-shrink: 0;
}

.episode-info {
  flex: 1;
}

.episode-title {
  font-family: 'Chewie DEMO';
  font-size: 14px;
  font-weight: 700;
  color: #2C3342;
  line-height: 20px;
}

.episode-meta {
  font-family: 'Chewie DEMO';
  font-size: 12px;
  font-weight: 500;
  color: #A1A7B3;
  margin: 0;
  line-height: 20px;
}

/* ==================== RIGHT COLUMN ==================== */
.details-right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 24px;
  background: #FFF;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 164, 85, 0.2);
  border-color: #ECA455;
}

.action-btn span {
  font-family: 'Chewie DEMO';
  font-size: 16px;
  font-weight: 700;
  color: #2C3342;
}

/* Coach Card */
.coach-card {
  background: linear-gradient(4deg, #FFF 14.12%, #E8E0D6 55.55%, #DCE1EB 97.19%);
  border-radius: 20px;
  border: 1px solid #E8E0D6;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 35px;
}

.details-coach-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
}

.coach-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-name {
  font-family: 'Chewie DEMO';
  font-size: 20px;
  font-weight: 700;
  color: #252A34;
  margin: 0 0 15px 0;
}

.coach-title {
  font-family: 'Chewie DEMO';
  font-size: 14px;
  font-weight: 500;
  color: #5E6678;
  margin: 0 0 25px 0;
  line-height: 24px;
}

/* Coach Footer */
.coach-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid #E8E0D6;
}

.coach-footer-link {
  font-family: 'Chewie DEMO';
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 0 30px;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
}

.coach-footer-link.follow-link {
  color: #2C3342;
}

.coach-footer-link.follow-link:hover {
  color: #ECA455;
}

.footer-divider {
  width: 1px;
  height: 56px;
  background: #E8E0D6;
}

.coach-footer-link.profile-link {
  color: #ECA455;
}

.coach-footer-link.profile-link:hover {
  color: #D6943A;
  text-decoration: underline;
}

/* ==================== RELATED COACHES SECTION ==================== */
.related-coaches-section {
  background: linear-gradient(0deg, #FFF 0.07%, #E8E0D6 119.44%, #DCE1EB 239.38%);
  border-radius: 25px;
  border: 1px solid #E8E0D6;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
  padding: 40px 53px;
  margin-top: 40px;
}

.related-coaches-title {
  font-size: 28px;
  font-weight: 700;
  color: #2C3342;
  margin: 0 0 30px 0;
  line-height: 1.2;
  text-align: center;
}

.related-coaches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Coach Card Styles (from home_coachs.css) */
.related-coaches-section .coach-card {
  border-radius: 25px;
  border: 1px solid #EDE8E2;
  background: #FFF;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
  padding: 34px 40px 23px 40px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.related-coaches-section .coach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.related-coaches-section .coach-avatar {
  margin-bottom: 17px;
}

.related-coaches-section .avatar-img {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  object-fit: cover;
}

.related-coaches-section .coach-name {
  font-size: 18px;
  font-weight: 700;
  color: #2C3342;
  margin-bottom: 14px;
}

.related-coaches-section .coach-function {
  font-size: 14px;
  color: #2C3342;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 21px;
  flex-grow: 1;
}

.related-coaches-section .coach-footer {
  border-top: 1px solid #EDE8E2;
  padding-top: 1rem;
  margin-top: auto;
}

.related-coaches-section .coach-badge {
  border-radius: 20px;
  background: rgba(236, 164, 85, 0.10);
  display: inline-block;
  padding: 0 18px;
  color: #5E6678;
  font-size: 12px;
  font-weight: 500;
  line-height: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .details-layout {
    grid-template-columns: 1fr;
  }

  .details-right-column {
    position: static;
    order: -1;
  }

  .content-header {
    grid-template-columns: 1fr auto;
  }

  .related-coaches-section {
    padding: 30px 24px;
  }

  .related-coaches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  /* Container */
  .learn-details-section {
    padding: 20px 0;
  }

  .container {
    padding: 0 16px;
  }

  .details-layout {
    gap: 16px;
  }

  /* Content header */
  .content-block {
    border-radius: 16px;
  }

  .content-header {
    padding: 16px;
    gap: 16px;
  }

  .header-left {
    gap: 12px;
  }

  .header-badges {
    gap: 8px;
  }

  .resource-badge-primary {
    padding: 5px 10px;
    font-size: 11px;
    gap: 6px;
  }

  .badge-icon {
    width: 14px;
    height: 14px;
  }

  .resource-badge-free {
    padding: 5px 10px;
    font-size: 11px;
  }

  .content-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .content-description {
    font-size: 12px;
    line-height: 18px;
  }

  .category-badges {
    gap: 6px;
  }

  .category-badge {
    padding: 5px 12px;
    font-size: 11px;
    border-radius: 6px;
  }

  .header-avatar {
    width: 72px;
    height: 72px;
  }

  /* Player */
  .podcast-player {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  .player-controls {
    width: 100%;
    gap: 12px;
  }

  .player-progress {
    gap: 14px;
  }

  .progress-bar {
    min-width: 80px;
  }

  .player-time {
    font-size: 11px;
  }

  .player-divider {
    display: none;
  }

  .player-info {
    width: 100%;
  }

  .player-title {
    font-size: 12px;
    white-space: normal;
  }

  .player-meta {
    font-size: 11px;
  }

  .player-nav-btn {
    width: 28px;
    height: 28px;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  /* Description */
  .podcast-description {
    padding: 16px;
  }

  .podcast-description p {
    font-size: 13px;
    line-height: 21px;
  }

  /* Episodes */
  .episodes-list {
    padding: 16px;
    gap: 10px;
  }

  .episode-item {
    padding: 12px;
    gap: 12px;
    border-radius: 12px;
  }

  .episode-title {
    font-size: 13px;
    line-height: 18px;
  }

  .episode-meta {
    font-size: 11px;
  }

  /* Right column */
  .action-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .action-btn {
    padding: 10px 16px;
    border-radius: 12px;
    gap: 8px;
  }

  .action-btn span {
    font-size: 13px;
  }

  .action-icon {
    width: 18px;
    height: 18px;
  }

  /* Coach card */
  .coach-card {
    padding-top: 24px;
    border-radius: 16px;
  }

  .details-coach-avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
  }

  .coach-name {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .coach-title {
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 20px;
  }

  .coach-footer-link {
    font-size: 13px;
    padding: 0 16px;
  }

  .footer-divider {
    height: 44px;
  }

  /* Related coaches */
  .related-coaches-section {
    padding: 24px 16px;
    border-radius: 16px;
    margin-top: 24px;
  }

  .related-coaches-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .related-coaches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .related-coaches-section .coach-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .related-coaches-section .avatar-img {
    width: 72px;
    height: 72px;
  }

  .related-coaches-section .coach-avatar {
    margin-bottom: 10px;
  }

  .related-coaches-section .coach-name {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .related-coaches-section .coach-function {
    font-size: 11px;
    line-height: 18px;
    margin-bottom: 10px;
  }

  .related-coaches-section .coach-badge {
    font-size: 10px;
    padding: 0 10px;
    line-height: 24px;
  }
}

@media (max-width: 380px) {
  .content-header {
    grid-template-columns: 1fr;
  }

  .header-right {
    display: flex;
    justify-content: center;
  }

  .content-title {
    font-size: 16px;
  }

  .related-coaches-grid {
    grid-template-columns: 1fr;
  }
}

