/* ==========================================================================
   Sri Chakra Multispeciality Hospital - Gastro Page Responsive Stylesheet
   Strictly following mobile typography guidelines (< 768px):
   - H1: 32px / line-height 1.3 / weight 700
   - H2: 26px / line-height 1.32 / weight 600
   - H3: 22px / line-height 1.35 / weight 500
   - P : 16px / line-height 1.35 / weight 400
   ========================================================================== */

/* ---------------- Medium / Tablet Screens (<= 1100px) ---------------- */
@media (max-width: 1100px) {
  .gastro-page-wrapper {
    padding: 20px 20px 50px;
  }

  .gastro-hero-card {
    min-height: 380px;
    border-radius: 22px;
    margin-bottom: 50px;
  }

  .gastro-hero-title {
    font-size: 38px;
    line-height: 46px;
  }

  .gastro-dept-grid,
  .gastro-care-grid,
  .memberships-grid,
  .gastro-integrated-grid {
    gap: 32px;
  }

  .expertise-cards-grid {
    gap: 16px;
  }

  .treatments-badge-row {
    gap: 16px;
  }
}

/* ---------------- Tablet Screens (<= 900px) ---------------- */
@media (max-width: 900px) {
  .gastro-dept-grid {
    grid-template-columns: 1fr;
  }

  .gastro-care-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse;
  }

  .gastro-img-frame {
    height: 320px;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }

  .expertise-cards-grid {
    grid-template-columns: 1fr;
  }

  .memberships-grid {
    grid-template-columns: 1fr;
  }

  .memberships-img-frame {
    height: 340px;
    max-width: 540px;
    margin: 0 auto;
  }

  .gastro-integrated-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Mobile Screens (<= 768px) ---------------- */
@media (max-width: 768px) {
  .gastro-page-wrapper {
    padding: 16px 14px 40px;
  }

  /* Typography guideline: H1 -> 32px, line-height 1.3, font-weight 700 */
  .gastro-hero-title {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
  }

  /* Typography guideline: H2 -> 26px, line-height 1.32, font-weight 600 */
  .section-heading-main {
    font-size: 26px;
    line-height: 1.32;
    font-weight: 600;
    margin-bottom: 24px;
  }

  /* Typography guideline: P -> 15-16px, line-height 1.4-1.5, font-weight 400 */
  .about-body-text {
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 16px;
  }

  .gastro-hero-card {
    min-height: 260px !important;
  border-radius: 18px !important;
    margin-bottom: 0px !important;
  }

  .gastro-hero-content {
    padding: 24px 16px;
  }

  .gastro-dept-section,
  .gastro-care-section,
  .gastro-expertise-section,
  .gastro-memberships-section,
  .gastro-treatments-section,
  .gastro-integrated-section {
    margin-bottom: 10px;
  }

  .expertise-card {
    padding: 16px 18px;
    border-radius: 14px;
    gap: 14px;
  }

  .expertise-icon-badge {
    width: 42px;
    height: 42px;
  }

  .expertise-title {
    font-size: 14px;
    line-height: 20px;
  }

  .memberships-badge-box {
    padding: 18px 16px;
  }

  .memberships-intro-text {
    font-size: 14px;
    line-height: 22px;
  }

  .membership-item {
    padding: 12px 16px;
    gap: 12px;
  }

  .membership-icon {
    width: 30px;
    height: 30px;
  }

  .membership-name {
    font-size: 13.5px;
  }

  /* Treatments Badge Cards Grid on Mobile */
  .treatments-badge-wrapper {
    gap: 28px;
    padding-top: 14px;
  }

  .treatments-badge-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 12px;
    width: 100%;
  }

  .treatment-badge-card,
  .treatment-badge-card.wide-card {
    min-width: auto;
    width: 100%;
    padding: 22px 12px 12px;
    border-radius: 30px;
  }

  .treatment-badge-icon {
    width: 36px;
    height: 36px;
    top: -16px;
  }

  .treatment-badge-icon svg {
    width: 17px;
    height: 17px;
  }

  .treatment-badge-label {
    font-size: 12px;
    line-height: 16px;
  }
}

/* ---------------- Small Mobile Screens (<= 480px) ---------------- */
@media (max-width: 480px) {
  .gastro-hero-card {
    min-height: 220px;
    border-radius: 14px;
  }

  .gastro-hero-title {
    font-size: 26px;
  }

  .section-heading-main {
    font-size: 22px;
  }

  .gastro-img-frame,
  .memberships-img-frame {
    height: 220px;
  }

  .treatments-badge-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .treatment-badge-card,
  .treatment-badge-card.wide-card {
    padding: 24px 16px 14px;
  }
}
