@import url("https://fonts.googleapis.com/css2?family=Andada+Pro:ital,wght@0,400;0,600;1,400;1,600&display=swap");

/* global Variable */
:root {
  --main: #ef2006;
  --black: #000;
  --white: #fff;
  --font_family: "Montserrat";
  --color-bg: #1f2641;
  --color-bg1: #2e3267;
  --color-bg2: #424890;
  --color-primary: #6c63ff;
  --color-success: #00bf8e;
  --color-warning: #f7c94b;
  --color-danger: #f75842;
  --container-width-lg: 76%;
  --container-width-md: 90%;
  --container-width-sm: 94%;

  --transition: all 400ms ease;
}
body {
  background: var(--color-bg) !important;
  color: var(--white) !important;
  font-family: var(--font_family);
}
/* popup code */
body {
   font-family: Arial, sans-serif;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  z-index: 9999;
  text-align: center;
  animation: fadeIn 0.5s;
}

.popup-content {
  max-width: 90%;
  margin: 0 auto;
}

.popup h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.popup p {
  font-size: 16px;
  margin-bottom: 20px;
}

.popup-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.popup-btn:hover {
  background-color: #0056b3;
}

.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .popup {
    width: 80%;
  }
}

.clocks {
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 3rem;
  left: 2rem;
  z-index: 45;
  /* background: linear-gradient(135deg, #8052ec, #d161ff); */
}
.clocks div {
  position: relative;
  /* background-color: #fff; */
  height: 100%;
  width: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "open Sans", sans-serif;
  font-size: 2rem;
  color: orangered;
  border-radius: 5px;
}
.clocks span {
  font-size: 2rem;
  font-weight: bolder;
  color: var(--white);
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}
* {
  margin: 0;
  outline: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 0.4s;
  text-decoration: none !important;
  text-decoration: none;
  list-style: none;
  /* position: relative; */
}
.btn {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 1rem 2rem;
  border: 1px solid transparent;
  font-weight: 500;
  transition: var(--transition);
}
h4 {
  font-size: 1.3rem;
}
.btn:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-primary {
  background: var(--color-danger);
  color: var(--white);
}
*::selection {
  background: var(--main);
  color: var(--white) !important;
}
html::-webkit-scrollbar {
  width: 10px;
}
html::-webkit-scrollbar-track {
  background: #333;
}
html::-webkit-scrollbar-thumb {
  background: var(--main);
}
/* html body {
  overflow-x: hidden;
} */
/* preloader starts */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  background: lightgrey;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader img {
  width: 100px;
  height: 100px;
}

.disppear {
  animation: vanish 1s forwards;
}
@keyframes vanish {
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
/* preloader ends */

/* navbar begins */
nav {
  /* background: purple; */
  width: 100vw;
  height: 5rem;
  top: 0;
  position: fixed;
  z-index: 11;
}
.window-scroll {
  background: purple;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  transition: all 3s;
}
.wind .nav_container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav button {
  display: none;
}
.nav_menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* navlink an class inside */

.navlink::before {
  content: "";
  background: var(--main);
  height: 0.125rem;
  width: 0px;
  display: block;
  position: absolute;
  transition: 0.4s;
}
.navlink:hover::before {
  width: 2.5rem;
}
.navlink:hover {
  color: var(--main) !important;
}
.nav_menu a {
  font-size: 0.9rem;
  transition: all 1s ease;
}

/* Navbar section ends */
/* slider starts */
.slider {
  position: relative;
  width: 100%;
  background: #2c3e50;
}
.myslider {
  height: 40.9375rem;
  display: none;
  overflow: hidden;
}
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  font-size: 3.125rem;
  padding: 0.9375rem;
  cursor: pointer;
  /* color: var(--white); */
  transition: 0.5s;
  user-select: none;
  color: red;
  font-size: 1.875rem;
}
.prev:hover,
.next:hover {
  color: #3498db;
}
.next {
  right: 0;
}
.dotsbox {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: 1.25rem;
  cursor: pointer;
}
.dot {
  display: inline-block;
  width: 0.9375rem;
  height: 0.9375rem;
  border: 0.1875rem solid #fff;
  margin: 0 0.6rem;
  border-radius: 50%;
}
.active,
.dot:hover {
  border-color: #3498db;
}

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}
@-webkit-keyframes fade {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}
.txt {
  position: absolute;
  color: #fff;
  letter-spacing: 2px;
  line-height: 35px;
  top: 70%;
  left: 15%;
  animation: posi 2s;
  z-index: 1;
}
@-webkit-keyframes posi {
  from {
    left: 25%;
  }
  to {
    left: 15%;
  }
}
@keyframes posi {
  from {
    left: 25%;
  }
  to {
    left: 15%;
  }
}
.txt h1 {
  color: #3498db;
  font-weight: bold;
  margin: 20px;
}
.txt p {
  font-weight: bold;
  font-size: 20px;
}
.myslider img {
  transform: scale(1.5, 1.5);
  object-fit: cover;
  -webkit-animation-name: zoomin;
  -webkit-animation-duration: 40s;
  animation-name: zoomin;
  animation-duration: 40s;
}
@-webkit-keyframes zoomin {
  from {
    transform: scale(1, 1);
  }
  to {
    transform: scale(1.5, 1.5);
  }
}
@keyframes zoomin {
  from {
    transform: scale(1, 1);
  }
  to {
    transform: scale(1.5, 1.5);
  }
}

