/*---

-----------------------------------------------------------------------------------
Template Name: Edufit - Education & Online Course HTML Template
Page Name: Home Online
Description: The Home - Online Courses page of Edufit is designed to effectively showcase and promote your online courses. 
Author: Pixelfit
Version: 1.0 
-----------------------------------------------------------------------------------

---*/
/* Hero Section */
.hero-wrapper {
  position: relative;
  background-color: #FCFCFF;
  z-index: 1;
  padding-top: 50px;
}
.hero-wrapper .elements {
  position: absolute;
  z-index: -1;
}
@media screen and (max-width: 991px) {
  .hero-wrapper .elements {
    display: none;
  }
}
.hero-wrapper .elements.element_one {
  left: 0;
  top: 0;
}
@media (min-width: 1200px) and (max-width: 1450px) {
  .hero-wrapper .elements.element_one {
    left: -80px;
  }
}
.hero-wrapper .elements.element_two {
  bottom: 35px;
  left: 35px;
}
.hero-wrapper .elements.element_three {
  top: 80px;
  right: 40%;
}
.hero-wrapper .lineanm {
  position: absolute;
  top: -25px;
  right: 0;
  height: 550px;
  width: 290px;
  z-index: -1;
  max-width: 28vw;
  pointer-events: none;
}
@media screen and (max-width: 991px) {
  .hero-wrapper .lineanm {
    display: none;
  }
}
.hero-wrapper .lineanm .line {
  fill: none;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  /* smooth draw — avoid reverse/reflect flicker */
  animation: line 2.8s ease-in-out infinite alternate;
}
.hero-wrapper .hero-image-box {
  position: relative;
  z-index: 1;
  text-align: right;
  margin-right: -200px;
}
@media (min-width: 1200px) and (max-width: 1450px) {
  .hero-wrapper .hero-image-box {
    margin-right: -60px;
  }
}
@media screen and (max-width: 1199px) {
  .hero-wrapper .hero-image-box {
    margin-right: 0;
  }
}
@media screen and (max-width: 991px) {
  .hero-wrapper .hero-image-box {
    text-align: center;
  }
}
.hero-wrapper .hero-image-box .image_one {
  position: absolute;
  left: 120px;
  bottom: 150px;
  z-index: 1;
}
@media (min-width: 1200px) and (max-width: 1450px) {
  .hero-wrapper .hero-image-box .image_one {
    left: 0;
  }
}
@media screen and (max-width: 1199px) {
  .hero-wrapper .hero-image-box .image_one {
    left: 0;
    bottom: 50px;
  }
}
@media screen and (max-width: 991px) {
  .hero-wrapper .hero-image-box .image_one {
    bottom: 150px;
  }
}
@media (max-width: 767px) {
  .hero-wrapper .hero-image-box .image_one {
    display: none;
  }
}
.hero-wrapper .hero-image-box .image_one img {
  border-radius: 15px;
  -webkit-box-shadow: -3px 0px 50px 0px rgba(98, 85, 250, 0.1);
          box-shadow: -3px 0px 50px 0px rgba(98, 85, 250, 0.1);
}
.hero-wrapper .hero-image-box .ef-iconic-box {
  position: absolute;
  top: 100px;
  right: -5%;
  text-align: left;
  max-width: 260px;
  z-index: 1;
}
@media (min-width: 1200px) and (max-width: 1450px) {
  .hero-wrapper .hero-image-box .ef-iconic-box {
    top: 180px;
    right: -2%;
  }
}
@media screen and (max-width: 1199px) {
  .hero-wrapper .hero-image-box .ef-iconic-box {
    right: -8%;
    top: 30%;
  }
}
@media screen and (max-width: 991px) {
  .hero-wrapper .hero-image-box .ef-iconic-box {
    top: 25%;
    right: 7%;
  }
}
@media (max-width: 767px) {
  .hero-wrapper .hero-image-box .ef-iconic-box {
    top: 50%;
    right: 15%;
  }
}
.hero-wrapper .hero-content {
  padding-top: 145px;
}
@media screen and (max-width: 1199px) {
  .hero-wrapper .hero-content {
    padding-top: 85px;
  }
}
@media screen and (max-width: 991px) {
  .hero-wrapper .hero-content {
    text-align: center;
    margin-bottom: 40px;
  }
}
.hero-wrapper .hero-content .sub-heading {
  color: var(--primary-color);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.hero-wrapper .hero-content .sub-heading i {
  margin-right: 10px;
  margin-top: 4px;
}
.hero-wrapper .hero-content h1 {
  margin-bottom: 3px;
}
@media (min-width: 1200px) and (max-width: 1450px) {
  .hero-wrapper .hero-content h1 {
    font-size: 55px;
    line-height: 75px;
  }
}
@media screen and (max-width: 1199px) {
  .hero-wrapper .hero-content h1 {
    font-size: 40px;
    line-height: 55px;
  }
}
@media screen and (max-width: 991px) {
  .hero-wrapper .hero-content h1 {
    max-width: 490px;
    margin: 0 auto 30px;
  }
}
.hero-wrapper .hero-content h1 span.c1 {
  position: relative;
  color: var(--primary-color);
}
.hero-wrapper .hero-content h1 span.c1 .shape-one {
  position: absolute;
  top: -30px;
  right: -45px;
}
@media (max-width: 767px) {
  .hero-wrapper .hero-content h1 span.c1 {
    display: none;
  }
}
.hero-wrapper .hero-content h1 span.c2 {
  color: var(--secondary-color);
}
.hero-wrapper .hero-content p {
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 35px;
}

.hero-subscribe {
  position: relative;
}
@media screen and (max-width: 991px) {
  .hero-subscribe {
    max-width: 500px;
    margin: 0 auto;
  }
}
.hero-subscribe .form-group {
  position: relative;
}
.hero-subscribe input {
  padding: 12px 20px;
  border-radius: 13px;
  font-size: 16px;
  border: 1px solid var(--border-color);
}
.hero-subscribe .theme-btn {
  position: absolute;
  top: 0;
  right: 0;
}

@-webkit-keyframes line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes line {
  to {
    stroke-dashoffset: 0;
  }
}
/* Category Section */
/* Intro Section */
.intro-wrapper_one {
  position: relative;
  z-index: 1;
  min-height: 550px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: -150px;
}
.intro-wrapper_one:after {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(6, 25, 58, 0.7);
  z-index: -1;
}

/* Testimonial Section */
.testimonial-slider {
  margin-left: -15px;
  margin-right: -15px;
}
@media screen and (max-width: 991px) {
  .testimonial-slider {
    margin-right: -12px;
    margin-left: -12px;
  }
}
.testimonial-slider .slick-slide {
  margin-left: 15px;
  margin-right: 15px;
}
@media screen and (max-width: 991px) {
  .testimonial-slider .slick-slide {
    margin-right: 12px;
    margin-left: 12px;
  }
}
/* ExamMitra brand overrides */
.site-branding .brand-logo img {
  max-height: 48px;
  width: auto;
}
.hero-image-box > img[src*="hero-img1"] {
  object-fit: cover;
  object-position: center 20%;
  border-radius: 28px;
  max-height: 580px;
  width: 100%;
  box-shadow: -8px 12px 40px rgba(98, 85, 250, 0.15);
}
.edufit-img img,
.course-thumbnail img,
.instructor-thumbnail img,
.ef-blog-item img {
  object-fit: cover;
}

/* ===== Overflow / clipped floating cards ===== */
.ef-hero-sec,
.ef-hero-sec .hero-wrapper,
.ef-hero-sec .container,
.ef-hero-sec .row,
.ef-hero-sec .col-lg-6,
.ef-hero-sec .hero-image-box {
  overflow: visible !important;
}
/* Keep hero image + Live card inside screen (no right-edge clip) */
.hero-wrapper .hero-image-box {
  margin-right: 0 !important;
  padding-right: 12px;
}
.hero-wrapper .hero-image-box .ef-iconic-box {
  right: 12px !important;
  left: auto !important;
  top: 40px !important;
  max-width: 240px;
  min-width: 220px;
  z-index: 3;
}
/* Learning Chart — bottom-left, never cover teacher face */
.hero-wrapper .hero-image-box .image_one {
  left: 16px !important;
  right: auto !important;
  top: auto !important;
  bottom: 28px !important;
  z-index: 3;
  max-width: 200px;
}
.hero-wrapper .hero-image-box .image_one img {
  max-width: 180px;
  width: 100%;
  height: auto;
}
@media (min-width: 1200px) {
  .hero-wrapper .hero-image-box .ef-iconic-box {
    right: 20px !important;
    top: 48px !important;
  }
  .hero-wrapper .hero-image-box .image_one {
    left: 20px !important;
    bottom: 36px !important;
  }
}
@media (max-width: 991px) {
  .hero-wrapper .hero-image-box .ef-iconic-box {
    right: 16px !important;
    left: auto !important;
    top: 24px !important;
  }
  .hero-wrapper .hero-image-box .image_one {
    left: 12px !important;
    bottom: 20px !important;
  }
}
/* About floating review card — keep inside */
.edufit-image-box.style-one {
  overflow: visible !important;
}
.edufit-image-box.style-one .ef-iconic-box {
  z-index: 3;
}
.edufit-image-box.style-one .edufit-img.image_one {
  max-width: 400px;
  overflow: hidden;
  border-radius: 10px;
}
.edufit-image-box.style-one .edufit-img.image_one img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
  display: block;
}
.edufit-image-box.style-one .edufit-img.image_two {
  max-width: 280px;
  z-index: 2;
}
.edufit-image-box.style-one .edufit-img.image_two img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
/* Prevent horizontal page scroll from floating shapes */
body {
  overflow-x: hidden;
}
.ef-hero-sec {
  overflow-x: clip;
  overflow-y: visible;
}

