/* =========================================
   Global configuration (easy tuning)
   ========================================= */

:root {
  --section-bg: #ffffff;
  --card-bg: #ffffff;
  --card-border: #e9ecef;

  --text-primary: #1f2933;
  --text-secondary: #4b5563;

  --title-size: 1.1rem;
  --body-size: 0.95rem;

  --card-radius: 0.75rem;
}

/* =========================================
   Base
   ========================================= */

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--section-bg);
}

/* =========================================
   Section
   ========================================= */

.home-section {
  background-color: var(--section-bg);
}

/* =========================================
   Cards
   ========================================= */

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

/* Images always centered and fitted */
.card img {
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Typography
   ========================================= */

.card-text {
  font-size: var(--body-size);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Ensure shimmer is above before/after images */
.card-img-shimmer::after {
  z-index: 2;
}

.card-img-shimmer>* {
  position: relative;
  z-index: 1;
}

.hero-section {
  height: 50vh;
  /* Half viewport height */
  background-size: cover;
  /* Ensure image fits section */
  background-position: center;
  /* Always center background */
  background-repeat: no-repeat;
}

/* =========================================
   OASES Intro Section
   ========================================= */

.oases-intro-section {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.oases-intro-card {
  padding: 1rem 1rem;
}

.oases-line {
  width: 56px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(13,110,253,0),
    rgba(13,110,253,0.7),
    rgba(13,110,253,0)
  );
  margin: 0 auto;
}

.oases-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #1f2933;
  text-transform: uppercase;
  margin-bottom: 0.45rem !important;
}

.oases-subtitle {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 500;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 0.7rem !important;
}

.oases-description {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: #0d6efd;
  font-weight: 600;
  line-height: 1.5;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Facility Intro Section
   ========================================= */

.oases-facility-section {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );
}

.oases-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #780f34;
}

.oases-facility-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #1f2933;
  line-height: 1.2;
}

.oases-facility-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: #4b5563;
  line-height: 1.6;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.oases-facility-description {
  font-size: 1rem;
  line-height: 1.9;
  color: #6b7280;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-justify: inter-word;
}

.btn-oases {
  background-color: #780f34;
  color: #ffffff;
}

/* =========================================
   CREDENTIALS SECTION
========================================= */

.credentials-section {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fafc 100%
    );
}

.credentials-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d6efd;
}

.credentials-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1f2933;
}

.credentials-subtitle {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #6b7280;
}

/* =========================================
   TRUST METRICS
========================================= */

.trust-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 1.25rem;
  padding: 1.6rem 1rem;
  transition: 0.3s ease;
  height: 100%;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 15px 40px rgba(0,0,0,0.06);
}

.trust-card h3 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 0.45rem;
}

.trust-card p {
  margin-bottom: 0;
  color: #4b5563;
  font-weight: 500;
}

/* =========================================
   CERTIFICATE CARDS
========================================= */

.certificate-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid #edf2f7;
  transition: 0.35s ease;
}

.certificate-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.4s ease;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.08);
}

.certificate-card:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.certificate-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.65),
      rgba(0,0,0,0.08)
    );

  display: flex;
  align-items: end;
  justify-content: center;

  padding-bottom: 1rem;

  opacity: 0;
  transition: 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
  opacity: 1;
}

.certificate-overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* =========================================
   MODAL
========================================= */

.certificate-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;
}

.certificate-modal.active {
  opacity: 1;
  visibility: visible;
}

.certificate-modal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4);
}

.certificate-close {
  position: absolute;
  top: 30px;
  right: 35px;

  background: transparent;
  border: none;

  color: white;
  font-size: 3rem;
  line-height: 1;

  cursor: pointer;
}

/* =========================================
   CREDENTIALS SECTION
========================================= */

.credentials-section {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fafc 100%
    );
}

.credentials-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d6efd;
}

.credentials-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1f2933;
}

.credentials-subtitle {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #6b7280;
}

/* =========================================
   TRUST METRICS
========================================= */

.trust-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 1.25rem;
  padding: 1.6rem 1rem;
  transition: 0.3s ease;
  height: 100%;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 15px 40px rgba(0,0,0,0.06);
}

.trust-card h3 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 0.45rem;
}

.trust-card p {
  margin-bottom: 0;
  color: #4b5563;
  font-weight: 500;
}

/* =========================================
   CERTIFICATE CARDS
========================================= */

.certificate-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid #edf2f7;
  transition: 0.35s ease;
}

.certificate-card img {
  width: 100%;
  height: 420px;

  object-fit: contain;
  object-position: center;

  background: #f8fafc;

  padding: 0.75rem;

  filter: grayscale(100%);
  transition: 0.4s ease;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.08);
}

.certificate-card:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.certificate-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.65),
      rgba(0,0,0,0.08)
    );

  display: flex;
  align-items: end;
  justify-content: center;

  padding-bottom: 1rem;

  opacity: 0;
  transition: 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
  opacity: 1;
}

.certificate-overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* =========================================
   MODAL
========================================= */

