/*--------------------------------------------------------------
# Havesh Academy / Shokouh Pardis – theme layer on top of Mentor (main.rtl.css)
# Load order: bootstrap.rtl.min.css → bootstrap-icons → main.rtl.css → havesh.css
--------------------------------------------------------------*/

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --default-font: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --heading-font: "Vazirmatn", Tahoma, sans-serif;
  --nav-font: "Vazirmatn", Tahoma, sans-serif;

  --accent-color: #188a55;
  --accent-dark: #126b42;
  --accent-soft: #e8f5ee;
  --heading-color: #1f2a24;
  --default-color: #4a5550;
  --nav-hover-color: #188a55;
  --nav-dropdown-hover-color: #188a55;

  --badge-featured: #188a55;
  --badge-new: #22c55e;
  --badge-certificate: #f5a10b;
  --badge-popular: #ef4444;
  --star-color: #f5a10b;
  --hc-radius: 18px;
}

html, body { direction: rtl; }
body { line-height: 1.9; }
h1, h2, h3, h4, h5, h6 { line-height: 1.5; }
.section-title p { font-family: var(--heading-font); }
.persian-num { font-variant-numeric: tabular-nums; }

/* Header: logo image and app button */
.header .logo img { max-height: 44px; margin-left: 8px; margin-right: 0; }
.header .logo .sitename { font-weight: 800; white-space: nowrap; }
.header .btn-app {
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 50px; padding: 7px 18px; margin-right: 10px; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.header .btn-app:hover { background: var(--accent-color); color: #fff; }

/* Breadcrumb separator in RTL */
.page-title nav ol li+li::before { content: "/"; }

/*--------------------------------------------------------------
# Units ("what we are" at a glance): school, language, vocational, knowledge-based
--------------------------------------------------------------*/
.units .unit-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface-color); border-radius: var(--hc-radius); padding: 28px 24px;
  box-shadow: 0 6px 30px rgba(20, 60, 40, .08); transition: transform .3s, box-shadow .3s;
  border-top: 4px solid var(--unit-color, var(--accent-color)); color: var(--default-color);
}
.units .unit-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(20, 60, 40, .14); }
.units .unit-card .unit-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  background: color-mix(in srgb, var(--unit-color, var(--accent-color)), transparent 88%);
  color: var(--unit-color, var(--accent-color)); margin-bottom: 18px;
}
.units .unit-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.units .unit-card p { font-size: 15px; flex-grow: 1; }
.units .unit-card .unit-more { font-weight: 700; color: var(--unit-color, var(--accent-color)); }
.units .unit-card .unit-soon {
  position: absolute; top: 18px; left: 18px; background: #fff4d6; color: #a86a00;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 50px;
}

