/* ==========================================================================
   Join Us page. The base (tokens, container, buttons, rail sections, icon
   badge, FAQ accordion) started as a copy of the rules this page used from
   pages/vce-trial-exams/style.css, so it no longer depends on that page.
   ========================================================================== */

:root {
  --primary-text-color: #7c55c5;
  --primary-bg-secondary-light-color: #f1ecfa;

  --ink: #211c2c;
  --ink-soft: rgba(33, 28, 44, 0.66);
  --ink-faint: rgba(33, 28, 44, 0.46);
  --border: #e8e2f2;
  --border-strong: #d9cdef;
  --paper: #fff5f1;
  --surface: #ffffff;
  --surface-tint: #faf7fd;

  --shadow-sm: 0 1px 3px rgba(33, 20, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(33, 20, 61, 0.08);
  --shadow-lg: 0 20px 48px rgba(33, 20, 61, 0.12);

  --container: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  /* 18px, the site's usual container padding: it covers the -18px footer
     row gutters and the -12px .row.g-4 gutters, so 375px screens don't scroll sideways. */
  padding: 0 18px;
}

.accent-text {
  color: #ff723a;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 8px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-primary {
  background: #ff723a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 114, 58, 0.28);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  box-shadow: 0 10px 22px rgba(255, 114, 58, 0.36);
  background: #e6652e;
  color: #fff;
}

.rail-section {
  border-top: 1px solid var(--border);
  padding: clamp(48px, 7vw, 96px) 0;
}

.rail-section:first-of-type {
  border-top: none;
}

.rail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.rail-label h2 {
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.rail-label p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.rail-content {
  min-width: 0;
}

@media (min-width: 980px) {
  .rail-grid {
      grid-template-columns: 300px 1fr;
      gap: 64px;
  
  }

  .rail-label-inner {
      position: sticky;
      top: 32px;
  
  }
}

.benefit-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-bg-secondary-light-color);
}

.join-faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.join-faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-left-color: var(--primary-text-color);
  box-shadow: var(--shadow-md);
}

.join-faq-accordion .accordion-button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}

.join-faq-accordion .accordion-button.collapsed:hover {
  background: var(--surface-tint);
}

.join-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-text-color);
}

.join-faq-accordion .accordion-button::after {
  display: none;
}

.join-faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--border);
}

.faq-question-text {
  flex: 1;
  min-width: 0;
}

.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  transition: background .2s ease, border-color .2s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--primary-text-color);
  transform: translate(-50%, -50%);
}

.faq-toggle::before {
  width: 12px;
  height: 2px;
}

.faq-toggle::after {
  width: 2px;
  height: 12px;
  transition: opacity .2s ease;
}

.accordion-button:not(.collapsed) .faq-toggle {
  background: var(--primary-text-color);
  border-color: var(--primary-text-color);
}

.accordion-button:not(.collapsed) .faq-toggle::before,
.accordion-button:not(.collapsed) .faq-toggle::after {
  background: #fff;
}

.accordion-button:not(.collapsed) .faq-toggle::after {
  opacity: 0;
}

.join-faq-accordion .accordion-body {
  padding: 0 22px 22px 66px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

@media (max-width: 560px) {
  .join-faq-accordion .accordion-body {
      padding-left: 22px;
  
  }
}

/* ==========================================================================
   Page-specific
   ========================================================================== */

.join-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.join-list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.join-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-bg-secondary-light-color);
  color: var(--primary-text-color);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  counter-reset: join-step;
}

.join-steps li {
  counter-increment: join-step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 24px 24px 76px;
  position: relative;
}

.join-steps li::before {
  content: counter(join-step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-bg-color);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-steps h4 {
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 6px;
}

.join-steps p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.join-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 4vw, 40px);
}

.join-form-card .form-check-label {
  color: var(--ink);
}

.benefit-icon-badge i {
  color: var(--primary-text-color);
  font-size: 26px;
}
/* Hero: one big line to the applicant, real tutors pinned to a board beside it. */
.join-hero {
    background: var(--primary-bg-color);
    color: #fff;
    padding: clamp(32px, 5vw, 56px) 0 0;
    overflow: hidden;
}

.join-hero-grid {
    display: grid;
    gap: clamp(36px, 6vw, 64px);
    align-items: center;
}

.join-hero-grid > * {
    min-width: 0;
}

.join-hero-copy .join-hero-kicker {
    color: #fff;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.035em;
    max-width: 11ch;
    margin: 0 0 20px;
}

