/* Service Content Mobile Enhancements */

/* ===== SERVICE DETAIL PAGE CONTENT MOBILE OPTIMIZATION ===== */

/* Tablet & Mobile Devices */
@media (max-width: 991px) {
  .service-all-details-area .service-main-content-details {
    padding: 0 15px;
  }

  /* Main headings (h2) */
  .service-main-content-details h2 {
    font-size: 26px !important;
    line-height: 1.3 !important;
    margin-bottom: 16px;
    word-wrap: break-word;
  }

  /* Section headings (h3) */
  .service-main-content-details h3 {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin-bottom: 14px;
    word-wrap: break-word;
  }

  /* Subsection headings (h4) */
  .service-main-content-details h4 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px;
    word-wrap: break-word;
  }

  /* Paragraph text */
  .service-main-content-details p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 16px;
    word-wrap: break-word;
    text-align: justify;
  }

  /* List items in content */
  .service-main-content-details .m-list li,
  .service-main-content-details .img-list li {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 10px;
    word-wrap: break-word;
  }

  /* Style for img-list items */
  .service-main-content-details .img-list li {
    position: relative;
    padding-left: 28px;
    display: flex;
    align-items: center;
    padding: 4px 0 4px 28px;
    margin-bottom: 6px;
  }

  .service-main-content-details .img-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
  }

  .service-main-content-details .img-list li::after {
    content: '\2713';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
  }

  .service-main-content-details .img-list li img {
    display: none;
  }

  /* Skillsets list area - special styling */
  .service-main-content-details .m-list-area {
    background: #f8f9fa;
    padding: 20px 15px;
    border-radius: 10px;
    margin-top: 15px;
  }

  .service-main-content-details .m-list-area .col-lg-4,
  .service-main-content-details .m-list-area .col-md-6 {
    margin-bottom: 0;
  }

  .service-main-content-details .m-list-area .col-lg-4:last-child,
  .service-main-content-details .m-list-area .col-md-6:last-child {
    margin-bottom: 0;
  }
  
  /* Remove padding between columns */
  .service-main-content-details .m-list-area .row {
    margin-left: -15px;
    margin-right: -15px;
  }
  
  .service-main-content-details .m-list-area [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
  }

  .service-main-content-details .m-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0 !important;
  }

  .service-main-content-details .m-list li {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 14px !important;
    font-weight: 500;
    color: #1a1a1a;
    position: relative;
    padding-left: 28px;
    margin-bottom: 6px;
  }

  .service-main-content-details .m-list li:last-child {
    margin-bottom: 0;
  }

  .service-main-content-details .m-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .service-main-content-details .m-list li::after {
    content: '\2713';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
  }

  .service-main-content-details .m-list li img {
    display: none;
  }

  /* Adjust spacing for better readability */
  .space48 {
    height: 36px !important;
  }

  .space32 {
    height: 24px !important;
  }

  .space18 {
    height: 14px !important;
  }

  .space16 {
    height: 12px !important;
  }
}

/* Mobile Phones */
@media (max-width: 767px) {
  .service-all-details-area .service-main-content-details {
    padding: 0 10px;
  }

  /* Main headings (h2) */
  .service-main-content-details h2 {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin-bottom: 14px;
  }

  /* Section headings (h3) */
  .service-main-content-details h3 {
    font-size: 19px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px;
  }

  /* Subsection headings (h4) */
  .service-main-content-details h4 {
    font-size: 16px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px;
  }

  /* Paragraph text */
  .service-main-content-details p {
    font-size: 14px !important;
    line-height: 1.75 !important;
    margin-bottom: 14px;
  }

  /* List items */
  .service-main-content-details .m-list li,
  .service-main-content-details .img-list li {
    font-size: 13px !important;
    line-height: 1.65 !important;
    margin-bottom: 8px;
  }

  /* Skillsets section - mobile optimized */
  .service-main-content-details .m-list-area {
    background: #f0f4f8;
    padding: 15px 12px;
    border-radius: 8px;
    margin-top: 10px;
  }

  .service-main-content-details .m-list-area .col-lg-4,
  .service-main-content-details .m-list-area .col-md-6 {
    margin-bottom: 0;
  }

  .service-main-content-details .m-list {
    margin-bottom: 0 !important;
  }

  .service-main-content-details .m-list li {
    padding: 3px 0;
    font-size: 13px !important;
    font-weight: 500;
    padding-left: 26px;
    margin-bottom: 5px;
  }

  .service-main-content-details .m-list li:last-child {
    margin-bottom: 0;
  }

  .service-main-content-details .m-list li::before {
    width: 16px;
    height: 16px;
  }

  .service-main-content-details .m-list li::after {
    left: 4px;
    font-size: 11px;
  }

  /* Adjust spacing for smaller screens */
  .space48 {
    height: 30px !important;
  }

  .space32 {
    height: 20px !important;
  }

  .space18 {
    height: 12px !important;
  }

  .space16 {
    height: 10px !important;
  }
}

