@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

.case-study-banner {
  position: relative;
  /* background-image: url("images/general-practitioner-putting-his-stamp-prescription-document 3.png"); */
   background: url('/assets/images/CaseStudy/general-practitioner-putting-his-stamp-prescription-document 3.png');
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  color: #000;
  z-index: 1;
  overflow: hidden;
}

.case-study-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(253, 253, 253, 0.58); /* 58% white */
  z-index: 0;
}

.case-study-banner h1 {
  font-size: 3rem;
  margin: 0;
  position: relative;
  z-index: 1; /* Keep heading above the overlay */
  margin: 140px 70px;
  color: #0e447a;
}


.breadcrumb {
  position: absolute;
  top: 10%;
  left: 5%;
  font-size: 0.95rem;
  z-index: 2;
  color: #333;
}

.breadcrumb a {
  color: #575757;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #555;
}

.case-study-container {
  display: flex;
  justify-content: center;
}

.case-study-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  padding: 50px;
  width: 80%;
}

.case-study-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.card-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.card-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 15px;
  text-align: center;
}

.card-info {
  font-size: 0.9rem;
  color: #555;
  display: flex;
  justify-content: space-between !important;
  margin-top: 10px;
  flex-wrap: wrap;
}

.card-desc {
  font-size: 0.95rem;
  color: #444;
  margin-top: 12px;
  line-height: 1.5;
}

.card-link {
  margin-top: auto;
  padding-top: 10px;
}

.card-link a {
  color: #0066cc;
  font-weight: 500;
  text-decoration: none;
}

.card-link a:hover {
  text-decoration: underline;
}

.case-study-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 100px;
  gap: 40px;
  flex-wrap: wrap;
  background-color: #336699;
}

.case-study-cta .cta-content {
  flex: 1 1 400px;
  max-width: 600px;
}

.case-study-cta h2 {
  font-size: 25px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
}

.case-study-cta p {
  font-size: 18px;
  margin-bottom: 40px;
  color: #fff;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s;
  font-weight: 400;
}

.btn-primary {
  background-color: #fdfdfd;
  color: #336699;
  border: none;
}

.btn-primary:hover {
  background-color: #004fa1;
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fdfdfd;
}

.btn-secondary:hover {
  background-color: #004fa1;
}

.case-study-cta .cta-image {
  flex: 1 1 300px;
  text-align: center;
}

.case-study-cta .cta-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.faq-wrapper {
  position: relative;
  padding: 40px;
  /* background: #f9f9f9; */
  margin-top: 30px;
}

.faq-container {
  width: 100%;
  margin: 0 auto;
  padding-right: 200px; /* Space for overlap */
}

.accordion-section {
  background: #fff;
  padding: 50px 20px;
  border-radius: 0px;
  position: relative;
  z-index: 4;
  width: 60%;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0 20px 0;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  align-items: center;
}

.accordion-header h3 {
  font-size: 1rem;
  font-weight: bold;
}

.icon {
  font-size: 1.2rem;
  font-weight: bold;
}

.accordion-content {
  display: none;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

.accordion-item.active .accordion-content {
  display: block;
}

.question-box {
  position: absolute;
  top: 10px;
  right: 0;
  width: 40%;
  background: #e9f2fc;
  padding: 100px 40px 100px 40px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.question-container {
  width: 60%;
  margin: 0px auto;
}

.question-box h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.question-box p {
  font-size: 18px;
  margin-bottom: 20px;
}

.question-box button {
  background: #336699;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  font-family: poppins;
}

@media (max-width: 768px) {
  .faq-container {
    padding-right: 0;
  }

  accordion-section {
    width: 100%;
  }

  .question-box {
    padding: 30px;
    position: relative;
  }

  .service {
    flex-direction: column;
  }
  .separator {
    width: 100%;
    height: 1px;
    margin: 10px 0;
  }
  .icon-box {
    min-width: auto;
  }
}

@media screen and (max-width: 480px) {

    .case-study-banner{
        height: auto;
    }

    .case-study-banner h1{
        font-size: 1.5rem;
    }

    .case-study-cards{
        width: auto;
        padding: 20px;
        gap: 30px;
    }

    .faq-wrapper {
        padding: 10px;
    }

    .accordion-section {
        padding: 20px;
        width: auto;
        
    }

    .question-container {
        width: 100%;
    }

    .case-study-cta{
        padding: 30px 40px;
    }

    .faq-container{
        width: 100%;
    }

    .question-box{
        width: auto;
    }

}
