/* Caspian portal additional pages */
html { scroll-behavior: smooth; }
body.portal-page { direction: rtl; text-align: right; background: #fff; }
.portal-page .block { direction: rtl; }
.portal-page .menu-sec nav { direction: rtl; }
.portal-page .inner-header { padding-top: 175px; padding-bottom: 55px; text-align: center; overflow: hidden; }
.portal-page .inner-header h3 { color: #fff; font-size: 32px; position: relative; z-index: 2; margin: 0 0 8px; }
.portal-page .inner-header .portal-breadcrumb { position: relative; z-index: 2; color: rgba(255,255,255,.82); font-size: 13px; }
.portal-page .inner-header .portal-breadcrumb a { color: #fff; }
.portal-section-title { font-size: 25px; color:#202020; margin:0 0 18px; font-weight:700; }
.portal-lead { font-size: 15px; line-height: 2.2; color:#687078; margin-bottom: 28px; }
.portal-content-card { background:#fff; border:1px solid #e8ecec; border-radius:10px; padding:30px; margin-bottom:25px; box-shadow:0 7px 24px rgba(20,31,114,.04); }
.portal-content-card h3, .portal-content-card h4 { color:#202020; margin-top:0; line-height:1.8; }
.portal-content-card p, .portal-content-card li { color:#71777c; line-height:2.15; font-size:14px; }
.portal-content-card ul { padding-right:22px; }
.portal-content-card li { margin-bottom:8px; }
.portal-hero-image { width:100%; border-radius:10px; display:block; }
.portal-icon-box { border:1px solid #e8ecec; border-radius:10px; padding:24px; height:100%; background:#fff; }
.portal-icon-box i { color:#006ab3; font-size:34px; display:block; margin-bottom:15px; }
.portal-icon-box h4 { font-size:17px; margin-bottom:10px; }
.portal-icon-box p { color:#777; line-height:2; font-size:13px; margin:0; }
.portal-stat { text-align:center; padding:22px 12px; }
.portal-stat strong { display:block; color:#141f72; font-size:27px; margin-bottom:8px; }
.portal-stat span { color:#777; font-size:13px; }
.portal-course-hero { display:flex; gap:25px; align-items:flex-start; }
.portal-course-cover { width:260px; max-width:38%; border-radius:10px; border:1px solid #e8ecec; }
.portal-course-main { flex:1; }
.portal-course-main h1 { font-size:28px; margin:0 0 12px; color:#202020; line-height:1.7; }
.portal-course-main .course-meta-inline { display:flex; flex-wrap:wrap; gap:10px 20px; color:#777; font-size:13px; }
.portal-course-main .course-meta-inline span i { color:#006ab3; margin-left:6px; font-size:18px; }
.portal-price { font-size:23px; color:#141f72; font-weight:700; margin:18px 0; }
.portal-primary-btn { display:inline-block; background:#006ab3; color:#fff !important; border-radius:7px; padding:12px 27px; font-weight:600; }
.portal-secondary-btn { display:inline-block; border:2px solid #006ab3; color:#006ab3 !important; border-radius:7px; padding:10px 25px; font-weight:600; margin-right:8px; }
.portal-sidebar-card { border:1px solid #e8ecec; border-radius:10px; padding:22px; margin-bottom:20px; background:#fff; }
.portal-sidebar-card h3 { margin:0 0 15px; font-size:18px; }
.portal-meta-list { list-style:none; margin:0; padding:0 !important; }
.portal-meta-list li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #f0f1f2; color:#6e7479; font-size:13px; }
.portal-meta-list li:last-child { border-bottom:0; }
.portal-meta-list i { color:#006ab3; font-size:19px; margin-left:8px; }
.portal-meta-list b { color:#34383b; font-weight:500; }
.portal-syllabus { list-style:none; padding:0 !important; }
.portal-syllabus li { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #edf0f1; padding:13px 0; margin:0; }
.portal-syllabus li:last-child { border-bottom:0; }
.portal-syllabus .lesson-num { color:#006ab3; min-width:36px; font-weight:bold; }
.portal-syllabus .lesson-title { flex:1; color:#555; }
.portal-syllabus .lesson-time { color:#999; font-size:12px; }
.portal-blog-card { border:1px solid #e8ecec; border-radius:10px; overflow:hidden; margin-bottom:28px; background:#fff; height:calc(100% - 28px); }
.portal-blog-card img { width:100%; height:210px; object-fit:cover; }
.portal-blog-body { padding:22px; }
.portal-blog-body .meta { font-size:12px; color:#91969a; margin-bottom:10px; }
.portal-blog-body h3 { font-size:18px; line-height:1.8; margin:0 0 10px; }
.portal-blog-body p { color:#777; line-height:2; font-size:13px; }
.portal-blog-body a.more { color:#006ab3; font-weight:600; }
.portal-article .article-cover { width:100%; border-radius:10px; margin-bottom:25px; }
.portal-article .article-meta { color:#8b9296; font-size:13px; margin-bottom:15px; }
.portal-article h1 { font-size:29px; line-height:1.7; margin:0 0 12px; }
.portal-article h2 { font-size:21px; margin:30px 0 12px; }
.portal-article p { color:#666; line-height:2.25; font-size:14px; }
.portal-contact-item { display:flex; gap:14px; align-items:flex-start; margin-bottom:22px; }
.portal-contact-item i { width:44px; height:44px; border-radius:50%; background:#f0f7fb; color:#006ab3; text-align:center; line-height:44px; font-size:21px; flex:none; }
.portal-contact-item h4 { margin:0 0 4px; font-size:15px; }
.portal-contact-item p, .portal-contact-item a { color:#777; margin:0; line-height:1.9; font-size:13px; }
.portal-form .form-group { margin-bottom:18px; }
.portal-form label { display:block; margin-bottom:8px; font-size:13px; color:#4f565a; }
.portal-form input, .portal-form textarea, .portal-form select { width:100%; border:1px solid #dfe3e5; border-radius:7px; padding:12px 14px; font-family:"IRANYekan"; background:#fff; }
.portal-form textarea { min-height:150px; resize:vertical; }
.portal-form button { border:0; cursor:pointer; font-family:"IRANYekan"; }
.portal-form-status { display:none; margin-top:15px; padding:12px 15px; border-radius:7px; background:#eef8f2; color:#27754a; font-size:13px; }
.course-info-list { padding:0 !important; list-style:none; margin-top:12px !important; }
.course-info-list li { display:flex; gap:5px; align-items:center; margin-bottom:6px; color:#777; font-size:12px; }
.course-info-list li i { color:#006ab3; font-size:17px; }
.job-grid .c-logo img { width:100%; height:110px; object-fit:cover; border-radius:6px; }
.job-grid .job-title-sec .c-logo { width:100%; height:auto; margin-bottom:15px; }
.job-grid .job-title-sec h3 { width:100%; padding:0; }
.job-grid .job-title-sec { display:block; }
.job-grid>a.portal-card-btn { background:#006ab3; color:#fff !important; border-radius:5px; padding:8px 15px; }
.portal-empty { padding:35px; text-align:center; color:#777; }
.ft { direction:rtl; text-align:right; }
@media (max-width: 767px) {
  .portal-page .inner-header { padding-top:125px; padding-bottom:35px; }
  .portal-page .inner-header h3 { font-size:25px; }
  .portal-content-card { padding:20px; }
  .portal-course-hero { display:block; }
  .portal-course-cover { width:100%; max-width:100%; margin-bottom:20px; }
  .portal-course-main h1, .portal-article h1 { font-size:23px; }
  .portal-blog-card img { height:190px; }
}

/* Improved course cards */
.portal-course-card { background:#fff; border:1px solid #e8ecec; border-radius:14px; overflow:hidden; box-shadow:0 10px 28px rgba(20,31,114,.05); margin-bottom:30px; height:calc(100% - 30px); display:flex; flex-direction:column; }
.portal-course-thumb { display:block; height:210px; overflow:hidden; }
.portal-course-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.portal-course-body { padding:20px 22px 18px; display:flex; flex-direction:column; flex:1; }
.portal-course-category { display:inline-block; align-self:flex-start; padding:6px 12px; border-radius:999px; background:#eef6fb; color:#006ab3; font-size:12px; margin-bottom:12px; }
.portal-course-card h3 { font-size:21px; line-height:1.85; margin:0 0 10px; min-height:78px; }
.portal-course-card h3 a { color:#202020; }
.portal-course-desc { color:#73797d; font-size:13px; line-height:2; min-height:76px; margin-bottom:14px; }
.portal-course-meta { list-style:none; padding:0 !important; margin:0 0 18px !important; }
.portal-course-meta li { display:flex; align-items:flex-start; gap:6px; font-size:13px; color:#677078; margin-bottom:9px; line-height:1.9; }
.portal-course-meta li i { color:#006ab3; font-size:18px; margin-top:2px; }
.portal-course-meta li span { color:#7b858c; }
.portal-course-meta li b { color:#353b40; font-weight:500; }
.portal-course-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:auto; padding-top:15px; border-top:1px solid #eef1f2; }
.portal-course-price { color:#141f72; font-size:18px; font-weight:700; }
.portal-card-btn { display:inline-flex; align-items:center; justify-content:center; background:#006ab3; color:#fff !important; border-radius:8px; padding:11px 18px; font-weight:600; border:1px solid #006ab3; }
.portal-outline-btn { background:#fff; color:#006ab3 !important; }
.portal-text-link { color:#006ab3; font-weight:600; }
.portal-content-head-inline { display:flex; justify-content:space-between; gap:14px; align-items:center; margin-bottom:22px; }
.portal-content-head-inline h3 { margin:0; }

/* Departments */
.portal-department-list { display:flex; flex-direction:column; gap:22px; }
.portal-department-card { background:#fff; border:1px solid #e8ecec; border-radius:20px; padding:18px; box-shadow:0 10px 26px rgba(20,31,114,.045); display:flex; gap:22px; align-items:stretch; }
.portal-department-thumb-wrap { width:280px; min-width:280px; }
.portal-department-thumb { width:100%; height:100%; min-height:190px; object-fit:cover; border-radius:14px; display:block; }
.portal-department-content { flex:1; display:flex; flex-direction:column; }
.portal-department-header { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.portal-department-header h3 { font-size:26px; line-height:1.8; margin:12px 0 10px; color:#202020; }
.portal-department-header p { color:#747c82; line-height:2.1; font-size:14px; margin:0; }
.portal-department-side { text-align:left; min-width:180px; background:#f8fbfd; border:1px solid #edf2f4; border-radius:16px; padding:18px; }
.portal-department-count { display:block; color:#141f72; font-size:26px; font-weight:700; margin-bottom:8px; }
.portal-department-count-label { color:#85909a; font-size:13px; }
.portal-department-bottom { display:flex; justify-content:space-between; gap:18px; align-items:flex-end; margin-top:18px; padding-top:16px; border-top:1px solid #eef1f2; }
.portal-department-courses { list-style:none; padding:0 !important; margin:8px 0 0 !important; display:flex; flex-wrap:wrap; gap:8px; }
.portal-department-courses li { margin:0; border:1px solid #e4ecef; background:#fbfdfe; border-radius:999px; padding:8px 14px; color:#616a71; font-size:12px; }
.portal-mini-title { font-size:13px; color:#88919a; }
.portal-department-badge { display:inline-block; padding:6px 12px; border-radius:999px; font-size:12px; font-weight:700; }
.portal-badge-blue { background:#eaf4ff; color:#1169d0; }
.portal-badge-cyan { background:#eaf7ff; color:#00a6c7; }
.portal-badge-green { background:#eaf9f2; color:#1f9b62; }
.portal-badge-purple { background:#f1eafe; color:#7d49cf; }
.portal-gallery-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; }
.portal-gallery-item { display:block; border-radius:12px; overflow:hidden; border:1px solid #e8ecec; }
.portal-gallery-item img { display:block; width:100%; height:180px; object-fit:cover; }
.portal-related-course { display:flex; gap:14px; padding:14px; border:1px solid #e7ecee; border-radius:12px; background:#fff; margin-bottom:18px; height:calc(100% - 18px); }
.portal-related-course img { width:130px; min-width:130px; height:130px; object-fit:cover; border-radius:10px; }
.portal-related-course-body span { display:inline-block; font-size:12px; color:#006ab3; background:#eef6fb; padding:4px 10px; border-radius:999px; margin-bottom:8px; }
.portal-related-course-body h4 { margin:0 0 8px; font-size:17px; line-height:1.8; }
.portal-related-course-body p { font-size:13px; line-height:2; color:#757b80; margin:0 0 10px; }
.portal-mini-box { height:100%; }

/* legacy helpers */
.course-info-list { padding:0 !important; list-style:none; margin-top:12px !important; }
.course-info-list li { display:flex; gap:5px; align-items:center; margin-bottom:6px; color:#777; font-size:12px; }
.course-info-list li i { color:#006ab3; font-size:17px; }

@media (max-width: 991px) {
  .portal-department-card, .portal-related-course { display:block; }
  .portal-department-thumb-wrap { width:100%; min-width:100%; }
  .portal-department-thumb { min-height:220px; margin-bottom:18px; }
  .portal-department-header { display:block; }
  .portal-department-side { text-align:right; min-width:0; margin-top:16px; }
  .portal-department-bottom, .portal-content-head-inline { display:block; }
  .portal-content-head-inline a { display:inline-block; margin-top:10px; }
}

@media (max-width: 767px) {
  .portal-course-card h3 { font-size:18px; min-height:auto; }
  .portal-course-desc { min-height:auto; }
  .portal-course-footer { display:block; }
  .portal-course-price { margin-bottom:12px; }
  .portal-gallery-grid { grid-template-columns:1fr; }
  .portal-gallery-item img { height:210px; }
  .portal-related-course img { width:100%; min-width:100%; height:180px; margin-bottom:12px; }
  .portal-department-courses { display:block; }
  .portal-department-courses li { display:inline-block; margin:0 0 8px 8px; }
}

/* Department cards - stable full-width layout */
.portal-department-list {
  width:100%;
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:22px;
  direction:rtl;
}
.portal-department-card {
  width:100% !important;
  max-width:100% !important;
  min-width:0;
  box-sizing:border-box;
  float:none !important;
  clear:both;
  display:grid !important;
  grid-template-columns:180px minmax(0,1fr) 260px;
  grid-template-areas:"actions main image";
  gap:24px;
  align-items:center;
  direction:ltr;
  background:#fff;
  border:1px solid #e5eaed;
  border-radius:18px;
  padding:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(20,31,114,.045);
}
.portal-department-thumb-wrap {
  grid-area:image;
  width:260px !important;
  min-width:260px !important;
  height:170px !important;
  display:block;
  overflow:hidden;
  border-radius:13px;
  margin:0 !important;
}
.portal-department-thumb {
  width:100% !important;
  height:170px !important;
  min-height:0 !important;
  max-height:170px !important;
  object-fit:cover !important;
  object-position:center;
  border-radius:13px;
  display:block;
  margin:0 !important;
}
.portal-department-main {
  grid-area:main;
  min-width:0;
  width:100%;
  direction:rtl;
  text-align:right;
}
.portal-department-title-row {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 12px;
  margin-bottom:8px;
}
.portal-department-title-row h3 {
  margin:0 !important;
  padding:0 !important;
  font-size:22px;
  line-height:1.75;
  color:#202020;
  width:auto !important;
  float:none !important;
}
.portal-department-title-row h3 a { color:#202020; }
.portal-department-main > p {
  margin:0 0 14px !important;
  color:#6e777d;
  font-size:13px;
  line-height:2;
  max-width:100%;
}
.portal-department-main .portal-mini-title {
  margin-bottom:8px;
  color:#8a9298;
}
.portal-department-courses {
  display:flex !important;
  flex-wrap:wrap;
  gap:7px;
  margin:0 !important;
  padding:0 !important;
  list-style:none;
}
.portal-department-courses li {
  display:inline-flex;
  align-items:center;
  margin:0 !important;
  padding:7px 12px;
  border:1px solid #e4ecef;
  background:#fbfdfe;
  border-radius:999px;
  color:#616a71;
  font-size:11px;
  line-height:1.7;
}
.portal-department-actions {
  grid-area:actions;
  direction:rtl;
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:14px;
  padding-right:20px;
  border-right:1px solid #edf0f2;
  min-width:0;
}
.portal-department-count-box {
  text-align:center;
  padding:14px 10px;
  border-radius:13px;
  border:1px solid #e8eef2;
  background:#f8fbfd;
}
.portal-department-count-box strong {
  display:block;
  font-size:28px;
  line-height:1;
  color:#141f72;
  margin-bottom:7px;
}
.portal-department-count-box span {
  display:block;
  color:#747e86;
  font-size:12px;
}
.portal-department-actions .portal-card-btn {
  width:100%;
  min-height:42px;
  padding:9px 12px;
  box-sizing:border-box;
  text-align:center;
  white-space:nowrap;
}

@media (max-width: 991px) {
  .portal-department-card {
    grid-template-columns:minmax(0,1fr) 220px;
    grid-template-areas:
      "main image"
      "actions image";
    align-items:start;
  }
  .portal-department-thumb-wrap,
  .portal-department-thumb {
    width:220px !important;
    min-width:220px !important;
    height:180px !important;
    max-height:180px !important;
  }
  .portal-department-actions {
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    border-right:0;
    padding:0;
  }
  .portal-department-count-box { min-width:125px; }
  .portal-department-actions .portal-card-btn { width:auto; min-width:135px; }
}

@media (max-width: 767px) {
  .portal-department-card {
    display:block !important;
    padding:14px;
  }
  .portal-department-thumb-wrap,
  .portal-department-thumb {
    width:100% !important;
    min-width:100% !important;
    height:205px !important;
    max-height:205px !important;
  }
  .portal-department-thumb-wrap { margin-bottom:16px !important; }
  .portal-department-title-row { display:block; }
  .portal-department-title-row .portal-department-badge { margin-bottom:8px; }
  .portal-department-title-row h3 { font-size:19px; }
  .portal-department-actions {
    display:flex;
    flex-direction:row;
    gap:10px;
    margin-top:15px;
    padding-top:15px;
    border-top:1px solid #edf0f2;
  }
  .portal-department-count-box { flex:1; min-width:0; }
  .portal-department-actions .portal-card-btn { flex:1; min-width:0; white-space:normal; }
}

/* Footer messenger icons */
.footer-messenger-social {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.footer-messenger-social a {
  float:none !important;
  width:42px;
  height:42px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 !important;
  color:#fff !important;
  transition:all .25s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.footer-messenger-social a i {
  font-size:20px;
}
.footer-messenger-social a.whatsapp {
  background:#25d366;
}
.footer-messenger-social a.telegram {
  background:#229ED9;
}
.footer-messenger-social a:hover {
  transform:translateY(-2px);
  opacity:.92;
}

/* Footer social pills - improved */
.footer-messenger-social {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}
.footer-messenger-social a.social-pill {
  float:none !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 !important;
  border-radius:999px;
  padding:8px 16px 8px 14px;
  color:#fff !important;
  font-size:14px;
  font-weight:600;
  line-height:1;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  transition:all .25s ease;
}
.footer-messenger-social a.social-pill:hover {
  transform:translateY(-2px);
  opacity:.95;
}
.footer-messenger-social .social-pill-icon {
  width:32px;
  height:32px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
}
.footer-messenger-social .social-pill-icon svg {
  width:18px;
  height:18px;
  display:block;
}
.footer-messenger-social .social-pill-label {
  white-space:nowrap;
}
.footer-messenger-social a.whatsapp {
  background:linear-gradient(135deg, #22c55e, #16a34a);
}
.footer-messenger-social a.telegram {
  background:linear-gradient(135deg, #38bdf8, #0284c7);
}
@media (max-width: 575px) {
  .footer-messenger-social {
    gap:10px;
  }
  .footer-messenger-social a.social-pill {
    width:100%;
    justify-content:flex-start;
  }
}

/* Final footer messenger icons: icon-only, fixed dimensions, no font dependency */
.footer-messenger-social {
  float:none !important;
  width:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  margin-top:20px !important;
  direction:rtl;
}
.footer-messenger-social a.messenger-icon {
  float:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:44px !important;
  min-width:44px !important;
  max-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  max-height:44px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:50% !important;
  overflow:hidden !important;
  line-height:1 !important;
  text-indent:0 !important;
  box-sizing:border-box !important;
  color:#fff !important;
  box-shadow:0 7px 18px rgba(20,31,114,.12);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.footer-messenger-social a.messenger-icon svg {
  display:block !important;
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  min-height:22px !important;
  fill:currentColor !important;
  color:#fff !important;
  margin:0 !important;
  padding:0 !important;
}
.footer-messenger-social a.messenger-icon.whatsapp { background:#25D366 !important; }
.footer-messenger-social a.messenger-icon.telegram { background:#229ED9 !important; }
.footer-messenger-social a.messenger-icon:hover {
  transform:translateY(-2px);
  opacity:.95;
  box-shadow:0 10px 22px rgba(20,31,114,.18);
}

/* Footer messenger layout fix: keep icons in one horizontal row below contact info */
.about_widget .footer-messenger-social {
  clear: both !important;
  float: left !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  direction: rtl !important;
  box-sizing: border-box !important;
}
.about_widget .footer-messenger-social a.messenger-icon {
  position: static !important;
  float: none !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.about_widget .footer-messenger-social a.messenger-icon svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
}
@media (max-width: 767px) {
  .about_widget .logo,
  .about_widget > span {
    text-align: center !important;
  }
  .about_widget .footer-messenger-social {
    justify-content: center !important;
  }
}

/* ============================================================
   Modern Caspian Homepage
   ============================================================ */
.home-modern {
  direction: rtl;
  text-align: right;
  background:#fff;
  color:#20262c;
}
.home-modern main { overflow:hidden; }
.home-modern .container { position:relative; }

.home-hero {
  min-height:720px;
  position:relative;
  display:flex;
  align-items:center;
  background:
    linear-gradient(90deg, rgba(13,26,36,.98) 0%, rgba(13,26,36,.94) 28%, rgba(13,26,36,.58) 58%, rgba(13,26,36,.22) 78%, rgba(13,26,36,.08) 100%),
    url('../images/intro-bg.jpg') center center / cover no-repeat;
}
.home-hero::after {
  content:"";
  position:absolute;
  right:-120px;
  bottom:-220px;
  width:520px;
  height:520px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.1);
}
.home-hero-inner { min-height:720px; display:flex; align-items:center; }
.home-hero-content { width:620px; max-width:58%; color:#fff; position:relative; z-index:2; }
.home-eyebrow {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  color:#dceaf4;
  font-size:13px;
  margin-bottom:18px;
  backdrop-filter:blur(8px);
}
.home-eyebrow i { font-size:20px; color:#65c7ff; }
.home-hero h1 { color:#fff; font-size:48px; line-height:1.6; margin:0 0 16px; font-weight:800; letter-spacing:-.4px; }
.home-hero h1 strong { color:#62c5ff; font-weight:800; }
.home-hero-content>p { color:rgba(255,255,255,.82); font-size:16px; line-height:2.1; max-width:590px; margin:0 0 28px; }
.home-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:26px; }
.home-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:0 22px; border-radius:9px; font-size:14px; font-weight:700; transition:.25s ease; }
.home-btn:hover { transform:translateY(-2px); }
.home-btn-primary { background:#0076bd; color:#fff !important; box-shadow:0 12px 28px rgba(0,118,189,.25); }
.home-btn-primary:hover { background:#0064a2; }
.home-btn-ghost { color:#fff !important; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.08); }
.home-btn-light { background:#fff; color:#006eaf !important; }
.home-btn-white { background:#fff; color:#075988 !important; }
.home-btn-outline-white { color:#fff !important; border:1px solid rgba(255,255,255,.46); background:rgba(255,255,255,.08); }

.home-search-box {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(190px,.8fr) 92px;
  gap:8px;
  background:#fff;
  border-radius:12px;
  padding:8px;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  max-width:760px;
}
.home-search-field { display:flex; align-items:center; min-width:0; height:50px; background:#f7f9fa; border:1px solid #edf0f2; border-radius:8px; padding:0 14px; }
.home-search-field i { color:#0076bd; font-size:20px; margin-left:8px; flex:none; }
.home-search-field input,
.home-search-field select { border:0 !important; outline:0; background:transparent; width:100%; font-family:"IRANYekan"; font-size:13px; color:#46515a; height:46px; padding:0; box-shadow:none !important; }
.home-search-field select { cursor:pointer; }
.home-search-box button { border:0; border-radius:8px; background:#0076bd; color:#fff; font-family:"IRANYekan"; font-weight:700; cursor:pointer; }
.home-search-box button:hover { background:#0064a2; }
.home-hero-trust { display:flex; gap:20px; flex-wrap:wrap; margin-top:18px; color:rgba(255,255,255,.72); font-size:12px; }
.home-hero-trust span { display:flex; align-items:center; gap:5px; }
.home-hero-trust i { color:#56d39b; font-size:17px; }

.home-stats-wrap { margin-top:-42px; position:relative; z-index:5; }
.home-stats { background:#fff; border:1px solid #e7ecef; border-radius:16px; padding:10px 18px; display:grid; grid-template-columns:repeat(4,1fr); box-shadow:0 18px 45px rgba(21,45,63,.09); }
.home-stat-item { padding:23px 18px; text-align:center; position:relative; }
.home-stat-item:not(:last-child)::after { content:""; position:absolute; top:24%; bottom:24%; left:0; width:1px; background:#edf0f2; }
.home-stat-item strong { display:block; color:#006eaf; font-size:31px; font-weight:800; line-height:1.2; margin-bottom:7px; }
.home-stat-item span { color:#6f7981; font-size:13px; }

.home-section { padding:88px 0; }
.home-section-white { background:#fff; }
.home-section-soft { background:#f6f8fa; }
.home-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:34px; }
.home-section-head>div { max-width:760px; }
.home-section-head.centered { justify-content:center; text-align:center; }
.home-section-head.centered>div { max-width:700px; }
.home-section-kicker { color:#0076bd; font-size:13px; font-weight:700; display:inline-block; margin-bottom:8px; }
.home-section-kicker.light { color:#9bddff; }
.home-section-head h2,
.home-value-intro h2 { font-size:31px; color:#17212a; line-height:1.7; margin:0 0 9px; font-weight:800; }
.home-section-head p { color:#78828a; font-size:14px; line-height:2; margin:0; }
.home-view-all { flex:none; color:#006eaf !important; font-size:13px; font-weight:700; display:inline-flex; align-items:center; gap:7px; padding-bottom:4px; border-bottom:1px solid rgba(0,110,175,.22); }

.home-department-card { height:100%; background:#fff; border:1px solid #e7ecef; border-radius:15px; overflow:hidden; transition:.28s ease; box-shadow:0 8px 28px rgba(20,40,55,.035); margin-bottom:24px; }
.home-department-card:hover { transform:translateY(-6px); box-shadow:0 18px 42px rgba(20,40,55,.1); border-color:#d8e8f1; }
.home-department-image { height:175px; display:block; overflow:hidden; position:relative; }
.home-department-image img { width:100%; height:100%; object-fit:cover; display:block; transition:.35s ease; }
.home-department-card:hover .home-department-image img { transform:scale(1.035); }
.home-department-image>span { position:absolute; top:14px; right:14px; background:rgba(255,255,255,.94); color:#006eaf; border-radius:999px; padding:6px 11px; font-size:12px; font-weight:700; box-shadow:0 4px 12px rgba(0,0,0,.08); }
.home-department-body { padding:20px; }
.home-department-body h3 { font-size:18px; margin:0 0 8px; line-height:1.8; }
.home-department-body h3 a { color:#202a32; }
.home-department-body p { color:#7b858d; font-size:12.5px; line-height:2; margin:0 0 14px; min-height:76px; }
.home-inline-link { color:#0076bd !important; font-size:12.5px; font-weight:700; display:inline-flex; align-items:center; gap:5px; }

.home-value-section { background:linear-gradient(135deg,#0a3654,#075f8e 60%,#0878ad); color:#fff; position:relative; }
.home-value-section::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 10% 20%, rgba(255,255,255,.08), transparent 26%), radial-gradient(circle at 92% 80%, rgba(255,255,255,.07), transparent 25%); }
.home-value-row { position:relative; z-index:2; align-items:center; }
.home-value-intro { padding-left:35px; }
.home-value-intro h2 { color:#fff; font-size:31px; margin-bottom:15px; }
.home-value-intro p { color:rgba(255,255,255,.76); line-height:2.1; font-size:14px; margin-bottom:24px; }
.home-benefit-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; }
.home-benefit { background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.13); border-radius:14px; padding:22px; backdrop-filter:blur(5px); }
.home-benefit>i { width:45px; height:45px; border-radius:12px; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; font-size:23px; color:#a8e2ff; margin-bottom:14px; }
.home-benefit h3 { color:#fff; font-size:16px; margin:0 0 8px; }
.home-benefit p { color:rgba(255,255,255,.72); font-size:12.5px; line-height:1.9; margin:0; }

.home-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:15px; position:relative; }
.home-steps::before { content:""; position:absolute; top:48px; right:16.5%; left:16.5%; height:1px; border-top:1px dashed #cfd9df; }
.home-step { text-align:center; position:relative; z-index:2; padding:0 24px; }
.home-step>span { position:absolute; top:-8px; right:calc(50% + 28px); background:#edf6fb; color:#006eaf; width:27px; height:27px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.home-step-icon { width:76px; height:76px; margin:0 auto 18px; border-radius:22px; background:#fff; border:1px solid #dce8ee; display:flex; align-items:center; justify-content:center; box-shadow:0 12px 30px rgba(27,54,72,.08); }
.home-step-icon i { color:#0076bd; font-size:30px; }
.home-step h3 { font-size:17px; margin:0 0 9px; color:#242d34; }
.home-step p { color:#7d878f; font-size:13px; line-height:2; margin:0; }

.home-instructor-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.home-instructor { background:#fff; border:1px solid #e6ecef; border-radius:14px; padding:22px; display:flex; align-items:center; gap:15px; box-shadow:0 8px 25px rgba(28,47,61,.035); }
.home-instructor-avatar { width:58px; height:58px; min-width:58px; border-radius:17px; background:linear-gradient(135deg,#e5f4fc,#cae8f8); color:#006eaf; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:17px; }
.home-instructor h3 { font-size:15px; margin:0 0 5px; color:#283139; }
.home-instructor p { margin:0; font-size:12px; color:#879097; line-height:1.8; }

.home-blog-card { background:#fff; border:1px solid #e7ecef; border-radius:15px; overflow:hidden; height:calc(100% - 24px); margin-bottom:24px; box-shadow:0 8px 28px rgba(20,40,55,.035); transition:.25s ease; }
.home-blog-card:hover { transform:translateY(-4px); box-shadow:0 16px 38px rgba(20,40,55,.08); }
.home-blog-cover { height:205px; display:block; overflow:hidden; }
.home-blog-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.home-blog-body { padding:21px; }
.home-blog-meta { color:#9aa3aa; font-size:11.5px; margin-bottom:9px; }
.home-blog-body h3 { font-size:18px; line-height:1.8; margin:0 0 9px; min-height:65px; }
.home-blog-body h3 a { color:#273139; }
.home-blog-body p { color:#7e878e; font-size:12.5px; line-height:2; min-height:75px; margin:0 0 13px; }

.home-cta-section { padding:15px 0 88px; background:#fff; }
.home-cta-card { background:linear-gradient(135deg,#0d6ea5,#084f7a); border-radius:20px; padding:44px 48px; display:flex; align-items:center; justify-content:space-between; gap:35px; color:#fff; box-shadow:0 20px 50px rgba(8,79,122,.18); position:relative; overflow:hidden; }
.home-cta-card::after { content:""; width:280px; height:280px; position:absolute; left:-80px; top:-100px; border:1px solid rgba(255,255,255,.12); border-radius:50%; }
.home-cta-card>div { position:relative; z-index:2; }
.home-cta-card span { color:#9bdbff; font-size:13px; }
.home-cta-card h2 { color:#fff; font-size:26px; line-height:1.8; margin:7px 0 5px; }
.home-cta-card p { color:rgba(255,255,255,.72); margin:0; font-size:13px; }
.home-cta-actions { display:flex; gap:10px; flex:none; }

.home-footer { margin-top:0; }
.home-footer .block { padding-top:68px; padding-bottom:55px; }
.home-footer-about { color:#808a91; font-size:12.5px; line-height:2; margin:10px 0 15px; max-width:330px; }
.home-footer .about_widget span { line-height:2; }
.home-footer-cta p { color:#7e878e; line-height:2; font-size:13px; margin:0 0 15px; }

/* Strengthen homepage course cards without changing inner pages */
.home-modern #home-course-list .portal-course-card { border-radius:15px; box-shadow:0 8px 28px rgba(20,40,55,.04); }
.home-modern #home-course-list .portal-course-thumb { height:190px; }
.home-modern #home-course-list .portal-course-card h3 { font-size:18px; min-height:66px; }
.home-modern #home-course-list .portal-course-desc { min-height:72px; }
.home-modern #home-course-list .portal-course-price { font-size:16px; }

@media (max-width:1199px){
  .home-hero h1 { font-size:41px; }
  .home-hero-content { max-width:64%; }
  .home-search-box { grid-template-columns:1.2fr .85fr 84px; }
  .home-instructor-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:991px){
  .home-hero { min-height:680px; background-position:63% center; }
  .home-hero::before { content:""; position:absolute; inset:0; background:rgba(7,22,33,.36); }
  .home-hero-inner { min-height:680px; }
  .home-hero-content { width:100%; max-width:720px; }
  .home-hero h1 { font-size:38px; }
  .home-stats { grid-template-columns:repeat(2,1fr); }
  .home-stat-item:nth-child(2)::after { display:none; }
  .home-stat-item:nth-child(-n+2) { border-bottom:1px solid #edf0f2; }
  .home-section { padding:70px 0; }
  .home-value-intro { padding-left:0; margin-bottom:30px; }
  .home-steps::before { display:none; }
  .home-cta-card { display:block; }
  .home-cta-actions { margin-top:24px; }
}
@media (max-width:767px){
  .home-hero { min-height:auto; padding:132px 0 78px; background-position:68% center; }
  .home-hero-inner { min-height:auto; }
  .home-hero-content { max-width:none; width:100%; }
  .home-eyebrow { font-size:11px; }
  .home-hero h1 { font-size:31px; line-height:1.65; }
  .home-hero-content>p { font-size:14px; }
  .home-search-box { grid-template-columns:1fr; }
  .home-search-box button { min-height:48px; }
  .home-stats-wrap { margin-top:-25px; }
  .home-stats { grid-template-columns:1fr 1fr; padding:6px; }
  .home-stat-item { padding:19px 8px; }
  .home-stat-item strong { font-size:25px; }
  .home-stat-item span { font-size:11px; }
  .home-section { padding:58px 0; }
  .home-section-head { display:block; margin-bottom:26px; }
  .home-section-head h2,.home-value-intro h2 { font-size:25px; }
  .home-view-all { margin-top:13px; }
  .home-benefit-grid { grid-template-columns:1fr; }
  .home-steps { grid-template-columns:1fr; gap:34px; }
  .home-instructor-grid { grid-template-columns:1fr; }
  .home-cta-card { padding:30px 24px; border-radius:16px; }
  .home-cta-card h2 { font-size:21px; }
  .home-cta-actions { display:grid; grid-template-columns:1fr; }
  .home-hero-actions .home-btn { flex:1 1 100%; }
}
@media (max-width:480px){
  .home-stats { grid-template-columns:1fr; }
  .home-stat-item:not(:last-child)::after { display:none; }
  .home-stat-item { border-bottom:1px solid #edf0f2 !important; }
  .home-stat-item:last-child { border-bottom:0 !important; }
}

/* ===== Homepage v9 refinements ===== */
.home-hero {
  min-height: 760px;
  background:
    radial-gradient(circle at 18% 24%, rgba(59,188,255,.22), transparent 23%),
    radial-gradient(circle at 82% 78%, rgba(0,169,255,.12), transparent 24%),
    linear-gradient(118deg, #081b29 0%, #0b2b41 45%, #0f3b57 100%);
  overflow:hidden;
}
.home-hero::before {
  content:"";
  position:absolute;
  left:-120px;
  top:-140px;
  width:380px;
  height:380px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(98,197,255,.34), rgba(98,197,255,0));
  filter:blur(16px);
}
.home-hero::after {
  right:auto;
  left:-130px;
  bottom:-170px;
  width:460px;
  height:460px;
  border-color:rgba(255,255,255,.08);
}
.home-hero-inner {
  min-height:760px;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  align-items:center;
  gap:34px;
}
.home-hero-content {
  width:auto;
  max-width:none;
}
.home-hero-content > p { max-width:680px; }
.home-hero-visual {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}
.home-hero-visual-card {
  position:relative;
  width:min(100%, 620px);
  min-height:540px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.home-hero-visual-card::before {
  content:"";
  position:absolute;
  inset:40px 30px 24px 30px;
  border-radius:34px;
  background:linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(7px);
  box-shadow:0 22px 65px rgba(0,0,0,.25);
}
.home-hero-visual-card img {
  position:relative;
  z-index:2;
  width:100%;
  max-width:620px;
  height:auto;
  display:block;
  filter: drop-shadow(0 24px 60px rgba(2,17,30,.34));
}
.home-hero-mini-card {
  position:absolute;
  z-index:3;
  min-width:180px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 20px 55px rgba(10,26,42,.16);
  border:1px solid rgba(230,238,245,.95);
}
.home-hero-mini-card strong {
  display:block;
  color:#12324d;
  font-size:19px;
  font-weight:800;
  margin-bottom:5px;
}
.home-hero-mini-card span {
  display:block;
  color:#6b7b8d;
  font-size:12px;
  line-height:1.8;
}
.home-hero-mini-top { top:56px; right:0; }
.home-hero-mini-bottom { bottom:56px; left:22px; }

.home-partners-section {
  padding:36px 0 18px;
  background:#fff;
}
.home-partners-grid {
  display:grid;
  grid-template-columns:repeat(6, minmax(0,1fr));
  gap:18px;
}
.home-partner-card {
  background:#fff;
  border:1px solid #e7edf3;
  border-radius:18px;
  padding:14px;
  min-height:116px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 30px rgba(25,49,71,.04);
  transition:.25s ease;
}
.home-partner-card:hover {
  transform:translateY(-4px);
  box-shadow:0 18px 38px rgba(25,49,71,.10);
  border-color:#d6e4ee;
}
.home-partner-card img {
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
}

@media (max-width: 1199px) {
  .home-hero-inner { grid-template-columns:minmax(0,1fr) minmax(320px,.88fr); }
  .home-partners-grid { grid-template-columns:repeat(3, minmax(0,1fr)); }
}
@media (max-width: 991px) {
  .home-hero { min-height:auto; padding:130px 0 72px; }
  .home-hero-inner {
    min-height:auto;
    grid-template-columns:1fr;
    gap:22px;
  }
  .home-hero-visual { order:2; }
  .home-hero-visual-card { min-height:auto; padding:0 10px 20px; }
  .home-hero-visual-card::before { inset:34px 12px 8px; }
  .home-hero-mini-top { top:22px; right:0; }
  .home-hero-mini-bottom { left:0; bottom:14px; }
  .home-partners-grid { grid-template-columns:repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .home-hero { padding:126px 0 58px; }
  .home-hero-visual-card { padding:0 0 18px; }
  .home-hero-mini-card {
    min-width:0;
    width:calc(50% - 6px);
    padding:12px 14px;
  }
  .home-hero-mini-card strong { font-size:15px; }
  .home-hero-mini-card span { font-size:11px; }
  .home-hero-mini-top { top:10px; right:0; }
  .home-hero-mini-bottom { left:0; bottom:2px; }
  .home-partners-section { padding:22px 0 0; }
  .home-partners-grid { grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
  .home-partner-card { min-height:94px; padding:10px; border-radius:14px; }
}

/* v12 partner list based on provided company names */
.home-partners-grid-text {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-partner-text-card {
  min-height: 126px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: right;
}
.home-partner-mark {
  width: 54px;
  min-width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d6fb8, #38b6ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(13,111,184,.20);
}
.home-partner-body {
  flex: 1;
  min-width: 0;
}
.home-partner-text-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.9;
  color: #15314b;
}
.home-partner-text-card span {
  display: block;
  font-size: 12px;
  color: #7a8795;
}
@media (max-width: 1199px) {
  .home-partners-grid-text { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .home-partners-grid-text { grid-template-columns: 1fr; }
  .home-partner-text-card { min-height: 0; }
}

/* v13 hero graphic panel + marquee partners + AML department */
.portal-badge-amber { background:#fff5df; color:#c17b00; }

.home-hero-visual-card {
  overflow: visible;
}
.home-hero-sidepanel {
  position:absolute;
  left:-28px;
  top:50%;
  transform:translateY(-50%);
  z-index:4;
  width:260px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.home-hero-feature-card {
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 16px 16px 14px;
  border-radius:20px;
  color:#10314d;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(223,232,239,.95);
  box-shadow:0 18px 50px rgba(8,27,41,.18);
  backdrop-filter:blur(10px);
}
.home-hero-feature-card strong {
  display:block;
  font-size:16px;
  font-weight:800;
  margin-bottom:5px;
}
.home-hero-feature-card span {
  display:block;
  font-size:12px;
  color:#6d7c8c;
  line-height:1.9;
}
.home-hero-feature-icon {
  width:52px;
  min-width:52px;
  height:52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  color:#fff;
  box-shadow:0 10px 26px rgba(10,26,42,.14);
}
.home-hero-feature-card.accent-blue .home-hero-feature-icon { background:linear-gradient(135deg,#0e79c7,#3ebfff); }
.home-hero-feature-card.accent-gold .home-hero-feature-icon { background:linear-gradient(135deg,#cc8b09,#f8c24e); }
.home-hero-feature-card.accent-green .home-hero-feature-icon { background:linear-gradient(135deg,#0c9d6c,#39d6a0); }

.home-partners-marquee {
  position:relative;
  overflow:hidden;
  border-radius:22px;
  border:1px solid #e6edf3;
  background:linear-gradient(180deg,#ffffff,#f7fbff);
  box-shadow:0 14px 36px rgba(25,49,71,.05);
  padding:14px 0;
}
.home-partners-marquee::before,
.home-partners-marquee::after {
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:96px;
  z-index:2;
  pointer-events:none;
}
.home-partners-marquee::before {
  right:0;
  background:linear-gradient(to left, #ffffff 15%, rgba(255,255,255,0));
}
.home-partners-marquee::after {
  left:0;
  background:linear-gradient(to right, #ffffff 15%, rgba(255,255,255,0));
}
.home-partners-track {
  display:flex;
  align-items:center;
  gap:16px;
  width:max-content;
  animation:homePartnerTicker 54s linear infinite;
  padding:0 14px;
}
.home-partners-marquee:hover .home-partners-track { animation-play-state:paused; }
.home-partner-pill {
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:280px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e6eef4;
  box-shadow:0 10px 24px rgba(25,49,71,.05);
}
.home-partner-pill-mark {
  width:44px;
  min-width:44px;
  height:44px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:15px;
  font-weight:800;
  background:linear-gradient(135deg,#0d6fb8,#3eb6ff);
}
.home-partner-pill-text {
  color:#193149;
  font-size:14px;
  line-height:1.9;
  white-space:nowrap;
}
@keyframes homePartnerTicker {
  from { transform:translateX(0); }
  to { transform:translateX(50%); }
}

@media (max-width: 1199px) {
  .home-hero-sidepanel { left:-10px; width:230px; }
  .home-partner-pill { min-width:240px; }
}
@media (max-width: 991px) {
  .home-hero-visual-card { padding-inline-start:110px; }
  .home-hero-sidepanel {
    left:0;
    top:auto;
    bottom:10px;
    transform:none;
    width:100%;
    max-width:none;
    position:relative;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-top:-18px;
  }
  .home-hero-feature-card {
    min-height:100%;
    padding:12px;
    display:block;
  }
  .home-hero-feature-icon { margin-bottom:10px; }
}
@media (max-width: 767px) {
  .home-hero-visual-card { padding-inline-start:0; }
  .home-hero-sidepanel {
    grid-template-columns:1fr;
    gap:10px;
    margin-top:10px;
  }
  .home-hero-feature-card {
    display:flex;
    padding:12px 13px;
  }
  .home-partners-marquee::before,
  .home-partners-marquee::after { width:48px; }
  .home-partners-track { gap:10px; animation-duration:42s; }
  .home-partner-pill {
    min-width:210px;
    padding:12px 14px;
    border-radius:16px;
  }
  .home-partner-pill-text { font-size:13px; }
}

/* v14 hero floating cards + teacher avatars on course cards */
.home-hero-sidepanel {
  left: -8px;
  width: 218px;
  gap: 10px;
}
.home-hero-feature-card {
  gap: 10px;
  padding: 12px 12px 12px 11px;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(8,27,41,.15);
  animation: heroFloatSoft 5.4s ease-in-out infinite;
}
.home-hero-feature-card:nth-child(2) { animation-duration: 6.2s; animation-delay: .5s; }
.home-hero-feature-card:nth-child(3) { animation-duration: 5.8s; animation-delay: 1s; }
.home-hero-feature-card strong {
  font-size: 14px;
  margin-bottom: 3px;
}
.home-hero-feature-card span {
  font-size: 11px;
  line-height: 1.8;
}
.home-hero-feature-icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
}
@keyframes heroFloatSoft {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.portal-course-teacher {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:#f7fbfe;
  border:1px solid #e9f0f4;
  border-radius:14px;
  margin-bottom:14px;
}
.portal-course-teacher-avatar {
  width:54px;
  min-width:54px;
  height:54px;
  border-radius:16px;
  object-fit:cover;
  background:#fff;
  border:1px solid #e3ebf2;
}
.portal-course-teacher-info {
  display:flex;
  flex-direction:column;
  min-width:0;
}
.portal-course-teacher-info span {
  color:#7c8a95;
  font-size:12px;
  margin-bottom:4px;
}
.portal-course-teacher-info b {
  color:#243442;
  font-size:14px;
  font-weight:700;
  line-height:1.9;
}
.portal-course-meta li {
  justify-content:space-between;
}
.portal-course-meta li span { margin-left:auto; margin-right:6px; }
.portal-course-meta li b { text-align:left; }

@media (max-width: 1199px) {
  .home-hero-sidepanel { width: 205px; left: 0; }
}
@media (max-width: 991px) {
  .home-hero-sidepanel { width:100%; }
  .home-hero-feature-card { animation:none; }
}
@media (max-width: 767px) {
  .portal-course-teacher { padding:10px 12px; }
  .portal-course-teacher-avatar { width:48px; min-width:48px; height:48px; border-radius:14px; }
  .home-hero-feature-card strong { font-size: 13px; }
  .home-hero-feature-card span { font-size: 10.5px; }
}


/* v15 - distinct glass hero cards placed across the image */
.home-hero-visual-card {
  position: relative;
}
.home-hero-sidepanel {
  position: absolute;
  inset: 0;
  width: 100%;
  left: 0;
  top: 0;
  transform: none;
  display: block;
  pointer-events: none;
}
.hero-glass-card {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  padding: 12px 13px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 18px 42px rgba(5,16,30,.18), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255,255,255,.18), rgba(255,255,255,.02));
  pointer-events: none;
}
.hero-glass-card > * {
  position: relative;
  z-index: 1;
}
.hero-glass-card .home-hero-feature-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(10,26,42,.10);
}
.hero-glass-card strong {
  font-size: 13.5px;
}
.hero-glass-card span {
  font-size: 10.5px;
  line-height: 1.8;
}
.hero-card-one {
  top: 68px;
  left: -18px;
  animation: heroFloatOne 6.4s ease-in-out infinite;
}
.hero-card-two {
  top: 110px;
  right: -8px;
  width: 205px;
  border-radius: 26px 16px 24px 16px;
  background: linear-gradient(135deg, rgba(255,248,230,.25), rgba(255,255,255,.12));
  animation: heroFloatTwo 7s ease-in-out infinite;
}
.hero-card-three {
  bottom: 74px;
  left: 58px;
  width: 238px;
  border-radius: 18px 24px 18px 28px;
  background: linear-gradient(135deg, rgba(229,255,245,.24), rgba(255,255,255,.10));
  animation: heroFloatThree 6.8s ease-in-out infinite;
}
@keyframes heroFloatOne {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
@keyframes heroFloatTwo {
  0%,100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes heroFloatThree {
  0%,100% { transform: translateY(0) rotate(.5deg); }
  50% { transform: translateY(-9px) rotate(-.8deg); }
}
@media (max-width: 1199px) {
  .hero-card-one { left: 0; }
  .hero-card-two { right: 0; }
  .hero-card-three { left: 30px; bottom: 58px; }
}
@media (max-width: 991px) {
  .home-hero-sidepanel {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    margin-top: -4px;
    pointer-events: auto;
  }
  .hero-glass-card {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto;
    min-height: 100%;
    animation: none;
  }
}
@media (max-width: 767px) {
  .home-hero-sidepanel {
    grid-template-columns: 1fr;
  }
  .hero-glass-card {
    border-radius: 18px;
  }
}

/* v16 official partner logos extracted from Parsian Bank HTML */
.home-partner-pill {
  min-width: 300px;
  min-height: 82px;
  padding: 11px 16px;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-partner-pill:hover {
  transform: translateY(-3px);
  border-color: #d4e4ef;
  box-shadow: 0 16px 32px rgba(25,49,71,.09);
}
.home-partner-logo-wrap {
  width: 78px;
  min-width: 78px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #edf2f6;
  border-radius: 13px;
  overflow: hidden;
  padding: 5px;
}
.home-partner-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.home-partner-logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg,#0d6fb8,#3eb6ff);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.home-partner-pill-text {
  white-space: normal;
  min-width: 150px;
  max-width: 185px;
  line-height: 1.8;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 767px) {
  .home-partner-pill {
    min-width: 250px;
    min-height: 72px;
    padding: 9px 12px;
  }
  .home-partner-logo-wrap {
    width: 66px;
    min-width: 66px;
    height: 50px;
  }
  .home-partner-pill-text {
    min-width: 130px;
    max-width: 155px;
    font-size: 12px;
  }
}

/* v17 readability improvement for hero glass cards */
.hero-glass-card {
  gap: 12px;
  padding: 14px 15px;
  background: linear-gradient(135deg, rgba(255,255,255,.56), rgba(255,255,255,.34));
  border: 1px solid rgba(255,255,255,.48);
  box-shadow: 0 18px 44px rgba(5,16,30,.20), inset 0 1px 0 rgba(255,255,255,.34);
}
.hero-glass-card::before {
  background: linear-gradient(140deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
}
.hero-glass-card .home-hero-feature-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
}
.hero-glass-card > div:last-child {
  flex: 1;
  min-width: 0;
}
.hero-glass-card strong {
  display: block;
  color: #15314b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
  margin-bottom: 4px;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.hero-glass-card span {
  display: block;
  color: #4d6174;
  font-size: 11.5px;
  line-height: 1.9;
  font-weight: 500;
}
.hero-card-one {
  width: 236px;
}
.hero-card-two {
  width: 224px;
}
.hero-card-three {
  width: 254px;
}
@media (max-width: 767px) {
  .hero-glass-card {
    padding: 13px 14px;
  }
  .hero-glass-card strong {
    font-size: 14px;
  }
  .hero-glass-card span {
    font-size: 11px;
  }
}


/* v18 stronger readable hero cards + icons for stats */
.hero-glass-card {
  gap: 13px;
  padding: 16px 16px;
  background: linear-gradient(135deg, rgba(250,252,255,.88), rgba(237,244,250,.78));
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 20px 46px rgba(5,16,30,.24), inset 0 1px 0 rgba(255,255,255,.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-glass-card::before {
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
}
.hero-glass-card .home-hero-feature-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 17px;
}
.hero-glass-card strong {
  color: #15314b;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 5px;
}
.hero-glass-card span {
  color: #506375;
  font-size: 12px;
  line-height: 1.8;
}
.hero-card-one {
  top: 30px;
  left: -28px;
  width: 272px;
  border-radius: 22px 26px 18px 24px;
}
.hero-card-two {
  top: 96px;
  right: -32px;
  width: 248px;
}
.hero-card-three {
  bottom: 58px;
  left: 22px;
  width: 286px;
}
.hero-card-one .home-hero-feature-icon { background:linear-gradient(135deg,#1890ff,#4dc7ff); }
.hero-card-two .home-hero-feature-icon { background:linear-gradient(135deg,#f0b11f,#ffce53); }
.hero-card-three .home-hero-feature-icon { background:linear-gradient(135deg,#1ebf8b,#49e0af); }

.home-stats {
  padding: 12px 18px;
}
.home-stat-item {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.home-stat-icon {
  width:54px;
  height:54px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#eff8ff,#dcefff);
  color:#0c71b8;
  font-size:25px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 18px rgba(0,110,175,.08);
  margin-bottom:4px;
}
.home-stat-item strong {
  margin-bottom:0;
}
.home-stat-item span {
  line-height:1.9;
}
@media (max-width: 1199px) {
  .hero-card-one { left:-8px; }
  .hero-card-two { right:-8px; }
  .hero-card-three { left:12px; width:270px; }
}
@media (max-width: 991px) {
  .home-stat-icon {
    width:48px;
    height:48px;
    border-radius:16px;
    font-size:22px;
  }
}
@media (max-width: 767px) {
  .hero-glass-card {
    padding: 14px 15px;
  }
  .hero-glass-card strong { font-size:15px; }
  .hero-glass-card span { font-size:11.5px; }
  .home-stat-icon {
    width:44px;
    height:44px;
    border-radius:14px;
    font-size:20px;
  }
}

/* v19 - Contact form hard reset against legacy template form styles */
.portal-form {
  direction: rtl;
  text-align: right;
  width: 100%;
  display: block;
  clear: both;
}
.portal-form .row {
  margin-right: -8px;
  margin-left: -8px;
}
.portal-form .row > [class*="col-"] {
  padding-right: 8px;
  padding-left: 8px;
}
.portal-form .form-group {
  position: relative;
  width: 100%;
  margin: 0 0 20px !important;
  padding: 0 !important;
  clear: both;
}
.portal-form label {
  position: static !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.8 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #34495a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: default !important;
  text-align: right !important;
}
.portal-form label::before,
.portal-form label::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
}
.portal-form input,
.portal-form select,
.portal-form textarea {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 1px solid #dbe4ea !important;
  border-radius: 10px !important;
  outline: none !important;
  background: #fff !important;
  color: #243442 !important;
  font-family: "IRANYekan", Tahoma, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  direction: rtl !important;
  text-align: right !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.portal-form input,
.portal-form select {
  height: 48px !important;
  min-height: 48px !important;
}
.portal-form select {
  cursor: pointer;
  padding-left: 38px !important;
}
.portal-form textarea {
  min-height: 155px !important;
  height: 155px !important;
  padding: 13px 15px !important;
  resize: vertical !important;
  line-height: 1.9 !important;
}
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
  border-color: #1685c7 !important;
  box-shadow: 0 0 0 3px rgba(22,133,199,.10) !important;
  background: #fff !important;
}
.portal-form button.portal-primary-btn {
  float: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  -ms-transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 125px;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 24px !important;
  border: 0 !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
}
.portal-form-status {
  clear: both;
  width: 100%;
  box-sizing: border-box;
}

/* Contact page layout polish */
.portal-page #contact-form + * { clear: both; }
.portal-page .portal-content-card > h3 {
  margin-bottom: 24px;
}
@media (max-width: 767px) {
  .portal-form .row {
    margin-right: 0;
    margin-left: 0;
  }
  .portal-form .row > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
  }
  .portal-form input,
  .portal-form select {
    height: 46px !important;
    min-height: 46px !important;
  }
}
