@media (max-width: 768px) {
  /* Hide the desktop logo and show the mobile logo */
  .desktop-logo {
    display: none;
  }
  .mobile-logo {
    display: block;
  }
}
@media (max-width: 992px) {
  /* Hide the desktop logo and show the mobile logo */
  .desktop-logo{
    margin-right: 0 !important;
  }
}



/* Mobile responsive styles */
@media (max-width: 768px) {
  .dropdown-icon {
    margin-left: 15px;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    color: white;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: start !important;
  }

  .navbar {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    color: rgb(23, 23, 23);
    padding: 10px 20px;
  }

  .navbar a {
    text-decoration: none;
    color: rgb(40, 40, 40);
    font-size: 16px !important;
    font-family: "f1" !important;
  }

  .navbar>.container, .navbar>.container-fluid, .navbar>.container-lg, .navbar>.container-md, .navbar>.container-sm, .navbar>.container-xl, .navbar>.container-xxl {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between !important;
  }

  .navbar {
    flex-direction: column;
    /* Stack logo and menu vertically */
    align-items: center;
    /* Center align logo and menu */
  }

  .navbar .container {
    width: 100%;
  }

  .navbar .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;

  }

  .navbar .menu a {
    padding: 10px 20px;
    width: 100%;
  }

  .navbar .toggle-button {
    display: block;
    cursor: pointer;
    font-size: 2em;
    /* Increased the size of the icon */
    color: rgb(0, 0, 0);
    background-color: transparent;
    border: none;
    margin-top: 10px;
  }

  .navbar .menu.active {
    display: flex;
  }

  /* Ensure dropdowns are properly aligned on mobile */
  .navbar .dropdown {
    margin-right: 0;
    /* Remove margin between dropdowns */
    width: 100%;
    /* Make dropdown take full width */
    margin-top: 10px;
    text-align: start;
  }

  .navbar .dropdown a {
    padding: 10px 0;
    text-align: center;
    /* Center text in dropdown */
  }

  .navbar .dropdown-content {
    right: 0;
    left: 0;
    /* Make the dropdown content span the full width */
    position: relative;
    /* Ensure dropdown aligns properly */
    width: 100%;
    /* Make dropdown take full width */
    text-align: center;
    /* Align dropdown items in the center */
  }

  .navbar .dropdown-content a {
    padding: 10px 0;
    width: 100%;
    text-align: start;
  }
  .dropdown-content a{
    font-size: 14px !important;
  }
}
@media (min-width: 260px) and (max-width: 360px) {
  .dropdown-content a {
    font-size: 10px !important;
  }
}
@media (min-width: 361px) and (max-width: 380px) {
  .dropdown-content a {
    font-size: 12px !important;
  }
}

/* Hide toggle button on larger screens */
@media (min-width: 768px) {
  .navbar .toggle-button {
    display: none;
  }
}


/* banner */
@media (max-width: 768px) {
  .banner_caurosl {
    flex-direction: column;
    text-align: center;
  }

  .ban_cnt h2 {
    font-size: 2rem;
  }

  .btn_main, .btn_contact {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .banner_main {
    padding: 10px;
  }

  .ban_cnt {
    padding: 15px;
  }

  .ban_cnt h2 {
    font-size: 1.5rem;
  }

  .ban_cnt p {
    font-size: 0.9rem;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .course_going {
    padding: 60px 20px;
    gap: 20px;
  }

  .course_going .card {
    width: 100%;
    /* Ensures cards are full width */
    max-width: 100%;
    /* Removing max-width so cards span the full width */
  }

  .course_going .card .content h2 {
    font-size: 1.4rem;
  }

  .course_going .card .content p {
    font-size: 0.9rem;
  }

  .course_going .card .content a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .course_going {
    padding: 40px 10px;
    gap: 15px;
  }

  .course_going .card {
    width: 100%;
    /* Cards will occupy the full width */
    max-width: 100%;
    /* Ensures no restriction on card width */
  }

  .course_going .card .img-box {
    height: 180px;
  }

  .course_going .card .content h2 {
    font-size: 1.2rem;
  }

  .course_going .card .content p {
    font-size: 0.8rem;
  }

  .course_going .card .content a {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  .tel_gmal{
    display: none;
  }
}

@media (max-width: 768px) {
  .-item {
    flex: 1 1 calc(50% - 20px);
  }

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

  .modal-right {
    margin-left: 0;
    margin-top: 20px;
    width: 80%;
    padding: 0;
  }

  .nav-btn {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .-item {
    flex: 1 1 100%;
  }
  .cont_form {
    text-align: center;
    background: #7757a0;
    width: 100%;
    height: 500px;
    margin-left: 0px !important;
    padding: 40px;
    border-radius: 10px;
  }
}

/* contact */
@media screen and (max-width: 800px) {
  .contact-form {
    width: 90vw;
  }
}

@media screen and (max-width: 700px) {
  .contact-form {
    flex-direction: column-reverse;
  }

  .contact-form>* {
    width: 100%;
  }

  .contact-form .first-container {
    padding: 40px 0;
  }
}
@media (max-width: 320px) {
  .second_nav a.dropdown-item {
    text-decoration: none;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: "f1" !important;
    font-size: 10px !important;
  }
  .breadcrumb-title h2{
    font-size:60px !important;
  }
  .cont_form {
    text-align: center;
    background: #7757a0;
    width: 100%;
    height: 500px;
    margin-left: 0px !important;
    padding: 40px;
    border-radius: 10px;
  }
}
@media (max-width: 262px) {
.navbar-brand img{
  width: 80px;
}
.second_nav a.dropdown-item {
  text-decoration: none;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: "f1" !important;
  font-size: 9px !important;
}
.cont_form {
  text-align: center;
  background: #7757a0;
  width: 100%;
  height: 500px;
  margin-left: 0px !important;
  padding: 40px;
  border-radius: 10px;
}
}
@media screen and (min-width: 700px) {
  .tabBlock-tab {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}


@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;
  }
}

@media (max-width: 600px) {
  .customm-button {
      width: 100%; /* Full width on smaller screens */
  }
}

/*  */
@media (max-width: 768px) {
  .popup-content {
      width: 85%; 
  }

  .popup-close {
      font-size: 22px;
  }

  .popup-content h2 {
      font-size: 16px; 
  }
}

/* whatsapp */

@media (max-width: 600px) {
  .whatsapp-icon {
    bottom: 10px;
    right: 10px;
  }
}


