/* ==========================================================================
   Classic theme: appearance tokens + visual refresh.
   Loaded after public/frontend/css/sass/style.css (the original stylesheet),
   by themes.shared.head. Maps the theme engine's --site-* tokens onto the
   variables the classic views already use, then polishes spacing, cards,
   buttons, forms and the header without changing any markup.
   ========================================================================== */

:root {
  /* tokens -> classic variables */
  --thm-primary-code: var(--site-accent-rgb);
  --primary-color: var(--site-accent);
  --primary-font: var(--site-font-body);
  --secondary-font: var(--site-font-heading);
  --button-input-style: var(--site-radius-button);
  --soft-color: rgba(var(--site-accent-rgb), .14);
  --btn-soft: rgba(var(--site-accent-rgb), .18);
  --badge-color: var(--site-accent-hover);

  /* bootstrap */
  --bs-primary: var(--site-accent);
  --bs-primary-rgb: var(--site-accent-rgb);
  --bs-link-color: var(--site-accent);
  --bs-link-color-rgb: var(--site-accent-rgb);
  --bs-link-hover-color: var(--site-accent-hover);
  --bs-border-radius: var(--site-radius-input);
  --bs-border-radius-sm: calc(var(--site-radius-input) * .75);
  --bs-border-radius-lg: var(--site-radius-card);
  --bs-border-radius-xl: var(--site-radius-card);
  --bs-border-radius-pill: var(--site-radius-button);
  --bs-focus-ring-color: rgba(var(--site-accent-rgb), .25);

  /* classic refresh */
  --classic-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --classic-shadow: 0 12px 32px -12px rgba(16, 24, 40, .18), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --classic-shadow-hover: 0 22px 44px -16px rgba(16, 24, 40, .28), 0 4px 10px -4px rgba(16, 24, 40, .08);
  --classic-line: rgba(16, 24, 40, .08);
}

.dark-mode {
  --classic-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --classic-shadow: 0 12px 32px -12px rgba(0, 0, 0, .6);
  --classic-shadow-hover: 0 22px 44px -16px rgba(0, 0, 0, .7);
  --classic-line: rgba(255, 255, 255, .1);
}

/* ---------- Base type ---------- */
html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--site-font-heading);
  letter-spacing: -.01em;
  text-wrap: balance;
}

p {
  line-height: 1.7;
}

::selection {
  background: rgba(var(--site-accent-rgb), .22);
}

a {
  transition: color .2s ease;
}

/* Text size (Customize panel): scales the page body, header and footer keep their size. */
main .content-body {
  zoom: var(--site-font-scale, 1);
}

/* ---------- Header ---------- */
.main-header .main-navbar {
  box-shadow: 0 1px 0 var(--classic-line);
}

.main-header .main-navbar.sticky,
.main-header .main-navbar.fixed-top {
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 8px 24px -16px rgba(16, 24, 40, .35);
}

.main-header .main-navbar .navbar .navbar-nav .nav-item > a {
  position: relative;
  font-weight: 500;
}

.main-header .main-navbar .dropdown-menu {
  padding: 8px;
  border: 1px solid var(--classic-line);
  border-radius: var(--site-radius-card);
  box-shadow: var(--classic-shadow);
}

.main-header .main-navbar .dropdown-menu .dropdown-item {
  border-radius: calc(var(--site-radius-input) * .75);
}

.main-header .main-navbar .dropdown-menu .dropdown-item:hover,
.main-header .main-navbar .dropdown-menu .dropdown-item:focus {
  background: rgba(var(--site-accent-rgb), .08);
  color: var(--site-accent);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--site-radius-button);
  padding: 11px 20px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 6px 16px -8px rgba(var(--site-accent-rgb), .7);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn.btn-primary,