/* ===== ExamMitra UI fixes ===== */
.header-top {
  overflow: visible;
  min-height: auto !important;
  padding: 8px 0 !important;
}
.header-top .top-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0;
  flex-wrap: nowrap !important;
}
.header-top .edufit-dropdown {
  position: relative;
  display: inline-block;
}
/* Hide dropdown menus by default (Bootstrap .dropdown conflict) */
.header-top .edufit-dropdown > ul.edufit-select,
.header-top .edufit-dropdown > ul.dropdown,
.header-top .edufit-dropdown > ul {
  position: absolute !important;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 110px;
  margin: 8px 0 0 !important;
  padding: 8px 12px !important;
  background: #fff !important;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 2px 2px 15px rgba(0,0,0,.07);
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  display: block !important;
  list-style: none;
  height: auto !important;
  transform: none !important;
}
.header-top .edufit-dropdown:hover > ul.edufit-select,
.header-top .edufit-dropdown:hover > ul.dropdown,
.header-top .edufit-dropdown:hover > ul,
.header-top .edufit-dropdown:focus-within > ul.edufit-select,
.header-top .edufit-dropdown:focus-within > ul {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}
.hero-content h1 .c1,
.hero-content h1 .c2 {
  white-space: nowrap;
}
.hero-content h1 .shape-one,
.hero-content h1 .shape-two {
  pointer-events: none;
}
.header-top .edufit-dropdown > ul li {
  display: block;
  margin: 0;
  padding: 0;
}
.header-top .edufit-dropdown > ul a {
  color: #1a1d2e !important;
  display: block;
  padding: 4px 0;
  white-space: nowrap;
}

/* Smooth AOS / prevent layout flash */
[data-aos] {
  pointer-events: auto;
}
.hero-image-box > img[src*="hero-img1"],
.hero-image-box > img[alt="Maths teacher"] {
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  max-height: 580px;
  width: 100%;
  max-width: 100%;
}
/* hero image stays inside viewport — no negative pull */

/* Nav buttons alignment */
.nav-right-item .nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-right-item .theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  vertical-align: middle;
}

/* Floating shape animations — keep gentle, no harsh reverse */
.hero-wrapper .elements span {
  display: inline-block;
  animation: float-bob-y 3.5s ease-in-out infinite;
}
.hero-wrapper .elements.element_two span {
  animation-delay: 0.4s;
}
.hero-wrapper .elements.element_three span {
  animation-delay: 0.8s;
}
