
  /* 3) Our Experties////////////////////// */
.containerDiv .expertiesContainer {
  margin: 0 auto;
  padding: 60px 4% 80px;
  height: auto;
  /* max-width: 1400px; Added max-width for very large screens */
}
.expertiesCard p.running_text{
  font-size: 13px !important;font-weight: normal !important;
  text-align: justify;
}

.containerDiv .expertiesContainer .expertiesCardBox {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 3.75em;
  margin: 30px auto 0;
  width: 100%;
}

.containerDiv .expertiesContainer .expertiesCardBox .expertiesCard {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding: 0 1em;
  position: relative;
  height: 100%;
}

.containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .imageBox {
  object-fit: contain;
  max-width: clamp(7.375rem, 5.786rem + 10.946vw, 24.938rem);
  max-height: clamp(6.813rem, 5.438rem + 9.875vw, 11.625rem);
  width: 100%; /* Added to ensure proper scaling */
  margin-bottom: 1rem; /* Added spacing below image */
}

.containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .imageBox img {
  max-width: 100%;
  max-height: 100%;
  width: auto; /* Added for better image scaling */
  height: auto; /* Added for better image scaling */
}

.containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .cardContent {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%; /* Added for full width on mobile */
}

.containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .cardContent p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 0.929rem + 0.357vw, 1.25rem);
  /* font-size: clamp(1rem, 0.929rem + 0.357vw, 1.25rem); */
  font-weight: 600;
  line-height: 1.75em;
  /* color: rgba(0, 0, 0, 1); */
  margin-bottom: 0.75rem; /* Added spacing between paragraphs */
}



.containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .cardContent button {
  font-family: "Inter", sans-serif;
  background: white;
  font-size: clamp(0.75rem, 0.679rem + 0.357vw, 1rem);
  font-weight: 500;
  line-height: 4.25em;
  padding: 0 2.5em;
  max-height: 2.1875em;
  margin: 0 auto;
  color: rgba(69, 69, 69, 1);
  max-width: 12.25em;
  border-radius: 0.25em;
  border: 0.125em solid rgba(171, 182, 190, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
  margin-top: auto;
}

.containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .cardContent button:hover {
  cursor: pointer;
  border: 0.125em solid rgba(80, 80, 80, 1);
  background: rgba(80, 80, 80, 1);
  color: white;
}

.containerDiv .expertiesContainer .expertiesCardBox .borderCardB::after,
.containerDiv .expertiesContainer .expertiesCardBox .borderCardE::after {
  content: "";
  position: absolute;
  width: 0.0625em;
  height: 24.75em;
  background: rgba(156, 156, 156, 1);
  opacity: 60%;
  right: 0;
  top: 10%;
}

.containerDiv .expertiesContainer .expertiesCardBox .borderCardB::before,
.containerDiv .expertiesContainer .expertiesCardBox .borderCardE::before {
  content: "";
  position: absolute;
  width: 0.0625em;
  height: 24.75em;
  background: rgba(156, 156, 156, 1);
  opacity: 60%;
  left: 0;
  top: 10%;
}

@media only screen and (max-width: 1155px) {
  .containerDiv .expertiesContainer .expertiesCardBox {
    grid-template-columns: 1fr 1fr;
  }

  .containerDiv .expertiesContainer .expertiesCardBox .borderCardB::after,
  .containerDiv .expertiesContainer .expertiesCardBox .borderCardB::before,
  .containerDiv .expertiesContainer .expertiesCardBox .borderCardE::before {
    display: none;
  }

  .containerDiv .expertiesContainer .expertiesCardBox .borderCardA::after,
  .containerDiv .expertiesContainer .expertiesCardBox .borderCardC::after,
  .containerDiv .expertiesContainer .expertiesCardBox .borderCardE::after {
    content: "";
    position: absolute;
    width: 0.0625em;
    height: .10em;
    background: rgba(156, 156, 156, 1);
    opacity: 60%;
    right: 0;
    top: 10%;
  }

  .containerDiv .expertiesContainer .expertiesCardBox .borderCardB .expertiseCardImage {
    transform: scaleX(-1);
  }
}



@media only screen and (max-width: 700px) {
  .containerDiv .expertiesContainer .expertiesCardBox {
    grid-template-columns: 1fr;
    margin: 1.25em auto 0;
    row-gap: 2.8em;
  }

  .containerDiv .expertiesContainer .expertiesCardBox .expertiesCard {
    padding: 0 0.5em !important; /* Added some minimal padding */
    flex-direction: row;
    justify-content: start;
    gap: 0.9375em;
  }

  /* Improve image size on mobile */
  .containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .imageBox {
    min-width: 80px; /* Minimum width to prevent tiny images */
    max-width: 100px; /* Maximum width to prevent oversized images */
    margin-right: 10px; /* Add space between image and text */
  }

 

  

  .containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .cardContent button {
    padding: 0 0 0.0625em 0;
    color: rgba(44, 113, 246, 1);
    max-width: 12.25em;
    border: none;
    border-bottom: 0.05em solid rgba(44, 113, 246, 1);
    border-radius: 0;
    margin: 0.1em auto 0 0 !important;
    max-height: auto;
    font-size: 0.9rem !important; /* Increased button text size */
  }

  .containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .cardContent button:hover {
    border: none;
    border-bottom: 0.14em solid rgb(0, 85, 255);
    color: rgb(0, 85, 255);
    background-color: white !important;
  }

  .containerDiv .expertiesContainer .expertiesCardBox .borderCardB .expertiseCardImage {
    transform: scaleX(1);
  }

  .containerDiv .expertiesContainer .expertiesCardBox .borderCardF .expertiseCardImage {
    transform: scaleX(-1);
  }

  .containerDiv .expertiesContainer .expertiesCardBox .borderCardA::after,
  .containerDiv .expertiesContainer .expertiesCardBox .borderCardC::after,
  .containerDiv .expertiesContainer .expertiesCardBox .borderCardE::after {
    display: none;
  }
}

/* Added extra small device breakpoint for better mobile experience */
@media only screen and (max-width: 480px) {
  .containerDiv .expertiesContainer {
    padding: 30px 4% 50px; /* Further reduced padding */
  }

  .containerDiv .expertiesContainer .expertiesCardBox .expertiesCard {
    flex-direction: column; /* Stack vertically on very small screens */
    text-align: center;
    padding: 0 1em !important;
  }

  .containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .imageBox {
    min-width: 100px; /* Slightly larger on very small screens */
    max-width: 120px;
    margin: 0 auto 15px; /* Center image and add bottom margin */
  }



 

  .containerDiv .expertiesContainer .expertiesCardBox .expertiesCard .cardContent button {
    margin: 1em auto 0 !important; /* Center button */
  }
}

/* Custom styling for the modal popup */
.modal-dialog {
  max-width: 80%; /* 80% of screen width */
  margin: auto;
  padding: 0 !important;
}

.modal-dialog .modal-header {
  padding: 30px 20px;
}

.modal-dialog .modal-content {
  padding: 0 20px 15px;
  margin: 40px 0;
}

.modal-dialog .expertisePopupContentContainer {
  display: flex;
  align-items: start;
  padding: 0px 18px;
}

.modal-dialog .expertisePopupContentContainer li {
  margin-bottom: 6px;
  font-size: 0.8rem; /* Added font size for list items */
}

.modal-dialog .expertisePopupBox {
  margin: 5px 0;
}

.modal-dialog .expertisePopupImage {
  width: 30%;
  max-height: 400px; /* Control the image height */
  object-fit: cover; /* Maintain aspect ratio */
  margin: auto 0px;
}

.modal-dialog .downloadButton {
  font-family: "Inter", sans-serif;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: white;
  max-height: 1.875em;
  border-radius: 0.25em;
  border: 0.125em solid rgba(171, 182, 190, 1);
  color: rgba(69, 69, 69, 1);
  cursor: pointer;
  padding: 1.2em 2.5em;
  position: relative;
  transition: transform 0.3s ease;
  outline: none;
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
  margin: 20px auto 0;
}

.modal-dialog .downloadButton:hover {
  cursor: pointer;
  border: 0.125em solid rgba(80, 80, 80, 1);
  background: rgba(80, 80, 80, 1);
  color: white;
}

@media only screen and (max-width: 1157px) {
  .modal-dialog .expertisePopupContentContainer {
    flex-direction: column;
    align-items: center;
  }
}

@media only screen and (max-width: 562px) {
  .modal-dialog {
    max-width: 100%; /* 100% of screen width */
    margin: 0;
  }

  .modal-dialog .modal-content {
    border-radius: 0;
    margin: 0px 0;
  }

  .modal-dialog .expertisePopupContentContainer {
    padding: 10px;
  }

  /* Improve modal content on mobile */
  .modal-dialog .modal-header {
    padding: 20px 15px;
  }

  .modal-dialog .modal-header h5 {
    font-size: 1.2rem !important; /* Larger modal title */
  }

  .modal-dialog .expertisePopupContentContainer li {
    font-size: 0.85rem; /* Adjusted list item size */
    line-height: 1.5;
  }

  .modal-dialog .downloadButton {
    min-width: 180px; /* Slightly smaller button width */
    font-size: 0.85rem; /* Smaller font size */
    padding: 1em 2em; /* Reduced padding */
  }
}
@media only screen and (max-width: 768px) {
  .expertisePopupBox ul li{
    font-size: 15px !important;
  }
  p.sectionParagraph span{
    font-size: 15px !important;
  }
p.sectionParagraph{
    font-size: 15px !important;
  }

    .expertiesCard p.running_text{
  font-size: 15px !important;font-weight: normal !important;
   text-align: justify;
  ;
}
  .containerDiv .expertiesContainer {
    margin: 0 auto;
    padding: 40px 6% 60px; /* Reduced padding for better space usage */
  }

  /* Increase font size for section heading on mobile */
  .containerDiv .expertiesContainer .sectionHeading {
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem;
  }

  /* Increase card spacing */
  .containerDiv .expertiesContainer .expertiesCardBox {
    row-gap: 2.5em;
  }
}
/* Expertise Email Modal Styles */
#expertiseEmailModal .modal-content {
  border-radius: 12px;
  width:fit-content;
 
}

#expertiseEmailModal .modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
}

#expertiseEmailModal .modal-title {
  color: #333;
  font-weight: 600;
}

#expertiseEmailModal .form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

#expertiseEmailModal .form-control {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

#expertiseEmailModal .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#expertiseEmailModal .form-control.is-invalid {
  border-color: #dc3545;
}

#expertiseEmailModal .invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
}

#expertiseEmailFormLoader {
  color: #007bff;
  padding: 10px;
}

#expertiseEmailFormMessage {
  margin-top: 10px;
}

#expertiseEmailModal .btn-primary {
color:white;background:rgb(97, 97, 97);border:0.0625em solid rgb(97, 97, 97);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#expertiseEmailModal .btn-primary:hover:not(:disabled) {
  background-color: #0056b3;
  border-color: #0056b3;
}
.btn-secondary {
  color: #6c757d;
  background-color: white;
  border: 1px solid #6c757d;
}
#expertiseEmailModal .btn-primary:disabled {
color:white;background:rgb(97, 97, 97);border:0.0625em solid rgb(97, 97, 97);
  cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
  #expertiseEmailModal .modal-dialog {
    margin: 10px;
  }
}
