/* ostadasadilc — modern enhancements on top of base theme */
:root {
  --primary-color: #2d0f3d;
  --primary-color2: #c4b0cc;
  --primary-color-hover: #4a1b5d;
  --secondary-color: #121212;
  --accent-warm: #d4a017;
  --surface-soft: #f7f4f8;
  --nav-bg: rgba(18, 10, 24, 0.92);
  --nav-blur: saturate(140%) blur(14px);
  --shadow-soft: 0 12px 40px rgba(45, 15, 61, 0.12);
  --shadow-nav: 0 8px 28px rgba(0, 0, 0, 0.28);
  --input-radius: 14px;
  --global-margin: 72px;
}

body {
  background:
    radial-gradient(1200px 420px at 100% -10%, rgba(74, 27, 93, 0.08), transparent 60%),
    radial-gradient(900px 380px at -10% 20%, rgba(212, 160, 23, 0.05), transparent 55%),
    var(--light-color);
}

body:has(.oas-menu-toggle:checked) {
  overflow: hidden;
}

/* ---------- Sticky header / logo / menu (oas-*) ---------- */
.oas-header {
  position: sticky;
  top: 0;
  z-index: 10050;
  overflow: visible;
  box-shadow: var(--shadow-nav);
}

.oas-topbar {
  background: linear-gradient(90deg, #2d0f3d 0%, #4a1b5d 55%, #2d0f3d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
}

.oas-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  flex-wrap: wrap;
}

.oas-topbar-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.oas-brand-name {
  color: #fff !important;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(420px, 70vw);
}

.oas-top-link {
  color: rgba(255, 255, 255, 0.92) !important;
  align-items: center;
  gap: 6px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oas-top-link i {
  opacity: 0.7;
}

.oas-topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oas-topbar-social a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.oas-topbar-social a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.oas-navbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 8px 14px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--nav-blur);
  backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.oas-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.oas-logo img {
  height: 56px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.oas-menu-toggle,
.oas-sub-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.oas-menu-backdrop {
  display: none;
}

.oas-menu {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.oas-menu-head,
.oas-menu-actions,
.oas-burger {
  display: none;
}

.oas-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.oas-menu-list > li {
  position: relative;
}

.oas-item-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.oas-link {
  display: block;
  color: #f4eef8 !important;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 13px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.oas-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.oas-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.2s ease;
}

.oas-caret:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.oas-has-sub:hover > .oas-item-row > .oas-caret:not(.oas-caret-flyout),
.oas-menu-list > .oas-has-sub > .oas-sub-toggle:checked ~ .oas-item-row > .oas-caret:not(.oas-caret-flyout) {
  transform: rotate(180deg);
}

.oas-has-flyout > .oas-sub-toggle:checked ~ .oas-item-row > .oas-caret-flyout {
  transform: rotate(-90deg);
}

.oas-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.oas-nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.oas-nav-end .button-style2 {
  height: 40px;
  border-radius: 12px;
  font-size: 12px;
  padding: 0 14px;
}

/* Desktop — compact dropdown under parent (like other CMS themes) */
@media screen and (min-width: 992px) {
  .oas-burger {
    display: none !important;
  }

  .oas-menu-head,
  .oas-menu-actions {
    display: none !important;
  }

  .oas-navbar > .oas-menu {
    display: flex;
    align-items: center;
  }

  .oas-menu-list > li {
    position: relative;
  }

  .oas-menu-list > .oas-has-sub > .oas-item-row .oas-caret {
    pointer-events: none;
  }

  /* level-1 dropdown under menu item */
  .oas-has-flyout > .oas-item-row .oas-caret-flyout {
    pointer-events: none;
  }

  .oas-menu-list > .oas-has-sub:hover > .oas-submenu,
  .oas-menu-list > .oas-has-sub:focus-within > .oas-submenu,
  .oas-menu-list > .oas-has-sub > .oas-submenu:hover {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    max-width: 280px;
    padding: 6px 0;
    margin: 0;
    background: rgba(14, 8, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
    z-index: 10060;
  }

  .oas-menu-list > .oas-has-sub > .oas-submenu::before {
    content: "";
    position: absolute;
    top: -14px;
    right: 0;
    left: 0;
    height: 14px;
  }

  .oas-submenu > li > .oas-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .oas-submenu > li > .oas-link,
  .oas-submenu > li > .oas-item-row .oas-link {
    padding: 10px 16px;
    border-radius: 0;
    white-space: normal;
    font-size: 12.5px;
    font-weight: 500;
    color: #f3eef6 !important;
  }

  .oas-submenu > li > .oas-link:hover,
  .oas-submenu > li > .oas-item-row .oas-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-warm) !important;
  }

  /* level-2 flyout opens to the left (RTL) */
  .oas-has-flyout {
    position: relative;
  }

  .oas-has-flyout:hover > .oas-submenu-flyout,
  .oas-has-flyout:focus-within > .oas-submenu-flyout,
  .oas-has-flyout > .oas-submenu-flyout:hover {
    display: block;
    position: absolute;
    top: 0;
    right: 100%;
    min-width: 200px;
    max-width: 260px;
    padding: 6px 0;
    margin: 0;
    background: rgba(14, 8, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 0 0 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    z-index: 10061;
  }

  .oas-has-flyout > .oas-submenu-flyout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -12px;
    width: 12px;
  }

  .oas-submenu-flyout .oas-link {
    padding: 9px 14px;
    font-size: 12px;
    color: #e8e0ee !important;
  }

  .oas-submenu-flyout .oas-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
  }

  .oas-caret-flyout {
    font-size: 0.7rem;
  }
}

