/* Mobile View Optimizations */

/* General Mobile Styles */
 /* Mobile Navigation Styles */
 @media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  .navbar-collapse.collapsing {
    height: auto;
    transition: all 0.3s ease;
  }

  .navbar-collapse.show {
    animation: slideDown 0.3s ease forwards;
  }

  .navbar-nav .nav-item {
    margin: 0.5rem 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    background: #f8f9fa;
    transform: translateX(5px);
  }

  #nv-search {
    margin: 1rem 0;
    width: 100% !important;
  }

  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 1s ease-in-out;  
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-toggler-icon {
    transition: all 0.3s ease;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(360deg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar for mobile menu */
.navbar-collapse::-webkit-scrollbar {
  width: 5px;
}

.navbar-collapse::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.navbar-collapse::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.navbar-collapse::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@media screen and (max-width: 768px) {
  /* Container padding adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Navigation adjustments */
  .navbar {
    padding: 10px 0;
  }

  .navbar-brand img {
    max-width: 120px;
  }

  .nav-link {
    padding: 8px 0;
  }

  /* Header/Banner adjustments */
  .header-content {
    padding: 20px 0;
  }

  .header-content h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .header-content h2 {
    font-size: 18px;
  }

  .header-content h4 {
    font-size: 16px;
  }

  header .item{
    height: auto!important;
  }
  header .item .cover .header-content h1{
    font-size: 18px!important;
    margin-bottom: 5px!important;
  }
  header .item .cover .header-content h2{
    font-size: 10px!important;
  }
  header .item .cover .header-content h4{
    font-size: 8px!important;
    line-height: 15px!important;
  }
  header .item .cover .header-content{
    padding: 20px 25px!important;
  }
  header .item .cover .header-content .line{
    border-width: 5px!important;
  }
  header .info-btn{
    border-width: 1px!important;
    font-size: 1rem!important;
  }

  /* Service items adjustments */
  .service-container {
    margin: 20px 0;
    padding: 10px 15px!important;
  }

  .service-item {
    margin-bottom: 15px;
  }

  .service-item img {
    max-width: 50%;
    height: auto;
  }

  /* Document section adjustments */
  .s-doc {
    padding: 20px 0;
  }

  .s-doc-list {
    padding-left: 15px;
  }

  .s-doc-list h2 {
    font-size: 18px;
  }

  .s-doc-list h3 {
    font-size: 14px;
  }
  .search-box .input-group{
    width: 80%!important;
  }

  /* Quick services section adjustments */
  .quick-services-section {
    padding: 20px 0;
  }

  .q-serv-card {
    margin-bottom: 15px;
    padding: 15px;
  }

  .card-heading {
    font-size: 18px;
  }

  .card-sub-heading {
    font-size: 14px;
  }

  /* Subscription plans adjustments */
  .sub-plan {
    padding: 20px 0;
  }

  .plan-switch {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .plan-switch .plan-text {
    font-size: 14px;
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
  }

  input:checked + .slider {
    background-color: #2196F3;
  }

  input:checked + .slider:before {
    transform: translateX(26px);
  }

  .slider.round {
    border-radius: 34px;
  }

  .slider.round:before {
    border-radius: 50%;
  }

  .plan-box {
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
  }

  .plan-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .element {
    padding: 20px;
    text-align: center;
  }

  .element h2 {
    font-size: 24px;
    margin-bottom: 5px;
  }

  .element p {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
  }

  .element h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .plan-btn {
    padding: 8px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .plan-btn:hover {
    background-color: #1976D2;
  }

  .list-group {
    border: none;
    padding: 0 15px 15px;
  }

  .list-group-item {
    font-size: 13px;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .list-group-item:last-child {
    border-bottom: none;
  }

  /* Team/Lawyer section adjustments */
  .team {
    padding: 20px 0;
  }

  .card {
    margin-bottom: 15px;
  }

  .card-child {
    padding: 15px;
  }

  /* FAQ section adjustments */
  .faqs {
    padding: 20px 0;
  }

  .accordion-button {
    font-size: 14px;
    padding: 12px;
  }

  .accordion-body {
    font-size: 14px;
    padding: 12px;
  }

  /* Footer adjustments */
  .footer {
    padding: 30px 0 20px;
  }

  .footer-link-col {
    margin-bottom: 20px;
  }

  .footer-link-col h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .footer-link-col a {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .f-social {
    margin: 15px 0;
  }

  .f-social a {
    margin-right: 10px;
  }

  .text-cop {
    text-align: center;
    font-size: 12px;
  }

  /* Pricing section adjustments */
  .sub-plan .row {
    display: flex;
    flex-wrap: wrap;
  }

  .sub-plan .col-xl-4 {
    display: flex;
    margin-bottom: 15px;
  }

  .plan-box {
    padding: 30px 0px 0px 0px!important;
  }

  .plan-box .content-box {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 15px;
  }

  .plan-box .element {
    flex: 0 0 auto;
    margin-bottom: 10px;
  }

  .plan-box .list-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
  }

  .plan-box .list-group-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;
    font-size: 13px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .plan-box .list-group-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
  }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
  .header-content h1 {
    font-size: 20px;
  }

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

  .header-content h4 {
    font-size: 14px;
  }

  .info-btn {
    padding: 8px 20px;
    font-size: 14px;
  }

  .service-item .content-box h3 {
    font-size: 16px;
  }

  .element h2 {
    font-size: 20px;
  }

  .element h3 {
    font-size: 16px;
  }

  .list-group-item {
    font-size: 12px;
    padding: 6px 0;
  }

  .card-heading {
    font-size: 16px;
  }

  .card-sub-heading {
    font-size: 12px;
  }

  .accordion-button {
    font-size: 12px;
  }

  .accordion-body {
    font-size: 12px;
  }

  .plan-btn {
    padding: 6px 15px;
    font-size: 14px;
  }

  .plan-box .list-group-item {
    min-height: 22px;
    font-size: 12px;
    padding: 2px 6px;
    margin-bottom: 1px;
  }

  .plan-box .content-box {
    padding: 10px;
  }
}

/* Landscape Mode */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .header-content {
    padding: 30px 0;
  }

  .service-container {
    margin: 30px 0;
  }

  .service-item {
    margin-bottom: 20px;
  }
}

/* Tablet Devices */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-content h1 {
    font-size: 28px;
  }

  .header-content h2 {
    font-size: 20px;
  }

  .service-item {
    margin-bottom: 20px;
  }

  .element h2 {
    font-size: 22px;
  }

  .element h3 {
    font-size: 18px;
  }

  .list-group-item {
    font-size: 14px;
  }

  .sub-plan .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
  }

  .sub-plan .col-xl-4 {
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .plan-box {
    height: 100%;
  }
}

/* Large Screens */
@media screen and (min-width: 1025px) {
  .sub-plan .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
  }

  .sub-plan .col-xl-4 {
    padding: 0 15px;
    margin-bottom: 30px;
  }

  .plan-box {
    height: 100%;
    transition: transform 0.3s ease;
  }

  .plan-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .element h2 {
    font-size: 28px;
  }

  .element h3 {
    font-size: 22px;
  }

  .list-group-item {
    font-size: 15px;
  }
}


