@keyframes cp-fade-up {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cp-fade-in {
  0% {
    opacity: 0;
    transform: scale(0.99);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cp-stagger-child {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background: #131925;
  border: 1px solid #2b2e325f;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(6px);
  animation: cp-fade-up 0.35s ease-out forwards;
}

.card:hover {
  transform: translateY(0) scale(1.005);
  transition: transform 0.22s ease;
}

.cp {
  padding: 28px 0 60px;
}

.cp__container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.cp-intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  padding: 20px;
  align-items: start;
  animation: cp-fade-in 0.4s ease-out forwards;
}

/* ویدیو – بدون سایه */
.cp-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #212c42;
  border: 1px solid #2b2e324f;
  transform: translateY(0);
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

/* .cp-video:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
} */

.cp-video video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.cp-title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.cp-subtitle {
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.9;
  font-size: 13px;
}

/* استت‌های هیرو – بدون سایه */
.cp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.cp-stat {
  background: #131925;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(4px);
  animation: cp-stagger-child 0.35s ease-out forwards;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.cp-stat:nth-child(1) {
  animation-delay: 0.08s;
}
.cp-stat:nth-child(2) {
  animation-delay: 0.14s;
}
.cp-stat:nth-child(3) {
  animation-delay: 0.2s;
}

.cp-stat:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.cp-stat img {
  width: 2.5rem;
  height: auto;
  padding: 5px;
  background-color: #a3640626;
  border-radius: 50px;
}

.cp-stat__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cp-stat__value {
  font-weight: 800;
  font-size: 13px;
}

.cp-stat__label {
  font-size: 12px;
  color: #6b7280;
}

/* badgeهای هیرو – بدون سایه */
.cp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #2b2e3263;
  background: #212c416d;
  color: #586b86;
  font-size: 12px;
  line-height: 1;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.cp-badge:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.02);
}

.cp-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.cp-ico--sm {
  width: 18px;
  height: 18px;
}

.cp-maingrid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 18px;
  align-items: start;
  animation: cp-fade-up 0.35s ease-out forwards;
}

.cp-maingrid__left {
  display: grid;
  gap: 18px;
}

.cp-sticky {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 18px;
}

.cp-section {
  padding: 18px;
  opacity: 0;
  transform: translateY(4px);
  animation: cp-fade-up 0.33s ease-out forwards;
}

.cp-section__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.cp-section__head--spaced {
  justify-content: space-between;
}

.cp-section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #2d4fda;
  display: block;
  width: 100%;
}

.cp-accordion,
.cp-chapter,
.cp-faqItem {
  border: 1px solid #3032336e;
  border-radius: 20px;
}

.cp-accordion__summary,
.cp-chapter__summary,
.cp-faqItem__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.cp-accordion__summary:hover,
.cp-chapter__summary:hover,
.cp-faqItem__summary:hover {
  transform: translateY(-1px);
}

.cp-accordion__summary::-webkit-details-marker,
.cp-chapter__summary::-webkit-details-marker,
.cp-faqItem__summary::-webkit-details-marker {
  display: none;
}

.cp-accordion__summaryText {
  font-weight: 700;
  font-size: 13px;
  color: #374151;
}