/* responsiveness */
@media screen and (max-width: 600px) {
  .slider{
    /* max-width: 100%; */
    width: 100%;
  }
  .myslider {
    height: 500px;
  }
  .txt {
    line-height: 25px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-animation-name: posi2;
    -webkit-animation-duration: 2s;
    animation-name: posi2;
    animation-duration: 2s;
  }
  @-webkit-keyframes posi2 {
    from {
      top: 35%;
    }
    to {
      top: 50%;
    }
  }
  @keyframes posi2 {
    from {
      top: 35%;
    }
    to {
      top: 50%;
    }
  }
  .txt h1 {
    font-size: 40px;
  }
  .txt p {
    font-size: 13px;
  }
}
/* Media queries for responsiveness */
@media (max-width: 767px) {
  /* Styles for small screens */
  .slider{
    /* max-width: 100%; */
    width: 100%;
  }
  .txt h1 {
    font-size: 20px;
  }

  .txt p {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Styles for medium screens */
  .slider{
    /* max-width: 100%; */
    width: 100%;
  }
  .txt h1 {
    font-size: 22px;
  }

  .txt p {
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  /* Styles for large screens */
  .slider{
    /* max-width: 100%; */
    width: 100%;
  }
  .txt h1 {
    font-size: 24px;
  }

  .txt p {
    font-size: 18px;
  }
}

/* slider ends */
/* About us section on index page starts */
.categories{
  background: var(--color-bg1);
  height: 55rem;
}
h1{
  line-height: 1;
  margin-bottom: 3rem;
}
.categories_container{
  display: grid;
  grid-template-columns: 40% 60%;
}
.categories_left{
  margin-left: 4rem;
}
.categories_left p{
  margin: 1rem 0.5rem 3rem;
}
.categories_left .btn{
  border-radius: 5px;
  background: #3498db;
  box-shadow: 10px 10px 10px -10px rgba(136, 18, 190, 0.7),
    inset 10px 10px 10px -10px rgba(12, 170, 64, 0.9);
  color: whitesmoke;
}
.categories_right{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.category{
  background: var(--color-bg2);
  padding: 1rem;
  border-radius: 2rem;
  transition: var(--transition);
  /* height: 2rem; */
}
.category h4{
  color: goldenrod;
  font-weight: bolder;
  margin: 1rem 0 0;
}
.category p{
  font-size: 0.85rem;
  text-align: justify;
}
.category_icon {
  background: var(--color-primary);
  padding: 0.7rem;
  border-radius: 0.9rem;
}
.category:hover{
  box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
  z-index: 1;

}
.category:nth-child(2) .category_icon{
  background: #3498db;
}
.category:nth-child(3) .category_icon{
  background: orange;
}
.category:nth-child(4) .category_icon{
  background: seagreen;
}
.category:nth-child(5) .category_icon{
  background: lightseagreen;
}
.category:nth-child(6) .category_icon{
  background: var(--color-success);
}
/* About us section on index page ends */
/* courses section starts */
.courses{
  margin-top: 10rem;
}
.courses_container{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.course{
  background: var(--color-bg1);
  text-align: center;
  border: 1px solid transparent;
  box-shadow: 10px 10px 10px -10px rgba(0, 0, 0, 0.4),
    inset 10px 10px 10px -10px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.25em;
  transition: all var(--transition);
}
.course:hover{
  box-shadow: 10px 10px 10px -10px rgba(136, 18, 190, 0.7),
    inset 10px 10px 10px -10px rgba(12, 170, 64, 0.9);
}
.course_info{
  padding: 2rem;
}
.course_info p{
  margin: 1.2rem 0 2rem;
  text-align: justify;
  font-size: 0.9rem;
}
.course_image img {
  width: 350px;
  height: 250px;
}
.course_info .btn{
  border-radius: 5px;
  background: #3498db;
  box-shadow: 10px 10px 10px -10px rgba(136, 18, 190, 0.7),
    inset 10px 10px 10px -10px rgba(12, 170, 64, 0.9);
  color: whitesmoke;
}
/* courses section ends */
/* Testimonial starts*/
.testimonials_container{
  overflow-x: hidden;
  position: relative;
  margin-bottom: 5rem;
}
.testimonial{
  padding-top: 2rem;
}
.avatar{
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 1rem solid var(--color-bg1);
}
.testimonial_info{
  text-align: center;
}
.testimonial_body{
  background: var(--color-primary);
  padding: 2rem;
  margin-top: 3rem;
  position: relative;
}
.testimonial_body::before{
  content: "";
  display: block;
  background: linear-gradient(transparent, var(--color-primary), var(--color-primary));
  width: 3rem;
  height: 3rem;
  position: absolute;
  left: 50%;
  top: -1.5rem;
  transform: rotate(45deg);
}

/* Testimonials ends */

/*footer */
.footer {
  background: var(--color-bg1);
  padding-top: 3rem;
  font-size: 0.9rem;
}
.footer_container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
footer a {
  color: var(--white);
}
.footer_container > div h4 {
  margin-bottom: 1.2rem;
}

footer ul li {
  margin-bottom: 0.7rem;
}
footer ul li a:hover {
 border-bottom: 1px solid goldenrod;
  color: var(--main) !important;
  transition: var(--transition);
}
.footer3 p {
  font-size: 0.725rem;
}
.footer_socials {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
  margin-top: 2rem;
}
.footer-copyright {
  margin: 1rem 0 0 4rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--color-bg2);
  color: whitesmoke;
  font-size: 1.125em;
  position: relative;
}
#no2 {
  position: absolute;
  right: 2.5em;
  bottom: 1em;
}
/* Footer ends */
/* media queries responsive TABLETS */
@media screen and (max-width: 1024px) {
  .container {
    width: var(--container-width-md);
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  h4 {
    font-size: 1.2rem;
  }
  /* why chose us responsive starts*/
  .categories{
    height: auto;
  }
  .categories_container{
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .categories_left{
    margin-right: 0;
  }
  /* why choose us ends */
  /* popular courses section */
  .courses{
    margin-top: 0;
  }
  .courses_container{
    grid-template-columns: 1fr 1fr;
  }
  .course_image img{
    width: 100%;
  }
    /* popular courses section ends*/ 
}
/* more responsive on footer */
/* Media queries for responsiveness */

/* Mobile Devices */
@media (max-width: 767px) {
  .footer_container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer2,
  .footer3,
  .footer4 {
    margin-top: 2rem;
  }

  .footer-copyright {
    margin: 1rem 0;
    padding: 1rem 0;
    text-align: center;
  }

  #no2 {
    position: static;
    display: block;
    margin-top: 1rem;
  }
}

/* Tablets and Small Screens */
@media (min-width: 768px) and (max-width: 991px) {
  .footer_container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Large Screens */
@media (min-width: 992px) {
  .footer_container {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}
/* more of footer responsive ends */
/* media queries responsive PHONES */
@media screen and (max-width: 600px) {
  .container {
    width: var(--container-width-sm);
  }
  h1 {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 0.7rem;
  }
  h3 {
    font-size: 0.4rem;
  }
  h4 {
    font-size: 0.2rem;
  }
  /* navbar responsive AT 600PX*/
    .nav_menu {
    right: 3%;    
  }
  /* categories at 600px */
  .categories_right{
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
  .category{
    padding: 1rem;
    border-radius: 1rem;
  }
  .category_icon{
    margin-top: 4px;
    display: inline-block;
  }
  /* Popular course section at 600px */
  .courses_container{
    grid-template-columns: 1fr;
  }
  /* testimonials section */
  .testimonial_body{
    padding: 1.2rem;
  }
}
