/* ==========================================================
   WASSO HOSPITAL — MODERN GALLERY AND FAQ
========================================================== */

.modern-home-gallery,
.modern-home-faq {
  --gallery-primary: #075985;
  --gallery-dark: #04364f;
  --gallery-secondary: #0f766e;
  --gallery-accent: #f59e0b;
  --gallery-heading: #0f172a;
  --gallery-text: #64748b;
  --gallery-border: #dbe7ee;
  --gallery-soft: #f3f9fb;
  --gallery-shadow: 0 24px 65px rgba(15, 23, 42, 0.11);
}

/* ==========================================================
   GALLERY
========================================================== */

.modern-home-gallery {
  position: relative;
  overflow: hidden;
  padding: 105px 0;
  background:
    radial-gradient(
      circle at 5% 10%,
      rgba(14, 116, 144, 0.09),
      transparent 28%
    ),
    radial-gradient(
      circle at 95% 90%,
      rgba(15, 118, 110, 0.08),
      transparent 27%
    ),
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}

.modern-gallery-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.gallery-decoration-one {
  top: -170px;
  right: -140px;
  width: 410px;
  height: 410px;
  background: rgba(7, 89, 133, 0.05);
}

.gallery-decoration-two {
  bottom: -180px;
  left: -150px;
  width: 380px;
  height: 380px;
  background: rgba(15, 118, 110, 0.05);
}

.modern-home-gallery > .container {
  position: relative;
  z-index: 2;
}

.modern-gallery-heading {
  position: relative;
  max-width: 820px;
  margin: 0 auto 49px;
  padding-right: 145px;
}

.modern-gallery-label,
.modern-faq-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 8px 13px;
  border: 1px solid #cce9e4;
  border-radius: 999px;
  color: var(--gallery-secondary);
  background: #effcf8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.modern-gallery-heading h2 {
  margin-bottom: 15px;
  color: var(--gallery-heading);
  font-family: "Poppins", sans-serif;
  font-size: clamp(36px, 4.6vw, 53px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1.3px;
}

.modern-gallery-heading p {
  margin: 0;
  color: var(--gallery-text);
  font-size: 16px;
  line-height: 1.85;
}

.modern-gallery-all-link {
  position: absolute;
  right: 0;
  bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gallery-primary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.modern-gallery-all-link:hover {
  color: var(--gallery-secondary);
}

.modern-gallery-slider {
  overflow: visible;
  padding: 8px 3px 22px;
}

.modern-gallery-slide {
  height: auto;
}

.modern-gallery-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--gallery-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: 0.35s ease;
}

.modern-gallery-card:hover {
  border-color: #acdcd4;
  transform: translateY(-9px);
  box-shadow: 0 28px 60px rgba(15, 118, 110, 0.15);
}

.modern-gallery-lightbox {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.modern-gallery-lightbox:hover {
  color: inherit;
}

.modern-gallery-image-wrap {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #dbe7ee;
}

.modern-gallery-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.65s ease,
    filter 0.4s ease;
}

.modern-gallery-card:hover .modern-gallery-image-wrap img {
  transform: scale(1.075);
  filter: saturate(1.08);
}

.modern-gallery-image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(3, 31, 50, 0.56),
      transparent 50%
    );
  opacity: 0.45;
  transition: 0.35s ease;
}

.modern-gallery-card:hover .modern-gallery-image-shade {
  opacity: 0.75;
}

.modern-gallery-zoom {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: #fff;
  background: rgba(3, 31, 50, 0.6);
  backdrop-filter: blur(9px);
  font-size: 18px;
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.35s ease;
}

.modern-gallery-card:hover .modern-gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

.modern-gallery-index {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Poppins", sans-serif;
  font-size: 27px;
  font-weight: 800;
}

.modern-gallery-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.modern-gallery-category {
  display: block;
  margin-bottom: 7px;
  color: var(--gallery-secondary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modern-gallery-content h3 {
  margin-bottom: 10px;
  color: var(--gallery-heading);
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 800;
}

.modern-gallery-content p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 18px;
  color: var(--gallery-text);
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.modern-gallery-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--gallery-border);
  color: var(--gallery-primary);
  font-size: 12px;
  font-weight: 800;
}

.modern-gallery-view i {
  width: 37px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eaf6fa;
  transition: 0.3s ease;
}

.modern-gallery-card:hover .modern-gallery-view i {
  color: #fff;
  background: var(--gallery-primary);
  transform: translate(3px, -3px);
}

/* Gallery controls */

.modern-gallery-controls {
  display: grid;
  grid-template-columns: 48px minmax(100px, 240px) 48px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 32px;
}

.modern-gallery-prev,
.modern-gallery-next {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gallery-border);
  border-radius: 14px;
  color: var(--gallery-primary);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: 0.3s ease;
}

.modern-gallery-prev:hover,
.modern-gallery-next:hover {
  color: #fff;
  border-color: var(--gallery-primary);
  background: var(--gallery-primary);
  transform: translateY(-3px);
}

.modern-gallery-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-gallery-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 5px !important;
  background: #b7c7cf;
  opacity: 1;
  transition: 0.3s ease;
}

.modern-gallery-pagination .swiper-pagination-bullet-active {
  width: 27px;
  border-radius: 999px;
  background: var(--gallery-secondary);
}

.modern-gallery-empty,
.modern-gallery-error {
  width: 100%;
  padding: 55px 30px;
  border: 1px dashed #b7ccd6;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.modern-gallery-empty > span {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  border-radius: 22px;
  color: var(--gallery-primary);
  background: #eaf6fa;
  font-size: 30px;
}