@keyframes oasDropIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile / tablet drawer */
@media screen and (max-width: 991.98px) {
  .oas-topbar-inner {
    justify-content: center;
    padding: 7px 10px;
  }

  .oas-navbar {
    min-height: 64px;
    padding: 6px 10px;
  }

  .oas-logo img {
    height: 46px;
    max-width: 120px;
  }

  .oas-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 92vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 10070;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
    animation: oasSlideIn 0.28s ease;
  }

  .oas-menu-toggle:checked ~ .oas-menu {
    display: flex;
    flex-direction: column;
  }

  .oas-menu-toggle:checked ~ .oas-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10065;
  }

  .oas-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #eee;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1rem;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
  }

  .oas-menu-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
  }

  .oas-menu-list {
    display: block;
    padding: 6px 0 20px;
  }

  .oas-menu-list > li {
    border-bottom: 1px solid #f0eef2;
  }

  .oas-item-row {
    justify-content: space-between;
    gap: 0;
  }

  .oas-link {
    color: #2a2a2a !important;
    padding: 14px 16px;
    border-radius: 0;
    flex: 1;
    white-space: normal;
  }

  .oas-link:hover {
    background: #f7f4f8;
    color: var(--primary-color) !important;
  }

  .oas-caret {
    width: 44px;
    height: 44px;
    color: var(--primary-color);
    flex-shrink: 0;
  }

  .oas-submenu {
    background: #f6f2f8;
  }

  .oas-sub-toggle:checked ~ .oas-submenu {
    display: block;
  }

  .oas-submenu .oas-link {
    padding-right: 22px;
    font-size: 0.92rem;
    font-weight: 500;
  }

  .oas-submenu-flyout {
    background: #ede8f0;
  }

  .oas-submenu-flyout .oas-link {
    padding-right: 30px;
    font-size: 0.88rem;
  }

  .oas-has-flyout > .oas-item-row .oas-link {
    font-weight: 600;
    color: var(--primary-color) !important;
  }

  .oas-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 28px;
    margin-top: auto;
  }

  .oas-menu-actions .button-style2 {
    width: 100%;
    justify-content: center;
  }

  .oas-burger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff !important;
    cursor: pointer;
    margin: 0;
  }
}

@keyframes oasSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@media screen and (min-width: 992px) and (max-width: 1366px) and (max-height: 820px) {
  .oas-logo img {
    height: 48px;
  }

  .oas-navbar {
    min-height: 64px;
  }

  .oas-link {
    padding: 9px 10px;
    font-size: 12.5px;
  }
}

/* ---------- Hero slideshow ---------- */
.oas-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #120818;
}

.oas-hero .slider-swiper {
  width: 100%;
  height: clamp(220px, 48vw, 560px);
}

