/* ===================== GLOBAL ===================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}


/* ===================== HERO ===================== */
.gallery-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 50vh;
  min-height: 260px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 46px 18px;
  margin-top: var(--header-h, 80px);
  background: #0b1220;
}

.gallery-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('image/doctor_image.png');
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform, opacity;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-hero-title {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.06;
  font-size: 20px;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.gallery-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.gallery-hero-link {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.gallery-hero-link:hover { opacity: .85; }

.gallery-hero-sep { opacity: .8; }
.gallery-hero-current { opacity: .92; color: #fff; }

@media (min-width: 1024px) {
  .gallery-hero {
    margin-top: 176px;
    padding-top: 80px;
    height: 50vh;
    min-height: 280px;
  }
  .gallery-hero-breadcrumb { margin-bottom: 75px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-hero {
    margin-top: 66px;
    padding: 34px 14px;
    height: 50vh;
    min-height: 260px;
  }
}

@media (max-width: 767px) {
  .gallery-hero {
    margin-top: 66px;
    padding: 30px 12px;
    height: 40vh;
    min-height: 260px;
  }
  .gallery-hero-title { font-size: 15px; }
  .gallery-hero-breadcrumb { font-size: 12px; padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-hero-bg { animation: none !important; opacity: 1; transform: none; }
}


/* ===================== CERTIFICATIONS GALLERY ===================== */
.certifications-gallery {
  padding: 80px 20px 100px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.certifications-gallery::before,
.certifications-gallery::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

.certifications-gallery::before {
  width: 420px;
  height: 420px;
  background: var(--blue-mid);
  top: -120px;
  left: -120px;
}

.certifications-gallery::after {
  width: 320px;
  height: 320px;
  background: var(--gold);
  bottom: -100px;
  right: -80px;
}

.certifications-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.title-underline {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue-mid));
  border-radius: 2px;
  margin: 0 auto 20px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.certification-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.25, .8, .25, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.6s ease both;
}

.certification-card:nth-child(1) { animation-delay: 0.05s; }
.certification-card:nth-child(2) { animation-delay: 0.12s; }
.certification-card:nth-child(3) { animation-delay: 0.19s; }
.certification-card:nth-child(4) { animation-delay: 0.26s; }
.certification-card:nth-child(5) { animation-delay: 0.33s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.certification-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.certification-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-mid), var(--gold));
  flex-shrink: 0;
}

.card-inner {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.img-wrap,
.extra-img-wrap {
  border-radius: 8px;
  overflow: hidden;
}

.certification-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.certification-card:hover .certification-img { transform: scale(1.03); }

.certification-card:nth-child(5) .img-wrap {
  min-height: 450px;
  display: flex;
  align-items: stretch;
}

.certification-card:nth-child(5) .certification-img {
  min-height: 350px;
  height: 100%;
  width: 100%;
}

@media (max-width: 900px) {
  .certifications-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 560px) {
  .certifications-gallery { padding: 60px 16px 20px; }
  .section-header { margin-bottom: 40px; }
  .certifications-grid { grid-template-columns: 1fr; gap: 20px; }
  .certification-card:nth-child(5) .certification-img { height: 84%; max-height: 350px; }
}