.certificate-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;
}

.certificate-modal.active {
  opacity: 1;
  visibility: visible;
}

.certificate-modal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4);
}

.certificate-close {
  position: absolute;
  top: 30px;
  right: 35px;

  background: transparent;
  border: none;

  color: white;
  font-size: 3rem;
  line-height: 1;

  cursor: pointer;
}

/* =========================================
   HERO WHATSAPP BUTTON
========================================= */

.btn-oases-whatsapp {
  background: #780f34;

  color: #ffffff !important;

  padding: 0.95rem 1.7rem;

  border-radius: 999px;

  font-weight: 600;

  font-size: 0.95rem;

  letter-spacing: 0.01em;

  transition: 0.3s ease;

  border: 1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.22);
}

.btn-oases-whatsapp:hover {
  background: #5e0c29;

  color: #ffffff !important;

  transform: translateY(-2px);

  box-shadow:
    0 16px 40px rgba(0,0,0,0.28);
}

.btn-oases-whatsapp .whatsapp-text {
  color: inherit;
}

/* =========================================
   Footer Map Link
========================================= */

.footer-map-link {
  color: #ffffff;

  font-size: 0.92rem;

  font-weight: 500;

  transition: 0.3s ease;
}

.footer-map-link:hover {
  color: #d1d5db;
}

.footer-map-link i {
  font-size: 1rem;
}

/* =========================================
   Footer Google Map
========================================= */

.footer-map-wrapper {
  overflow: hidden;

  border-radius: 1rem;

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.18);
}

.footer-map-wrapper iframe {
  width: 100%;

  height: 190px;

  border: 0;

  display: block;

  filter:
    grayscale(100%)
    contrast(1.05)
    brightness(0.92);
}

/* =========================================
   OASES PREMIUM GALLERY
========================================= */

.oases-gallery-section {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fafc 100%
    );
}

.gallery-eyebrow {
  font-size: 0.78rem;

  text-transform: uppercase;

  letter-spacing: 0.18em;

  color: #780f34;

  font-weight: 700;
}

.gallery-subtitle {
  font-size: 1rem;

  line-height: 1.8;

  color: #6b7280;

  max-width: 760px;

  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   GRID ALIGNMENT
========================================= */

.gallery-right-grid {
  width: 100%;
}

/* =========================================
   GALLERY CARDS
========================================= */

.gallery-card {
  overflow: hidden;

  border-radius: 1.5rem;

  background: #ffffff;

  height: 100%;

  box-shadow:
    0 12px 40px rgba(0,0,0,0.04);

  transition: 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 50px rgba(0,0,0,0.08);
}

.gallery-card img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.02);
}

/* =========================================
   LARGE IMAGE
========================================= */

.gallery-large {
  min-height: 520px;
}

.gallery-large img {
  min-height: 520px;
}

/* =========================================
   SMALL GRID CARDS
========================================= */

.gallery-right-grid .gallery-card {
  height: 250px;
}

/* =========================================
   Meet the Doctor – Expandable Bio
========================================= */

@media (min-width: 992px) {

  .doctor-bio-content {
    max-height: 410px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    cursor: pointer;
  }

  .doctor-bio-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;

    background: linear-gradient(
      to bottom,
      rgba(248,249,250,0),
      rgba(248,249,250,1)
    );

    pointer-events: none;
  }

  .doctor-bio-wrapper.expanded .doctor-bio-content {
    max-height: 2000px;
    cursor: default;
  }

  .doctor-bio-wrapper.expanded .doctor-bio-content::after {
    display: none;
  }

  .doctor-bio-collapse {
    display: none;

    border: none;
    background: transparent;

    color: #780f34;

    font-weight: 600;

    padding: 0;

    margin-top: 1rem;

    cursor: pointer;
  }

  .doctor-bio-wrapper.expanded .doctor-bio-collapse {
    display: inline-block;
  }
}

@media (max-width: 991.98px) {

  .doctor-bio-content {
    max-height: none;
    overflow: visible;
    cursor: default;
  }

  .doctor-bio-content::after {
    display: none;
  }

  .doctor-bio-collapse {
    display: none !important;
  }
}

.doctor-photo {
    max-height: 520px;
    object-fit: cover;
}

/* =========================================
   Treatment Title
========================================= */

.card-title {
    font-size: var(--title-size);

    font-weight: 600;

    line-height: 1.3;

    color: #780f34;

    letter-spacing: 0.02em;

    margin-bottom: 0.9rem !important;
}

/* =========================================
   View More Button
========================================= */

.treatment-details-link {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 0.75rem;

    padding: 0.45rem 1.1rem;

    border: #780f34;

    color: #780f34;

    text-decoration: none;

    border: 1px solid #780f34;

    border-radius: 10px;

    font-size: 0.84rem;

    font-weight: 600;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    transition: all .25s ease;
}

.treatment-details-link:hover {

    background: #5e0c29;

    border-color: #5e0c29;

    color: #ffffff;

    text-decoration: none;

    transform: translateY(-1px);
}
