* {
  margin: 0;
  padding: 0;
  color: #f2f5f7;
  font-family: sans-serif;
  letter-spacing: 1px;
  font-weight: 300;
}
body {
  overflow-x: hidden;
  background-color: black;
  color: white;
}

/* Nav Starts Here*/

nav {
  height: 6rem;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  position: fixed;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
}

@supports (
  (-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))
) {
  nav {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.logo {
  padding: 1vh 1vw;
  text-align: center;
}
.logo img {
  height: 5rem;
  width: 5rem;
}
.nav-links {
  display: flex;
  list-style: none;
  width: 88vw;
  padding: 0 0.7vw;
  justify-content: space-evenly;
  align-items: center;
  text-transform: uppercase;
}
.nav-links li a {
  text-decoration: none;
  margin: 0 0.7vw;
  color: #f2f5f7; /* Ensure the default color is set */
  -webkit-transition: #61dafb 0.3s ease; /* For Safari and older Chrome */
  -moz-transition: #61dafb 0.3s ease; /* For older Firefox */
  -o-transition: #61dafb 0.3s ease; /* For older Opera */
  transition: #61dafb 0.3s ease; /* Standard syntax */
}

.nav-links li a:hover {
  color: #61dafb; /* Change color on hover */
}
.nav-links li {
  position: relative;
}
.nav-links li a::before {
  content: "";
  display: block;
  height: 3px;
  width: 0%;
  background-color: #61dafb;
  position: absolute;
  transition: all ease-in-out 250ms;
  margin: 0 0 0 10%;
}
.nav-links li a:hover::before {
  width: 80%;
}
.hamburger div {
  width: 30px;
  height: 3px;
  background: #f2f5f7;
  margin: 5px;
  transition: all 0.3s ease;
}
.hamburger {
  display: none;
}
@media screen and (max-width: 800px) {
  nav {
    position: fixed;
    z-index: 3;
  }
  .hamburger {
    display: block;
    position: absolute;
    cursor: pointer;
    right: 5%;
    top: 50%;
    transform: translate(-5%, -50%);
    z-index: 2;
    transition: all 0.7s ease;
  }
  .nav-links {
    position: fixed;
    background: #131418;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    -webkit-clip-path: circle(50px at 90% -10%);
    clip-path: circle(50px at 90% -20%);
    transition: all 1s ease-out;
    pointer-events: none;
  }
  .nav-links.open {
    -webkit-clip-path: circle(1000px at 90% -10%);
    clip-path: circle(2000px at 90% -10%);
    pointer-events: all;
  }
  .nav-links li {
    opacity: 0;
  }
  .nav-links li:nth-child(1) {
    transition: all 0.5s ease 0.2s;
  }
  .nav-links li:nth-child(2) {
    transition: all 0.5s ease 0.4s;
  }
  .nav-links li:nth-child(3) {
    transition: all 0.5s ease 0.6s;
  }
  .nav-links li:nth-child(4) {
    transition: all 0.5s ease 0.7s;
  }
  .nav-links li:nth-child(5) {
    transition: all 0.5s ease 0.8s;
  }
  .nav-links li:nth-child(6) {
    transition: all 0.5s ease 0.9s;
    margin: 0;
  }
  .nav-links li:nth-child(7) {
    transition: all 0.5s ease 1s;
    margin: 0;
  }
  li.fade {
    opacity: 1;
  }
}
.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  transition: all 0.7s ease;
  width: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/*Navigation Ends Here*/

/* This is for the dropdown menu */

/* Container */
.container {
  display: flex;
  justify-content: center;
  background: linear-gradient(to right, #ff7e5f, #feb47b);
  height: 50rem;
  flex-direction: column;
  align-items: center;
}

/* Form */
.custom-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16rem;
  height: 20rem;
  padding: 20px;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Form Hover Effect */
.custom-form:hover {
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.7); /* Darker shadow on hover */
  transform: scale(1.01); /* Slight scale-up for fancy effect */
}

/* Dropdown Menu Container */
.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 20rem;
  margin: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Dropdown Button */
.dropdown-btn {
  background-color: #6ec1e4;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.dropdown-btn:after {
  content: "\25BC";
  float: right;
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #6ec1e4;
  min-width: 100%;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #4f9ec1;
}

/* Show Dropdown */
.show {
  display: block;
}

/* Button */
.beautiful-btn {
  margin-top: 5rem;
  background: linear-gradient(to right, #f79d00, #64f38c);
  border: none;
  border-radius: 20px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  padding: 15px 30px;
  text-transform: uppercase;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beautiful-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.3);
}

.beautiful-btn:active {
  transform: translateY(-2px);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */

/* Small phones (portrait) */
@media (max-width: 320px) {
  .custom-form {
    width: 14rem;
    height: 18rem;
  }

  .custom-dropdown {
    width: 18rem;
  }

  .dropdown-btn {
    font-size: 14px;
    padding: 8px;
  }

  .beautiful-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Small to medium phones (portrait) */
@media (min-width: 321px) and (max-width: 480px) {
  .custom-form {
    width: 15rem;
    height: 19rem;
  }

  .custom-dropdown {
    width: 19rem;
  }

  .dropdown-btn {
    font-size: 15px;
    padding: 9px;
  }

  .beautiful-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

/* Medium to large phones (portrait) */
@media (min-width: 481px) and (max-width: 767px) {
  .custom-form {
    width: 16rem;
    height: 20rem;
  }

  .custom-dropdown {
    width: 20rem;
  }

  .dropdown-btn {
    font-size: 16px;
    padding: 10px;
  }

  .beautiful-btn {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

/* Tablets (portrait) */
@media (min-width: 768px) and (max-width: 1024px) {
  .custom-form {
    width: 18rem;
    height: 22rem;
  }

  .custom-dropdown {
    width: 22rem;
  }

  .dropdown-btn {
    font-size: 17px;
    padding: 12px;
  }

  .beautiful-btn {
    padding: 18px 35px;
    font-size: 1.05rem;
  }
}
/*DropDown Ends Here*/

/* This is for the cards*/

.ag-format-container {
  width: 1142px;
  margin: 0 auto;
}
.ag-courses_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;

  padding: 50px 0;
}
.ag-courses_item {
  -ms-flex-preferred-size: calc(33.33333% - 30px);
  flex-basis: calc(33.33333% - 30px);

  margin: 0 15px 30px;

  overflow: hidden;

  border-radius: 28px;
}
.ag-courses-item_link {
  display: block;
  padding: 30px 20px;
  background-color: #121212;
  text-decoration: none;

  overflow: hidden;

  position: relative;
}
.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
  text-decoration: none;
  color: #fff;
}
.ag-courses-item_link:hover .ag-courses-item_bg {
  -webkit-transform: scale(10);
  -ms-transform: scale(10);
  transform: scale(10);
}
.ag-courses-item_title {
  min-height: 87px;
  margin: 0 0 25px;

  overflow: hidden;

  font-weight: bold;
  font-size: 30px;
  color: #fff;

  z-index: 2;
  position: relative;
}
.ag-courses-item_date-box {
  font-size: 18px;
  color: #fff;

  z-index: 2;
  position: relative;
}
.ag-courses-item_date {
  font-weight: bold;
  color: #f9b234;

  -webkit-transition: color 0.5s ease;
  -o-transition: color 0.5s ease;
  transition: color 0.5s ease;
}
.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  background-color: #f9b234;

  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;

  border-radius: 50%;

  -webkit-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.ag-courses_item:nth-child(2n) .ag-courses-item_bg {
  background-color: #3ecd5e;
}
.ag-courses_item:nth-child(3n) .ag-courses-item_bg {
  background-color: #e44002;
}
.ag-courses_item:nth-child(4n) .ag-courses-item_bg {
  background-color: #952aff;
}
.ag-courses_item:nth-child(5n) .ag-courses-item_bg {
  background-color: #cd3e94;
}
.ag-courses_item:nth-child(6n) .ag-courses-item_bg {
  background-color: #4c49ea;
}

@media only screen and (max-width: 979px) {
  .ag-courses_item {
    -ms-flex-preferred-size: calc(50% - 30px);
    flex-basis: calc(50% - 30px);
  }
  .ag-courses-item_title {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }
}
@media only screen and (max-width: 639px) {
  .ag-courses_item {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .ag-courses-item_title {
    min-height: 72px;
    line-height: 1;

    font-size: 24px;
  }
  .ag-courses-item_link {
    padding: 22px 40px;
  }
  .ag-courses-item_date-box {
    font-size: 16px;
  }
}

/*Cards Ends Here*/

/*This is For Footer*/

#footer {
  padding-bottom: 10px;
  display: -webkit-box; /* For older iOS and Android browsers */
  display: -ms-flexbox; /* For IE 10 */
  display: flex; /* Standard syntax */
  -webkit-box-orient: vertical; /* For older iOS and Android browsers */
  -webkit-box-direction: normal; /* For older iOS and Android browsers */
  -ms-flex-direction: column; /* For IE 10 */
  flex-direction: column; /* Standard syntax */
  -webkit-box-pack: justify; /* For older iOS and Android browsers */
  -ms-flex-pack: distribute; /* For IE 10 */
  justify-content: space-evenly; /* Standard syntax */
}

#footer > p {
  text-align: center;
  margin: 0; /* Add margin to ensure consistency */
}

#footer > p:last-child {
  font-size: 0.8rem;
  color: gray;
}

/* Media query for responsiveness */
@media screen and (max-width: 600px) {
  #footer {
    padding-bottom: 20px; /* Increase padding for smaller screens */
  }

  #footer > p:last-child {
    font-size: 0.7rem; /* Adjust font size for smaller screens */
  }
}

/*Footer Ends Here*/
