:root {

  /**
   * colors
   */

  --selective-yellow: hsl(42, 94%, 55%);
  --eerie-black-1: hsl(0, 0%, 9%);
  --eerie-black-2: hsl(180, 3%, 7%);
  --quick-silver: hsl(0, 0%, 65%);
  --radical-red: hsl(351, 83%, 61%);
  --light-gray: hsl(0, 0%, 80%);
  --isabelline: hsl(36, 33%, 94%);
  --gray-x-11: hsl(0, 0%, 73%);
  --kappel_15: hsla(170, 75%, 41%, 0.15);
  --platinum: hsl(0, 0%, 90%);
  --gray-web: hsl(0, 0%, 50%);
  --black_80: hsla(0, 0%, 0%, 0.8);
  --white_50: hsla(0, 0%, 100%, 0.5);
  --black_50: hsla(0, 0%, 0%, 0.5);
  --black_30: hsla(0, 0%, 0%, 0.3);
  --kappel: hsl(170, 75%, 41%);
  --white: hsl(0, 0%, 100%);

  /**
   * gradient color
   */

  --gradient: linear-gradient(-90deg,hsl(151, 60%, 39%) 0%,hsl(170, 47%, 46%) 100%);

  /**
   * typography
   */

  --ff-league_spartan: 'League Spartan', sans-serif;
  --ff-poppins: 'Poppins', sans-serif; 

  --fs-1: 4.2rem;
  --fs-2: 3.2rem;
  --fs-3: 2.3rem;
  --fs-4: 1.8rem;
  --fs-5: 1.5rem;
  --fs-6: 1.4rem;
  --fs-7: 1.3rem;

  --fw-500: 500;
  --fw-600: 600;

  /**
   * spacing
   */

  --section-padding: 75px;

  /**
   * shadow
   */

  --shadow-1: 0 6px 15px 0 hsla(0, 0%, 0%, 0.05);
  --shadow-2: 0 10px 30px hsla(0, 0%, 0%, 0.06);
  --shadow-3: 0 10px 50px 0 hsla(220, 53%, 22%, 0.1);

  /**
   * radius
   */

  --radius-pill: 500px;
  --radius-circle: 50%;
  --radius-3: 3px;
  --radius-5: 5px;
  --radius-10: 10px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a,
img,
span,
data,
input,
button,
ion-icon { display: block; }


a {
  color: inherit;
  text-decoration: none;
}

img { height: auto; }

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input { width: 100%; }

button { cursor: pointer; }

ion-icon { pointer-events: none; }

address { font-style: normal; }

html {
  font-family: var(--ff-poppins);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: #f0e5e5e3;
  color: var(--gray-web);
  font-size: 1.6rem;
  line-height: 1.75;
}

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track { background-color: hsl(0, 0%, 96%); }

::-webkit-scrollbar-thumb { background-color: hsl(0, 0%, 80%); }

::-webkit-scrollbar-thumb:hover { background-color: hsl(0, 0%, 70%); }

.container { padding-inline: 15px; }

.section { padding-block: var(--section-padding); }

.shape {
  position: absolute;
  display: none;
}

.has-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.h1,
.h2,
.h3 {
  color: var(--eerie-black-1);
  font-family: var(--ff-league_spartan);
  line-height: 1;
}

.h1_top{
  color:hsl(0, 0%, 100%)
}

.h1,
.h2 { font-weight: var(--fw-600); }

.h1 { font-size: var(--fs-1); }

.h2 { font-size: var(--fs-2); }

.h3 {
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
}

.section-title {
  --color: #ff8840;
  text-align: center;
}

.section-title .span {
  display: inline-block;
  color: var(--color);
}

.btn {
  background-color: var(--kappel);
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-4);
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: max-content;
  padding: 10px 20px;
  border-radius: var(--radius-5);
  overflow: hidden;
}

.has-before,
.has-after {
  position: relative;
  z-index: 1;
}

.has-before::before,
.has-after::after {
  position: absolute;
  content: "";
}

.btn::before {
  inset: 0;
  background-image: var(--gradient);
  z-index: -1;
  border-radius: inherit;
  transform: translateX(-100%);
  transition: var(--transition-2);
}

.btn:is(:hover, :focus)::before { transform: translateX(0); }

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-subtitle {
  font-size: var(--fs-5);
  text-transform: uppercase;
  font-weight: var(--fw-500);
  letter-spacing: 1px;
  text-align: center;
  margin-block-end: 15px;
}

.section-text {
  font-size: var(--fs-5);
  text-align: center;
  margin-block: 15px 25px;
}

.grid-list {
  display: grid;
  gap: 30px;
}

.category-card{ 
  margin-top: 4%;
  background-color: white;
  border-style: solid;
  border-width: 2px;
  width: 100%;
 }

