/* ===========================
   HERO HEADER (for Terms, etc.)
   =========================== */

.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff6ef;
  background-color: #383a38;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(56, 58, 56, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1rem 2rem;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #fff6ef;
}

.hero-content p {
  font-size: 1.15rem;
  font-weight: 300;
  color: #fff6ef;
}

/* Back button inside hero */
.hero .back-button {
  position: absolute;
  top: 1.8rem;
  left: 2rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff6ef;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: all 0.3s ease;
  z-index: 3;
}

.hero .back-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 45vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero .back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* ===========================
   DUTY OF CARE PAGE
   (Matches brand: cream, navy, gold)
   =========================== */

body.duty-page {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fff6ef;
  color: #383a38;
  line-height: 1.7;
}

/* HERO HEADER (navy block with overlay) */
.duty-header {
  background: url("/images/specialties-img/duty-of-care.webp") center/cover
    no-repeat;
  color: #fff6ff;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  position: relative;
  background-color: #383a38; /* fallback if image missing */
}

.duty-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(50, 51, 53, 0.65);
}

.duty-header * {
  position: relative;
  z-index: 1;
}

.duty-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #fff6ef;
}

.duty-header p {
  font-size: 1.15rem;
  font-weight: 300;
  color: #fff6ef;
}

/* Back button inside header */
.back-button {
  position: absolute;
  top: 1.8rem;
  left: 2rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff6ef;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* MAIN CONTENT */
.duty-content {
  max-width: 950px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.duty-content section {
  margin-bottom: 3rem;
}

.duty-content h2 {
  color: #383a38;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.duty-content p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.duty-content strong {
  color: #383a38;
  font-weight: 600;
}

.closing h2 {
  color: #383a38;
}

/* FOOTER */
.duty-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  background-color: #383a38;
  padding: 2.5rem 1rem;
}

.footer-btn {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff6ef;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.footer-btn:hover {
  background-color: #383a38;
}

/* --- PRIVACY POLICY PAGE TWEAKS --- */
.duty-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.duty-content ul li {
  margin-bottom: 0.6rem;
}

.duty-content a {
  color: #383a38;
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .duty-header {
    padding: 6rem 1rem 4rem;
  }

  .duty-header h1 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }

  .duty-header p {
    font-size: 1rem;
  }

  .back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }

  .duty-content {
    padding: 3rem 1rem;
  }

  .duty-content h2 {
    font-size: 1.3rem;
  }

  .duty-footer {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
  }
}
