/* =================================================================
   Sasly Template — common_style.css  (all shared component styles)
   ================================================================= */

/* ---- Offcanvas Overlay ---- */
.offcanvas__overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.offcanvas__overlay.active { opacity: 1; visibility: visible; }

/* ---- Lines decoration ---- */
.line_wrap { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.line_item_one, .line_item {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(0,0,0,.04);
}
.line_item_one { left: 50%; }
.line_item:nth-child(2) { left: 20%; }
.line_item:nth-child(3) { left: 40%; }
.line_item:nth-child(4) { left: 60%; }
.line_item:nth-child(5) { left: 80%; }

/* ---- Scroll Wrapper ---- */
#smooth-wrapper, #smooth-content { position: relative; }

/* ================================================================
   HEADER
   ================================================================ */
.header-area {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 990;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: all .3s ease;
}
.header-navigation { padding: 0 30px; }
.nav-inner-menu { max-width: 1320px; margin: 0 auto; }
.primary-menu {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.site-branding .brand-logo img { height: 44px; width: auto; }

/* Main navigation */
.main-menu > ul { display: flex; align-items: center; gap: 8px; }
.main-menu > ul > li { position: relative; }
.main-menu > ul > li > a {
  display: block; padding: 10px 16px;
  font-weight: 600; font-size: 15px;
  color: var(--heading-color);
  border-radius: 8px;
  transition: var(--transition);
}
.main-menu > ul > li > a:hover,
.main-menu > ul > li.active > a { color: var(--primary-color); background: rgba(122,227,106,.08); }

/* Sub-menu */
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px; background: #fff;
  border-radius: 12px; padding: 10px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s ease;
}
.has-children:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li a {
  display: block; padding: 10px 20px;
  font-size: 14px; font-weight: 500;
  color: var(--heading-color);
  transition: var(--transition);
}
.sub-menu li a:hover { color: var(--primary-color); padding-left: 26px; }

/* Nav right */
.nav-right-item { display: flex; align-items: center; gap: 16px; }

/* Hamburger toggle */
.navbar-toggler {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 30px; height: 30px; cursor: pointer;
}
.navbar-toggler span {
  display: block; height: 2px; width: 100%;
  background: var(--heading-color); border-radius: 2px; transition: var(--transition);
}

/* Mobile nav */
.sasly-nav-menu {
  display: flex; align-items: center; gap: 24px;
}
.sasly-menu-top { display: none; }
.sasly-menu-bottom { display: none; }
.sasly-nav-button { display: none; }

@media (max-width: 991px) {
  .navbar-toggler { display: flex; }
  .sasly-nav-menu {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 30px 24px; z-index: 999; overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,.1); transition: right .35s ease;
  }
  .sasly-nav-menu.open { right: 0; }
  .sasly-menu-top { display: flex; width: 100%; margin-bottom: 30px; }
  .main-menu > ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .main-menu > ul > li { width: 100%; }
  .main-menu > ul > li > a { padding: 12px 8px; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
  .sasly-nav-button { display: block; width: 100%; margin-top: 20px; }
  .nav-button { display: none; }
}

/* ================================================================
   THEME BUTTON
   ================================================================ */
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: var(--primary-color);
  color: var(--heading-color);
  font-weight: 700; font-size: 15px;
  border-radius: 12px; border: none;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.theme-btn:hover { background: var(--secondary-color); color: var(--heading-color); transform: translateY(-2px); }
.theme-btn.style-one { /* same as base */ }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-sel {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 160px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1117 0%, #1a2332 50%, #0d1117 100%);
}
.hero-sel .pattern { position: absolute; inset: 0; opacity: .04; z-index: 0; }
.hero-sel .container { position: relative; z-index: 2; }
.hero-image_one, .hero-image_two {
  position: absolute; border-radius: 20px; overflow: hidden;
  z-index: 1;
}
.hero-image_one {
  right: -60px; top: 80px; width: 300px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hero-image_two {
  right: 180px; bottom: 40px; width: 220px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hero-image_one img, .hero-image_two img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-image_one .circle, .hero-image_two .circle {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,227,106,.2), transparent);
  bottom: -50px; right: -50px;
}
@media (max-width: 1200px) { .hero-image_one, .hero-image_two { display: none; } }

.hero-content { text-align: center; max-width: 720px; margin: 0 auto; }
.hero-content h1 { color: #fff; margin-bottom: 24px; }
.hero-content p { color: rgba(255,255,255,.75); font-size: 17px; margin-bottom: 0; }

/* Hero stats boxes */
.hero-wrap-box {
  display: flex; justify-content: center; gap: 24px; margin-top: 48px; flex-wrap: wrap;
}
.hero-wrap-box .item {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 24px 32px;
  text-align: center;
  min-width: 160px;
}
.hero-wrap-box h2 { color: var(--primary-color); font-size: 40px; margin: 0 0 4px; }
.hero-wrap-box h5 { color: rgba(255,255,255,.8); font-size: 14px; margin: 0; font-weight: 500; }
.hero-wrap-box .ratings { display: flex; justify-content: center; gap: 3px; margin-top: 6px; }
.hero-wrap-box .ratings li { color: var(--secondary-color); font-size: 13px; }

/* Features strip inside hero */
.features-sel { margin-top: 64px; }

/* ================================================================
   SECTION TITLE
   ================================================================ */
.section-title { margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title.text-center { text-align: center; }
.section-title.text-white h2 { color: #fff; }

.sub-heading {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(122,227,106,.1);
  border: 1px solid var(--primary-color);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 16px;
}

/* ================================================================
   SASLY CARD ITEM (feature cards in hero)
   ================================================================ */
.sasly-card-item {
  border-radius: 20px; overflow: hidden;
  padding: 32px 28px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.sasly-card-item:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.sasly-card-item .icon {
  font-size: 40px; margin-bottom: 20px;
  color: var(--primary-color);
}
.sasly-card-item .thumbnail { border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.sasly-card-item .thumbnail img { width: 100%; height: 180px; object-fit: cover; }
.sasly-card-item .title { font-size: 20px; margin-bottom: 10px; }
.sasly-card-item .card-des { font-size: 14px; color: #666; margin: 0; line-height: 1.7; }

/* Color variants */
.sasly-card-item.bg_one { background: linear-gradient(135deg, #f0fff0 0%, #fff 100%); border: 1px solid rgba(122,227,106,.2); }
.sasly-card-item.bg_two { background: linear-gradient(135deg, #fffdf0 0%, #fff 100%); border: 1px solid rgba(246,220,102,.2); }
.sasly-card-item.bg_three { background: linear-gradient(135deg, #f0f5ff 0%, #fff 100%); border: 1px solid rgba(100,130,246,.15); }

/* ================================================================
   SOCIAL LINKS
   ================================================================ */
.social-link { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.social-link li a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 14px;
  border: 1px solid rgba(255,255,255,.2);
  transition: var(--transition);
}
.social-link li a:hover { background: var(--primary-color); border-color: var(--primary-color); color: #111; }
/* Dark variant (header top) */
.top-right .social-link li a { background: #f5f5f5; color: #333; border-color: #e5e5e5; }

/* ================================================================
   RATINGS
   ================================================================ */
.ratings { display: inline-flex; align-items: center; gap: 3px; }
.ratings li { color: var(--secondary-color); font-size: 14px; }
.ratings li span { color: var(--heading-color); font-weight: 700; font-size: 18px; margin-right: 4px; }

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.section-content-box { position: relative; }
.section-image-box { position: relative; min-height: 400px; }

.circle-shape {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  border: 2px dashed rgba(122,227,106,.3);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.circle-shape span {
  position: absolute; inset: 20px; border-radius: 50%;
  background: rgba(122,227,106,.05);
}

.sasly-img_one {
  position: relative; z-index: 2;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  max-width: 75%; margin: 0 auto;
}
.sasly-img_one img { width: 100%; height: 320px; object-fit: cover; }

.sasly-img_two {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  width: 180px;
}
.sasly-img_two img { width: 100%; height: 140px; object-fit: cover; }

.sasly-img_three {
  position: absolute; bottom: -30px; left: 20px; z-index: 4; width: 80px;
}
.sasly-img_three img { width: 100%; border-radius: 50%; }

/* Rating badge floating */
.sasly-rating-item {
  position: absolute; top: 20px; left: 0; z-index: 5;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  display: flex; align-items: center; gap: 12px;
}
.sasly-rating-item .icon { font-size: 30px; color: var(--primary-color); }
.sasly-rating-item p { margin: 0; font-size: 12px; color: #888; }

/* Iconic boxes */
.sasly-iconic-box.style-six {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  border: 1px solid var(--border-color);
}
.sasly-iconic-box.style-six .icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: rgba(122,227,106,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary-color);
}
.sasly-iconic-box.style-six h5 { margin-bottom: 4px; font-size: 16px; }
.sasly-iconic-box.style-six p { margin: 0; font-size: 13px; color: #888; }

/* ================================================================
   WHY CHOOSE SECTION
   ================================================================ */
.why-choose-sel {
  position: relative; overflow: hidden;
}
.choose-bg-left {
  position: absolute; left: 0; top: 0; bottom: 0; width: 50%;
  background: var(--heading-color);
  z-index: 0;
}
.choose-bg-right {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  z-index: 0;
}
.why-choose-sel .container { position: relative; z-index: 2; }
.why-choose-sel .col-lg-6:first-child { padding: 60px 40px 60px 0; }
.why-choose-sel .col-lg-6:last-child { padding: 60px 0 60px 40px; }

.sasly-iconic-box.style-seven {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 20px 24px;
}
.sasly-iconic-box.style-seven .title {
  color: #fff; font-size: 18px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.sasly-iconic-box.style-seven .title i { color: var(--primary-color); font-size: 20px; }
.sasly-iconic-box.style-seven p { color: rgba(255,255,255,.65); font-size: 14px; margin: 0; }

/* ================================================================
   TESTIMONIAL SECTION
   ================================================================ */
.sasly-testimonial-item.style-four {
  display: flex; gap: 40px; align-items: flex-start;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid var(--border-color);
  margin: 10px;
}
.testimonial-thumb {
  position: relative; flex-shrink: 0;
}
.testimonial-thumb img {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary-color);
}
.testimonial-thumb .qoute {
  position: absolute; bottom: -8px; right: -8px;
  width: 34px; height: 34px; background: var(--primary-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #111;
}
.testimonial-thumb .circle {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px dashed rgba(122,227,106,.4);
}
.testimonial-content { flex: 1; }
.rating-text { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.rating-text span { font-weight: 700; font-size: 15px; color: var(--heading-color); }
.testimonial-content > p { font-style: italic; font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.author-info h4 { font-size: 18px; margin-bottom: 2px; }
.author-info .position { font-size: 13px; color: #888; }

/* Slick dots override */
.slick-dots { bottom: -30px; }
.slick-dots li button:before { color: var(--primary-color); }
.slick-dots li.slick-active button:before { color: var(--primary-color); }

/* ================================================================
   FAQ / ACCORDION
   ================================================================ */
.sasly-image-box {
  position: relative;
}
.sasly-image-box .circle {
  position: absolute; width: 350px; height: 350px; border-radius: 50%;
  border: 2px dashed rgba(122,227,106,.25);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.sasly-image {
  position: relative; z-index: 2;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}
.sasly-image img { width: 100%; height: 340px; object-fit: cover; }
.sasly-image-box .item {
  position: absolute; bottom: 30px; right: -20px; z-index: 3;
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 180px;
}
.sasly-image-box h2 { color: var(--primary-color); font-size: 36px; margin-bottom: 2px; }
.sasly-image-box h5 { font-size: 14px; margin-bottom: 8px; }

/* Accordion */
.accordion-item {
  border-radius: 12px; border: 1px solid var(--border-color);
  overflow: hidden; background: #fff;
}
.accordion-header { padding: 0; }
.accordion-title {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px;
  font-size: 16px; font-weight: 600;
  cursor: pointer; margin: 0;
  transition: var(--transition);
  user-select: none;
}
.accordion-title:hover { color: var(--primary-color); }
.accordion-title .sn { color: var(--primary-color); font-weight: 800; font-size: 14px; }
.accordion-collapse { display: none; }
.accordion-collapse.show { display: block; }
.accordion-content { padding: 0 24px 20px; }
.accordion-content p { margin: 0; font-size: 15px; color: #666; line-height: 1.7; }

/* ================================================================
   FOOTER
   ================================================================ */
.elearning-footer { background: #0d1117; }

.newsletter-wrapper {
  border-radius: 24px; overflow: hidden;
  background-size: cover; background-position: center;
}

.footer-widget-area { position: relative; }
.footer-content p { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.8; }
.footer-content a:hover { color: var(--primary-color); }

.widget-title {
  font-size: 18px; font-weight: 700; color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 40px; filter: brightness(0) invert(1); }

.footer-nav li { margin-bottom: 10px; }
.footer-nav li a { color: rgba(255,255,255,.6); font-size: 14px; transition: var(--transition); }
.footer-nav li a:hover { color: var(--primary-color); padding-left: 4px; }

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
}
.copyright-text p { color: rgba(255,255,255,.4); font-size: 13px; margin: 0; }
.copyright-text span { color: var(--primary-color); }
.copyright-nav { display: flex; justify-content: flex-end; }
.copyright-nav ul { display: flex; gap: 20px; }
.copyright-nav ul li a { color: rgba(255,255,255,.4); font-size: 13px; }
.copyright-nav ul li a:hover { color: var(--primary-color); }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-color);
  color: #111; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 997; opacity: 0; visibility: hidden;
  transition: var(--transition); box-shadow: 0 4px 16px rgba(122,227,106,.4);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary-color); transform: translateY(-3px); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.animate-float-bob-y { animation: floatBobY 3s ease-in-out infinite; }
.animate-float-bob-x { animation: floatBobX 3s ease-in-out infinite alternate; }
.rotate360 { animation: rotate360 12s linear infinite; }

@keyframes floatBobY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatBobX {
  0% { transform: translateX(-6px); }
  100% { transform: translateX(6px); }
}
@keyframes rotate360 {
  to { transform: rotate(360deg); }
}

/* text-anm fallback (GSAP SplitText handles this when loaded) */
.text-anm { opacity: 1; }

/* ================================================================
   SEARCH FORM (unused in beauty landing but kept for compat)
   ================================================================ */
.search-form { display: none; }

/* ================================================================
   AUTHOR BOX
   ================================================================ */
.author-list { display: inline-flex; align-items: center; }
.author-list li:not(:first-child) { margin-left: -10px; }
.author-list li img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
  .hero-sel { padding: 140px 0 60px; min-height: auto; }
  .why-choose-sel .col-lg-6:first-child,
  .why-choose-sel .col-lg-6:last-child { padding: 40px 20px; }
  .choose-bg-right { top: 50%; height: 50%; width: 100%; }
  .choose-bg-left { top: 0; height: 50%; width: 100%; }
  .sasly-testimonial-item.style-four { flex-direction: column; }
  .sasly-image-box .item { right: 0; }
}

@media (max-width: 576px) {
  .hero-wrap-box { flex-direction: column; align-items: center; }
  .sasly-card-item { margin-bottom: 20px; }
  .newsletter-wrapper { border-radius: 16px; }
  .copyright-nav { justify-content: center; margin-top: 10px; }
}
