*{
  margin: 0px;
  padding: 0px;
}
/*------set mobile width-------*/
body {
  overflow-x: hidden;
}
/* SECOND NAVIGATION BAR */
.nav2 {
  padding-top: 135px;
  background-color: #231364;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav2 {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

.nav-link:hover {
  background-color: blue;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #231364;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: blue;
}

/* Place Login and Registration on the top-right */
.right-section {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.right-section .dropdown {
  margin-left: 10px;
}
.iframe{
  height: 300px;
  width:24%;
  display: flex;
  flex-direction: column;
  justify-content:end;
  align-items: center;
  margin-bottom: 15px;
}



/* CSS styles for the content */
.bg_container{
  position: relative;
  height: 600px;
  width: 100%;
  background-image: url(images/site_bg.jpg);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
@media(max-width:62em){

.content h1 {
  padding-top: 2rem;
  font-size: 2rem;
}
.nav2{
  position: static;
}
}
.content h1{
 
  text-align: center;
  font-size: 60px;
  color: white;

}

.page-image{
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 2;

}
.text{
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color:white;
  font-size: 28px;
  font-weight: 990;
  font-style: oblique;
  font-family: cursive;
  
}
/*----promotion-----*/
section {
  font-family: 'Arial', sans-serif;
  box-sizing: border-box;
  background-color: #f4f4f4;
  padding: 20px;
}

.promotion {
  width: 100%;
  border-collapse: collapse;
}

.promotion td {
  padding: 20px;
  text-align: center;
  vertical-align: top;
}

.promotion h2 {
  color: #333;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.promotion p {
  color: #666;
  font-size: 1em;
  line-height: 1.4;
}

@media only screen and (max-width: 768px) {
  .promotion td {
      display: block;
      width: 100%;
      box-sizing: border-box;
  }
}

/*---course image---*/
.course_img h2 {
  color: blue;
  font-size: 3rem;
  text-align: center;
  font-style: oblique;
  font-stretch: semi-expanded;
}


/* courses */
 .course-container {
  display: flex;
  justify-content: space-around;
  align-content: center;
  margin-top: 50px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.course-card {
  width: calc(33.333% - 40px);
  margin: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Add smooth transitions */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Add subtle box shadow */
  transform: translateY(0); /* Initial position */
  border-radius: 5%;
  background-color: white;
}

.course-card:hover {
  transform: translateY(-10px); /* Lift the box on hover */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Enhance box shadow on hover */
}

.course-info {
  padding: 20px;
  text-align: center;
}

.course-image {
  width: 100%;
  height: 17rem;
  border-radius: 5%;
  object-fit: cover;
}

.course-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.course-price {
  font-size: 1.5rem;
  font-style: italic;
  margin: 1rem;
}

.discount-card {
  background: linear-gradient(45deg, #5f9ea0, #66cccc);
  color: white;
  padding: 15px;
  position: absolute;
  top: 70px;
  right: 10px;
  transform-origin: top right;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

@media only screen and (max-width: 768px) {
  .course-card {
      width: calc(50% - 40px);
  }
}

@media only screen and (max-width: 480px) {
  .course-card {
      width: calc(100% - 40px);
  }
}

/* Headshot-image */

.headshot {
  width: 400px;
  height: 400px; 
  border-radius: 100%;
}

.headshot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.headshot_img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
}

.name {
  font-size: 50px;
  font-style: oblique;
  margin-top: 2rem;
}

.profession {
  font-size: 30px;
  margin: 1rem 0 2rem 0;
}

#aboutSection {
  display: none;
  padding: 20px;
  background-color: lightgray;
}

/* Additional styles to display items in a single line */
.headbody {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 80vh;
  text-decoration: none;
}

    /* Media Queries for responsiveness */
    @media screen and (max-width: 768px) {
    
      .headshot-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
  
      .headshot_img {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 10vh;
      }
  
      .name {
        font-size: 1.2rem;
        font-style: oblique;
        
      }
  
      .profession {
        font-size: 1.5rem;
        margin: 1rem 0 2rem 0;
      }
  
      #aboutSection {
        display: none;
        padding: 20px;
        background-color: lightgray;
      }
    }
      /* Additional styles to display items in the same row for laptop and in a single column for mobile */
      @media screen and (max-width: 480px) and (max-width: 768px) {
        .headshot {
          width: 200px;
          height: 200px;
        }
  
        .headbody {
          height: 75rem;
          flex-direction: column; /* Ensure a single column layout for mobile */
          align-items: center;
        }
        .name{
          padding-top: 3rem;
        }
      }   

/* Footer */
footer {
  background-color: #333;
  padding: 30px 0;
  color: #fff;
  text-align: center;
}

.footer_container {
  max-width: 900px;
  margin: 0 auto;
}

.footer_container h3 {
  margin-bottom: 25px;
  font-size: 50px;
}

.social-media-links {
  display: flex;
  justify-content: center; /* Center align items horizontally */
  align-items: center; /* Center align items vertically */
  gap: 30px; /* Set the gap between anchor tags */
}

.social-media-links a {
  color: #fff;
  text-decoration: none;
  font-size: 40px;
  transition: color 0.3s ease;
}

.social-media-links a:hover {
  color: #f2c61f;
}

.footer_container p {
  font-size: 20px;
  margin-top: 2rem;
}

/* Media queries for responsiveness */

@media (max-width: 768px) {
  .footer_container h3 {
    font-size: 40px;
  }

  .social-media-links a {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .footer_container h3 {
    font-size: 30px;
  }

  .social-media-links {
    flex-wrap: wrap; /* Allow items to wrap to the next line */
  }

  .social-media-links a {
    font-size: 20px;
    margin: 10px; /* Adjust margin for smaller screens */
  }
  
  .footer_container img {
    width: 60%; /* Adjust the size of the image for smaller screens */
  }
}

/*-----Boxes-------*/
.main-box-class {
  display: flex;
  justify-content: space-evenly;
  align-content: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

.main-box-class .table_data {
  width: 100%;
  border-collapse: collapse;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Add smooth transitions */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Add subtle box shadow */
  transform: translateY(0); /* Initial position */
}

.main-box-class .table_data:hover {
  transform: translateY(-10px); /* Lift the box on hover */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Enhance box shadow on hover */
}

.main-box-class .table_data th,
td {
  border: 1px solid blue;
  padding: 10px;
  text-align: center;
}

.icon-img {
  display: block;
  margin: 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.main-box-class .table_data {
  height: 18rem;
  width: 23rem;
  margin: 15px;
  padding: 50px;
  display: inline-block;
  background-color: white;
}

.main-box-class .table_data h3 {
  font-size: 40px;
}

.main-box-class .table_data p {
  font-size: 1.5rem;
  font-style: inherit;
  margin: 1rem;
}

.main-box-class .table_data th, td {
  display: table-cell;
}

.main-box-class .text,
.course_img img {
  width: 95%;
  margin: 10px;
}

.main-box-class .table_data p {
  font-size: 20px;
  font-style: italic;
}

.main_playlist h2 {
  background-color: yellowgreen;
  font-size: 30px;
  color: blue;
}

@media only screen and (max-width: 480px) {
  /* Styles for screens up to 480 pixels wide */
  .main-box-class .table_data {
    height: 18rem;
    width: 18rem;
    margin: 20px;
    padding: 20px;
  }
  .main-box-class .table_data th, td {
    display: contents;
  }
}

  

/*=====================================*/
.horizontal-line {
  border: none;
  border-top: 5px solid rgb(54, 33, 193);
  margin: 50px;
}
.why_tech {
  text-align: center;
  font-style: oblique;
}

.why_tech h2 {
  font-size: 40px;
  color: blue;
}

.why_tech h1 {
  font-size: 60px;
}

/* SWIPER SLIDE */
.slider-body {
    min-height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}
.description {
  font-size: 1.5rem;
  color: #707070;
  text-align: center;
}
.name {
  font-size: 2rem;
  font-weight: 500;
  color: #333;
}

/* Add media query for smaller screens */
@media only screen and (max-width: 768px) {
    .swiper-slide {
        width: 50%; /* Make slides full width on smaller screens */
    }
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.heading{
  margin-left: 20px;
  margin-bottom: 50px;
  font-family: serif;
}
.heading h2 {
    font-size: 20px;
    color: blue;
}

.heading h1 {
    font-size: 50px;
    color: black;
}

.swiper-slide {
    width: 100%; /* Make slides full width on all screens */
    border-radius: 25px;
    background-color: whitesmoke;
}

.image-content,
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
}

.image-content {
    position: relative;
    row-gap: 5px;
    padding: 25px 0;
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #4070F4;
    border-radius: 25px 25px 0 25px;
}

.overlay::before,
.overlay::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -40px;
    height: 40px;
    width: 40px;
    background-color: #4070F4;
}

.overlay::after {
    border-radius: 0 25px 0 0;
    background-color: #FFF;
}

.card-image {
    position: relative;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    background: #FFF;
    padding: 3px;
}

.card-image .card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #4070F4;
}
.button {
    border: none;
    font-size: 16px;
    color: #FFF;
    padding: 8px 16px;
    background-color: #4070F4;
    border-radius: 6px;
    margin: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #265df2;
}

/* ----STAR ---- */

.star-rating {
    font-size: 2.5rem;
    color: gold;
    display: inline-block;
}

.star-rating::before {
    content: "\2605";
}

/* Add media query for smaller screens */
@media only screen and (max-width: 768px) {
    .star-rating {
        font-size: 18px; /* Adjust star size for smaller screens */
    }
}

@media only screen and (max-width: 468px){
  .name {
    font-size: 1.2rem;
    padding-bottom: 1rem;
      
  }

  .description {
    font-size: 1rem;
  }

}
/* Media Queries */
@media (max-width: 1000px) {

  nav .logo img {
    height: 50px;
    width: auto;
}
  .content h1{
    font-size: 20px;
  }
  .button-container {
    flex-direction: column;
    }
    
    .button-container a {
      margin-bottom: 10px;
    }
  .text{
    flex-direction: column;
    font-size: 15px;
  }
  .text p{
    margin-bottom:200px;
}


  .background-image {
  display: none;
  }
    
  .content img {
    height: 350px;
    width: 300px;
    margin-right: 0px;
    margin-top: 250px;
    float: right;
}

.iframe {
  height: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.promotion{
  margin-bottom: 10px;
}

.table_data th,td { 
    display: contents;
}

.text, .course_img img {
    width: 90%;
    margin: 10px;
}

.table_data p {
  font-size: 20px;
  font-style: italic;
}

.main_playlist h2 {
  background-color: yellowgreen;
  font-size: 30px;
  color: blue;
}
.why_tech h1 {
  font-size: 40px;
}

.course_img h1 {
  font-size: 30px;
  color: blue;
  text-align: center;
  background-color: bisque;
}
section{
  display: block;
  justify-content: space-around;
}

}
