/* =========================================
   📱 Responsive Navbar
========================================= */

/* ✅ Large Tablets and small laptops */

@media (max-width: 1200px) {
  .navbar {
    width: 95%;
  }
  #menu-toggle {
  display: flex;
}
  .nav > div {
    width: 100%;
  }

  .btns {
    right: 0;
    position: relative;
  }
}

/* ✅ Tablets (<= 992px) */
@media (max-width: 992px) {
  .bnr strong {
    padding-left: 0;
    font-size: 14px;
  }

  .navbar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  .logo {
    width: 160px;
    height: auto;
  }

  .nav ul {
    gap: 20px;
    flex-wrap: wrap;
  }

  .nav ul li a {
    font-size: 13px;
  }

  .btns {
    position: relative;
    right: 0;
    top: 0;
  }
}

/* ✅ Mobile phones (<= 768px) */
@media (max-width: 768px) {
  /* Hide desktop nav */
  .nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;
  }

  .nav ul.open {
    display: flex;
  }

  .nav ul li {
    margin: 10px 0;
  }

  .nav ul li a {
    font-size: 15px;
    color: #fff !important;
  }

  /* Mobile navbar layout */
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    background: white;
    top: 0;
    width: 100%;
    padding: 10px 15px;
    z-index: 9999;
  }

  .bnr {
    position: relative;
    width: 100%;
    padding: 0.6rem;
    font-size: 12px;
  }

  .logo {
    width: 130px;
    height: auto;
  }

  /* ✅ Hamburger Menu */
  .menu-toggle {
    display: block;
    font-size: 26px;
    color: #cc0a0a;
    cursor: pointer;
    z-index: 10001;
  }

  .btns {
    display: none;
  }
}

/* ✅ Very small screens (<= 480px) */
@media (max-width: 480px) {
  .bnr strong {
    font-size: 12px;
    line-height: 1.4;
    padding: 0 10px;
  }

  .logo {
    width: 110px;
  }

  .nav ul li a {
    font-size: 14px;
  }
}





@media screen and (max-width: 900px) {
  .container {
    width: 100%;
    padding: 0 20px;
  } 
  .layout {
    padding: 25px;
  }
 
   .layout .immigration { 
    margin-bottom: 20px;
  }

  .layout .immigration,
  .layout .areas {
    position: relative;
    width: 100%;
    top: 0;
    box-shadow: none;
  }

  .expertise .cards {
    flex-wrap: wrap;
  } 

   .expertise .cards .card {
    width: 400px;
    margin: 20px 0;
  } 

   .immigration-sec .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
  } 

   .immigration-sec .container > div {
    width: 100%;
  } 

   .immigration-sec .video {
    margin-top: 50px;
    top: 0;
  }

  .proud-sec .cards {
    justify-content: center;
  }

  .first-step form {
    width: 100%;
  }

  .first-step form .inp-group {
    width: 300px;
  }

  .first-step form .inp-group input {
    width: 150px;
  }

  .first-step form textarea {
    width: 300px !important;
  }

  .first-step form select {
    width: 300px !important;
  }

  .first-step form p {
    width: 310px;
  }

  .first-step .container .img {
    display: none;
  }

  .immigratIoninsights .cards {
    flex-wrap: wrap;
  }
  
  .immigratIoninsights .cards .card {
    width: 400px;
    margin: 20px 0;
  }

  .hr {
    display: none;
  }

  .contact .co-so {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .contact .co-fo {
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    text-align: center;
  } 
}


@media (max-width: 991px) {
  .layout .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .layout .immigration,
  .layout .areas {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    padding: 40px 20px;
  }

  .layout .areas {
    background: #452d38;
    margin-top: 20px;
  }

  .layout h2 {
    font-size: 32px;
    text-align: center;
  }

  .layout .areas div {
    left: 0;
    top: 0;
    text-align: center;
  }

  .layout .immigration div {
    margin-top: 20px;
  }
}



/* ==============================
   📱 Responsive Team Section
================================*/

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .team-container {
    width: 95%;
    padding: 0 10px;
  }

  .main-member {
    padding: 25px;
  }

  .team-img {
    width: 100px;
    height: 100px;
  }

  .team-member h3 {
    font-size: 16px;
  }

  .team-member p {
    font-size: 13px;
  }

  .popup-content {
    flex-direction: column;
    max-width: 600px;
  }

  .popup-content img {
    width: 160px;
    height: 160px;
  }
}

/* Phones */
@media (max-width: 768px) {
  #our-team {
    padding: 40px 15px;
  }

  .team-header h2 {
    font-size: 26px;
  }

  .team-header p {
    font-size: 14px;
  }

  .team-container {
    flex-direction: column;
    gap: 20px;
  }

  .team-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .main-member {
    padding: 20px;
  }

  .main-member .team-img {
    width: 110px;
    height: 110px;
  }

  .team-member {
    padding: 20px;
  }

  .team-member h3 {
    font-size: 16px;
  }

  .team-member p {
    font-size: 13px;
  }

  .team-buttons {
    margin-top: 15px;
  }

  .show-more,
  .show-less {
    width: 80%;
    font-size: 14px;
    padding: 10px 0;
  }

  /* Popup mobile-friendly */
  .popup-content {
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 15px;
  }

  .popup-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .popup-text h3 {
    font-size: 18px;
  }

  .popup-text p {
    font-size: 14px;
  }

  .close {
    top: 10px;
    right: 10px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .team-header h2 {
    font-size: 22px;
  }

  .main-member h3 {
    font-size: 16px;
  }

  .main-member p {
    font-size: 12px;
  }

  .team-img {
    width: 90px;
    height: 90px;
  }

  .popup-content {
    padding: 10px;
  }

  .popup-text p {
    font-size: 13px;
  }

  .show-more,
  .show-less {
    font-size: 13px;
  }
}