.cp-accordion__body {
  padding: 0 14px 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 2;
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.cp-more {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #eef1f6;
  color: #374151;
  background: #fbfcff;
  text-decoration: none;
  font-size: 12px;
  transition: transform 0.18s ease;
}

.cp-more--center {
  margin-top: 14px;
  align-self: center;
}

.cp-more:hover {
  transform: translateY(-1px);
}

.cp-chapters {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.cp-chapter {
  overflow: hidden;
  transition:
    border-color 0.22s ease,
    transform 0.18s ease;
}

.cp-chapter[open] {
  transform: translateY(-1px);
}

.cp-chapter__title {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.cp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #212c42;
  border: 1px solid #30323342;
  color: #e48d0a;
  font-size: 12px;
  white-space: nowrap;
  transition: transform 0.18s ease;
}

.cp-chapter__summary:hover .cp-pill {
  transform: translateY(-1px);
}

.cp-lessons {
  margin: 0;
  padding: 0 14px 12px;
  list-style: none;
  display: grid;
  gap: 6px;
}

.cp-lesson a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(
    90deg,
    #213b8f58 0%,
    #213b8f68 25%,
    #213b8f6f 55%,
    #213b8f5f 100%
  );
  border: 0.1px solid #3032336e;
  color: #9096ad;
  font-size: 12px;
  transform: translateY(0);
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.cp-lesson a:hover {
  background: #213b8f5f;
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.cp-price {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: cp-fade-in 0.35s ease-out forwards;
}

.cp-price__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cp-price__amount {
  display: flex;
  align-items: baseline;
  font-size: xx-large;
  font-weight: bold;
  gap: 10px;
}

.cp-price__currency {
  color: #6b7280;
  font-size: 12px;
}

.cp-price__num {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.cp-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Vazirmat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #3b66ff, #2f57e8);
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.cp-btn:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.01);
}

.cp-btn:active {
  transform: translateY(0);
}

.cp-teachers {
  padding: 18px;
}

.cp-teachers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cp-teacher {
  padding: 16px;
  border-radius: 16px;
  background: #131925;
  border: 1px solid #2b2e325f;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(6px);
  animation: cp-fade-up 0.35s ease-out forwards;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.cp-teacher:nth-child(1) {
  animation-delay: 0.06s;
}
.cp-teacher:nth-child(2) {
  animation-delay: 0.12s;
}
.cp-teacher:nth-child(3) {
  animation-delay: 0.18s;
}

.cp-teacher:hover {
  transform: translateY(-1px) scale(1.005);
  filter: brightness(1.01);
}

.cp-teacher__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.cp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #e9edff;
  background: #f3f6ff;
  flex: 0 0 auto;
  transform: translateY(0);
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.cp-teacher:hover .cp-avatar {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.01);
}

.cp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-teacher__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.cp-teacher__name {
  font-weight: 900;
  font-size: 13px;
  margin: 0;
  color: #ffffff;
}

.cp-teacher__role {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.cp-teacher__bio {
  margin: 0;
  margin-top: 6px;
  color: #d1d5db;
  font-size: 12px;
  line-height: 2;
  text-align: center;
}

.cp-faq {
  margin-top: 26px;
  padding: 18px;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  row-gap: 16px;
  margin-bottom: 20px;
}

.cp-faq__header {
  grid-row: 1;
  grid-column: 1;
}

.cp-faq__title {
  font-size: 18px;
  font-weight: 800;
  color: #3b82f6;
  text-align: right;
}

.cp-faqList {
  margin-top: 10px;
  grid-row: 2;
  grid-column: 1;
  display: grid;
  grid-auto-rows: auto;
  row-gap: 12px;
}

@media (min-width: 1024px) {
  .cp-faqList {
    grid-template-columns: 1fr;
    column-gap: 12px;
    row-gap: 12px;
  }
}

.cp-faqItem {
  border: 1px solid #2b2e325f;
  border-radius: 14px;
  background: #131925;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}

.cp-faqItem[open] {
  transform: translateY(-1px);
}

.cp-faqItem__summary {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cp-faqItem__q {
  font-weight: 600;
  font-size: 14px;
  color: #e5e7eb;
}

.cp-faqItem__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.cp-faqItem[open] .cp-faqItem__icon {
  transform: rotate(180deg);
}

.cp-faqItem__a {
  padding: 0 18px 14px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.8;
  border-top: 1px solid #2b2e325f;
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.cp-faqItem[open] .cp-faqItem__a {
  opacity: 1;
  transform: translateY(0);
}

.cp-faqItem__a p {
  margin-top: 10px;
}

.cp-desc {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cp-desc .cp-section__head {
  margin-bottom: 0;
}

.cp-desc__content {
  position: relative;
  overflow: hidden;
  display: block;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease;
  opacity: 1;
}

.cp-desc__content[data-state="collapsed"] {
  max-height: 96px;
}

.cp-desc__content[data-state="expanded"] {
  max-height: 1000px;
}

.cp-desc__text {
  margin: 0;
  color: #d1d5db;
  font-size: 13px;
  line-height: 2;
}

.cp-desc__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(to top, #131925 30%, rgba(19, 25, 37, 0));
  transition: opacity 0.22s ease;
}

.cp-desc__content[data-state="expanded"] .cp-desc__fade {
  opacity: 0;
}

.cp-desc__toggle {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #212c42;
  cursor: pointer;
  font-family: "Vazirmat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transform: translateY(0);
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.cp-desc__toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.cp-desc__toggle-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.cp-desc__content[data-state="expanded"]
  + .cp-desc__footer
  .cp-desc__toggle-icon {
  transform: rotate(180deg);
}

.cp-sessions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-sessions__listWrapper {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  padding: 1px 0px 10px;
  transition: all 0.3s ease;
}

.cp-sessions__listWrapper[data-state="collapsed"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #131925 10%, rgba(19, 25, 37, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.cp-sessions__list {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.3s ease;
  opacity: 1;
}

.cp-sessions__listWrapper[data-state="collapsed"] .cp-sessions__list {
  max-height: 300px;
  opacity: 1;
}

.cp-sessions__listWrapper[data-state="expanded"] .cp-sessions__list {
  max-height: 2000px;
}

.cp-sessions__footer {
  display: flex;
  justify-content: center;
}

.cp-sessions__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #212c42;
  color: #e5e7eb;
  font-family: "Vazirmat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(0);
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.cp-sessions__toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.cp-sessions__toggle-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.cp-chapter__summary .cp-pill img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.cp-chapter[open] .cp-chapter__summary .cp-pill img {
  transform: rotate(180deg);
}

@media (max-width: 980px) {
  .cp-intro {
    grid-template-columns: 1fr;
  }

  .cp-maingrid {
    grid-template-columns: 1fr;
  }

  .cp-sticky {
    position: static;
  }

  .cp-teachers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cp-stats {
    display: flex;
  }

  .cp-section,
  .cp-faq,
  .cp-intro,
  .cp-teachers {
    padding: 14px;
  }

  .cp-price__num {
    font-size: 20px;
  }

  .cp-teachers__grid {
    grid-template-columns: 1fr;
  }
}
