/*-------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------*/
/* Hero Section */
.hero-wrapper {
  position: relative;
  /* background-color: #fcfcff; */
  background-color: #ffff;
  z-index: 1;
  /* padding: 50px 0px; */
}
.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: -20px;
  height: 550px;
  width: 290px;
  z-index: -1;
}
@media screen and (max-width: 991px) {
  .hero-wrapper .lineanm {
    display: none;
  }
}
.hero-wrapper .lineanm .line {
  fill: none;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: line 2s ease-in-out reverse infinite;
  animation-direction: alternate-reverse;
} */
.hero-wrapper .hero-image-box {
  position: relative;
  z-index: 1;
  /* text-align: right; */
  text-align: center;
  margin-right: -200px;
}
.hero-image-box.desktop-only img {
  object-fit: cover;
}

@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;
  }
}

/*--------- Testimonial Section ------------*/

.testimonial-slider {
  margin-left: -15px;
  margin-right: -15px;
}
.ef-testimonial-item {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px !important;
}
@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;
  }
}

/*================about==============*/
.ef-page-hero {
  /* padding: 125px 0 145px; */
  padding: 80px 0px;
}
.breadcrumb-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-page-hero .page-content ul li {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.ef-page-hero .page-content ul li:after {
  display: inline-block;
  /* content: "\f105";  */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 10px;
  margin-right: 8px;
}

.fa-solid.fa-arrow-up {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
}
/*================about==============*/

/*------Swiper Hero Section-----*/

/* Ensure each slide takes full height */
.heroSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 50px 0px; */
}

/* Hero background full cover */
.hero-wrapper {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  /* padding: 120px 0;  */
}

/* Ensure hero image box styles */
.hero-image-box {
  position: relative;
  max-width: 100%;
}

/* Make Swiper arrows visible */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  transition: 0.3s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 0.7;
}

/* Pagination bullets style */
.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}
.swiper-pagination-bullet-active {
  background: #ff3a6e !important; /* brand color example */
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .heroSwiper {
    height: auto;
  }
  .hero-wrapper {
    /* padding: 80px 0; */
    text-align: center;
  }
  .hero-image-box {
    margin-top: 20px;
  }
}
.hero-image-box img {
  padding-bottom: 50px;
  /* height: 400px; */
}

/*-------------------*/
.ef-category-item.style-one {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  background: #e9f3f1 !important;
}
.ef-category-item.style-one .icon {
  margin-bottom: 15px;
  /* color: #6255fa !important; */
  color: var(--primary-color) !important;
}
/*------==== Telegram Connect Section----===== */
.connect-section {
  /* background: white; */
  border-radius: 15px;
  overflow: hidden;
  /* padding: 90px 0px; */
  padding: 50px 0px;
}

.text-telegram {
  color: var(--primary-color); /* Telegram blue */
}

.connect-heading {
  font-size: 2rem;
  line-height: 1.4;
}

.connect-heading i {
  vertical-align: middle;
  margin-bottom: 8px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .connect-heading {
    font-size: 1.6rem;
  }
}

.btn-telegram {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 20px;
  transition: 0.3s ease;
}

.btn-telegram:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.connect-content h3 {
  font-size: 1.8rem;
}

.connect-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/*-----course-card-section---------*/

.course-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgb(0 0 0 / 39%);
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) */
  transition: all 0.3s ease;
  height: 100%;
  /* border:1px solid gray; */
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.course-img {
  width: 100%;
  /* height: 220px; */
  object-fit: cover;
}

.course-content h5 {
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 1rem;
}

.view-course {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-course:hover {
  color: var(--primary-color);
}

.view-all-btn {
  background-color: var(--primary-color);
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: var(--primary-color);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .course-img {
    /* height: 180px; */
  }
}
/*----pdf---*/
.study-materials-section {
  /* background-color: white; */
  /* padding: 90px 0px; */
  padding: 50px 0px;
}

.list-group-item {
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.list-group-item:hover {
  background-color: #eef6ff;
}

.view-pdf-btn {
  font-weight: 600;
  border-radius: 6px;
}

/*---------- Popup background overlay--------- */
/* Popup background overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show popup */
.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Popup box */
.popup-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  /* max-width: 420px; */
  max-width: 520px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Popup image */
.popup-box img {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4d4d;
  border: none;
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  line-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #ff1a1a;
}

/* Headings & text */
.popup-box h2 {
  margin: 10px 0 5px;
  font-size: 22px;
  color: #333;
}

.popup-box p {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

/* ---------- RESPONSIVE DESIGN ---------- */

/* Small phones (under 480px) */
@media (max-width: 480px) {
  .popup-box {
    /* width: 92%; */
    width: 80%;
    padding: 14px;
    border-radius: 10px;
  }

  .popup-box img {
    /* max-height: 200px; */
    max-height: 380px;
  }

  .popup-box h2 {
    font-size: 18px;
  }

  .popup-box p {
    font-size: 14px;
  }

  .close-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
}

/* Tablets (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .popup-box {
    /* width: 85%; */
    width: 50%;
    padding: 18px;
  }

  .popup-box img {
    max-height: 350px;
  }

  .popup-box h2 {
    font-size: 20px;
  }

  .popup-box p {
    font-size: 15px;
  }
}

/* Laptops & desktops (769px to 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
  .popup-box {
    max-width: 450px;
  }

  .popup-box img {
    max-height: 500px;
  }
}

/* Large screens (above 1200px) */
@media (min-width: 1200px) {
  .popup-box {
    max-width: 500px;
  }

  .popup-box h2 {
    font-size: 24px;
  }

  .popup-box p {
    font-size: 16px;
  }
}

/*------logo----*/
.brand-logo .main-logo {
  width: 180px;
}

.footer-logo a img {
  width: 200px;
}

/* ✅ Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .brand-logo .main-logo {
    width: 140px; /* reduce size for tablets and mobile */
  }

  .footer-logo a img {
    width: 150px;
  }
}