/*--------------------------------------------------------------
# Course card (horizontal card with side image)
--------------------------------------------------------------*/
.hc-course {
  display: flex; height: 100%; background: var(--surface-color); border-radius: var(--hc-radius);
  overflow: hidden; box-shadow: 0 6px 30px rgba(20, 60, 40, .08); transition: box-shadow .3s, transform .3s;
}
.hc-course:hover { box-shadow: 0 14px 40px rgba(20, 60, 40, .14); transform: translateY(-4px); }
.hc-course .hc-media { position: relative; flex: 0 0 40%; max-width: 40%; min-height: 100%; overflow: hidden; }
.hc-course .hc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hc-course:hover .hc-media img { transform: scale(1.05); }
.hc-course .hc-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2; color: #fff; font-size: 12px; font-weight: 800;
  padding: 4px 14px; border-radius: 50px; background: var(--badge-featured);
}
.hc-course .hc-badge.is-new { background: var(--badge-new); }
.hc-course .hc-badge.is-certificate { background: var(--badge-certificate); }
.hc-course .hc-badge.is-popular { background: var(--badge-popular); }
.hc-course .hc-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 22px 24px; min-width: 0; }
.hc-course .hc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hc-course .hc-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600;
  padding: 3px 12px; border-radius: 50px; background: #f1f3f2; color: #555;
}
.hc-course .hc-pill.is-level { background: var(--accent-soft); color: var(--accent-dark); }
.hc-course h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.hc-course h3 a { color: var(--heading-color); }
.hc-course h3 a:hover { color: var(--accent-color); }
.hc-course .hc-desc {
  font-size: 15px; color: #6b7570; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-course .hc-teacher { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hc-course .hc-teacher img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent-soft); }
.hc-course .hc-teacher strong { display: block; font-size: 14px; color: var(--heading-color); }
.hc-course .hc-teacher small { display: block; font-size: 12px; color: #8a938f; }
.hc-course .hc-stats {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 12px; margin-top: auto; border-top: 1px dashed #dfe5e2; font-size: 14px;
}
.hc-course .hc-stars { color: var(--star-color); letter-spacing: 1px; }
.hc-course .hc-stars b { color: var(--heading-color); margin-right: 6px; }
.hc-course .hc-learners { color: #6b7570; }
.hc-course .hc-learners i { color: var(--accent-color); }
.hc-course .hc-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.hc-course .hc-join {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent-color); color: #fff;
  font-weight: 700; font-size: 15px; padding: 10px 24px; border-radius: 50px; white-space: nowrap;
}
.hc-course .hc-join:hover { background: var(--accent-dark); color: #fff; }
.hc-course .hc-price { font-size: 22px; font-weight: 800; color: var(--accent-color); white-space: nowrap; }
.hc-course .hc-price small { font-size: 13px; font-weight: 600; margin-right: 3px; }
.hc-course .hc-price.is-free { font-size: 16px; background: var(--accent-soft); padding: 6px 18px; border-radius: 50px; }

@media (max-width: 575px) {
  .hc-course { flex-direction: column; }
  .hc-course .hc-media { flex: 0 0 210px; max-width: 100%; min-height: 0; height: 210px; }
}

/*--------------------------------------------------------------
# Course details
--------------------------------------------------------------*/
.course-facts { background: var(--surface-color); border-radius: var(--hc-radius); box-shadow: 0 6px 30px rgba(20,60,40,.08); padding: 24px; }
.course-facts li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #e3e8e5; }
.course-facts li:last-child { border-bottom: 0; }
.course-facts .hc-join { width: 100%; justify-content: center; margin-top: 14px; }

/*--------------------------------------------------------------
# Articles
--------------------------------------------------------------*/
.article-card { background: var(--surface-color); border-radius: var(--hc-radius); overflow: hidden; height: 100%; box-shadow: 0 6px 30px rgba(20,60,40,.08); display: flex; flex-direction: column; }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card .article-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.article-card h3 { font-size: 18px; font-weight: 800; }
.article-card h3 a { color: var(--heading-color); }
.article-card p { font-size: 14px; color: #6b7570; flex-grow: 1; }
.article-card time { font-size: 13px; color: #8a938f; }

.article-content { font-size: 17px; line-height: 2.1; }
.article-content h2, .article-content h3 { margin: 32px 0 12px; font-weight: 800; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.article-content [lang="en"], .article-content .ltr { direction: ltr; unicode-bidi: isolate; }
.article-meta { color: #8a938f; font-size: 14px; }
.article-toc { background: var(--accent-soft); border-radius: 14px; padding: 18px 22px; margin-bottom: 28px; }
.article-toc ol { margin: 0; padding-right: 20px; }

/*--------------------------------------------------------------
# FAQ (accordion, also exported as FAQPage schema)
--------------------------------------------------------------*/
.faq .accordion-item { border: 0; border-radius: 14px !important; margin-bottom: 12px; box-shadow: 0 4px 20px rgba(20,60,40,.06); overflow: hidden; }
.faq .accordion-button { font-weight: 700; font-family: var(--heading-font); }
.faq .accordion-button:not(.collapsed) { background: var(--accent-soft); color: var(--accent-dark); }

/*--------------------------------------------------------------
# App download band
--------------------------------------------------------------*/
.app-band { background: linear-gradient(135deg, var(--accent-dark), var(--accent-color)); color: #fff; border-radius: 24px; padding: 40px; }
.app-band h2 { color: #fff; font-weight: 800; }
.app-band .btn-light { border-radius: 50px; font-weight: 700; padding: 10px 26px; color: var(--accent-dark); }

/* Branch / location block (local SEO) */
.branch-card { background: var(--surface-color); border-radius: var(--hc-radius); box-shadow: 0 6px 30px rgba(20,60,40,.08); padding: 24px; height: 100%; }
.branch-card i { color: var(--accent-color); margin-left: 6px; }

/* Rich text written by editors */
.rich-text img { max-width: 100%; height: auto; border-radius: 12px; }
.rich-text table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.rich-text td, .rich-text th { border: 1px solid #e3e8e5; padding: 8px 12px; }

/* Hero secondary button, "more" links, footer menu from Kentico CSS list menu */
.hero .btn-get-started.btn-outline-light-hc { background: transparent; border: 2px solid #fff; }
.hc-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.footer .footer-links ul ul { display: none; }
.navmenu ul { margin: 0; }
