/* ==========================================================================
   Teacher Application V3 — the "apply to teach" landing (page 288)
   Builds on the .tj3 recruitment system (teacher-jobs-v3.css is enqueued too).
   Adds: value cards, constrained gallery, styled Gravity Form, FAQ.
   Namespace: .tapp   Brand: navy #1a1a2e / red #D81818 / yellow #F0D818
   ========================================================================== */

/* ---- Break out of the Astra container (mirror of tj3 breakout) ---- */
body.page-template-page-teacher-application-v3 #primary,
body.page-template-page-teacher-application-v3 #content,
body.page-template-page-teacher-application-v3 .ast-container,
body.page-template-page-teacher-application-v3 .entry-content,
body.page-template-page-teacher-application-v3 article.post { max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.page-template-page-teacher-application-v3 #content > .ast-container { padding: 0 !important; }
body.page-template-page-teacher-application-v3.ast-separate-container #content { padding: 0 !important; background: transparent !important; }
body.page-template-page-teacher-application-v3 .site-content { padding: 0 !important; }
body.page-template-page-teacher-application-v3 .entry-header,
body.page-template-page-teacher-application-v3 .ast-article-single { padding: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; }
body.page-template-page-teacher-application-v3 .entry-title,
body.page-template-page-teacher-application-v3 .post-thumb-img-content { display: none !important; }

/* ---- Shared bits ---- */
.tapp .tapp-lede { font-size: 19px; line-height: 1.55; color: #333; max-width: 540px; margin: 0 0 30px; }
.tapp-section-title { font-size: clamp(26px, 3vw, 40px); line-height: 1.08; margin: 0 0 36px; }

/* ===== WHY / VALUE CARDS ===== */
.tapp-why { padding: 80px 0 72px; background: #f7f7f9; border-bottom: 2px solid #1a1a2e; }
.tapp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tapp-card {
  background: #fff; border: 2px solid #1a1a2e; box-shadow: 8px 8px 0 #1a1a2e;
  padding: 32px 28px; position: relative;
}
.tapp-card-num {
  display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .1em;
  color: #fff; background: #D81818; padding: 4px 10px; margin-bottom: 18px;
}
.tapp-card h3 { font-size: 21px; font-weight: 800; line-height: 1.15; margin: 0 0 12px; color: #1a1a2e; }
.tapp-card p { font-size: 15.5px; line-height: 1.6; color: #444; margin: 0; }

/* ===== SOCIAL PROOF + GALLERY ===== */
.tapp-proof { padding: 80px 0 72px; background: #fff; }
.tapp-proof-head { max-width: 760px; margin: 0 0 40px; }
.tapp-proof-head h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 18px; }
.tapp-proof-head p { font-size: 17px; line-height: 1.65; color: #333; margin: 0 0 1em; }
.tapp-proof-head a { color: #D81818; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.tapp-proof-head a:hover { color: #1a1a2e; }
.tapp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tapp-gallery figure { margin: 0; }
.tapp-gallery img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: 2px solid #1a1a2e;
}

/* ===== APPLICATION FORM ===== */
.tapp-apply { padding: 80px 0; background: #1a1a2e; }
.tapp-apply-card {
  background: #fff; border: 2px solid #1a1a2e; box-shadow: 10px 10px 0 #D81818;
  padding: 48px 44px; max-width: 860px; margin: 0 auto;
}
.tapp-apply-card h2 { font-size: clamp(24px, 2.8vw, 34px); margin: 0 0 16px; }
.tapp-note { font-size: 14.5px; color: #555; background: #fff7d6; border-left: 3px solid #F0D818; padding: 12px 16px; margin: 0 0 28px; }
.tapp-legal { font-size: 12px; line-height: 1.5; color: #888; margin: 24px 0 0; }

/* ---- The form itself (Gravity Form #6, multi-step) is styled by
   teacher-form-steps.css (#gform_wrapper_6), re-skinned to V3. The .tapp-form
   wrapper just provides spacing inside the apply card. ---- */
.tapp-form { margin-top: 4px; }

/* ===== FAQ ===== */
.tapp-faq-sec { padding: 80px 0; background: #f7f7f9; }
.tapp-faq { max-width: 860px; }
.tapp-faq .sv3-faq-item {
  border: 2px solid #1a1a2e; background: #fff; margin: 0 0 12px;
}
.tapp-faq .sv3-faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 800; font-size: 16px; color: #1a1a2e;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.tapp-faq .sv3-faq-item summary::-webkit-details-marker { display: none; }
.tapp-faq .sv3-faq-item summary::after { content: '+'; font-size: 24px; font-weight: 400; color: #D81818; line-height: 1; flex: none; }
.tapp-faq .sv3-faq-item[open] summary::after { content: '\2013'; }
.tapp-faq .sv3-faq-answer { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.65; color: #444; }
.tapp-faq .sv3-faq-answer ul { margin: 0; padding-left: 20px; }
.tapp-faq .sv3-faq-answer li { margin: 0 0 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .tapp-why, .tapp-proof, .tapp-apply, .tapp-faq-sec { padding: 56px 0; }
  .tapp-cards { grid-template-columns: 1fr; gap: 20px; }
  .tapp-gallery { grid-template-columns: repeat(2, 1fr); }
  .tapp-apply-card { padding: 32px 22px; }
}