:is(.course, .blog) .section-title { margin-block-end: 40px; }

.header .btn { display: none; }

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding-block: 12px;
  box-shadow: var(--shadow-1);
  z-index: 4;
}

.header.active { position: fixed; }

.header .container,
.header-actions,
.navbar .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.header-action-btn,
.nav-close-btn {
  position: relative;
  color: var(--eerie-black-1);
  font-size: 24px;
  transition: var(--transition-1);
}

.header-action-btn:is(:hover, :focus) { color: var(--kappel); }

.header-action-btn .btn-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--kappel);
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-6);
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-circle);
}

.navbar {
  position: fixed;
  top: 0;
  left: -320px;
  background-color: var(--white);
  width: 100%;
  max-width: 320px;
  height: 100%;
  z-index: 2;
  transition: 0.25s var(--cubic-in);
}

.navbar.active {
  transform: translateX(320px);
  transition: 0.5s var(--cubic-out);
}

.navbar .wrapper {
  padding: 15px 20px;
  border-block-end: 1px solid var(--platinum);
}

.nav-close-btn {
  background-color: var(--white);
  box-shadow: var(--shadow-2);
  padding: 8px;
  border-radius: var(--radius-circle);
}

.nav-close-btn:is(:hover, :focus) {
  background-color: var(--kappel);
  color: var(--white);
}

.navbar-list { padding: 15px 20px; }

.navbar-item:not(:last-child) { border-block-end: 1px solid var(--platinum); }

.navbar-link {
  padding-block: 8px;
  font-weight: var(--fw-500);
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus) { color: var(--kappel); }

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--black_80);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}





/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero { padding-block-start: calc(var(--section-padding) + 80px);
  padding-bottom: 100px; }

.hero .container {
  display: grid;
  gap: 40px;
}

.hero-text {
  color: var(--eerie-black-1);
  font-size: 2rem;
  text-align: center;
  margin-block: 18px 20px;
  font-weight: 450;
}

.hero .btn { margin-inline: auto; }

.hero-banner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: flex-start;
  gap: 30px;
}

.hero-banner .img-holder.one {
  border-top-right-radius: 70px;
  border-bottom-left-radius: 110px;
}

.hero-banner .img-holder.two {
  border-top-left-radius: 50px;
  border-bottom-right-radius: 90px;
}





/*-----------------------------------*\
  #CATEGORY
\*-----------------------------------*/

.category .section-subtitle { color: var(--radical-red); }

.category .section-title { --color: var(--kappel); }

.category .section-text { margin-block-end: 40px; }

.category-card {
  padding: 50px 30px;
  text-align: center;
  border-radius: var(--radius-5);
}

.category-card .card-icon {
  background-color: hsla(var(--color), 0.1);
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-circle);
  margin-inline: auto;
  margin-block-end: 30px;
}

.category-card .card-text {
  color: var(--eerie-black-1);
  font-size: var(--fs-5);
  margin-block: 15px 25px;
}

.category-card .card-badge {
  background-color: hsla(var(--color), 0.1);
  color: hsl(var(--color));
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  padding: 2px 18px;
  max-width: max-content;
  margin-inline: auto;
  border-radius: var(--radius-5);
}





/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about {
  padding-block-start: 0;
  overflow: hidden;
  margin-bottom: 0%;
}

.about .container {
  display: grid;
  gap: 30px;
}

.about-banner {
  position: relative;
  z-index: 1;
}

.about-banner .img-holder { border-radius: var(--radius-10); }

.about-shape-2 {
  display: block;
  bottom: -100px;
  left: -60px;
  animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% { transform: translateY(0); }

  40% { transform: translateY(-30px); }

  60% { transform: translateY(-15px); }
}

.about :is(.section-subtitle, .section-title, .section-text) {
  text-align: left;
}