.join-hero h1 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    max-width: 26ch;
    margin: 0 0 12px;
}

.join-hero-copy p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.6;
    max-width: 46ch;
    margin: 0 0 28px;
}

.join-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.join-hero-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.join-hero-link:hover {
    color: #fff;
    text-decoration-thickness: 2px;
}

.join-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    color: #fff;
    text-decoration: none;
}

.join-board-pins {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 14px;
    width: 100%;
}

.join-board:hover,
.join-board:focus-visible {
    color: #fff;
}

.join-board:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 8px;
    border-radius: var(--radius-sm);
}

.join-pin {
    flex: 0 0 132px;
    margin: 0;
    padding: 8px 8px 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 14px 30px rgba(33, 20, 61, 0.35);
}

.join-pin img {
    display: block;
    width: 100%;
    aspect-ratio: 15 / 17;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
}

.join-pin figcaption {
    color: var(--ink);
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    padding: 8px 0 10px;
}

.join-pin:nth-child(1) { transform: rotate(-5deg); }
.join-pin:nth-child(2) { transform: rotate(3deg) translateY(16px); }
.join-pin:nth-child(3) { transform: rotate(-2deg); }
.join-pin:nth-child(4) { transform: rotate(4deg) translateY(-4px); }
.join-pin:nth-child(5) { transform: rotate(-3deg) translateY(10px); }

.join-board-caption {
    text-align: center;
    font-weight: 700;
    margin-top: 30px;
}

.join-board:hover .join-board-caption {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* The one load moment: the photos drop onto the board. */
@media (prefers-reduced-motion: no-preference) {
    .join-pin {
        animation: join-pin-drop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
    }

    .join-pin:nth-child(2) { animation-delay: 0.08s; }
    .join-pin:nth-child(3) { animation-delay: 0.16s; }
    .join-pin:nth-child(4) { animation-delay: 0.24s; }
    .join-pin:nth-child(5) { animation-delay: 0.32s; }

    @keyframes join-pin-drop {
        from {
            opacity: 0;
            translate: 0 -24px;
        }
    }
}

@media (min-width: 992px) {
    .join-hero-grid {
        grid-template-columns: 1.15fr 1fr;
    }
}

@media (max-width: 575px) {
    .join-board-pins {
        flex-wrap: nowrap;
        gap: 0;
    }

    .join-pin {
        flex: 1 1 0;
        min-width: 0;
        margin-left: -4%;
        padding: 4px 4px 0;
    }

    .join-pin:first-child {
        margin-left: 0;
    }

    .join-pin figcaption {
        font-size: 11px;
        padding: 5px 0 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .join-board-caption {
        margin-top: 24px;
    }
}

/* Facts row along the hero's foot: the three things applicants ask first. */
.join-facts {
    list-style: none;
    margin: clamp(32px, 5vw, 48px) 0 0;
    padding: 0;
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.join-facts li {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.join-facts li:first-child {
    border-top: 0;
}

.join-facts strong {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: clamp(17px, 1.6vw, 19px);
    margin-bottom: 2px;
}

.join-facts span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

@media (min-width: 768px) {
    .join-facts {
        grid-template-columns: repeat(3, 1fr);
    }

    .join-facts li {
        padding: 24px 24px 28px;
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
    }

    .join-facts li:first-child {
        border-left: 0;
        padding-left: 0;
    }
}

/* The shared form renders the site's uppercase theme_btn; match this page's buttons instead. */
#joinUsForm .message_btn {
    text-transform: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    padding: 15px 28px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(255, 114, 58, 0.28);
}

#joinUsForm .message_btn:hover {
    background: #e6652e;
}

.join-apply-list {
    margin: 24px 0;
}

.join-apply-list li {
    font-size: 15px;
}

/* Why section: the three reasons beside a photograph. */
.join-why-title {
    font-weight: 800;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.join-why-intro {
    color: var(--ink-soft);
    font-size: 16.5px;
    font-weight: 600;
    margin: 0 0 28px;
}

.join-why {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px;
}

.join-why li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.join-why .benefit-icon-badge {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
}

.join-why .benefit-icon-badge i {
    font-size: 21px;
}

.join-why h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 4px 0 4px;
}

.join-why p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.join-art {
    display: block;
    width: 100%;
    height: auto;
}

.rail-label .join-art {
    margin-top: 24px;
}

.join-art-apply {
    max-width: 280px;
}

/* On one-column layouts the form matters more than a picture above it. */
@media (max-width: 991px) {
    .join-art-apply {
        display: none;
    }
}
