/* IAP shared design system. Utility classes are compiled into the production build. */
@font-face {
  font-family: "IAP DejaVu Sans";
  src: url("../assets/fonts/DejaVuSans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --iap-navy: #0b1f3a;
  --iap-navy-2: #12365d;
  --iap-teal: #087f83;
  --iap-blue: #2476a8;
  --iap-aqua: #d9f0ef;
  --iap-warm: #f7f4ee;
  --iap-ink: #152436;
}
html { scroll-behavior: smooth; }
body {
  color: var(--iap-ink);
  background: #fff;
  font-family: "IAP DejaVu Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

address.not-italic {
  font-style: normal;
}

.leadership-grid {
  display: grid;
  gap: 1.75rem;
}

.leadership-card {
  min-width: 0;
  border: 1px solid #dbe3ee;
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.leadership-card-featured {
  border-color: #b9c9dc;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.leadership-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: .75rem;
  background: #e2e8f0;
  object-fit: cover;
  object-position: center;
}

.leadership-photo-amin {
  object-position: center 20%;
}

.leadership-photo-beatrice {
  object-position: center 28%;
}

.leadership-role {
  margin-top: 1.75rem;
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.leadership-card h2 {
  margin-top: .65rem;
  color: #020617;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
}

.leadership-description {
  margin-top: 1.15rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
}

html[dir="rtl"] .leadership-card {
  text-align: right;
}

@media (min-width: 720px) {
  .leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .leadership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
html[dir="rtl"] body {
  font-family: "IAP DejaVu Sans", Tahoma, Arial, sans-serif;
}

.skip-link {
  position: fixed;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  z-index: 1000;
  transform: translateY(-180%);
  border-radius: .65rem;
  background: #fff;
  color: var(--iap-navy);
  padding: .75rem 1rem;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(11, 31, 58, .2);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #1f9faa; outline-offset: 3px; }
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown), select:invalid:not(:focus) {
  border-color: #b42318;
}
html[dir="rtl"] body {
  font-family: "IAP DejaVu Sans", Tahoma, Arial, sans-serif;
}
html[dir="rtl"] .rtl\:text-right { text-align: right; }
html[dir="rtl"] .rtl\:flex-row-reverse { flex-direction: row-reverse; }
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { text-align: right; }
html[dir="rtl"] #mobileMenu .text-left { text-align: right; }

header .nav-main-trigger {
  position: relative;
}

header .nav-main-trigger::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .28rem;
  height: 2px;
  border-radius: 999px;
  background: #020617;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

header .group:hover > .nav-main-trigger::after,
header .group:focus-within > .nav-main-trigger::after,
header .nav-main-trigger:focus-visible::after {
  transform: scaleX(1);
}

#btnMobile.is-open {
  border-color: #020617;
  background: #020617;
  color: #fff;
}

#btnMobile.is-open .menu-icon-open {
  display: none;
}

#btnMobile.is-open .menu-icon-close {
  display: block;
}

.mobile-menu-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-.5rem);
  border-top-color: transparent;
  transition:
    max-height .32s ease,
    opacity .2s ease,
    transform .26s ease,
    border-color .2s ease;
}

.mobile-menu-panel.is-open {
  max-height: calc(100svh - 72px);
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
  transform: translateY(0);
  border-top-color: #e2e8f0;
}

.mobile-menu-content {
  transform: translateY(-.35rem);
  transition: transform .26s ease;
}

.mobile-menu-panel.is-open .mobile-menu-content {
  transform: translateY(0);
}

