@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400;600;700&display=swap");

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
  overflow-x: hidden;
  background: #202127 !important;
}

body .main-section,
body .layout-main-section,
body .layout-main,
body .page-body,
body .page-wrapper,
body .page_content,
body .page-content,
body .web-page-content,
body .page-card,
body .container,
body .container-fluid,
body .page-form,
body .page-form-body,
body .layout-side-section,
body .page-head,
body .page-head-content,
main {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
}

body .layout-main-section-wrapper,
body .standard-page,
body .page-container,
body .page-header-wrapper,
body .page-footer,
body .web-footer,
body .footer,
body .page_content,
body .webpage-content,
body .page-content-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #202127 !important;
}

body .page-head,
body .page-head-content,
body .page-breadcrumbs,
body .page-title,
body .page-actions,
body .page-form-header,
body .page-header-actions,
body .page-header-wrapper,
body .page-footer,
body .web-footer,
body .footer,
body .menu-btn-group,
body .sidebar-toggle-btn,
body .btn-open-sidebar,
body .navbar-toggler,
body .navbar-toggle,
body .sidebar-toggle,
body .menu-toggle,
body .mobile-menu,
body .offcanvas-toggle,
body [class*="sidebar-toggle"],
body [class*="menu-toggle"],
body [class*="navbar-toggler"],
body .layout-side-section,
.web-header,
.page-header-wrapper,
.page-footer,
.web-footer,
.footer,
nav.navbar,
.navbar,
.website-navbar {
  display: none !important;
}

.web-header .navbar-brand,
.web-header .navbar-brand img,
.web-header .navbar-brand svg,
.web-header .brand-logo,
.web-header .app-logo,
.web-header .navbar-nav,
.web-header .right-items,
.web-header .avatar-frame,
.web-header .user-image {
  display: none !important;
}