.about-item {
  margin-block: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-item ion-icon {
  color: var(--selective-yellow);
  font-size: 20px;
  --ionicon-stroke-width: 50px;
}

.about-item .span {
  color: var(--eerie-black-1);
  font-family: var(--ff-league_spartan);
}


/* Testimonials */
/* -------------------- */
.testimonial-section {
  background-color: #ffffff;
  background-position: center;
  padding: 10px 20px;
  color: #fff;
  text-align: center;
}

.testimonial-header h3 {
  color: black;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  font-weight: 500;
}

.testimonial-header h1 {
  color: black;
  font-size: 2.8rem;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.testimonial-slider {
  display: flex;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  gap:4px;
}

.testimonial-slide {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  justify-content: space-between;
  transition: transform 0.8s ease-in-out; /* Sliding animation */
}

.testimonial {
  border-radius: 12px;
  padding: 25px;
  flex: 0 0 48%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
  background-color: #497fb3;
}

.testimonial-content p {
  font-size: 1.7rem;
  margin-bottom: 20px;
  font-style: italic;
  color: #eaeaea;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border: 3px solid #fff;
}

.author-info h4 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  font-weight: 700;
  color: #fff;
}

.author-info p {
  font-size: 1.4rem;
  color: #ddd;
}

@media screen and (max-width: 768px) {
  .testimonial-slide {
      flex-direction: column;
      flex-wrap: nowrap;
  }
  .testimonial {
      flex: 0 0 0%;
      margin: 0 10px;
      margin-bottom: 3%;
  }
}
.slider-indicators {
  text-align: center;
  margin-top: 20px; /* Adjust spacing as needed */
}

.indicator {
  display: inline-block;
  width: 10px; /* Size of the dots */
  height: 10px; /* Size of the dots */
  background-color: #000000; /* Color of the dots */
  border-radius: 50%; /* Make dots round */
  margin: 0 5px; /* Spacing between dots */
  opacity: 0.6; /* Default opacity */
}

.indicator.active {
  background-color: rgb(15, 255, 255);
  opacity: 5; /* Highlight the active dot if you choose to use it later */
}

/* ------------- */
/* Universities */
.featured-universities {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 10px;
  padding: 20px;
}

.university-item {
  display: block;
  width: 200px; /* Default size for desktop */
  height: auto;
}

.university-item img {
  width: 100%;
  height: auto;
  border-radius: 8px; /* Optional: for rounded corners */
  transition: transform 0.3s ease;
}

.university-item img:hover {
  transform: scale(1.05); /* Optional: for hover effect */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .university-item {
      width: calc(50% - 10px); /* Two items per row on medium screens */
  }
}

@media (max-width: 480px) {
  .university-item {
      width: calc(50% - 10px); /* Two items per row on small screens */
  }
}


/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-repeat: no-repeat;
  background-color: hsla(240, 53.1%, 12.5%, 0.92);
  color: var(--gray-x-11);
  font-size: var(--fs-5);
  padding: 40px 0;
}

/* Flexbox Layout */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand, .footer-list-container, .footer-form {
  flex: 1 1 30%; /* Make each section flexible */
  min-width: 250px; /* Ensure a minimum width for each section */
}

.footer-brand-text {
  margin-block: 20px;
}

/* Contact Information Wrappers */
.footer-brand .wrapper {
  display: flex;
  gap: 5px;
}

.footer-brand .wrapper .span {
  font-weight: var(--fw-500);
}

/* Footer Links */
.footer-list-title {
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  margin-block-end: 10px;
}

.footer-list {
  margin-block-end: 20px;
}

.footer-link {
  /* padding-block: 5px; */
  color: var(--gray-x-11);
  transition: color 0.3s;
  display: inline;
}

.footer-link:is(:hover, :focus) {
  color: var(--kappel);
}

/* Social Links */
.social-links {
  margin-block-start: 20px;
}

.social-links .span{
  color:white
}

.about-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-x-11);
}

.about-item ion-icon {
  font-size: 24px;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-field {
  background-color: var(--white);
  padding: 12px;
  border-radius: var(--radius-5);
  border: 1px solid #ddd;
}

.newsletter-form .btn {
  padding: 12px;
  background-color: var(--kappel);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

.newsletter-form .btn:hover {
  background-image: var(--gradient);
}

/* Footer Bottom */
.footer-bottom {
  border-block-start: 1px solid var(--eerie-black-1);
  padding-block: 20px;
  text-align: center;
  color: var(--gray-x-11);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    align-items: left;
  }
}

/* Ensure all input fields, including textarea, have the same width */
.newsletter-form .input-group, .newsletter-form .input-group-horizontal {
  display: flex;
  flex-direction: column;
}

.input-field {
  background-color: var(--white);
  padding: 12px;
  border-radius: var(--radius-5);
  border: 1px solid #ddd;
  box-sizing: border-box; /* Include padding and border in the element's total width */
  width: 100%; /* Ensure full-width for input fields */
}

/* Make textarea consistent with input fields */
textarea.input-field {
  resize: vertical; /* Allows vertical resizing only */
  width: 100%;
}

/* Specific adjustment to ensure consistency */


/* Ensuring consistent width for all input fields */
.input-group {
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 575px) {
  .input-group textarea.input-field {
    width: 100%; /* Full width on small screens */
  }
}

@media (min-width: 768px) {
  .newsletter-form{
    width:80% ;
  }
}

@media (min-width: 992px) {
  .newsletter-form{
    width:100% ;
  }
  .footer .grid-list { 
    grid-template-columns: 1fr 0.6fr 0.6fr 1.2fr;
  }
}

/* ====FOOTER'S RESULT===== */
/* Basic styling for the popup notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: none; /* Initially hidden */
  z-index: 1000; /* Ensures it appears above other content */
  max-width: 90%; /* Responsive width */
  word-wrap: break-word; /* Handle long messages */
}