/* Extra Small Phones */
@media (max-width: 576px) {
  .service-all-details-area .service-main-content-details {
    padding: 0 5px;
  }

  /* Main headings (h2) */
  .service-main-content-details h2 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px;
  }

  /* Section headings (h3) */
  .service-main-content-details h3 {
    font-size: 18px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px;
  }

  /* Subsection headings (h4) */
  .service-main-content-details h4 {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 8px;
  }

  /* Paragraph text */
  .service-main-content-details p {
    font-size: 13px !important;
    line-height: 1.8 !important;
    margin-bottom: 12px;
    text-align: left; /* Left align for very small screens for better readability */
  }

  /* List items */
  .service-main-content-details .m-list li,
  .service-main-content-details .img-list li {
    font-size: 12px !important;
    line-height: 1.7 !important;
    margin-bottom: 6px;
  }

  /* Skillsets section - extra small screens */
  .service-main-content-details .m-list-area {
    background: #f0f4f8;
    padding: 12px 10px;
    border-radius: 6px;
    margin-top: 8px;
  }

  .service-main-content-details .m-list-area .col-lg-4,
  .service-main-content-details .m-list-area .col-md-6 {
    margin-bottom: 0;
  }

  .service-main-content-details .m-list {
    margin-bottom: 0 !important;
  }

  .service-main-content-details .m-list li {
    padding: 2px 0;
    font-size: 12px !important;
    font-weight: 500;
    padding-left: 24px;
    margin-bottom: 4px;
  }

  .service-main-content-details .m-list li:last-child {
    margin-bottom: 0;
  }

  .service-main-content-details .m-list li::before {
    width: 14px;
    height: 14px;
  }

  .service-main-content-details .m-list li::after {
    left: 3.5px;
    font-size: 10px;
  }

  /* Adjust spacing for smallest screens */
  .space48 {
    height: 24px !important;
  }

  .space32 {
    height: 16px !important;
  }

  .space18 {
    height: 10px !important;
  }

  .space16 {
    height: 8px !important;
  }

  .space8 {
    height: 6px !important;
  }
}

/* Image optimization for mobile */
@media (max-width: 991px) {
  .service-main-content-details .img1 img,
  .service-main-content-details .img-list-area img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* List area responsive grid */
  .service-main-content-details .m-list-area .col-lg-4,
  .service-main-content-details .m-list-area .col-md-6 {
    margin-bottom: 20px;
  }

  .service-main-content-details .m-list-area .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }

  /* Force single column layout on mobile for better readability */
  @media (max-width: 767px) {
    .service-main-content-details .m-list-area .col-lg-4,
    .service-main-content-details .m-list-area .col-md-6 {
      flex: 0 0 100%;
      max-width: 100%;
      margin-bottom: 15px;
    }

    .service-main-content-details .m-list-area .col-lg-4:last-child,
    .service-main-content-details .m-list-area .col-md-6:last-child {
      margin-bottom: 0;
    }
  }
}

/* Improve readability with better contrast and spacing */
@media (max-width: 767px) {
  .service-main-content-details {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px 15px !important;
  }

  /* Add subtle shadow for better content separation */
  .service-all-details-area {
    background-color: #f8f9fa;
  }
}

/* Font weight adjustments for emphasis on mobile */
@media (max-width: 767px) {
  .service-main-content-details h2,
  .service-main-content-details h3,
  .service-main-content-details h4 {
    font-weight: 700 !important;
  }

  .service-main-content-details p {
    font-weight: 400 !important;
    color: #333 !important;
  }
}
