* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  :root {
    --bg-color:linear-gradient(to left, #850101, #000);
    --main-color2: rgb(231, 226, 226);
    --text: white;
    --shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    --exra-color: rgb(185, 185, 185);
    --bg-color2: white;
    --text-color2: black;
    --main-color: #7D0000;
  }
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.8rem;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  }
  
  .header.sticky {
    background: var(--text);
  }
  
  .logo {
    position: relative;
    font-size: 2.5rem;
    color: var(--text);
    font-weight: 600;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  }
  
  .navbar {
    position: relative;
  
  }
  
  .navbar a {
    font-size: 1.2rem;
    color: black;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-left: 3.5rem;
    transition: .3s;
  }
  
  .navbar a:hover,
  .navbar a.active {
    color: rgb(104, 101, 101);
  }
  
  .navbar a.active:hover {
    color: var(--text);
  }
  
  #menu-icon {
    position: relative;
    font-size: 2.6rem;
    color: black;
    cursor: pointer;
    display: none;
  }
  
  .logo .animate,
  .navbar .animate,
  #menu-icon .animate {
    animation: showRight 1s ease forwards;
    animation-delay: calc(0.3s * var(--i));
  }
  
  
  .logo .animate,
  .navbar .animate,
  #menu-icon .animate {
    animation: showRight 4s ease forwards;
    animation-delay: calc(0.3s * var(--i));
  }
  
  @media (max-width: 768px) {
    .header {
      background: white;
    }
    
    #menu-icon {
      display: block;
    }
    
    .navbar {
      position: absolute;  
      top: 100%;
      left: -100%;
      width: 100%;
      padding: 1rem 4%;
      background: white;
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
      z-index: 1;
      transition: 0.25s ease;
      transition-delay: 0.25s;
    }
    
     .navbar.active {
      left: 0;
      transition-delay: 0s;
    }  
    
     .navbar .active-nav {
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: white;
      border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
      z-index: -1;
      transition: 0.25s ease;
      transition-delay: 0s;
    } 
    
     .navbar.active .active-nav {
      left: 0;
      transition-delay: 0.25s;
    } 
    
    .navbar a {
      display: block;
      font-size: 1.2rem;
      margin: 3rem 0;
      transform: translateX(-20rem);
      transition: 0.25s ease;
      transition-delay: 0s;
    }
    
    .navbar.active a {
      transform: translateX(0);
      transition-delay: 0.25s;
    }
  }

  div.hero {
    background-image: url(../assets/HeroImg.jpg);
    width: 100%;
    height: 90vh;
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: cover;
    display: flex;
    align-items: center; 
    justify-content: center; 
}

div.backdrop {
    background-color: rgba(43, 42, 42, 0.6);
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}

.herop {
    color: whitesmoke;
    text-align: center;
    font-size: 3em; 
    text-transform: capitalize;
    margin-bottom: 1em;
}

span {
    color: orange;
}

.description {
    color: whitesmoke;
    text-align: center;
    font-size: 1em;
    padding: 0 10%; 
    line-height: 1.6; 
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .herop {
        font-size: 2.5em; 
    }

    .description {
        font-size: 0.9em;
        padding: 0 5%;
    }

    div.hero, div.backdrop{
        height: 70vh; 
    }
}

@media (max-width: 480px) {
    .herop {
        font-size: 2em; 
    }

    .description {
        font-size: 20px;
    }
    div.hero, div.backdrop{
        height: 60vh;
    }
}

.prefered {
    margin: 20px;
    margin-top: 100px;
  }
  
  .pref {
    margin: 30px;
    text-align: center;
    font-size: 45px;
  }

  @media (max-width: 768px) {
    .pref {
        font-size: 35px; /* Adjust font size for smaller screens */
    }
  }
  
  @media (max-width: 480px) {
    .pref {
        font-size: 30px; /* Further adjust font size for very small screens */
    }
} 