/* Adjustments for smaller screens */
@media (max-width: 600px) {
  .notification {
    top: 10px;
    right: 10px;
    padding: 10px;
  }
}



/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background-color: var(--kappel);
  color: var(--white);
  font-size: 20px;
  padding: 15px;
  border-radius: var(--radius-circle);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
}

.back-top-btn.active {
  transform: translateY(10px);
  opacity: 1;
  pointer-events: all;
}





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {
  .container {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
  .grid-list { grid-template-columns: 1fr 1fr; }
  :is(.course, .blog) .grid-list { grid-template-columns: 1fr; }

  /* Header */
  .header .container { max-width: unset; }
  .header-actions { gap: 30px; }

  /* Hero */
  .hero-banner { grid-template-columns: 1fr 0.9fr; }
  .hero{
    padding-bottom: 100px;
  }
}

/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  :root {
    --fs-1: 4.6rem;
    --fs-2: 3.8rem;
  }
  .container { max-width: 720px; }
  .btn { padding: 15px 30px; }
  :is(.course, .blog) .grid-list { grid-template-columns: 1fr 1fr; }

  /**
   * HEADER
   */
  .header .container { padding-inline: 30px; }
  .header .btn {
    display: flex;
    padding: 10px 30px;
    margin-inline: 20px;
  }

  /**
   * HERO
   */
  .hero { padding-block-start: calc(var(--section-padding) + 90px);
  padding-bottom: 120px; }
  .hero .container { gap: 50px; }
  .hero-text { margin-block-end: 30px; }
  .hero-banner {
    position: relative;
    z-index: 1;
  }
  .hero-banner .img-holder { max-width: max-content; }
  .hero-banner .img-holder.one { justify-self: flex-end; }
  .hero-banner .img-holder.two { margin-block-start: 100px; }
  .hero-shape-1 {
    display: block;
    position: absolute;
    bottom: -40px;
    left: -10px;
  }

  /**
   * ABOUT
   */
  .about { padding-block-start: 50px; }
  .about-banner {
    padding: 60px;
    padding-inline-end: 0;
  }
  .about-banner .img-holder {
    max-width: max-content;
    margin-inline: auto;
  }
  .about-shape-1 {
    display: block;
    top: -40px;
    right: -70px;
  }
}

/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {
  :root {
    --fs-1: 5.5rem;
    --fs-2: 4.5rem;
  }

  .container { max-width: 960px; }
  .grid-list { grid-template-columns: repeat(4, 1fr); }
  :is(.course, .blog) .grid-list { grid-template-columns: repeat(3, 1fr); }

  /**
   * HERO
   */
  .hero .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hero .section-title,
  .hero-text { text-align: left; }
  .hero .btn { margin-inline: 0; }

  /**
   * ABOUT
   */
  .about .container {
    grid-template-columns: 1fr 0.6fr;
    align-items: center;
    gap: 60px;
  }

  /**
   * VIDEO
   */
  .video-banner {
    max-width: 75%;
    margin-inline: auto;
  }

}

/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {
  :root {
    --fs-1: 6.5rem;
    --section-padding: 120px;
  }

  .container { max-width: 1185px; }
  .shape { display: block; }
  .about-content,
  .video-card,
  .blog { position: relative; }

  /**
   * HEADER
   */
  .header-action-btn:last-child,
  .navbar .wrapper,
  .overlay { display: none; }
  .header.active {
    transform: translateY(-100%);
    animation: slideIn 0.5s ease forwards;
  }

  @keyframes slideIn {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
  }

  .navbar,
  .navbar.active { all: unset; }
  .navbar-list {
    display: flex;
    gap: 50px;
    padding: 0;
  }

  .navbar-item:not(:last-child) { border-block-end: none; }
  .navbar-link {
    color: var(--eerie-black-1);
    padding-block: 20px;
  }
  .header .btn { margin-inline-end: 0; }



  /**
   * HERO
   */
  .hero { padding-block-start: calc(var(--section-padding) + 120px); 
  padding-top: 150px;}
  .hero .container { gap: 80px; }
  .hero-shape-2 {
    top: -80px;
    z-index: -1;
  }

  /**
   * ABOUT
   */
  .about .container { gap: 110px; }
  .about-banner .img-holder { margin-inline: 0; }
  .about-shape-3 {
    top: -20px;
    left: -100px;
    z-index: -1;
  }
  .about-content { z-index: 1; }
  .about-shape-4 {
    top: 30px;
    right: -60px;
    z-index: -1;
  }

  /**
   * BLOG
   */
  .blog-shape {
    top: 0;
    left: 0;
  }
  #list1{margin-left: 50%}
}

@media (min-width: 1450px) {
  .hero { 
    padding-bottom: 170px;
  }

}