body {
  background: #f8f9fa;
  color: #333;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
}

.small-caps {
  font-variant: small-caps;
  font-size: larger;
  text-transform: lowercase;
}

.navbar {
  background: #e3f2fd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.navbar-brand {
  font-weight: 600;
}

.section {
  padding: 60px 0;
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 2rem;
  color: #1976d2;
  margin-bottom: 20px;
}

.section p,ul,li {
  font-size: 1.2rem;
}

.section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Add a bit more space between text and image columns */
.section .row {
  /* Increase Bootstrap horizontal gutter just for section rows */
  --bs-gutter-x: 2rem;
}

/* Collapsible long text with fade */
.section-text {
  position: relative;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.section-text.collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5em; /* fade height */
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

.see-more {
  margin-top: 10px;
}

/* Mobile-specific rules */
@media (max-width: 767.98px) {
  /* Reduce navbar brand size */
  .navbar-brand {
    font-size: 0.95rem;
  }

  /* Reduce main title size */
  .presentation h1 {
    font-size: 2rem !important;
  }

  /* Reduce all text sizes */
  .presentation p {
    font-size: 1rem !important;
  }

  .section-title {
    font-size: 1.6rem !important;
  }

  .section p, .section ul, .section li {
    font-size: 1rem !important;
  }

  /* Reduce section padding (space between sections) */
  .section {
    padding: 10px 0 !important;
  }

  /* 96px banner (doubled from 48px) with fade out at bottom */
  .section .section-banner {
    display: block;
    width: 100%;
    height: 96px !important; /* doubled banner height */
    max-height: 96px; /* safety */
    object-fit: cover; /* crop instead of squish */
    object-position: center; /* adjust per image if needed */
    border-radius: 8px;
    margin: 12px 0 0px 0; /* breathing room around banner */
    /* Add fade out using mask-image */
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent 100%);
  }

  /* Ensure generic section images don't auto-become banners; they are hidden via d-none on mobile */
  .section img.section-illustration {
    display: none;
  }

  /* Default collapsed height on small screens - increased to show more text */
  .section-text.collapsed {
    max-height: 24rem; /* increased from 16rem to show more content */
  }
  .section-text.collapsed::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  }
}

/* Desktop/Tablet: banners are hidden; illustrations show normally */
@media (min-width: 768px) {
  .section-banner {
    display: none;
  }

  /* Keep images at the top of sections instead of centering them vertically */
  .section .row {
    align-items: flex-start !important;
  }
}

.presentation {
  background: linear-gradient(90deg, #e3f2fd 0%, #fff 100%);
  padding: 80px 0 40px 0;
  text-align: center;
}

.presentation h1 {
  font-size: 2.5rem;
  color: #1976d2;
  margin-bottom: 20px;
}

.presentation p {
  font-size: 1.2rem;
  color: #333;
  max-width: 1000px;
  margin: 0 auto;
}

/* Appointment button */
.appointment-button-wrapper {
  text-align: right;
  padding-right: 10%;
  margin-top: 30px;
}

.btn-appointment {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 30px;
}

/* Mobile: center the button */
@media (max-width: 767.98px) {
  .appointment-button-wrapper {
    text-align: center;
    padding-right: 0;
  }
}

footer {
  background: #f5f5f5;
  color: #555;
}