.modern-gallery-empty h3,
.modern-gallery-error h3 {
  color: var(--gallery-heading);
  font-size: 22px;
  font-weight: 800;
}

.modern-gallery-empty p,
.modern-gallery-error p {
  margin: 0;
  color: var(--gallery-text);
}

/* ==========================================================
   FAQ
========================================================== */

.modern-home-faq {
  position: relative;
  padding: 105px 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f8fa 100%);
}

.modern-faq-introduction {
  position: sticky;
  top: 145px;
}

.modern-faq-introduction h2 {
  margin-bottom: 19px;
  color: var(--gallery-heading);
  font-family: "Poppins", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.modern-faq-introduction > p {
  margin-bottom: 28px;
  color: var(--gallery-text);
  font-size: 15px;
  line-height: 1.85;
}

.modern-faq-help-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 17px;
  padding: 22px;
  border: 1px solid #bfe1dc;
  border-radius: 20px;
  background:
    linear-gradient(145deg, #effcf8, #ffffff);
  box-shadow: 0 15px 38px rgba(15, 118, 110, 0.08);
}

.modern-faq-help-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(
    145deg,
    var(--gallery-primary),
    var(--gallery-secondary)
  );
  font-size: 27px;
}

.modern-faq-help-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--gallery-secondary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.modern-faq-help-card h3 {
  margin-bottom: 6px;
  color: var(--gallery-heading);
  font-size: 18px;
  font-weight: 800;
}

.modern-faq-help-card p {
  margin: 0;
  color: var(--gallery-text);
  font-size: 12px;
  line-height: 1.65;
}

.modern-faq-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 25px;
}

.modern-faq-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 19px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--gallery-primary),
    var(--gallery-secondary)
  );
  box-shadow: 0 14px 28px rgba(7, 89, 133, 0.21);
  font-size: 12px;
  font-weight: 800;
}

.modern-faq-primary-button:hover {
  color: #fff;
  transform: translateY(-3px);
}

.modern-faq-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gallery-primary);
  font-size: 13px;
  font-weight: 800;
}

/* Accordion */

.modern-faq-accordion {
  display: grid;
  gap: 14px;
}

.modern-faq-item {
  overflow: hidden;
  border: 1px solid var(--gallery-border) !important;
  border-radius: 18px !important;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.modern-faq-item .accordion-button {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 41px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 17px 20px;
  color: var(--gallery-heading);
  background: #fff;
  box-shadow: none !important;
  font-weight: 800;
}

.modern-faq-item .accordion-button:not(.collapsed) {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--gallery-dark),
      var(--gallery-primary),
      var(--gallery-secondary)
    );
}

.modern-faq-item .accordion-button::after {
  display: none;
}

.modern-faq-number {
  width: 47px;
  height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--gallery-primary);
  background: #eaf6fa;
  font-size: 12px;
  font-weight: 900;
}

.modern-faq-item
.accordion-button:not(.collapsed)
.modern-faq-number {
  color: #422006;
  background: #fbbf24;
}

.modern-faq-question {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.modern-faq-toggle-icon {
  width: 41px;
  height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--gallery-primary);
  background: #f0f7fa;
  transition: 0.3s ease;
}

.modern-faq-item
.accordion-button:not(.collapsed)
.modern-faq-toggle-icon {
  color: var(--gallery-dark);
  background: #fff;
  transform: rotate(45deg);
}

.modern-faq-item .accordion-body {
  padding: 22px 25px 24px 81px;
  color: var(--gallery-text);
  background: #fff;
  font-size: 14px;
  line-height: 1.85;
}

.modern-faq-item .accordion-body p {
  margin-bottom: 12px;
}

.modern-faq-item .accordion-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 991px) {
  .modern-gallery-heading {
    padding-right: 0;
    text-align: center;
  }

  .modern-gallery-all-link {
    position: static;
    margin-top: 17px;
  }

  .modern-faq-introduction {
    position: static;
    margin-bottom: 15px;
  }
}

@media (max-width: 767px) {
  .modern-home-gallery,
  .modern-home-faq {
    padding: 75px 0;
  }

  .modern-gallery-heading {
    margin-bottom: 37px;
  }

  .modern-gallery-image-wrap {
    height: 320px;
  }

  .modern-gallery-content {
    padding: 21px;
  }

  .modern-faq-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modern-faq-primary-button,
  .modern-faq-phone-link {
    width: 100%;
    justify-content: center;
  }

  .modern-faq-item .accordion-button {
    grid-template-columns: 43px minmax(0, 1fr) 38px;
    gap: 11px;
    padding: 15px;
  }

  .modern-faq-number {
    width: 43px;
    height: 43px;
  }

  .modern-faq-toggle-icon {
    width: 38px;
    height: 38px;
  }

  .modern-faq-item .accordion-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .modern-gallery-image-wrap {
    height: 290px;
  }

  .modern-gallery-controls {
    grid-template-columns: 45px minmax(80px, 1fr) 45px;
  }

  .modern-gallery-prev,
  .modern-gallery-next {
    width: 45px;
    height: 45px;
  }

  .modern-faq-help-card {
    grid-template-columns: 53px minmax(0, 1fr);
    padding: 18px;
  }

  .modern-faq-help-icon {
    width: 53px;
    height: 53px;
  }

  .modern-faq-question {
    font-size: 13px;
  }
}