/* corses */
 
  .courses {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
  }

  .course_div {
    width: 300px;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* display: flex;
    align-items: center;
    justify-content: center; */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* backdrop */

 .back{
  width: 400px;
  height: 300px;
  background-color: rgba(0, 0, 0, 0.5);
} 

.course_div:hover {
    transform: translateY(-5px);
}

.course_div, #box1, #box2, #box3{
  background-color: #000;
}

  #box1 {
    background-image: url(../assets/Advance.jpg);
    width: 90%; 
    max-width: 400px; 
    height: 300px;
    background-position: center;
    object-fit: cover;
    background-size: cover;
    border-radius: 8px;
    margin: 0 auto 30px; 
  }
  
  #box2 {
    background-image: url(../assets/Smart.jpg);
    width: 90%; 
    max-width: 400px; 
    height: 300px;
    background-position: center;
    object-fit: cover;
    background-size: cover;
    border-radius: 8px;
    margin: 0 auto 30px; 
  }
  
  #box3 {
    background-image: url(../assets/Acns.jpg);
    width: 90%; 
    max-width: 400px; 
    height: 300px;
    background-position: center;
    object-fit: cover;
    background-size: cover;
    border-radius: 8px;
    margin: 0 auto 30px; 
  }

  .course-head {
    color: white;
    position: relative;
    top: 130px;
  }
  
  .course-text {
    flex: 2;
    padding-right: 20px;
  }
  
  .course-image {
    flex: 1;
    text-align: center;
  }
  
  .course-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .back {
    text-align: center;
  }

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

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 10px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content p {
    line-height: 1.6;
}
  
  .course {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 10px;
    padding: 20px;
    width: 80%; 
    max-width: 800px;
  }
  
  .course-text {
    flex: 2;
    padding-right: 20px;
  }
  
  .course-image {
    flex: 1;
    text-align: center;
  }
  
  .course-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  @media (max-width: 768px) {
    .course {
        flex-direction: column;
        align-items: stretch;
    }
    
    .course-text {
        padding-right: 0;
        margin-bottom: 20px;
    }
  } 

  .training-courses {
    display: flex;
    margin-top: 120px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
  }

  footer {
    width: 100%;
    position: relative; /* change from absolute to relative */
    background: linear-gradient(to left, #850101, #000);
    color: #fff;
    padding: 100px 0 30px;
    border-top-left-radius: 125px;
    font-size: 13px;
    line-height: 20px;
    margin-top: 5rem;
    /* top: -20rem;
    bottom: 100rem; */
  }
  
  .row {
    width: 85%;
    max-width: 1200px; /* Limit maximum width */
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }
  #log{
    margin-top:-5% ;
  
  }
  
  .col {
    flex-basis: 25%;
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .col:nth-child(2), .col:nth-child(3) {
    flex-basis: 15%;
  }
  
  .logo {
    width: 80px;
    margin-top: 20px; /* Adjust margin for smaller screens */
  }
  
  .col h3 {
    margin-bottom: 20px;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .email-id {
    border-bottom: 1px solid #ccc;
    margin: 10px 0;
  }
  #hr{
    border: 0;
    border-bottom: 2px solid #ccc;
    margin: 20px auto;
    margin-left: 5px;
  
  }
  
  ul li {
    margin-bottom: 12px;
  }
  
  ul li a {
    text-decoration: none;
    color: #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  form {
    margin-bottom: 30px; /* Adjust margin for smaller screens */
  }
  
  form input {
    width: 100%;
    background: transparent;
    color: #ccc;
    border: 0;
    outline: none;
  }
  
  hr {
    width: 90%;
    border: 0;
    border-bottom: 1px solid #ccc;
    margin: 20px auto;
  }
  
  .copyright {
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .underline {
    width: 100%;
    height: 5px;
    background: #767676;
    border-radius: 3px;
    position: absolute;
    top: 25px;
    left: 0;
    overflow: hidden;
  }
  
  .underline span {
    width: 15px;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 10px;
    animation: moving 2s linear infinite;
  }
  
  @keyframes moving {
    0% {
        left: -20px;
    }
    100% {
        left: 100%;
    }
  }
  
  @media (max-width: 900px) {
    .row {
        justify-content: center;
    }
  }
  
  @media (max-width: 700px) {
    .col {
        flex-basis: 45%; /* Adjust column width for smaller screens */
        text-align: center;
    }
  }
  
  @media (max-width: 500px) {
    .col {
        flex-basis: 100%; /* Full width for smallest screens */
        margin-bottom: 30px;
    }
  
    .logo {
        width: 60px;
    }
  
    .underline {
        top: 20px;
    }
    #col2{
        margin-left: -10%;
    }
    #col1{
        margin-left: 30%;
    }
  }