.btn-primary {
  color: var(--site-accent-contrast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(var(--site-accent-rgb), .85);
}

.btn:focus-visible {
  outline: 3px solid rgba(var(--site-accent-rgb), .35);
  outline-offset: 2px;
}

.btn:active {
  transform: none;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
  border-radius: var(--site-radius-input);
  border-color: var(--classic-line);
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea.form-control {
  border-radius: min(var(--site-radius-input), 16px);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 4px rgba(var(--site-accent-rgb), .14);
}

/* ---------- Cards & surfaces ---------- */
.card,
.feature-box,
.admission-box,
.accordion-item,
.counter-item {
  border-radius: var(--site-radius-card) !important;
}

.card {
  border-color: var(--classic-line);
  box-shadow: var(--classic-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  box-shadow: var(--classic-shadow-hover);
}

.card .card-thumb,
.card .card-img-top {
  border-top-left-radius: var(--site-radius-card);
  border-top-right-radius: var(--site-radius-card);
}

.card.h-100:hover,
.blog-card:hover,
.course-card:hover {
  transform: translateY(-3px);
}

.shadow {
  box-shadow: var(--classic-shadow) !important;
}

.feature-box {
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--classic-shadow-hover) !important;
}

.badge.rounded-pill {
  border-radius: 999px !important;
  letter-spacing: .02em;
}

.accordion-item {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--classic-line) !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(var(--site-accent-rgb), .08);
  color: var(--site-accent);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 4px rgba(var(--site-accent-rgb), .14);
}

/* Section headings */
.section-title h2,
.section-title .fs-1 {
  letter-spacing: -.02em;
}

/* Pagination */
.pagination .page-link {
  border-radius: var(--site-radius-input) !important;
  margin-inline: 3px;
}

.pagination .page-item.active .page-link {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: var(--site-accent-contrast);
}

/* ---------- Footer ---------- */
.footer .footer-area .link-list li a,
.footer .footer-area .address-list li span {
  transition: color .2s ease, padding .2s ease;
}

.footer .footer-area .link-list li:hover a {
  color: #fff;
  padding-inline-start: 2px;
}

/* ---------- Back to top shares the corner with the contact buttons ---------- */
#back-top {
  right: 30px;
  bottom: 232px;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  box-shadow: var(--classic-shadow);
}

[dir=rtl] #back-top {
  right: auto;
  left: 30px;
}

body:not(:has(.site-fab)) #back-top {
  bottom: 100px;
}

body:not(:has(.site-fab)):not(:has(.sc-chat)) #back-top {
  bottom: 30px;
}

/* ==========================================================================
   QA fixes (visual only; no markup hooks changed)
   ========================================================================== */

/* ---------- Hero style 2 (/home2): photo slider ----------
   Its height used to come only from the admin "section padding" (seeded py-0)
   and the overlay/white-text rules in the original CSS were uncompiled SCSS
   ("&.two ...") that browsers drop, so the slide collapsed to its text. */
.hero-section.two .hero-container .owl-stage-outer .owl-stage {
  align-items: stretch;
}

.hero-section.two .hero-container .owl-item,
.hero-section.two .hero-container .items {
  height: auto !important;
}

