:root {
  --pencil-primary: #49aeea;
  --pencil-primary-dark: #1678bb;
  --pencil-accent: #56d0c3;
  --pencil-ink: #0f2740;
  --pencil-muted: #697586;
  --pencil-border: #e5edf4;
  --pencil-soft: #f3fbff;
  --pencil-footer: #07110f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--pencil-ink);
  background: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.container,
.container-fluid {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.container-fluid {
  width: min(100% - 48px, 1500px);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -12px;
}

.row > * {
  padding-inline: 12px;
  width: 100%;
}

.col-lg-10,
.col-lg-11,
.col-lg-3,
.col-xl-3,
.col-xl-4,
.col-xl-9,
.col-md-4,
.col-md-5,
.col-md-6,
.col-sm-6,
.col-md-12 {
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-4 { width: 33.3333%; }
  .col-md-5 { width: 41.6667%; }
  .col-md-6 { width: 50%; }
  .col-md-12 { width: 100%; }
  .text-md-start { text-align: start !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.3333%; }
  .col-lg-10 { width: 83.3333%; }
  .col-lg-11 { width: 91.6667%; }
  .d-lg-none { display: none !important; }
}

@media (min-width: 1200px) {
  .col-xl-3 { width: 25%; }
  .col-xl-4 { width: 33.3333%; }
  .col-xl-9 { width: 75%; }
  .text-xl-start { text-align: start !important; }
}

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.text-center { text-align: center !important; }
.position-relative { position: relative !important; }
.position-fixed { position: fixed !important; }
.border-0 { border: 0 !important; }
.p-0 { padding: 0 !important; }
.m-0 { margin: 0 !important; }
.me-1 { margin-inline-end: .25rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.me-4 { margin-inline-end: 1.5rem !important; }
.ms-2 { margin-inline-start: .5rem !important; }
.ms-auto { margin-inline-start: auto !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.my-6 { margin-block: 3rem !important; }
.py-2 { padding-block: .5rem !important; }
.py-5 { padding-block: 3rem !important; }
.px-4 { padding-inline: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-30 { padding-bottom: 30px !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.w-100 { width: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: 8px !important; }
.rounded-circle { border-radius: 999px !important; }
.round-10 { border-radius: 10px !important; }
.text-white { color: #fff !important; }
.text-primary { color: var(--pencil-primary) !important; }
.text-muted,
.text-paragraph { color: var(--pencil-muted) !important; }
.fw-bold { font-weight: 700 !important; }
.fw-medium { font-weight: 600 !important; }
.font-regular { font-weight: 400 !important; }
.fs-18 { font-size: 18px !important; }
.fs-20 { font-size: 20px !important; }
.fs-24 { font-size: 24px !important; }
.fs-40 { font-size: 40px !important; }
.lead { font-size: clamp(1rem, 1.4vw, 1.2rem); }
.list-unstyle { list-style: none; padding: 0; margin: 0; }
.transition { transition: .2s ease; }
.z-index-10 { position: relative; z-index: 10; }
.h-100 { height: 100% !important; }
.top-0 { top: 0 !important; }
.bg-white { background: #fff !important; }
.overflow-hidden { overflow: hidden !important; }
.mx-1 { margin-inline: .25rem !important; }
.mb-40 { margin-bottom: 40px !important; }
.font-medium { font-weight: 600 !important; }
.font-semibold { font-weight: 700 !important; }
.line-clamp-two {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.navbar-area {
  min-height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--pencil-border);
  box-shadow: 0 12px 28px rgba(15, 39, 64, .05);
}

.navbar {
  min-height: 72px;
  padding-block: 10px;
}

.navbar-brand .logo {
  width: auto;
  max-height: 30px;
}

.primary-navigation {
  flex: 1 1 auto;
}

.primary-navigation .moremenu,
.primary-navigation .navbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation .nav-link,
.navbar-nav a {
  color: #657089;
  font-weight: 500;
}

.primary-navigation .active .nav-link,
.primary-navigation .nav-link.active,
.navbar-nav a:hover {
  color: var(--pencil-primary);
}

.other-options .btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
}

.btn-primary,
.btn-hero-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--pencil-primary), var(--pencil-accent));
  border-color: var(--pencil-primary);
}

.btn-outline-primary,
.btn-hero-secondary {
  color: var(--pencil-primary) !important;
  background: #fff;
  border-color: var(--pencil-primary);
}

.is-translate::before { content: "⇄"; color: #8b96a6; }
.is-magic-star::before { content: "✦"; }
.is-video-octagon::before { content: "▶"; }
.is-chart-2::before { content: "↗"; }

.hero-modern {
  min-height: clamp(520px, 62vh, 680px);
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 8%, rgba(73, 174, 234, .12) 0 90px, transparent 92px),
    radial-gradient(circle at 94% 75%, rgba(86, 208, 195, .12) 0 120px, transparent 122px),
    linear-gradient(180deg, #f7fdff 0%, #fff 100%);
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--pencil-ink);
}

.hero-subtitle {
  max-width: 760px;
  margin-inline: auto;
  color: #404a57;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  font-weight: 500;
}

.brand-highlight { color: var(--pencil-primary); font-weight: 800; }
.emphasis-text { color: var(--pencil-accent); }
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.floating-elements,
.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 39, 64, .12);
}

.element-1 { left: 12%; top: 22%; }
.element-2 { right: 15%; top: 28%; }
.element-3 { left: 22%; bottom: 18%; width: 54px; height: 54px; }
.element-4 { right: 27%; bottom: 27%; }
.element-5 { right: 9%; bottom: 14%; width: 62px; height: 62px; }
.element-6 { left: 16%; bottom: 25%; width: 50px; height: 50px; }

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(86, 208, 195, .1);
}
.circle-1 { width: 240px; height: 240px; left: -80px; top: -70px; }
.circle-2 { width: 150px; height: 150px; right: -40px; top: 42%; }
.circle-3 { width: 170px; height: 170px; left: -70px; bottom: 14%; }

.why-pencil-section,
.certificate-section,
.community-section {
  overflow: hidden;
}

.why-pencil-section {
  padding: 72px 0 46px;
}

.why-pencil-section h2,
.certificate-section h2,
.community-section h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.decor-dot,
.decor-ellipse {
  position: absolute;
  opacity: .45;
}
.decor-dot { left: 16%; margin-top: 80px; width: 40px; }
.decor-ellipse { right: 17%; margin-top: 40px; width: 60px; }

.feature-card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--pencil-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 39, 64, .08);
}

