/* ===================================
   Course Preview Page Styles
   Modern Design based on Tabler.io
   =================================== */

/* ===================================
   Base Styles
   =================================== */
.page-header {
    display: none;
}
.preview-course {
  background-color: #f8f9fa;
  min-height: 100vh;
}
/* ===================================
   Tabs Styles
   =================================== */
.course-tabs {
    background: white;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.course-tabs.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid #e9ecef;
}

.course-tabs.sticky .course-nav {
    padding: 0 1rem;
}

.sticky-placeholder {
    display: none;
    height: 0;
}

.sticky-placeholder.active {
    display: block;
}

.course-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: none;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.course-nav::-webkit-scrollbar {
    display: none;
}

.course-nav-item {
    margin-bottom: 0;
    flex-shrink: 0;
}

.course-nav-link {
    display: block;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.875rem;
    background: none;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.course-nav-link:hover {
    color: #495057;
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: #dee2e6;
    text-decoration: none;
}

.course-nav-link.active {
    color: #1a1a1a;
    background: none;
    border-bottom-color: #206bc4;
    font-weight: 600;
}

.course-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    line-height: 1;
    vertical-align: middle;
}

.course-nav-link.active .course-badge {
    background: #206bc4;
    color: white;
}

/* Tab Content */
.course-tab-content {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.course-tab-pane {
    display: none;
    padding: 2rem;
    min-height: 400px;
}

.course-tab-pane.active {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .course-nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .course-tab-pane {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .course-nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .course-badge {
        font-size: 0.65rem;
        padding: 0.125rem 0.375rem;
    }
}
.sticky-top {
    top:70px;
}
/* ===================================
   Payment
   =================================== */

.payment-provider-montonio-dark {
    background-image: url("../img/payments/montonio-dark.svg");
}
.payment-provider-everypay-dark {
    background-image: url("../img/payments/everypay-dark.svg");
}
/* ===================================
   Course Overview Section
   =================================== */

/* ===================================
   Course Section Base
   =================================== */
.course-section {
  background: #ffffff;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.course-section__header {
  padding: 35px 35px 20px 35px;
  background: #ffffff;
  position: relative;
}

.course-section__title {
  font-size: 16px;
  font-weight: 700;
  color: #0D1321;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.course-section__icon {
  color: #6a6f73;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.course-section__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
}

.course-section__badge .badge {
  background: #f3f4f5;
  color: #6a6f73;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.course-section__body {
  padding: 0 35px 35px 35px;
}

.course-hero-sub-text {
    font-size: 18px;
}

/* ===================================
   Target Audience Section - Modern Design
   =================================== */
.fw-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: 0.375rem;
    text-transform: uppercase;
    color: #0D1321;
}
.fw-badge.students {
    background-color: #d3e7c8;
}
.fw-badge.beginners {
    background-color: rgba(153, 104, 136, 0.3);  /* #996888 */
}
.fw-badge.competency {
    background-color: rgba(208, 229, 98, 0.5);   /* #D0E562 */
}
.fw-badge.required {
    background-color: rgba(255, 127, 17, 0.3);   /* #FF7F11 */
}
.fw-badge.skill {
    background-color: rgba(23, 75, 165, 0.3);    /* #174BA5 */
}
.fw-badge.knowledge {
    background-color: rgba(208, 229, 98, 0.8);   /* #D0E562 */
}
.fw-badge.attitude {
    background-color: rgba(208, 229, 98, 0.3);  /* #996888 */
}
.fw-badge.teacher_skills {
    border: 1px solid #0D1321;
    text-transform: capitalize;
    font-weight: normal;
}

.fw-metric {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fw-metric-value {
    font-size: 24px;
    line-height: 1;
    font-weight: 600;
}
.fw-metric-label {
    font-size: 14px;
}

.target-audience__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.target-audience__check-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-audience__content {
  flex: 1;
  min-width: 0;
}

.target-audience__title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

.target-audience__description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* ===================================
   Target Audience Details
   =================================== */
.target-audience__details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 равные колонки */
    gap: 1rem;
}

.target-audience__detail-item {
  background: #F6F7F8;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.target-audience__detail-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.target-audience__detail-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.target-audience__detail-content {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.accordion-item {
    border:none;
}
.accordion-item:has(.accordion-button[aria-expanded="true"]) {
    border-radius: 12px;
    border: 1px solid #CACFD8;
    background-color: #F6F7F8;
}
.accordion-collapse.show ~ .accordion-header .accordion-button,
.accordion-item:has(.accordion-collapse.show) .accordion-button {
    border-radius: 12px;
    border: 0 solid #CACFD8;
    background-color: #F6F7F8;
}
.accordion-item:not([aria-expanded="false"]) .accordion-button {
    border-radius: 12px;
    border: 1px solid #CACFD8;
    background-color: #F6F7F8;
}
.accordion-button::after {
    display: none;
}
.accordion-icon {
    transition: transform 0.2s ease;
}
.accordion-button:not(.collapsed) .accordion-icon {
    transform: rotate(180deg);
}
.text-statistic {
    font-size: 14px;
}

/* ===================================
   Learning Outcomes Details
   =================================== */
.learning-outcomes__details {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}
.learning-outcomes__detail-description {
    color: #313A4E;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.learning-outcomes__details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.learning-outcomes__detail-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.learning-outcomes__detail-item--full {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

.learning-outcomes__detail-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.learning-outcomes__detail-icon {
    color: #667eea;
    flex-shrink: 0;
}

.learning-outcomes__detail-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.learning-outcomes__detail-content {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   Teachers Section
   =================================== */
.teachers__detail-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
}
.teachers__detail-item-info {
    height: 60px;
}

/* ===================================
   Reviews Section
   =================================== */

/* Reviews Overview (Left Column) */
.reviews__overview {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.reviews__score {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.reviews__stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.reviews__stars svg {
    color: #22c55e;
    fill: #22c55e;
}

.reviews__count {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Rating Distribution */
.reviews__distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reviews__distribution-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviews__distribution-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    min-width: 2rem;
}

.reviews__distribution-bar {
    flex: 1;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
    position: relative;
}

.reviews__distribution-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

.reviews__distribution-percentage {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    min-width: 2.5rem;
    text-align: right;
}

/* Reviews List (Right Column) */
.reviews__list {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.reviews__list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.reviews__list-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.reviews__write-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #22c55e;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reviews__write-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.reviews__write-btn svg {
    width: 1rem;
    height: 1rem;
}

.reviews__list-body {
    padding: 0;
}

/* Individual Review */
.reviews__review {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.reviews__review:last-child {
    border-bottom: none;
}

.reviews__review:hover {
    background: #f9fafb;
}

.reviews__review-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reviews__review-content {
    flex: 1;
    min-width: 0;
}

.reviews__review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.reviews__review-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviews__review-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.reviews__review-stars {
    display: flex;
    gap: 0.125rem;
}

.reviews__review-star {
    color: #22c55e;
}

.reviews__review-date {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 400;
}

.reviews__review-text {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Review Actions */
.reviews__review-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviews__action-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.reviews__action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.reviews__action-btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

.reviews__action-btn:first-child {
    color: #22c55e;
}

.reviews__action-btn:first-child:hover {
    background: #f0fdf4;
}

.reviews__action-btn:last-child {
    color: #ef4444;
}

.reviews__action-btn:last-child:hover {
    background: #fef2f2;
}

/* Load More Section */
.reviews__load-more {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #f3f4f6;
}

.reviews__load-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reviews__load-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

.reviews__load-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design for Reviews */
@media (max-width: 768px) {
    .reviews__overview {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .reviews__score {
        font-size: 2.5rem;
    }

    .reviews__list-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem 1.5rem;
    }

    .reviews__write-btn {
        width: 100%;
        justify-content: center;
    }

    .reviews__review {
        padding: 1rem 1.5rem;
    }

    .reviews__review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .reviews__review-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .reviews__review-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .reviews__load-more {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .reviews__overview {
        padding: 1rem;
    }

    .reviews__score {
        font-size: 2rem;
    }

    .reviews__distribution-item {
        gap: 0.5rem;
    }

    .reviews__distribution-label {
        min-width: 1.5rem;
        font-size: 0.75rem;
    }

    .reviews__distribution-percentage {
        min-width: 2rem;
        font-size: 0.7rem;
    }

    .reviews__review-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }

    .reviews__review-text {
        font-size: 0.8rem;
    }
}

/* ===================================
   FAQ Section
   =================================== */


/* ===================================
   Sidebar
   =================================== */
.course-sidebar {
  position: sticky;
  top: 2rem;
}


/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  .course-header__title {
    font-size: 2rem;
  }

  .course-sidebar {
    position: static;
    margin-top: 20px;
  }

  .target-audience__list {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .course-header__title {
    font-size: 1.75rem;
  }

  .target-audience__list {
    grid-template-columns: 1fr;
  }

  .learning-outcomes__list,
  .target-audience__list {
    grid-template-columns: 1fr;
  }

  .learning-outcomes__item,
  .target-audience__item {
    padding: 1rem;
  }

  .learning-outcomes__header,
  .target-audience__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .learning-outcomes__badges,
  .target-audience__badges {
    flex-direction: row;
    width: 100%;
  }

  .learning-outcomes__details-grid {
    grid-template-columns: 1fr;
  }

  .target-audience__details-grid {
    grid-template-columns: 1fr;
  }

  .target-audience__metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .course-section__header {
    padding: 1rem;
  }

  .course-section__body {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .course-header__title {
    font-size: 1.5rem;
  }

  .course-hero__play-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .course-sidebar__price {
    font-size: 2rem;
  }

  .instructor__stats {
    grid-template-columns: 1fr;
  }
}