.oas-hero .swiper-slide {
  position: relative;
  overflow: hidden;
}

.oas-hero .swiper-slide > a,
.oas-hero .slide-media {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.oas-hero .slide-media img,
.oas-hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 6.5s ease;
}

.oas-hero .swiper-slide-active .slide-media img,
.oas-hero .swiper-slide-active > a img {
  transform: scale(1.08);
}

.oas-hero .slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 8, 24, 0.72) 0%, rgba(18, 8, 24, 0.35) 48%, rgba(18, 8, 24, 0.15) 100%),
    linear-gradient(0deg, rgba(18, 8, 24, 0.55) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.oas-hero .slide-caption {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 5vw, 72px);
  left: clamp(16px, 5vw, 72px);
  bottom: clamp(28px, 6vw, 64px);
  max-width: 640px;
  color: #fff;
  pointer-events: none;
}

.oas-hero .slide-caption h2 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.oas-hero .slide-caption p {
  margin: 0;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  opacity: 0.92;
  line-height: 1.7;
  max-width: 36rem;
}

.oas-hero .swiper-button-next,
.oas-hero .swiper-button-prev {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  --swiper-navigation-size: 16px;
}

.oas-hero .swiper-button-next:hover,
.oas-hero .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.28);
}

.oas-hero .swiper-pagination {
  bottom: 14px !important;
}

.oas-hero .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  width: 8px;
  height: 8px;
}

.oas-hero .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

@media screen and (max-width: 767px) {
  .oas-hero .slider-swiper {
    height: clamp(200px, 62vw, 360px);
  }

  .oas-hero .slide-overlay {
    background:
      linear-gradient(0deg, rgba(12, 6, 18, 0.78) 0%, rgba(12, 6, 18, 0.25) 55%, rgba(12, 6, 18, 0.15) 100%);
  }

  .oas-hero .slide-caption {
    right: 14px;
    left: 14px;
    bottom: 36px;
  }

  .oas-hero .swiper-button-next,
  .oas-hero .swiper-button-prev {
    display: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 1366px) and (max-height: 820px) {
  .oas-hero .slider-swiper {
    height: clamp(240px, 42vh, 420px);
  }

  .main-nav .logo-a img {
    height: 50px;
  }
}

/* ---------- Sections polish ---------- */
.services-section > div {
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.services-section > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(45, 15, 61, 0.18);
}

.services-section a::after {
  background: linear-gradient(180deg, transparent 20%, rgba(18, 8, 24, 0.75) 100%);
  transition: background 0.3s ease;
}

.comment-section .swiper-slide {
  background: linear-gradient(160deg, #ebe3ef 0%, #d9cce0 100%);
  box-shadow: var(--shadow-soft);
}

/* ---------- Home courses carousel ---------- */
.oas-home-courses-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.oas-home-courses-head .button-style2 {
  flex-shrink: 0;
}

.oas-course-swiper {
  position: relative;
  padding: 0 4px 8px;
}

.oas-home-course-card {
  display: flex;
  flex-direction: column;
  height: auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}

.oas-home-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(45, 15, 61, 0.16);
  color: inherit;
}

.oas-home-course-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.oas-home-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.oas-home-course-card:hover .oas-home-course-media img {
  transform: scale(1.05);
}

.oas-home-course-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(45, 15, 61, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.oas-home-course-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.oas-home-course-body h3 {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oas-home-course-price {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
}

.oas-home-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
}

.oas-home-course-meta .small-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.oas-home-course-meta i {
  color: var(--primary-color);
  opacity: 0.75;
}

@media screen and (max-width: 767px) {
  .oas-home-courses-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .oas-home-courses-head .button-style2 {
    width: 100%;
    justify-content: center;
  }
}

.card-div {
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-div:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(45, 15, 61, 0.12);
}

.button-style,
.button-style2,
.icon-button {
  border-radius: 12px;
}

footer {
  background: linear-gradient(180deg, #2d0f3d 0%, #1a0a24 100%);
  margin-top: var(--global-margin);
  padding-top: 40px;
}

footer .footer-logo {
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

footer .app-div .button-style2 {
  justify-content: flex-start;
}

footer h2.small-bold-title {
  margin-bottom: 14px;
  font-size: 15px;
}