body .page-card {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.catechist-page {
  --page-bg: #fcfbf8;
  --panel: #ffffff;
  --panel-soft: #f7f5f1;
  --text: #1d1d1d;
  --muted: #6b655b;
  --border: #d4cec4;
  --gold: #f0b93a;
  --gold-deep: #d2971b;
  --ink: #202127;
  --blue: #2a6de7;
  --blue-dark: #1848a1;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
}

.catechist-page * {
  box-sizing: border-box;
}

.catechist-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.catechist-topbar {
  background: #fbf4ec;
  border-bottom: 1px solid #eadccf;
  box-shadow: 0 10px 30px rgba(97, 32, 41, 0.06);
}

.catechist-topbar__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.catechist-topbar__brand img {
  display: block;
  width: 52px;
  height: auto;
}

.catechist-topbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.catechist-topbar__nav a {
  color: #7a2630;
  text-decoration: none;
  font-size: 15px;
}

.catechist-topbar__nav a:hover {
  color: #612029;
}

.catechist-topbar__nav a[aria-current="page"] {
  color: var(--gold);
}

.catechist-auth {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.catechist-auth__guest {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catechist-auth__btn {
  min-width: 68px;
  height: 28px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.catechist-auth__btn:hover,
.catechist-btn:hover,
.catechist-submit:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.catechist-auth__btn--light {
  background: #ffffff;
  color: #1c1c1c;
}

.catechist-auth__btn--gold {
  background: var(--gold);
  color: #4f3504;
}

.catechist-user-menu {
  position: relative;
  display: none;
}

.catechist-user-menu summary {
  list-style: none;
}

.catechist-user-menu summary::-webkit-details-marker {
  display: none;
}

.catechist-user-menu__toggle {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.catechist-user-menu__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7d97d, #d89b2a);
  color: #332008;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.catechist-user-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  padding: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(36, 29, 15, 0.14);
  z-index: 5;
}

.catechist-user-menu__name {
  margin: 0 0 8px;
  padding: 0 12px;
  color: #212127;
  font-size: 13px;
  font-weight: 700;
}

.catechist-user-menu__link {
  display: block;
  padding: 10px 12px;
  color: #212127;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.catechist-user-menu__link:hover {
  background: #f8f3e7;
}

body[frappe-session-status="logged-in"] .catechist-auth__guest {
  display: none;
}

body[frappe-session-status="logged-in"] .catechist-user-menu {
  display: block;
}

.catechist-hero {
  padding: 54px 0 34px;
}

.catechist-hero__card {
  position: relative;
  min-height: 392px;
  overflow: hidden;
  border-radius: 6px;
  background: #d4ad53;
  box-shadow: 0 22px 44px rgba(32, 33, 39, 0.1);
  isolation: isolate;
}

.catechist-hero__image,
.catechist-hero__veil {
  position: absolute;
  inset: 0;
}

.catechist-hero__image {
  background:
    linear-gradient(rgba(166, 112, 0, 0.1), rgba(166, 112, 0, 0.1)),
    url("/files/become-a-tutor.png")
      center center / cover no-repeat;
}

.catechist-hero__veil {
  background:
    linear-gradient(90deg, rgba(240, 185, 58, 0.76), rgba(240, 185, 58, 0.76)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(111, 72, 0, 0.1));
}

.catechist-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 74px 28px 68px;
  text-align: center;
  margin: 0 auto;
}

.catechist-eyebrow {
  margin: 0 0 16px;
  color: rgba(65, 42, 0, 0.85);
  font-size: 12px;
  font-weight: 700;
  font-family: "Open Sans", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catechist-hero h1,
.catechist-section__heading h2,
.catechist-form-card__heading h2,
.catechist-program-card h3,
.catechist-benefit h3,
.catechist-footer__nav h3 {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.catechist-hero h1 {
  margin: 0;
  color: #18130a;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.catechist-hero__text {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(59, 43, 15, 0.9);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.catechist-hero__actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.catechist-btn,
.catechist-submit {
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.catechist-btn {
  min-width: 164px;
  height: 42px;
  padding: 0 30px;
}

.catechist-btn--primary {
  background: var(--blue);
  color: #ffffff;
}

.catechist-btn--primary:hover {
  background: var(--blue-dark);
}

.catechist-btn--secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
}

.catechist-btn--secondary:hover {
  background: #ffffff;
}

.catechist-section {
  padding: 28px 0;
}

.catechist-panel {
  background: var(--panel-soft);
  padding: 52px 44px 46px;
  border-radius: 2px;
}

.catechist-section__heading {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.catechist-section__heading h2,
.catechist-form-card__heading h2 {
  margin: 0;
  color: #262116;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
}

.catechist-section__heading p,
.catechist-form-card__heading p {
  margin: 14px auto 0;
  color: var(--muted);
  max-width: 620px;
  font-size: 14px;
  line-height: 1.75;
}

.catechist-benefits {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.catechist-benefit {
  text-align: center;
}

.catechist-benefit__icon,
.catechist-program-card__icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: var(--blue);
}

.catechist-benefit__icon svg,
.catechist-program-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catechist-benefit h3,
.catechist-program-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  color: #202020;
}

.catechist-benefit p,
.catechist-program-card p {
  margin: 0;
  color: #5f5d59;
  font-size: 12px;
  line-height: 1.7;
}

.catechist-section--program {
  padding-top: 34px;
}

.catechist-section__heading--gold h2 {
  color: var(--gold-deep);
}

.catechist-program-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catechist-program-card {
  background: #ffffff;
  border: 1px solid #2f3034;
  border-radius: 4px;
  padding: 22px 18px;
  text-align: center;
  min-height: 186px;
}

.catechist-program-card__icon {
  margin-bottom: 12px;
}

.catechist-section--application {
  padding: 54px 0 62px;
}

.catechist-form-card {
  width: min(640px, 100%);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e4ded3;
  border-radius: 3px;
  padding: 30px 26px 24px;
  box-shadow: 0 16px 34px rgba(32, 33, 39, 0.06);
}

.catechist-form-card__heading {
  text-align: center;
  margin-bottom: 24px;
}

.catechist-form-card__heading h2 {
  font-size: clamp(24px, 3.3vw, 34px);
}

.catechist-form {
  display: grid;
  gap: 14px;
}

.catechist-frappe-form {
  display: grid;
  gap: 14px;
}

.catechist-frappe-form__loading,
.catechist-frappe-form__fallback {
  margin: 0;
  color: #6b655b;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.catechist-frappe-form__fallback a {
  color: var(--blue);
}

.catechist-frappe-form__frame {
  width: 100%;
  min-height: 760px;
  border: 0;
  background: #ffffff;
}

.catechist-field {
  display: grid;
  gap: 6px;
}

.catechist-field span {
  color: #615a50;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.catechist-field input,
.catechist-field textarea {
  width: 100%;
  border: 1px solid #d8dce2;
  border-radius: 3px;
  background: #eef1f5;
  color: #2a2b2f;
  padding: 12px 13px;
  font: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.catechist-field input:focus,
.catechist-field textarea:focus {
  border-color: #7ea8f5;
  box-shadow: 0 0 0 3px rgba(42, 109, 231, 0.12);
  background: #f9fbff;
}

.catechist-field textarea {
  min-height: 118px;
  resize: vertical;
}

.catechist-field input.catechist-field--invalid,
.catechist-field textarea.catechist-field--invalid {
  border-color: #c2554f;
  box-shadow: 0 0 0 3px rgba(194, 85, 79, 0.1);
  background: #fff8f7;
}

.catechist-form__message {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b655b;
}

.catechist-form__message[data-state="error"] {
  color: #b04a43;
}

.catechist-form__message[data-state="success"] {
  color: #2f7a39;
}

.catechist-submit {
  width: 100%;
  height: 36px;
  background: var(--gold);
  color: #5b3d07;
  cursor: pointer;
}

.catechist-submit:hover {
  background: #f5c347;
}

.catechist-footer {
  margin-top: 48px;
  background: var(--gold);
  padding: 36px 0 20px;
  box-shadow: 0 100vmax 0 100vmax var(--gold);
  clip-path: inset(0 -100vmax -100vmax -100vmax);
  color: #19191f;
}

.catechist-footer__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 40px;
}

.catechist-footer__brand {
  max-width: 360px;
}

.catechist-footer__mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(25, 25, 31, 0.1);
  font-family: "Merriweather", serif;
  font-weight: 700;
  margin-bottom: 14px;
  border: 0;
  color: #19191f;
  text-decoration: none;
}

.catechist-footer__brand p {
  margin: 0;
  line-height: 1.6;
}

.catechist-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.catechist-footer__nav h3 {
  margin: 0 0 12px;
  font-family: "Merriweather", serif;
}

.catechist-footer__nav a {
  display: block;
  color: rgba(25, 25, 31, 0.88);
  text-decoration: none;
  margin-bottom: 10px;
}

.catechist-footer__bottom {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(25, 25, 31, 0.16);
  text-align: center;
}

.catechist-footer__bottom p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .catechist-shell {
    width: min(1280px, calc(100% - 24px));
  }

  .catechist-hero__card {
    min-height: 350px;
  }

  .catechist-panel {
    padding: 42px 24px 38px;
  }

  .catechist-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .catechist-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catechist-footer__content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .catechist-shell {
    width: min(1280px, calc(100% - 20px));
  }

  .catechist-hero {
    padding: 32px 0 20px;
  }

  .catechist-hero__card {
    min-height: 354px;
    border: 1px solid #ffffff;
    border-radius: 10px;
    background: #f4b925;
    box-shadow:
      0 1px 0 rgba(23, 26, 31, 0.05),
      0 2px 0 rgba(23, 26, 31, 0.08);
  }

  .catechist-hero__image {
    background: none;
  }

  .catechist-hero__veil {
    background:
      linear-gradient(180deg, rgba(244, 185, 37, 0.9), rgba(244, 185, 37, 0.92)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(111, 72, 0, 0.08));
  }

  .catechist-hero__content {
    max-width: 296px;
    padding: 32px 16px 26px;
  }

  .catechist-hero h1 {
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .catechist-hero__text {
    max-width: 248px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .catechist-hero__actions {
    margin-top: 18px;
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .catechist-btn {
    min-width: 156px;
    height: 34px;
    padding: 0 18px;
    font-size: 12px;
    line-height: 18px;
  }

  .catechist-section {
    padding: 20px 0;
  }

  .catechist-panel {
    padding: 34px 18px 30px;
  }

  .catechist-program-grid,
  .catechist-benefits,
  .catechist-footer__nav {
    grid-template-columns: 1fr;
  }

  .catechist-program-card {
    position: relative;
    min-height: 180px;
    padding: 28px 24px 24px;
    border: 1px solid #dee1e6;
    border-radius: 10px;
    box-shadow:
      0 1px 0 rgba(23, 26, 31, 0.05),
      0 2px 0 rgba(23, 26, 31, 0.08);
    text-align: left;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 16px;
    align-content: start;
  }

  .catechist-section--program {
    padding-top: 10px;
  }

  .catechist-section__heading--gold {
    max-width: 358px;
  }

  .catechist-section__heading--gold h2 {
    color: #2b2b2b;
    font-size: 30px;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  .catechist-program-grid {
    margin-top: 24px;
    gap: 28px;
  }

  .catechist-program-card__icon {
    width: 30px;
    height: 30px;
    margin: 0;
    align-self: start;
    transform: translateY(2px);
  }

  .catechist-program-card h3 {
    grid-column: 2;
    margin: 26px 0 0;
    font-size: 21px;
    line-height: 1.22;
    color: #202127;
    font-weight: 400;
  }

  .catechist-program-card p {
    grid-column: 1 / -1;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.45;
    color: #5f6679;
  }

  .catechist-program-card::before {
    grid-column: 2;
    align-self: start;
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #f4b925;
  }

  .catechist-program-card:nth-child(1)::before {
    content: "Module 1";
  }

  .catechist-program-card:nth-child(2)::before {
    content: "Module 2";
  }

  .catechist-program-card:nth-child(3)::before {
    content: "Module 3";
  }

  .catechist-program-card:nth-child(4)::before {
    content: "Module 4";
  }

  .catechist-program-card:nth-child(5)::before {
    content: "Module 5";
  }

  .catechist-program-card:nth-child(6)::before {
    content: "Module 6";
  }

  .catechist-form-card {
    padding: 24px 16px 18px;
  }

  .catechist-form-card__heading h2,
  .catechist-section__heading h2 {
    font-size: 24px;
  }

  .catechist-topbar__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 16px 0;
  }

  .catechist-topbar__spacer {
    display: none;
  }

  .catechist-auth {
    justify-self: center;
  }

  .catechist-topbar__nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .catechist-auth__btn {
    min-width: 58px;
    padding: 0 10px;
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .catechist-hero__content {
    max-width: 272px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .catechist-hero__text {
    max-width: 232px;
  }

  .catechist-btn {
    width: 100%;
    max-width: 168px;
  }
}
