@media (max-width: 768px) {
  /* Reduce top and bottom space in hero section */
  .hero-section {
    padding: 40px 0; /* adjust as needed */
  }

  .hero-content {
    text-align: center;
    margin-bottom: 20px; /* add spacing below text */
  }

  .company-name {
    font-size: 1.8rem;
    line-height: 1.2;
    text-align: center;
  }

  .tagline {
    font-size: 1.2rem;
    line-height: 1.2;
    text-align: center;
  }

  .consultation-btn {
    margin: 20px auto 0;
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Lawyer image and badge */
  .lawyer-card {
    position: relative;
    display: inline-block;
  }

  .lawyer-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFBB00;
  }

  .experience-badge {
    position: absolute;
    bottom: 135px;
    transform: translate(50%, 50%);
    width: 45px;
    height: 45px;
    z-index: 5;
  }

  /* Container padding */
  .hero-section .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .lawyer-name {
    font-size: 1.2rem;
    margin-top: 15px;
    color: #FFBB00;
    font-weight: bold;
  }

  .lawyer-info {
    font-size: 1rem;
    color: white;
  }
}





/* === About Us Section === */

@media (max-width: 768px) {

    .intro-section {
        padding: 60px 15px 40px 15px;
    }

    .intro-section h1 {
        font-size: 24px;
        text-align: center;
    }

    .intro-section p,
    .intro-section .fst-italic {
        font-size: 15px;
        text-align: center;
    }

    .intro-section .btn {
        display: block;
        margin: 20px auto 0 auto;
        font-size: 14px;
        padding: 10px 20px;
    }

    .intro-section .position-relative {
        max-width: 100%;
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .intro-section .position-absolute {
        position: absolute;
        width: 70% !important;
        max-width: 90%;
    }

    .intro-section .company-name {
        font-size: 16px;
        top: 75%;
    }

    /* ✅ Update Logo Position */
    .intro-section img[alt="Company Logo"] {
        top: 38% !important;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70% !important;
    }

    /* ✅ Update Badge Position */
    .intro-section img[alt="Trusted Badge"] {
        width: 120px !important;
        bottom: 0 !important;
        left: 0;
    }

    .commit-strip .commit-text {
        font-size: 15px;
        padding: 0 10px;
    }

    .commit-strip .line {
        width: 30px;
    }
}

@media (max-width: 480px) {

    .intro-section h1 {
        font-size: 20px;
    }

    .intro-section .company-name {
        font-size: 14px;
        top: 78%;
    }

    /* ✅ Adjust for smallest screens too */
    .intro-section img[alt="Company Logo"] {
        top: 38% !important;
        width: 65% !important;
    }

    .intro-section img[alt="Trusted Badge"] {
        width: 100px !important;
        bottom: 0 !important;
    }

    .commit-strip .commit-text {
        font-size: 14px;
    }

    .commit-strip .line {
        display: none;
    }
}


/* === Responsive Enhancements for Practice Areas === */
@media (max-width: 991.98px) {
  #services h2 {
    font-size: 24px;
    text-align: center;
  }

  #services h6 {
    font-size: 14px;
    text-align: center;
  }

  #services .nav-circle {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin: 0 5px;
  }

  #services .d-flex.mt-4 {
    justify-content: center;
  }

  #card-container .col-md-4 {
    width: 100%;
  }

  .card-img-top {
    height: 220px;
  }

  .card-title {
    font-size: 1rem;
    padding: 10px;
  }

  .card-title .float-end {
    font-size: 14px;
    padding: 4px 6px;
  }
}

@media (max-width: 575.98px) {
  #services h2 {
    font-size: 20px;
  }

  #services h6 {
    font-size: 13px;
  }

  .card-img-top {
    height: 180px;
  }

  .card-title {
    font-size: 0.95rem;
    padding: 8px;
  }

  .card-wrapper {
    margin-bottom: 20px;
  }
}



/* Scrolling wrapper: horizontal scroll */
.scrolling-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    padding-bottom: 1rem;
}

.scrolling-wrapper:active {
    cursor: grabbing;
}

.circle-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}




@media (max-width: 576px) {
    /* Circle card style */
.circle-card {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    scroll-snap-align: start;
    position: relative;
}
}



/* Common styling
.review-card {
  background-color: #010440;
  border-radius: 10px;
  padding: 40px;
  color: white;
  position: relative;
} */

/* Mobile Styles */
@media (max-width: 768px) {
  .review-section .position-relative {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }

  .review-card-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 0 10px;
    width: 100%;
  }

  .review-card {
    display: block !important;
    width: 90%;
    max-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background-color: #010440;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: white;
    margin: auto;
  }

  .review-card img[alt="Reviewer"] {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
  }

  .review-card .name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 5px;
  }

  .review-card .thumb-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
  }

  .review-card h4 {
    color: #FFBB00;
    font-size: 1.1rem;
    margin: 0;
  }

  .review-card .title {
    color: #cfcfcf;
    font-size: 13px;
    margin-top: 0;
  }

  .review-card .stars {
    width: 110px;
    margin: 10px auto;
    display: block;
  }

  .review-card p.review-text {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.5;
    margin-top: 12px;
  }

  .review-pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
  }

  .dot {
    width: 14px;
    height: 14px;
    border: 2px solid #FFBB00;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
  }

  .dot.active {
    background-color: #FFBB00;
  }

  .nav-circle {
    display: none !important;
  }
}






/* === Call to Action Section === */
@media (max-width: 768px) {
    .cta-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
}