.hero-section.two .hero-container .items {
  position: relative;
  min-height: clamp(460px, 64vh, 680px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section.two .hero-container .items > .container {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 7vw, 104px);
}

.hero-section.two .hero-container .items.bg-overlay::before {
  background: linear-gradient(90deg, rgba(8, 15, 28, .82) 0%, rgba(8, 15, 28, .62) 42%, rgba(8, 15, 28, .18) 78%, rgba(8, 15, 28, .08) 100%);
}

[dir=rtl] .hero-section.two .hero-container .items.bg-overlay::before {
  background: linear-gradient(270deg, rgba(8, 15, 28, .82) 0%, rgba(8, 15, 28, .62) 42%, rgba(8, 15, 28, .18) 78%, rgba(8, 15, 28, .08) 100%);
}

.hero-section.two .hero-container .items h1,
.hero-section.two .hero-container .items p,
.hero-section.two .hero-container .items h6 {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.hero-section.two .hero-container .items h1 {
  max-width: 17ch;
  margin-bottom: 1rem !important;
}

.hero-section.two .hero-container .items p {
  max-width: 46ch;
  font-size: 1.075rem;
  opacity: .92;
}

@media (max-width: 991.98px) {
  .hero-section.two .hero-container .items {
    min-height: 440px;
  }

  .hero-section.two .hero-container .items.bg-overlay::before,
  [dir=rtl] .hero-section.two .hero-container .items.bg-overlay::before {
    background: rgba(8, 15, 28, .62);
  }

  .hero-section.two .hero-container .items h1,
  .hero-section.two .hero-container .items p {
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .hero-section.two .hero-container .items {
    min-height: 420px;
  }

  .hero-section.two .hero-container .items h1 {
    font-size: 2.1rem;
  }
}

/* ---------- Hero style 1 (/): keep the floating stat chips inside the page ---------- */
@media (min-width: 992px) {
  .hero-section .hero-container .hero-right img {
    margin: 0 !important;
  }

  .hero-section .hero-container .hero-right .job {
    left: -4% !important;
    right: auto !important;
  }

  .hero-section .hero-container .hero-right .resume {
    left: -8% !important;
    right: auto !important;
  }

  .hero-section .hero-container .hero-right .employers {
    right: -4% !important;
    left: auto !important;
  }

  .hero-section .hero-container .hero-right .companies {
    right: -8% !important;
    left: auto !important;
  }

  [dir=rtl] .hero-section .hero-container .hero-right .job {
    right: -4% !important;
    left: auto !important;
  }

  [dir=rtl] .hero-section .hero-container .hero-right .resume {
    right: -8% !important;
    left: auto !important;
  }

  [dir=rtl] .hero-section .hero-container .hero-right .employers {
    left: -4% !important;
    right: auto !important;
  }

  [dir=rtl] .hero-section .hero-container .hero-right .companies {
    left: -8% !important;
    right: auto !important;
  }
}

.hero-section .hero-container .hero-right .show-slide-info {
  white-space: nowrap;
}

.hero-section .hero-container .first-svg-icon {
  margin-left: -170px !important;
}

/* Decorative dots/star sit on top of the headline once the columns stack. */
@media (max-width: 991.98px) {
  .hero-section .hero-container .items > figure.position-absolute,
  .hero-section .hero-container .items .col-lg-6 > figure.position-absolute {
    display: none;
  }
}

/* ---------- FAQ accordions: chevron follows the open/closed state ---------- */
.accordion-button.collapsed::after,
.accordion-button[aria-expanded=false]::after {
  transform: none;
}

.accordion-button:not(.collapsed)[aria-expanded=true]::after {
  transform: rotate(-180deg);
}

.faq-section .accordion .accordion-item .accordion-header .accordion-button.collapsed {
  color: var(--primary-text-color);
}

/* ---------- Testimonials: equal-height cards, frame no longer clipped ---------- */
.testimonial .owl-carousel .owl-stage {
  display: flex;
}

.testimonial .owl-carousel .owl-item {
  display: flex;
}

.testimonial .testimonial-item {
  display: flex;
  width: 100%;
  padding-bottom: 20px;
}

.testimonial .testimonial-item:before {
  bottom: 0;
}

.testimonial .testimonial-item .inner-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.testimonial .testimonial-item .inner-content .client-info {
  margin-top: auto;
}

@media (max-width: 767.98px) {
  .testimonial .owl-carousel .owl-nav {
    display: none;
  }
}

/* ---------- Cards: equal heights in grids, actions pinned to the bottom ---------- */
.grid-container.grid-view > [class*=col-] > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.grid-container.grid-view > [class*=col-] > .card > .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.grid-container.grid-view > [class*=col-] > .card > .card-body > .btn:last-child {
  margin-top: auto !important;
  align-self: flex-start;
}

/* Struck-through list price next to the sale price */
.course-old-price {
  margin-inline-end: .35em;
  font-size: .85em;
  font-weight: 500;
  opacity: .7;
}

/* Dark mode: Bootstrap cards keep their dark default text colour */
.dark-mode .card {
  color: inherit;
}

.dark-mode .form-check-input {
  accent-color: var(--site-accent);
}

/* ---------- Course details ---------- */
.course-details .course-video {
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.classic-empty-state {
  color: var(--bs-secondary-color, #6c757d);
}

.classic-empty-state i {
  display: block;
  font-size: 28px;
  color: var(--site-accent);
  opacity: .6;
}

/* ---------- Event details info strip ---------- */
.event-details .d-flex > div > strong {
  white-space: nowrap;
}

.event-details .d-flex > .event-details-address {
  flex: 1 1 auto;
  max-width: 420px;
}

/* ---------- Contact map: no dark void while the embed loads ---------- */
.map-container {
  background-color: transparent;
}

.map-container .map {
  background: rgba(var(--site-accent-rgb), .06);
  border: 1px solid var(--classic-line);
}

/* ---------- Logos ---------- */
.site-logo-mono {
  filter: brightness(0) invert(1);
}

.footer .footer-area .footer-logo img {
  display: block;
  height: auto;
  min-height: 32px;
  max-width: 220px;
}

/* ---------- Footer on phones ---------- */
.footer .footer-end {
  padding-inline: 16px;
}

/* ---------- RTL: directional icons point the reading direction ---------- */
[dir=rtl] :is(.fa-chevron-right, .fa-chevron-left, .fa-arrow-right, .fa-arrow-left, .fa-arrow-right-long, .fa-arrow-left-long, .fa-arrow-right-to-bracket) {
  transform: scaleX(-1);
}

/* ---------- Floating buttons on phones: one tidy column ---------- */
@media (max-width: 575.98px) {
  body.theme-classic .sc-chat {
    inset-block-end: 14px;
    inset-inline-end: 14px;
  }

  body.theme-classic .sc-chat-launcher {
    width: 52px;
    height: 52px;
  }

  body.theme-classic .site-fab {
    inset-inline-end: 17px;
    inset-block-end: 14px;
    gap: 10px;
  }

  body.theme-classic .site-fab.has-chat {
    inset-block-end: 78px;
  }

  body.theme-classic .site-fab-btn {
    width: 46px;
    height: 46px;
  }

  #back-top {
    right: 20px;
    width: 40px;
    height: 40px;
    bottom: 194px;
  }

  [dir=rtl] #back-top {
    right: auto;
    left: 20px;
  }

  body:not(:has(.site-fab)) #back-top {
    bottom: 78px;
  }

  body:not(:has(.site-fab)):not(:has(.sc-chat)) #back-top {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .feature-box {
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .card.h-100:hover,
  .feature-box:hover {
    transform: none;
  }
}
