/* ====================================================================== *
 * File: academy_commerce.css
 * Location: static/css/academy_commerce.css
 * Description: Premium RTL presentation for learning benefits, bundles, FAQ, support, and course-commerce extensions.
 * Version: 1.0.0
 * Last Modified: Sun Aug 16 2026 - 15:17
 * Dependencies: Existing Fereshte navy/gold design tokens and Vazirmatn typography
 * ====================================================================== */

/* -------------------------------------------------------------------------- *
 * 1. Shared public section rhythm
 * -------------------------------------------------------------------------- */

.commerce-public-section {
  padding: clamp(54px, 7vw, 92px) 20px;
  background: #f7f9fc;
  color: #10233f;
}

.commerce-public-section:nth-of-type(even) {
  background: #ffffff;
}

.commerce-public-shell,
.commerce-final-cta {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.commerce-section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.commerce-section-heading > span,
.commerce-final-cta > div > span {
  display: inline-block;
  color: #a97924;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.commerce-section-heading h2,
.commerce-final-cta h2 {
  margin: 8px 0 10px;
  color: #081b38;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.45;
}

.commerce-section-heading p,
.commerce-section-lead {
  margin: 0;
  color: #5e6d80;
  line-height: 1.95;
}

/* -------------------------------------------------------------------------- *
 * 2. Public course-card refinements
 * -------------------------------------------------------------------------- */

.commerce-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.commerce-benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.commerce-benefit-row span {
  border: 1px solid rgba(169, 121, 36, 0.25);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(247, 241, 225, 0.72);
  color: #76551e;
  font-size: 0.72rem;
  font-weight: 700;
}

.commerce-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(9, 34, 69, 0.08);
  border-bottom: 1px solid rgba(9, 34, 69, 0.08);
  color: #617087;
  font-size: 0.78rem;
}

.commerce-price-line strong {
  color: #0a2348;
  font-size: 0.88rem;
}

.commerce-text-link {
  display: block;
  margin-top: 13px;
  color: #8f671f;
  font-size: 0.78rem;
  font-weight: 800;
}

/* -------------------------------------------------------------------------- *
 * 3. Learning feature grid
 * -------------------------------------------------------------------------- */

.commerce-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.commerce-feature-grid article,
.commerce-bundle-card,
.commerce-student-card,
.commerce-detail-card {
  border: 1px solid rgba(12, 39, 74, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(14, 35, 67, 0.06);
}

.commerce-feature-grid article {
  min-height: 150px;
  padding: 22px;
}

.commerce-feature-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #0a2348;
  font-size: 1rem;
}

.commerce-feature-grid p,
.commerce-bundle-card p,
.commerce-detail-card p {
  margin: 0;
  color: #617087;
  line-height: 1.9;
}

/* -------------------------------------------------------------------------- *
 * 4. Access flow
 * -------------------------------------------------------------------------- */

.commerce-access-section {
  background: linear-gradient(180deg, #081b38 0%, #0c2851 100%);
  color: #ffffff;
}

.commerce-access-section .commerce-section-heading h2,
.commerce-access-section .commerce-section-heading p {
  color: #ffffff;
}

.commerce-access-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.commerce-access-flow li {
  position: relative;
  min-height: 126px;
  padding: 18px 14px;
  border: 1px solid rgba(212, 174, 96, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.commerce-access-flow b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 1px solid rgba(226, 188, 104, 0.56);
  border-radius: 50%;
  color: #e1bd72;
}

.commerce-access-flow span {
  color: #edf3fb;
  font-size: 0.83rem;
  line-height: 1.7;
}

/* -------------------------------------------------------------------------- *
 * 5. Bundle cards and upgrade math
 * -------------------------------------------------------------------------- */

.commerce-bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.commerce-bundle-card {
  padding: 24px;
}

.commerce-bundle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.commerce-bundle-card h3 {
  margin: 0;
  color: #0a2348;
  font-size: 1.14rem;
}

.commerce-bundle-card-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f7f0df;
  color: #8d641d;
  font-size: 0.72rem;
  font-weight: 800;
}

.commerce-bundle-card ul {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.commerce-bundle-card li {
  position: relative;
  padding-right: 17px;
  color: #34465f;
  font-size: 0.86rem;
}

.commerce-bundle-card li::before {
  content: "";
  position: absolute;
  top: 0.67em;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b98a36;
}

.commerce-bundle-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.commerce-bundle-prices > span {
  min-width: 145px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f7fb;
}

.commerce-bundle-prices small,
.commerce-bundle-prices strong {
  display: block;
}

.commerce-bundle-prices small {
  color: #738198;
  font-size: 0.68rem;
}

.commerce-bundle-prices strong {
  margin-top: 3px;
  color: #0c2c58;
  font-size: 0.88rem;
}

.commerce-outline-button,
.commerce-primary-button,
.commerce-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 13px;
  padding: 10px 17px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.commerce-outline-button {
  border: 1px solid rgba(12, 44, 88, 0.2);
  background: transparent;
  color: #0c2c58;
}

.commerce-primary-button,
.commerce-support-button {
  border: 1px solid #0b2b55;
  background: #0b2b55;
  color: #ffffff;
}

/* -------------------------------------------------------------------------- *
 * 6. FAQ and final CTA
 * -------------------------------------------------------------------------- */

.commerce-faq-shell {
  max-width: 900px;
}

.commerce-faq-list {
  display: grid;
  gap: 10px;
}

.commerce-faq-list details {
  border: 1px solid rgba(12, 39, 74, 0.1);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.commerce-faq-list summary {
  padding: 17px 19px;
  color: #0a2348;
  font-weight: 800;
  cursor: pointer;
}

.commerce-faq-list details p {
  margin: 0;
  padding: 0 19px 18px;
  color: #617087;
  line-height: 1.9;
}

.commerce-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 18px;
  margin-bottom: 58px;
  padding: 30px;
  border: 1px solid rgba(194, 150, 70, 0.22);
  border-radius: 24px;
  background: #081b38;
  box-shadow: 0 18px 48px rgba(8, 27, 56, 0.14);
}

.commerce-final-cta h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: #ffffff;
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
}

.commerce-final-cta > a {
  flex: 0 0 auto;
  border: 1px solid rgba(222, 187, 113, 0.7);
  border-radius: 14px;
  padding: 12px 20px;
  color: #f1d18d;
  font-weight: 800;
  text-decoration: none;
}

/* -------------------------------------------------------------------------- *
 * 7. Student extension cards
 * -------------------------------------------------------------------------- */

.commerce-student-extensions {
  display: grid;
  gap: 24px;
  margin: 28px 0 8px;
}

.commerce-student-section {
  border: 1px solid #e3e9f1;
  border-radius: 24px;
  padding: 22px;
  background: #f8fafc;
}

.commerce-student-section h2 {
  margin: 0 0 6px;
  color: #0a2348;
  font-size: 1.18rem;
}

.commerce-student-section > p {
  margin: 0 0 18px;
  color: #68778d;
}

.commerce-learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.commerce-student-card {
  padding: 18px;
}

.commerce-student-card h3 {
  margin: 0 0 10px;
  color: #0c2c58;
  font-size: 1rem;
}

.commerce-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
}

.commerce-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b78a38, #d8b86f);
}