.mobile-nav-list {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-item + .mobile-nav-item {
  border-top: 1px solid #e5e7eb;
}

.mobile-nav-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

html[dir="rtl"] .mobile-nav-toggle {
  text-align: right;
}

.mobile-nav-chevron {
  flex: none;
  color: #020617;
  transition: transform .2s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition:
    max-height .26s ease,
    opacity .2s ease,
    padding .2s ease;
}

.mobile-submenu.is-open {
  max-height: 16rem;
  opacity: 1;
  padding: 0 0 .85rem;
}

.mobile-submenu-link {
  display: block;
  border-radius: .5rem;
  padding: .55rem .75rem;
  color: #475569;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background-color .18s ease,
    color .18s ease;
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus-visible {
  background: #f8fafc;
  color: #020617;
}

.mobile-submenu-link + .mobile-submenu-link {
  margin-top: .15rem;
}

.mobile-apply-button {
  display: inline-flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: .375rem;
  background: #020617;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color .18s ease,
    transform .18s ease;
}

.mobile-apply-button:hover,
.mobile-apply-button:focus-visible {
  background: #1e293b;
}

a[class*="bg-amber-500"],
button[class*="bg-amber-500"],
a[class*="bg-yellow-"],
button[class*="bg-yellow-"] {
  background-color: #020617 !important;
  border-color: #020617 !important;
  color: #fff !important;
}

a[class*="bg-amber-500"]:hover,
button[class*="bg-amber-500"]:hover,
a[class*="bg-yellow-"]:hover,
button[class*="bg-yellow-"]:hover {
  background-color: #1e293b !important;
  border-color: #1e293b !important;
}

@media (prefers-reduced-motion: reduce) {
  header .nav-main-trigger::after {
    transition: none;
  }

  .mobile-menu-panel,
  .mobile-menu-content,
  .mobile-nav-chevron,
  .mobile-submenu,
  .mobile-submenu-link {
    transition: none;
  }
}

.section-kicker {
  color: #64748b !important;
}

.home-motion .reveal-section,
.home-motion .reveal-item {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(26px);
  transition:
    opacity .72s cubic-bezier(.22, 1, .36, 1),
    transform .72s cubic-bezier(.22, 1, .36, 1),
    filter .72s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.home-motion .reveal-item {
  transform: translateY(18px);
}

.home-motion .reveal-section.is-visible,
.home-motion .reveal-item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.home-motion .reveal-hero img {
  transform: scale(1.035);
  transition: transform 1.8s cubic-bezier(.22, 1, .36, 1);
}

.home-motion .reveal-hero.is-visible img {
  transform: scale(1);
}

.home-motion .reveal-hero h1,
.home-motion .reveal-hero p,
.home-motion .reveal-hero a {
  animation: heroRise .85s cubic-bezier(.22, 1, .36, 1) both;
}

.home-motion .reveal-hero p {
  animation-delay: .08s;
}

.home-motion .reveal-hero a {
  animation-delay: .16s;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.loading-skeleton { background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.partners-marquee {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  padding: .25rem 0;
  direction: ltr;
  unicode-bidi: isolate;
}

.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(2rem, 10vw, 5rem);
  pointer-events: none;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.partners-marquee-track {
  display: flex;
  width: max-content;
  animation: partners-marquee 34s linear infinite;
  will-change: transform;
  direction: ltr;
}

.partners-marquee-set {
  display: flex;
  gap: .75rem;
  padding-right: .75rem;
}

.partners-marquee-item {
  position: relative;
  flex: 0 0 clamp(9.5rem, 14vw, 12rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: .625rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .07);
}

.partners-marquee-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.partners-marquee-item:hover img {
  transform: scale(1.04);
}

.partners-marquee-item img.object-contain {
  box-sizing: border-box;
  object-fit: contain;
  padding: clamp(.9rem, 1.5vw, 1.15rem) clamp(.9rem, 1.5vw, 1.15rem) 2.7rem;
}

.partners-marquee-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.4rem .8rem .75rem;
  background: linear-gradient(0deg, rgba(2, 6, 23, .88), rgba(2, 6, 23, 0));
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

html[dir="rtl"] .partners-marquee-item figcaption {
  direction: rtl;
  text-align: right;
}

@keyframes partners-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

main > section:not(:first-child):not(.page-title-hero) {
  padding-top: clamp(4.5rem, 7vw, 7rem) !important;
  padding-bottom: clamp(4.5rem, 7vw, 7rem) !important;
}

main > section:not(:first-child):not(.page-title-hero) > .mx-auto[class*="py-"] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

main article[class*="rounded"][class*="border"],
main aside[class*="rounded"][class*="border"],
main section[id][class*="rounded"][class*="border"],
main .grid > div[class*="rounded"][class*="border"] {
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}

main article[class*="rounded"][class*="border"],
main section[id][class*="rounded"][class*="border"],
main .grid > div[class*="rounded"][class*="border"] {
  padding: clamp(1.35rem, 1.2rem + .8vw, 2rem) !important;
}

main article[class*="rounded"][class*="border"]:hover,
main aside[class*="rounded"][class*="border"]:hover,
main section[id][class*="rounded"][class*="border"]:hover,
main .grid > div[class*="rounded"][class*="border"]:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

main .bg-slate-950 article[class*="rounded"][class*="border"]:hover,
main .bg-slate-950 .grid > div[class*="rounded"][class*="border"]:hover,
main .page-title-hero .grid > div[class*="rounded"][class*="border"]:hover {
  border-color: rgba(255, 255, 255, .34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

main .membership-form-card {
  transition: none !important;
}

main .membership-form-card:hover {
  transform: none !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-motion .reveal-section,
  .home-motion .reveal-item {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .home-motion .reveal-hero img {
    transform: none;
    transition: none;
  }

  .home-motion .reveal-hero h1,
  .home-motion .reveal-hero p,
  .home-motion .reveal-hero a {
    animation: none;
  }

  main article[class*="rounded"][class*="border"],
  main aside[class*="rounded"][class*="border"],
  main section[id][class*="rounded"][class*="border"],
  main .grid > div[class*="rounded"][class*="border"] {
    transition: none;
  }

  main article[class*="rounded"][class*="border"]:hover,
  main aside[class*="rounded"][class*="border"]:hover,
  main section[id][class*="rounded"][class*="border"]:hover,
  main .grid > div[class*="rounded"][class*="border"]:hover {
    transform: none;
  }
}

.page-title-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  background-image:
    linear-gradient(90deg, rgba(4, 18, 38, .88), rgba(7, 40, 62, .72), rgba(7, 47, 67, .64)),
    url("../assets/psychotherapy-hero.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-title-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(2, 10, 24, .06), rgba(2, 10, 24, .28));
}

.page-title-hero > * {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-title-hero h1,
.page-title-hero p {
  margin-left: auto;
  margin-right: auto;
}

main > section:first-child h1 {
  margin-top: 0 !important;
}

.page-title-hero p:not(.section-kicker) {
  color: rgba(255, 255, 255, .88);
}

.mobile-hero-image {
  object-position: center center;
}

@media (max-width: 640px) {
  .mobile-hero-image {
    object-position: center top;
  }

  .page-title-hero {
    background-image:
      linear-gradient(180deg, rgba(4, 18, 38, .76), rgba(4, 25, 43, .76)),
      url("../assets/psychotherapy-hero.jpeg");
    background-position: 62% center;
  }
}

.iap-home-hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(4, 18, 38, .82) 0%, rgba(7, 40, 62, .70) 50%, rgba(7, 47, 67, .62) 100%),
    url("../assets/psychotherapy-hero.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.iap-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 10, 24, .08), rgba(2, 10, 24, .34));
}
.iap-home-hero > * { position: relative; z-index: 1; }

@media (max-width: 767px) {
  .iap-home-hero {
    background-image:
      linear-gradient(180deg, rgba(4, 18, 38, .78), rgba(4, 25, 43, .78)),
      url("../assets/psychotherapy-hero.jpeg");
    background-position: 62% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.admin-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.admin-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgb(186 230 253);
}

.admin-module-link {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: rgb(248 250 252);
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(51 65 85);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-module-link:hover {
  border-color: rgb(203 213 225);
  background: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.fee-schedule-table th,
.fee-schedule-table td {
  padding-inline: 2rem;
}

.academy-page-shell {
  background: #fff;
}

.academy-article {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  color: #334155;
}

.academy-article[hidden] {
  display: none;
}

.academy-article-header {
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.academy-article section {
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid #e2e8f0;
}

.academy-article section:last-child {
  padding-bottom: 0;
}

.academy-article h2 {
  margin: 0 0 1rem;
  color: #0f172a;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.academy-article[dir="rtl"] h2 {
  letter-spacing: 0;
  line-height: 1.5;
}

.academy-article h3 {
  margin: 2.25rem 0 1rem;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.45;
}

.academy-article p,
.academy-article li {
  font-size: clamp(1rem, 1.5vw, 1.075rem);
  line-height: 1.9;
}

.academy-article p {
  margin: 0;
}

.academy-article p + p,
.academy-article ul + p {
  margin-top: 1.15rem;
}

.academy-article ul {
  margin: 1rem 0 0;
  padding-inline-start: 1.5rem;
  list-style: disc;
}

.academy-article li + li {
  margin-top: .4rem;
}

.academy-article strong {
  color: #0f172a;
  font-weight: 750;
}

.academy-coded-list {
  padding-inline-start: 0 !important;
  list-style: none !important;
  border-bottom: 1px solid #e2e8f0;
}

.academy-coded-list li {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: .8rem;
  border-top: 1px solid #e2e8f0;
}

.academy-coded-list li + li {
  margin-top: 0;
}

.academy-coded-list strong,
.academy-registration-table td {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.academy-registration-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: .85rem;
}

.academy-registration-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  text-align: start;
}

.academy-registration-table th,
.academy-registration-table td {
  padding: .95rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  font-size: .975rem;
  line-height: 1.6;
}

.academy-registration-table thead th {
  background: #0f2744;
  color: #fff;
  font-weight: 800;
}

.academy-registration-table tbody th {
  width: 72%;
  color: #334155;
  font-weight: 650;
}

.academy-registration-table tbody tr:last-child th,
.academy-registration-table tbody tr:last-child td {
  border-bottom: 0;
}

.academy-registration-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.academy-organisations-list {
  columns: 2;
  column-gap: 2.5rem;
}

.academy-organisations-list li {
  break-inside: avoid;
  padding-inline-start: .15rem;
}

.academy-status-notice {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-inline-start: 4px solid #2476a8;
  border-radius: .75rem;
  background: #f1f5f9;
}

.academy-status-notice p {
  font-size: .975rem;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .academy-article {
    width: min(100% - 2rem, 52rem);
  }

  .academy-coded-list li {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: .75rem;
  }

  .academy-organisations-list {
    columns: 1;
  }
}
