/* learn.css — same structure/styles as the reference, scoped to the new page */

/* Theme tokens for this page */
:root {
  --learn-header-bg: #383a38;
  --learn-header-fg: #fff6e2;
}

/* Gray header (H1 + back buttons) */
.worldwide-service-page .worldwide-header {
  background-color: #383a38;
  color: #fff6e2;
  text-align: center;
  padding: 40px 20px;
  position: relative; /* position back buttons inside */
}
.worldwide-service-page .worldwide-header h1 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.1;
  color: #fff6e2;
}
.worldwide-service-page .worldwide-header .back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff6e2;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 12px;
  border: 1px solid #fff6e2;
  border-radius: 8px;
  background-color: transparent;
  transition: background-color 0.2s;
}
.worldwide-service-page .worldwide-header .back-button + .back-button {
  top: 60px; /* second button below the first */
}
.worldwide-service-page .worldwide-header .back-button:hover {
  background-color: rgba(255, 215, 0, 0.1);
}
.worldwide-service-page .worldwide-header .back-button:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 3px;
  border-radius: 10px;
}

/* Mobile: stack buttons naturally (no overlap) */
@media (max-width: 700px) {
  .worldwide-service-page .worldwide-header {
    padding: 16px 16px 20px;
  }
  .worldwide-service-page .worldwide-header h1 {
    font-size: 1.9rem;
    margin-top: 6px;
  }
  .worldwide-service-page .worldwide-header .back-button {
    position: static;
    display: inline-block;
    margin: 0 8px 10px 0;
    font-size: 0.95rem;
    padding: 10px 14px; /* easier tap target */
  }
  .worldwide-service-page .worldwide-header .back-button + .back-button {
    top: auto; /* not needed when static */
  }
}

.worldwide-service-page {
  background-image: url("../images/navbar-cream.webp");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat-y;
  font-family: "Segoe UI", ui-sans-serif, system-ui, Arial, Roboto, sans-serif;
  color: #383a38;
  margin: 0;
}
/* Header */
.worldwide-service-page .worldwide-header {
  background-color: var(--learn-header-bg);
  color: var(--learn-header-fg);
  text-align: center;
  padding: 40px 30px;
}
.worldwide-service-page .worldwide-header h1 {
  font-size: 2.4rem;
  color: var(--learn-header-fg);
  margin: 0;
}
/* Main layout */
.worldwide-service-page .worldwide-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  gap: 40px;
  flex-wrap: wrap; /* stacks on small screens */
}
.worldwide-service-page .worldwide-image img {
  width: 500px;
  max-width: 100%;
  margin-top: -180px;
  height: fit-content;
  object-fit: cover;
  aspect-ratio: 16 / 22;
  display: block;
  border-radius: 105px;
  box-shadow: 0 0 10px rgba(26, 6, 6, 0.875);
}
.worldwide-service-page .worldwide-text {
  max-width: 679px;
  text-align: left;
}
.worldwide-service-page .worldwide-text h2 {
  font-size: 2.5rem;
  color: #383a38;
  margin-bottom: 16px;
}
.worldwide-service-page .worldwide-text h3 {
  font-size: 1.5rem;
  color: #383a38;
  margin-bottom: 16px;
}
.worldwide-service-page .worldwide-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Lists */
.worldwide-service-page .worldwide-text ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  list-style-position: outside;
}
.worldwide-service-page .worldwide-text li {
  color: #383a38;
  line-height: 1.6;
  margin: 0 0 10px;
}
.worldwide-service-page .worldwide-text li::marker {
  color: #383a38;
}
.worldwide-service-page .worldwide-text li strong {
  color: #383a38;
}

/* Optional reversed layout (if you add .reverse) */
.worldwide-service-page .worldwide-layout.reverse {
  flex-direction: row-reverse;
}

/* ===== Worldwide footer (deduped + centered) ===== */
.worldwide-service-page .worldwide-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* center contents horizontally (with align-items) */
  align-items: center;
  gap: 10px;
  margin-top: 60px;
  padding-bottom: 40px;
}

.worldwide-service-page .footer-btn {
  display: inline-block;
  background-color: #fff6ef;
  color: #383a38;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: background-color 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
}
.worldwide-service-page .footer-btn:hover {
  background-color: #ffffff;
}

/* Smallprint centered */
.worldwide-service-page .worldwide-footer .smallprint {
  width: 100%;
  margin: 0 auto;
  margin-top: 16px;
  text-align: center;
  align-self: center; /* safe for flex parents */
  font-size: 0.8rem; /* smaller text */
  color: #555;
}

/* Page-specific tweak from before */
.worldwide-service-page .worldwide-text h3 {
  text-shadow: none !important;
  color: #383a38;
}

/* Optional global font (keep only if desired site-wide) */
body {
  font-family: "Segoe UI";
}

/* Mobile spacing */
@media (max-width: 700px) {
  .worldwide-service-page .worldwide-image {
    margin-top: 140px;
  }
  .worldwide-service-page .worldwide-layout {
    margin-top: 12px;
  }
}

/* ===== End footer block ===== */
.specialty-page .image-side img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