/* ✅ Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
  .brand-logo .main-logo {
    width: 120px; /* smaller for phones */
  }

  .footer-logo a img {
    width: 130px;
  }
}

/*-----------study-material-section-------*/
.study-material-section {
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-weight: 700;
  text-transform: uppercase;
  /* color: #0a3d62; */
}
.subject-card {
  background: #fff;
  border-radius: 12px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.subject-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.subject-card h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.subject-card .btn {
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.subject-card .btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }

  .subject-card {
    padding: 20px;
  }
}

.view-pdf-btn {
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color);
}
.view-pdf-btn:hover {
  background-color: var(--primary-color);
}
.history-section h3 i {
  color: var(--primary-color);
}
@media (max-width: 768px) {
  .ef-page-hero {
    padding: 80px 0 80px;
  }
  .page-title {
    font-size: 42px;
    line-height: 50px;
  }
  .hero-wrapper.second-slider .container .row {
    flex-direction: column-reverse;
  }
}
/*--------*/
.mineral-section {
  padding: 40px 20px;
  background: #f9fafc;
  font-family: Arial, sans-serif;
}

.mineral-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 700;
}

.mineral-section h3 {
  margin-top: 25px;
  font-size: 22px;
  color: #6255fa;
}

.mineral-section h4 {
  margin-top: 20px;
  font-size: 18px;
  color: #555;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* border-left: 5px solid #6255fa; */
}

.card h5 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #6255fa;
}

.card ul {
  margin: 10px 0 0 20px;
}
/*---------*/
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
}
/*----------*/
.resource-link {
  text-decoration: none;
  color: #0a395d;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s ease;
}

.resource-link i {
  background: var(--primary-color);
  padding: 8px;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  transition: 0.3s;
}

.resource-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.resource-link:hover i {
  background: var(--primary-color);
}

.view-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
}
/*---------*/
.focus-box {
  transition: transform 0.3s, box-shadow 0.3s;
}

.focus-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  transition: background 0.3s, transform 0.3s;
}

.focus-box:hover .icon-box {
  background: var(--primary-color);
  transform: scale(1.2);
}

.focus-box h5 {
  font-weight: 600;
  color: #0a395d;
}

.focus-box p {
  font-size: 15px;
  color: #555;
}
.telegram-img {
  width: 500px;
}
/*----------*/

/* Desktop Hero Image Fix */
.hero-image-box.desktop-only img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}

/* Mobile Hero Image Fix */
.hero-image-box.mobile-only img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Remove negative margin — makes layout clean */
.hero-wrapper .hero-image-box {
  margin-right: 0 !important;
  text-align: center;
}
/* Arrows Style */
.swiper-button-next,
.swiper-button-prev {
  color: black !important;
  /* width: 45px;
  height: 45px; */
  /* border-radius: 50%; */
  /* backdrop-filter: blur(4px); */
  opacity: 0.5;
  transition: 0.3s;
  font-size: 18px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: none;
  color: #fff;
}

/* Increase icon size */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 24px !important;
}

/* Hide arrows on very small mobiles */
@media (max-width: 576px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}
/*----------*/
/* Fullscreen Modal */
.search-modal .modal-content {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Close Button */
.close-search {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 30px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 10px;
  z-index: 20;
}
.btn-close.close-search:hover{
 color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
/* Search Center Layout */
.search-container {
  width: 100%;
  max-width: 650px;
  margin: auto;
}

.search-box {
  position: relative;
  margin-bottom: 15px;
}

.search-box input {
  width: 100%;
  background: #ffffff;
  border: none;
  outline: none;
  padding: 14px 55px 14px 20px;
  border-radius: 40px;
  font-size: 18px;
}

/* Icon Right Side */
.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #007bff;
}

/* Result Box */
.search-results {
  background: #fff;
  max-height: 350px;
  overflow-y: auto;
  width: 100%;
  border-radius: 10px;
  padding: 8px;
  display: none;
}

/* Items */
.search-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  transition: 0.25s;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #e9f2ff;
  border-radius: 6px;
}

/* Text & Icon inside item */
.search-item a {
  color: #222;
  text-decoration: none;
  font-size: 16px;
  display: block;
}

.search-item i {
  margin-right: 10px;
  color: #dc3545;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .search-box input {
    font-size: 16px;
    padding: 12px 45px 12px 18px;
  }
}
@media (max-width: 768px) {
  .close-search i {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px auto;
  }
}
/*--------*/
.resource-title a {
  font-size: 22px !important;
}
@media (max-width: 576px) {
  .resource-title a {
    font-size: 14px !important;
  }
  .view-text {
    font-size: 12px;
  }
  .resource-link i {
    font-size: 14px;
    padding: 5px;
  }
}
/*----------*/
@keyframes floatAnimation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-call-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #6255fa;
  color: white;
  font-size: 16px;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;

  /* ⭐ ADD THIS */
  animation: floatAnimation 2s ease-in-out infinite;
}
.floating-call-btn:hover {
  background-color: #6255fa;
  color: white;
}
.floating-call-btn:hover {
  animation-play-state: paused;
}
.footer-widget.footer-nav-widget,.footer-widget.footer-newsletter-widget{
  margin-top: 20px;
}
.mineral-page-img img{
  width: 500px;
}