@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap&subset=cyrillic");

/* Тема в стил Eduma върху Bootstrap 3.1 (зареден преди този файл) */

/* ---------- Променливи ---------- */
:root {
  --primary: #ffb606;
  --primary-dark: #e9a300;
  --dark: #1f2a37;
  --text: #666;
  --heading: #2b2b2b;
  --line: #e6e8eb;
  --bg-soft: #f7f8fa;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(31, 42, 55, .08);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Основа (връща външния вид над Bootstrap) ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font: 400 15px/1.75 var(--font); color: var(--text); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--primary-dark); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--heading); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
small { font-size: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { width: min(1200px, 100% - 40px); padding: 0; }
.container:before, .container:after,
.layout:before, .layout:after,
.course-grid:before, .course-grid:after,
.footer__grid:before, .footer__grid:after { display: none; }

/* ---------- Бутони ---------- */
.btn { padding: 12px 28px; border: 0; border-radius: var(--radius); font: 600 14px/1.2 var(--font); }
.btn:active { box-shadow: none; }
.btn-primary, .btn-primary:focus { background: var(--primary); color: #1b1b1b; }
.btn-primary:hover, .btn-primary:active { background: var(--primary-dark); color: #1b1b1b; }
.btn-dark, .btn-dark:focus { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #111a24; color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 13px; line-height: 1.2; border-radius: var(--radius); }
.btn-block { padding: 15px; font-size: 15px; }

/* ---------- Горна лента ---------- */
.topbar { background: var(--dark); color: #cfd6de; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; flex-wrap: wrap; }
.topbar__info, .topbar__auth { display: flex; gap: 24px; }
.topbar a:hover { color: var(--primary); }

/* ---------- Хедър ---------- */
.header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.logo { font: 700 30px/1 var(--font); color: var(--heading); letter-spacing: -.5px; }
.logo span { color: var(--primary); }
.logo--light { color: #fff; }
.nav-menu { display: flex; margin-left: auto; }
.menu { display: flex; gap: 28px; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 28px 0; font-weight: 500; color: var(--heading); border-bottom: 2px solid transparent; }
.menu > li > a:hover, .menu > li.active > a, .menu > li.open > a { color: var(--primary-dark); border-bottom-color: var(--primary); }
.menu .caret { margin-left: 4px; border-top-width: 4px; }

/* подменю (Bootstrap dropdown) */
.menu .dropdown-menu {
  min-width: 230px; margin: 0; padding: 8px 0;
  border: 0; border-top: 3px solid var(--primary); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); font-size: 14px;
}
.menu .dropdown-menu > li > a { display: block; padding: 10px 22px; color: var(--heading); font-weight: 500; white-space: nowrap; border-left: 3px solid transparent; }
.menu .dropdown-menu > li > a:hover, .menu .dropdown-menu > li > a:focus { background: var(--bg-soft); color: var(--primary-dark); border-left-color: var(--primary); }
.menu .dropdown-menu .divider { margin: 6px 0; background: var(--line); }
@media (min-width: 992px) {
  .menu > li.dropdown:hover > .dropdown-menu { display: block; }   /* отваря се и при посочване */
}
.search .form-control {
  width: 200px; height: auto; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 30px; box-shadow: none;
  font: 14px var(--font); color: var(--heading); background: var(--bg-soft);
}
.search .form-control:focus { border-color: var(--primary); background: #fff; box-shadow: none; outline: none; }
.header .nav-menu.collapse { display: flex; }   /* на голям екран менюто е винаги видимо */
.burger { display: none; }

/* ---------- Банер ---------- */
.banner {
  padding: 64px 0 60px; color: #fff;
  background:
    linear-gradient(105deg, rgba(31, 42, 55, .96) 35%, rgba(31, 42, 55, .8)),
    url("https://eduma.thimpress.com/demo-main/wp-content/uploads/sites/114/2023/10/course-main-08-850x500.jpg") center / cover;
}
.banner h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 700; max-width: 820px; }
.breadcrumb { padding: 0; margin: 0 0 14px; background: transparent; border-radius: 0; font-size: 14px; color: #b7c0cb; }
.breadcrumb>li+li:before { color: #b7c0cb; padding: 0 4px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Лейаут (Bootstrap колони) ---------- */
.main { padding-top: 48px; padding-bottom: 64px; }
.layout { margin: 0; }
.layout>[class*=col-] { padding: 0; }
@media (min-width: 992px) {
  .layout { display: flex; align-items: flex-start; gap: 48px; }
  .layout>.col-md-8 { float: none; width: auto; flex: 1; min-width: 0; }
  .layout>.col-md-4 { float: none; width: 340px; flex: none; }
  .sidebar { position: sticky; top: 100px; }
}

/* ---------- Мета ред ---------- */
.course__meta { display: flex; flex-wrap: wrap; gap: 20px 44px; padding-bottom: 24px; }
.meta-item { display: flex; align-items: center; gap: 12px; }
.meta-item > small, .meta-item div small { display: block; font-size: 12px; color: #999; line-height: 1.4; }
.meta-item strong { display: block; color: var(--heading); font-weight: 600; font-size: 15px; }
.meta-item:not(:has(.avatar)) { flex-direction: column; align-items: flex-start; gap: 0; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #1b1b1b; font-weight: 700; font-size: 15px; }
.avatar--lg { width: 84px; height: 84px; font-size: 26px; flex: none; }
.stars { color: var(--primary); letter-spacing: 2px; }
.stars em { font-style: normal; letter-spacing: 0; color: #999; font-size: 13px; font-weight: 400; margin-left: 4px; }
.course__image { width: 100%; border-radius: var(--radius); aspect-ratio: 850 / 500; object-fit: cover; background: var(--bg-soft); }

/* ---------- Табове ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 32px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 14px 20px; font-weight: 600; color: var(--heading); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:first-child, .tabs a:hover { color: var(--primary-dark); border-color: var(--primary); }

/* ---------- Препоръчан отзив ---------- */
.featured-review { margin: 32px 0 0; padding: 24px 28px; font-size: 15px; background: var(--bg-soft); border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.featured-review strong { display: block; font-style: normal; color: var(--heading); margin-bottom: 6px; }

/* ---------- Блокове ---------- */
.block { padding-top: 44px; }
.block h2 { font-size: 24px; margin-bottom: 18px; }
.block h3 { font-size: 18px; margin: 28px 0 12px; }
.lead { margin-bottom: 1em; font-size: 17px; font-weight: 400; line-height: 1.75; color: var(--heading); }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-bottom: 24px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #1b1b1b; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.bullets li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* ---------- Учебна програма (Bootstrap collapse) ---------- */
.curriculum-summary { color: #999; font-size: 14px; }
.section { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; }
.section__head { display: flex; align-items: center; gap: 16px; padding: 16px 22px; font-weight: 600; color: var(--heading); background: var(--bg-soft); cursor: pointer; }
.section__head::after { content: "–"; margin-left: auto; padding-left: 12px; font-size: 22px; line-height: 1; color: var(--primary-dark); order: 3; }
.section__head.collapsed::after { content: "+"; }
.section__head small { font-weight: 400; color: #999; }
.section__desc { margin: 0; padding: 16px 22px 8px; font-size: 14px; }
.lessons li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 22px; border-top: 1px dashed var(--line); color: var(--heading); }
.lessons em { font-style: normal; font-size: 13px; color: #999; white-space: nowrap; }

/* ---------- Сертификат ---------- */
.certificate { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
.certificate__img { display: grid; place-items: center; text-align: center; aspect-ratio: 4 / 3; padding: 20px; border: 8px double var(--primary); border-radius: var(--radius); background: #fffaf0; color: var(--heading); font-weight: 600; }
.certificate h2 { font-size: 22px; }

/* ---------- Въпроси ---------- */
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq__head { display: block; cursor: pointer; font-weight: 600; color: var(--heading); }
.faq__head::before { content: "–"; display: inline-block; width: 24px; color: var(--primary-dark); font-weight: 700; }
.faq__head.collapsed::before { content: "+"; }
.faq p { margin: 10px 0 0 24px; }

/* ---------- Преподавател ---------- */
.instructor { display: flex; gap: 24px; align-items: flex-start; }
.instructor h3 { margin: 0 0 2px; }
.instructor__stats { font-size: 13px; color: #999; margin-bottom: 10px; }
.empty { padding: 20px; background: var(--bg-soft); border-radius: var(--radius); text-align: center; }

/* ---------- Странична колона ---------- */
.buy { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.buy__price { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.buy__price small { font-size: 14px; color: #999; }
.buy__price strong { font-size: 28px; color: var(--heading); font-weight: 700; }
.buy__facts { margin: 22px 0; }
.buy__facts li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.buy__facts li:last-child { border-bottom: 0; }
.buy__facts strong { color: var(--heading); font-weight: 600; }
.buy__note { font-size: 13px; padding: 14px; background: var(--bg-soft); border-radius: var(--radius); }
.buy__note a { color: var(--heading); font-weight: 600; text-decoration: underline; }
.buy__actions { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 14px; font-weight: 500; }

/* ---------- Свързани курсове (Bootstrap колони) ---------- */
.related { padding: 64px 0 40px; background: var(--bg-soft); }
.related h2 { font-size: 28px; margin-bottom: 32px; }
.course-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.course-grid>[class*=col-] { float: none; display: flex; padding: 0 12px; margin-bottom: 24px; }
.card { display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(31, 42, 55, .06); transition: box-shadow .25s; }
.card:hover { box-shadow: var(--shadow); }
.card__img { position: relative; }
.card__img img { width: 100%; aspect-ratio: 666 / 450; object-fit: cover; background: #e6e8eb; }
.price-badge { position: absolute; left: 14px; bottom: -14px; padding: 4px 14px; background: var(--primary); color: #1b1b1b; font-size: 13px; font-weight: 600; border-radius: 30px; }
.card__body { padding: 28px 20px 18px; flex: 1; }
.card__level { color: #999; font-size: 12px; }
.card__body h3 { font-size: 16px; margin: 4px 0 8px; }
.card__body h3 a:hover { color: var(--primary-dark); }
.card__body .stars { font-size: 13px; margin: 0 0 10px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.card__cta { display: block; padding: 13px; text-align: center; border-top: 1px solid var(--line); font-weight: 600; color: var(--heading); }
.card__cta:hover { background: var(--primary); color: #1b1b1b; }
@media (min-width: 992px) and (max-width: 1100px) { .course-grid>.col-md-3 { width: 50%; } }

/* ---------- Абонамент ---------- */
.newsletter { background: var(--primary); padding: 44px 0; color: #3a2b00; }
.newsletter__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.newsletter h2 { font-size: 26px; color: #1b1b1b; }
.newsletter p { margin: 4px 0 0; }
.newsletter__form { display: flex; gap: 10px; flex: 1 1 380px; max-width: 520px; }
.newsletter__form .form-control { flex: 1; min-width: 0; height: auto; padding: 14px 18px; border: 0; border-radius: var(--radius); box-shadow: none; font: 15px var(--font); }

/* ---------- Футър ---------- */
.footer { background: var(--dark); color: #aab4bf; font-size: 14px; }
.footer__grid { display: flex; flex-wrap: wrap; margin: 0; padding: 64px 0 24px; }
.footer__grid>[class*=col-] { float: none; padding: 0 20px 32px 0; }
.footer__about ul { margin-top: 20px; }
.footer__about li { margin-bottom: 8px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--primary); }
.logo--light { display: inline-block; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; gap: 22px; }
.footer__bottom li { margin: 0; }
@media (min-width: 992px) {
  .footer__grid>.col-md-3 { width: 24%; }
  .footer__grid>.footer__about { width: 28%; }
}

/* ---------- Лента с действие (скрита на голям екран) ---------- */
.mobile-cta { display: none; }

/* ---------- Адаптивност ---------- */
@media (max-width: 1100px) {
  .search { display: none; }
}

@media (max-width: 991px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .sidebar { margin-top: 40px; }
  .buy { box-shadow: none; }
  .buy__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .buy__btn { display: none; }  /* бутонът е в долната лента */
  .footer__grid { padding: 48px 0 8px; }

  /* меню с бутон (Bootstrap collapse) */
  .header__inner { min-height: 64px; gap: 12px; }
  .header .btn-sm { display: none; }
  .burger {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer;
  }
  .burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .2s; }
  .burger span { position: relative; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
  .burger:not(.collapsed) span { background: transparent; }
  .burger:not(.collapsed) span::before { transform: translateY(6px) rotate(45deg); }
  .burger:not(.collapsed) span::after { transform: translateY(-6px) rotate(-45deg); }

  .header .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; margin: 0; background: #fff; box-shadow: 0 12px 24px rgba(31, 42, 55, .12); max-height: calc(100vh - 110px); overflow-y: auto; }
  .menu { flex-direction: column; gap: 0; width: 100%; }
  .menu > li > a { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu > li.active > a { border-left: 4px solid var(--primary); }
  .menu > li > a:hover, .menu > li.active > a, .menu > li.open > a { border-bottom-color: var(--line); }
  .menu .dropdown-menu { position: static; float: none; width: 100%; border: 0; border-radius: 0; box-shadow: none; background: var(--bg-soft); padding: 0; }
  .menu .dropdown-menu > li > a { padding: 13px 20px 13px 36px; border-bottom: 1px solid var(--line); border-left: 0; font-size: 15px; }
  .menu .dropdown-menu .divider { display: none; }
  .menu .open > .caret, .menu .open > a > .caret { transform: rotate(180deg); }
  .header .nav-menu.collapse { display: none; }
  .header .nav-menu.collapse.in { display: flex; }
  .header .nav-menu.collapsing { display: flex; }

  /* фиксирана лента „Започни сега“ */
  .mobile-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff; box-shadow: 0 -4px 18px rgba(31, 42, 55, .14);
  }
  .mobile-cta small { display: block; font-size: 12px; color: #999; line-height: 1.2; }
  .mobile-cta strong { color: var(--heading); font-size: 20px; line-height: 1.3; }
  .mobile-cta .btn { padding: 14px 32px; font-size: 15px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .topbar__info { display: none; }
  .topbar__inner { justify-content: flex-end; min-height: 36px; }

  .banner { padding: 36px 0 32px; }
  .breadcrumb { font-size: 13px; margin-bottom: 8px; }

  .course__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding-bottom: 20px; }
  .course__meta .meta-item:first-child { grid-column: 1 / -1; }
  .course__image { border-radius: 4px; }

  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; padding: 14px 16px; white-space: nowrap; }

  .featured-review { padding: 18px 20px; }
  .block { padding-top: 36px; }
  .block h2 { font-size: 22px; }
  .block h3 { font-size: 17px; }
  .lead { font-size: 16px; }
  .checklist { grid-template-columns: 1fr; gap: 10px; }

  .section__head { padding: 16px; min-height: 52px; }
  .section__head small { display: none; }
  .section__desc { padding: 14px 16px 6px; }
  .lessons li { flex-direction: column; gap: 0; padding: 12px 16px; }
  .faq__head { padding: 4px 0; min-height: 44px; }

  .certificate { grid-template-columns: 1fr; gap: 20px; }
  .certificate__img { max-width: 320px; }
  .instructor { flex-direction: column; gap: 16px; }

  .buy { padding: 20px; }
  .buy__facts { grid-template-columns: 1fr; }
  .buy__actions a { padding: 10px 0; }

  .related { padding: 44px 0 20px; }
  .related h2 { font-size: 24px; margin-bottom: 24px; }

  .newsletter { padding: 36px 0; }
  .newsletter h2 { font-size: 22px; }
  .newsletter__form { flex-direction: column; flex-basis: 100%; max-width: none; width: 100%; }
  .newsletter__form .btn { padding: 15px; }

  .footer__bottom-inner { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 380px) {
  .footer__grid>[class*=col-] { width: 100%; }
  .mobile-cta .btn { padding: 14px 20px; }
  .logo { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