.feature-card .back {
  display: none;
}

.feature-card:hover .front {
  display: none;
}

.feature-card:hover .back {
  display: block;
}

.icon-box,
.icon-box-back {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 800;
}

.bg-blue { background: rgba(73, 174, 234, .14); color: var(--pencil-primary); }
.bg-yellow { background: rgba(255, 207, 82, .18); color: #d39a00; }
.bg-green { background: rgba(86, 208, 195, .16); color: #1aa99a; }
.text-blue { color: var(--pencil-primary); }
.text-yellow { color: #d39a00; }
.text-green { color: #1aa99a; }

.feature-card .title {
  margin: 0 0 10px;
  color: var(--pencil-ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-card .desc {
  margin: 0;
  color: var(--pencil-muted);
}

.arrow {
  display: inline-block;
  margin-top: 10px;
  color: var(--pencil-primary);
  font-size: 2rem;
}

.landing-shell__inner {
  display: block !important;
}

.sbr-fullwidth-top,
#sbrs-settings-menu-container,
.if_hide_page_bottom_content,
#region-main:empty,
.sbr-main:empty,
.loginform {
  display: none !important;
}

.skip-block {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.skip-block:focus {
  top: 18px;
  left: 18px;
  z-index: 2000;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--pencil-primary-dark);
}

#frontpage-available-course-list {
  width: min(100% - 32px, 1180px);
  margin: 0 auto 72px;
  padding-top: 18px;
}

#frontpage-available-course-list .page-section-title-hide {
  margin: 0 0 24px;
  color: var(--pencil-ink);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.25;
  text-align: center;
}

.courses.frontpage-course-list-all,
.courses.frontpage-course-list-enrolled {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 22px;
  margin: 0;
}

.courses.frontpage-course-list-all > [class*="col-"],
.courses.frontpage-course-list-enrolled > [class*="col-"] {
  width: 100%;
  padding: 0;
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--pencil-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 39, 64, .08);
}

.course-card .course-img {
  height: 112px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #65b6ef, #7355c7);
}

.course-card .course-img > img,
.course-card .course-img .img-whp {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card .course-info,
.course-card .pencil-course-card__body {
  padding: 16px 16px 8px;
}

.course-card h3,
.course-card h4 {
  margin: 0;
  color: var(--pencil-ink);
  font-size: 1rem;
  line-height: 1.35;
}

.course-card h3 a,
.course-card h4 a {
  color: inherit;
}

.course-card h3 a:hover,
.course-card h4 a:hover,
.course-card .course-teacher a:hover {
  color: var(--pencil-primary);
}

.course-card .course-price {
  color: #07996f;
  font-weight: 700;
}

.course-metainfo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  padding: 2px 16px 14px;
  color: var(--pencil-muted);
  font-size: .86rem;
  line-height: 1.3;
}

.course-metainfo li {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.course-metainfo img,
.course-metainfo svg,
.course-metainfo i {
  width: 16px;
  height: 16px;
  margin-inline-end: 5px;
  color: #7d8794;
  flex: 0 0 auto;
}

.course-hover-content {
  position: static !important;
  inset: auto !important;
  display: flex;
  flex-direction: column;
  height: auto !important;
  margin-top: auto;
  padding: 0 16px 16px;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.course-hover-content h3 {
  display: none;
}

.course-hover-content p {
  margin: 0 0 12px;
  color: var(--pencil-muted);
  font-size: .86rem;
  line-height: 1.45;
}

.course-hover-content .course-teacher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--pencil-muted);
  font-size: .86rem;
}

.course-hover-content .sbr-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--pencil-primary);
  background: var(--pencil-soft);
  flex: 0 0 auto;
}

.course-hover-content .course-metainfo {
  display: none;
}

.course-card .btn {
  min-height: 40px;
  border-radius: 7px;
  font-size: .92rem;
  font-weight: 700;
}

.certificate-section {
  background: #fbfdff;
}

.light-bg {
  position: absolute;
  inset-inline-start: 50%;
  top: 28px;
  width: min(72vw, 680px);
  transform: translateX(-50%);
  opacity: .12;
}

.cert-img {
  width: min(100%, 320px);
}

.community-img {
  width: min(100%, 320px);
  max-height: 260px;
  object-fit: contain;
}

.footer-wrap {
  margin: 48px 14px 10px;
  color: rgba(255, 255, 255, .72);
  background: var(--pencil-footer);
}

.footer-wrap .container {
  width: min(100% - 48px, 1320px);
}

.footer-widget-title,
.footer-wrap h3 {
  margin-top: 0;
  margin-bottom: 18px;
  color: #fff;
}

.footer-logo,
.footer-brand-logo {
  width: auto;
  max-height: 36px;
  margin-bottom: 14px;
}

.footer-widget a {
  color: rgba(255, 255, 255, .72);
}

.footer-widget a:hover {
  color: #fff;
}

.footer-widget ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-widget li,
.footer-widget p {
  margin: 0 0 10px;
}

.social-profile {
  min-height: 24px;
}

#backtotop,
.modal,
.offcanvas,
.drawer-toggles,
.block-region:empty {
  display: none !important;
}

@media (max-width: 991px) {
  .container-fluid {
    width: min(100% - 28px, 100%);
  }

  .navbar .collapse {
    display: none !important;
  }

  .navbar {
    justify-content: space-between;
  }

  .hero-modern {
    min-height: 560px;
    padding-block: 56px;
  }

  .floating-element {
    width: 54px;
    height: 54px;
  }

  .element-2,
  .element-5,
  .element-6 {
    display: none;
  }

  .why-pencil-section {
    padding-top: 48px;
  }

  .feature-card {
    margin-bottom: 18px;
  }

  .footer-wrap {
    margin-inline: 8px;
  }
}

@media (max-width: 575px) {
  .hero-cta .btn {
    width: 100%;
  }

  .hero-subtitle br,
  .lead br {
    display: none;
  }

  .footer-wrap .container {
    width: min(100% - 28px, 100%);
  }
}
