html,
body {
  margin: 0;
  padding: 0;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  background-color: #ffffff;
  color: black;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Banner Styles */
/*.banner {
    width: 90%; 
    height: 45%;       
    margin: 0 auto;
    margin-bottom: 0;       
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner img {
    width: 100%; 
    height: 100%;
    margin-bottom: 0;
    margin-top: 70px;
} */

/*Navigation Bar*/

.nav-item a,
.trailer h1,
.trailer h2,
.trailer h3 {
  font-family: "Poppins", sans-serif;
}

.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  z-index: 1000;
  flex-wrap: wrap;
}

/* Logo and Navigation Links */
.nav-img img {
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  padding: 5px 10px;
  position: relative;
}

.nav-item a {
  color: #1f5e77;
  text-decoration: none;
  padding: 5px 10px;
  transition: color 0.1s;
  text-decoration: none;
}

.nav-item a:hover {
  color: #c72121;
}

/* Search and Login Buttons */
.search {
  display: flex;
  align-items: center;
}

.search input[type="text"] {
  border: 2px solid #266e7454;
  padding: 7px;
  border-radius: 5px;
  outline: auto;
}

.search button {
  background: none;
  border: none;
  color: rgb(38, 147, 161);
  cursor: pointer;
  font-size: 1.2rem;
  padding-left: 10px;
}
.search button:hover {
  color: #c72121;
}
.login-btn {
  background: none;
  border: none;
  color: rgb(38, 147, 161);
  font-size: 1.2rem;
  cursor: pointer;
  padding-right: 20px;
  display: block;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Switch Button */
.language-switch {
  background-color: #ffffff;
  color: #0056b3;
  border: 2px solid #0056b3;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: border-color 0.3s;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
}

.language-switch:hover {
  color: #c72121;
  border-color: rgb(214, 61, 61);
}

/* Dropdown Menu Item Hover */
.dropdown-menu a:hover {
  background-color: #c72121;
  color: white;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-menu a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.dropdown-menu li {
  list-style: none;
}

@media (min-width: 1024px) { 
  .nav-item:hover .dropdown-menu {
    display: block;
  } 
}

/* Main layout adjustment */
.video-container {
  position: relative;
  overflow-y: scroll;
  display: inline-block;
  width: 100%;
  padding-top: 56.25%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.video-container iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* General Styles for Text and Layout */
.trailer h1,
h2,
h3 {
  color: #003366;
}

.trailer p {
  line-height: 1.4em;
}

.trailer ul {
  padding-left: 30px;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  margin-top: 0;
  gap: 20px;
}

.main-section-container {
  display: flex;
  flex-direction: column;
  flex: 3;
  gap: 20px;
}

#about-this-course {
  padding: 50px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 20px;
}

#about-this-course ul {
  padding-left: 25px;
  padding-top: 5px;
  padding-bottom: 5px;
  line-height: 1.5;
  font-size: large;
}

#about-this-course p,
#about-this-course li,
#about-this-course h2,
#about-this-course h3 {
  line-height: 1.5;
  font-size: large;
}

.content-wrapper {
  padding-top: 20px;
  padding-right: 2%;
  padding-left: 2%;
  margin-top: 20px;
}

.footer-container {
  clear: both;
  position: relative;
  width: 100%;
  margin-top: auto;
}

/* Meet Our Instructors section */
#meet-our-instructors {
  padding: 20px;
  margin-left: 5%;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.trailer-container {
  flex: 1;
  max-width: 750px;
  padding-top: 30px;
  padding-right: 20px;
  padding-left: 20px;
  padding-bottom: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trailer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Reduce font size and padding based on screen size  or higher zoom levels*/

.course-info {
  text-align: center;
  padding-top: 20px;
}
.course-content {
  list-style: disc;
  padding: 0;
  margin: 0;
}

.course-content li {
  padding-left: 0;
  text-align: left;
  margin-bottom: 10px;
}

.price,
.discount {
  font-weight: bold;
  color: #008000;
}
.hidden {
  display: none !important;
}

.enroll-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  font-size: inherit;
  font-family: inherit;
}
.enroll-btn:hover {
  background-color: #0056b3;
}

/* Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content Container */
.modal-content {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  max-width: 600px;
  border-radius: 8px;
  position: absolute;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
}

.close:hover {
  color: #c72121;
}

label {
  display: block;
  font-size: 1.15rem;
  margin: 10px 0;
  text-align: left;
}

/* General input styles */
input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Submit button styling */
.submit-bttn {
  width: 60%;
  height: auto;
  background-color: #4caf50;
  font-size: 1.15rem;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Container for all instructor cards */
#meet-our-instructors {
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px;
}

.instructor-card {
  display: flex;
  align-items: flex-start;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  gap: 20px;
}

/* Instructor image */
.instructor-card img {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

.instructor-details {
  text-align: left;
  flex: 1;
}

.instructor-details h3 {
  margin-bottom: 10px;
}

.instructor-details p {
  line-height: 1.4;
  margin-bottom: 6px;
}

#meet-our-instructors h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  text-align: center;
}

/* Footer */
footer {
  margin-top: auto;
}
.footer-container {
  width: 100%;
  background-color: #ebe8e8e8;
  color: rgb(0, 0, 0);
  padding: 20px;
  margin-top: 20px;
  position: relative;
  text-align: center;
  clear: both;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.office {
  text-align: left;
  flex: 1 1 300px;
  min-width: 250px;
  max-width: 45%;
  padding: 0 20px;
}

.footer-bottom {
  border-top: 1px solid #f0ebeb;
  padding-top: 10px;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.footer-container img {
  height: 60px;
  max-width: 100%;
  object-fit: contain;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 30px 40px;
}

.social-links a {
  color: rgba(27, 25, 25, 0.897);
  margin: 0 20px;
  font-size: 24px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #007bff;
}

.toggle-menu {
  display: none;
  font-size: 25px;
}

.has-dropdown-menu i {
  display: none;
}

@media (max-width: 1800px) {
  .nav {
    gap: 10px;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .toggle-menu {
    display: flex;
  }
  .nav {
    justify-content: space-between;
  }
  .nav-item a {
    padding: 5px 0;
  }
  .dropdown-menu.active {
    display: block;
    width: 100%;
  }
  .nav-img img {
    height: 45px;
  }
  .nav-btn,
  .nav-menu {
    display: none;
  }
  .nav-btn.active,
  .nav-menu.active {
    display: flex;
    margin: auto;
  }

  .nav-menu {
    text-align: left;
  }
  
  .main-section-container {
    flex: 1 1 100%;
  }
  .nav-item {
    padding: 0 10px;
  }

  .instructor-card {
    flex-direction: column;
  }
  .dropdown-menu {
    font-size: .9rem;
  }
  .has-dropdown-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .has-dropdown-menu i {
    display: block;
  }

  /* Instructor image */
  .instructor-card img {
    width: 100%;
  }

  .trailer-container {
    order: -1;
    margin-bottom: 20px;
    max-width: none;
    width: 100%;
  }

  .nav-menu,
  .nav-btn {
    flex-direction: column;
  }

  .dropdown-menu {
    position: relative;
    background-color: transparent;
    box-shadow: none;
  }

  .dropdown-menu a {
    padding: 5px 10px;
  }

  .search,
  .language-switch,
  .login-btn {
    width: 100%;
  }

  .language-switch {
    margin-top: 10px;
  }

  .nav-item {
    width: 100%;
    display: flex;
  }

  .login-btn {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 80%;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .office {
    width: 100%;
    margin-bottom: 20px;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .nav-item {
    padding: 0 5px;
  }
}