.commerce-progress-meta,
.commerce-support-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 10px;
  color: #627188;
  font-size: 0.78rem;
}

.commerce-support-note {
  margin: 12px 0 0;
  border-right: 3px solid #c79a45;
  padding-right: 10px;
  color: #68778d;
  font-size: 0.76rem;
  line-height: 1.8;
}

.commerce-offer-card {
  border: 1px solid rgba(183, 138, 56, 0.28);
  border-radius: 20px;
  padding: 20px;
  background: #fffdf8;
}

.commerce-offer-card strong {
  color: #0a2348;
}

/* -------------------------------------------------------------------------- *
 * 8. Course/bundle detail pages and order page
 * -------------------------------------------------------------------------- */

.commerce-detail-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 34px auto 56px;
  direction: rtl;
}

.commerce-detail-hero {
  border-radius: 26px;
  padding: clamp(24px, 5vw, 44px);
  background: #081b38;
  color: #ffffff;
}

.commerce-detail-hero h1 {
  margin: 7px 0 12px;
  color: #ffffff;
  font-size: clamp(1.55rem, 3.5vw, 2.4rem);
}

.commerce-detail-hero p {
  max-width: 760px;
  color: #dbe5f1;
  line-height: 1.95;
}

.commerce-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.commerce-detail-card {
  padding: 22px;
}

.commerce-detail-card h2,
.commerce-detail-card h3 {
  margin: 0 0 12px;
  color: #0a2348;
}

.commerce-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* -------------------------------------------------------------------------- *
 * 9. Responsive behavior
 * -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .commerce-feature-grid,
  .commerce-bundle-grid,
  .commerce-learning-grid,
  .commerce-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .commerce-access-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .commerce-public-section {
    padding: 46px 16px;
  }

  .commerce-feature-grid,
  .commerce-bundle-grid,
  .commerce-learning-grid,
  .commerce-detail-grid,
  .commerce-access-flow {
    grid-template-columns: 1fr;
  }

  .commerce-access-flow li {
    display: flex;
    align-items: center;
    min-height: auto;
    gap: 12px;
    text-align: right;
  }

  .commerce-access-flow b {
    flex: 0 0 34px;
    margin: 0;
  }

  .commerce-bundle-card-head,
  .commerce-final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .commerce-final-cta {
    margin-right: 16px;
    margin-left: 16px;
    padding: 24px;
  }

  .commerce-final-cta > a,
  .commerce-detail-actions > * {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ============================= End of academy_commerce.css ============================= */