/* Responsive CSS for Feedback Form */

@media (max-width: 576px) {
  .login-card {
    padding: 1.5rem !important;
  }

  .input-group {
    /* flex-direction: column; */
    align-items: stretch;
  }

  .input-group-text {
    margin-bottom: 0.5rem;
    justify-content: center;
  }

  .rating {
    gap: 6px;
    justify-content: left;
  }

  .rating i {
    padding: 8px 10px;
    font-size: 1.2rem;
  }

  .custom-captcha {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 10px;
  }

  .custom-captcha .captcha {
    align-self: center;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 0.6rem;
  }

  fieldset {
    padding: 1rem;
  }

  legend {
    font-size: 0.75rem !important;
    top: -0.6rem;
    left: 0.8rem;
  }

  .form-check-input {
    margin-left: 0;
  }
}

@media (max-width: 480px) { 
  .login-card {
    padding: 1.2rem !important;
    margin: 0 10px;
  }

  .rating {
    flex-wrap: wrap;
    justify-content: start;
    gap: 8px;
  }


  .rating-feedback i{
    padding: 10px 12px !important;
    font-size: 1.2rem;
  }

  .custom-captcha {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 10px;
  }

  .custom-captcha .captcha {
    align-self: flex-end;
  }

  /* .input-group-text img {
    width: 18px;
    height: 18px;
  } */

  fieldset {
    padding: 1rem !important;
  }
}


/* Responsive nav collapse */
@media (max-width: 768px) {
  .nav-collapse {
    flex-direction: column !important;
    background-color: white;
    position: absolute;
    top: 100px; /* below header */
    left: 0;
    width: 100%;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 998;
  }
@media (max-width: 768px) {
  .nav-collapse .nav {
    width: 100%;
    padding-top: 10px;
  }

}
@media (min-width: 768px) {
  .nav-collapse {
    display: none !important;
  }
}


  .nav-collapse.show {
    display: flex !important;
    flex-direction: column;
  }

  .navbar-toggle {
    display: flex;
  }

  .d-md-flex {
    display: none !important;
  }
} 

@media (max-width: 820px) {
  .nav-collapse {
    flex-direction: column !important;
    background-color: white;
    position: absolute;
    top: 100px; /* adjust if header height changes */
    left: 0;
    width: 100%;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 998;
  }

  .nav-collapse.show {
    display: flex !important;
  }

  .nav-collapse .nav {
    width: 100%;
    padding-top: 10px;
  }

  .navbar-toggle {
    display: flex !important;
  }

  .d-md-flex {
    display: none !important;
  }

  .search-input::placeholder {
    color: transparent; /* Optional: Hide placeholder text */
  }
}

@media (max-width: 992px) {
  .nav-collapse {
    flex-direction: column !important;
    background-color: white;
    position: absolute;
    top: 100px; /* adjust if header height changes */
    left: 0;
    width: 100%;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 998;
  }

  .nav-collapse.show {
    display: flex !important;
  }

  .nav-collapse .nav {
    width: 100%;
    padding-top: 10px;
  }

  .navbar-toggle {
    display: flex !important;
  }

  .d-md-flex {
    display: none !important;
  }

  .search-input::placeholder {
    color: transparent;
  }
}

@media (max-width: 1024px) {
  .custom-header {
    padding: 8px 16px !important; /* Reduce top/bottom and side padding */
    margin-right: 0px;
  }
.nav-link{
  margin-right: 0px;
}

}




@media (min-width: 1280px) {
  .custom-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* apps page responsive  */
/* Responsive Design for Mobile & Tablet (max-width: 820px) */
@media (max-width: 820px) {

  .app-section {
    margin-top: 120px !important;
  }

  .heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .heading h4.left,
  .heading h4.right {
    font-size: 18px;
    text-align: left;
  }

  .category-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 8px 10px;
    margin-bottom: 10px;
    background-color: #f7f7f7;
    border-radius: 8px;
  }

  .category-span-text {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  .app-button {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .button-group {
display: none;
  }

  .button-group button span img {
    width: 100%;
    max-width: 150px;
  }

  .custom-card {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .custom-card .card-footer {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 10px;
  }

  .custom-card .card-footer a {
    width: 100%;
    justify-content: center;
  }

  .search-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .search-input {
    width: 100% !important;
  }

  .category-label {
    font-size: 12px;
    padding: 2px 10px;
  }

  .row > .col-md-4 {
    width: 100%;
    max-width: 100%;
  }

  .row > .col-md-3,
  .row > .col-md-9 {
    width: 100%;
    max-width: 100%;
  }
}

/* You can also add specific styles for tablets (768px - 1024px) if needed */
@media (min-width: 768px) and (max-width: 1024px) {
  .custom-card .card-text {
    font-size: 13px;
  }

  .button-group button span img {
   display: none;
  }

  .category-span-text { 
    max-width: 200px; 
  }

  .search-wrapper { 
    max-width: 100%; 
  }

  .search-input { 
    width: 200px !important;  
  } 
} 


@media (max-width: 768px) {
  .custom-btn,
  .custom-btn a,
  .custom-btn a > button {
    width: 100% !important;
    margin-bottom: 10px;
    text-align: center !important;
   
  }
}
@media (max-width: 768px) { 
  .button-wrapper { 
    flex-direction: column !important; 
    gap: 10px !important; 
  } 
  
  .custom-btn { 
    width: 100% !important; 
    text-align: center !important; 
  } 

  .button-wrapper a { 
    width: 100% !important; 
  } 
 
  .button-wrapper a > .custom-btn { 
    width: 100% !important; 
     
  } 
} 
/* project details responsive  */  


/* home responsive */ 
@media (max-width: 768px) { 
    .card-box {  
        flex: 0 0 auto;  
         width: 100%; 
    }
}
 
 @media (max-width: 768px) {
    .responsive-home  {
        flex: 0 0 auto;
        width: 100%;
    }
}