/* ============================================================
   Clinton Institute — How to Apply (apply-to-study.html)
   Student-category tabs + step-by-step accordions.
   Loaded as css/apply-to-study.css on the How to Apply page only.
   ============================================================ */

.apply-page { font-size: 16px; line-height: 1.65; color: #333; }
.apply-page h2 { margin-top: 36px; }
.apply-page h3 { margin-top: 28px; }
.apply-page a { color: #0b5f96; }

/* ---------- intro ---------- */
.apply-intro { border-left: 5px solid #55B3F0; padding: 2px 0 2px 18px; margin-bottom: 26px; }
.apply-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: #3a9fd4; margin: 0 0 6px; }
.apply-lead { font-size: 18px; line-height: 1.6; margin: 0 0 16px; color: #333; }
.apply-quicklinks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.apply-quicklinks li { margin: 0; }
.apply-quicklinks a { display: inline-block; padding: 8px 14px; border: 1px solid #55B3F0; border-radius: 3px; color: #0b5f96; text-decoration: none; font-weight: 600; font-size: 14px; }
.apply-quicklinks a:hover, .apply-quicklinks a:focus { background: #55B3F0; color: #fff; }

/* ---------- blue information panel ---------- */
.apply-info { background: #55B3F0; color: #fff; padding: 16px 20px; margin: 0 0 30px; border-radius: 3px; }
.apply-info p { margin: 0 0 8px; }
.apply-info p:last-child { margin-bottom: 0; }
.apply-info strong { color: #fff; }
.apply-info a { color: #fff; text-decoration: underline; }

/* ---------- category tabs ---------- */
.apply-tablist { display: flex; flex-wrap: wrap; border-bottom: 3px solid #55B3F0; margin: 0 0 26px; }
.apply-tab { appearance: none; -webkit-appearance: none; border: 1px solid #55B3F0; border-bottom: none; background: #fff; color: #0b5f96; font-weight: 700; font-size: 16px; padding: 12px 22px; cursor: pointer; margin: 0 6px -1px 0; border-radius: 3px 3px 0 0; }
.apply-tab:hover { background: #e8f6fd; }
.apply-tab.is-active { background: #55B3F0; color: #fff; }
.apply-panel[hidden] { display: none; }
.apply-panel-intro { font-size: 17px; margin: 0 0 22px; }

/* ---------- step timeline ---------- */
.apply-steps { list-style: none; margin: 0; padding: 0; }
.apply-steps > li { position: relative; padding: 0 0 16px 44px; border-left: 3px dotted #9fd8f5; margin-left: 13px; }
.apply-steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.apply-steps > li::before { content: ""; position: absolute; left: -15px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #55B3F0; }
.apply-step { border-bottom: 1px solid #e3eef5; }
.apply-step-summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 18px; padding: 16px 0; }
.apply-step-summary::-webkit-details-marker { display: none; }
.apply-step-summary::marker { content: ""; }
.apply-step-label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #3a9fd4; font-weight: 700; }
.apply-step-title { display: block; font-size: 24px; font-weight: 700; color: #14467f; margin: 2px 0 6px; line-height: 1.25; }
.apply-step-lead { display: block; font-size: 16px; color: #555; max-width: 760px; }
.apply-step-toggle { display: inline-flex; align-items: center; gap: 8px; background: #14467f; color: #fff; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 2px; white-space: nowrap; }
.apply-step[open] .apply-step-toggle { background: #0d3259; }
.apply-toggle-hide { display: none; }
.apply-step[open] .apply-toggle-show { display: none; }
.apply-step[open] .apply-toggle-hide { display: inline; }
.apply-caret { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid #fff; }
.apply-step[open] .apply-caret { border-top-color: #fff; }
.apply-step-body { padding: 2px 0 26px; }
.apply-step-body ul { padding-left: 20px; }
.apply-step-body li { margin-bottom: 8px; }
.apply-step-body > ul:last-child { margin-bottom: 0; }
.apply-step-body h4 { margin: 20px 0 8px; font-size: 17px; color: #14467f; }

/* ---------- course directory ---------- */
#course-directory { scroll-margin-top: 150px; }

.apply-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 18px; }
.apply-courses h4 { font-size: 18px; color: #14467f; border-bottom: 2px solid #e3eef5; padding-bottom: 8px; margin: 0 0 12px; }
.apply-courses ul { list-style: none; padding: 0; margin: 0; }
.apply-courses li { margin-bottom: 8px; }
.apply-courses a { color: #0b5f96; text-decoration: none; }
.apply-courses a:hover { text-decoration: underline; }

/* ---------- call to action ---------- */
.apply-cta { background: #f2f9fd; border: 1px solid #d8ecf8; padding: 28px 24px; margin: 32px 0 10px; text-align: center; }
.apply-cta h2 { margin: 0 0 8px; }
.apply-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0 12px; }
.apply-btn { display: inline-block; padding: 12px 22px; font-weight: 700; text-decoration: none; border-radius: 2px; }
.apply-btn-primary { background: #14467f; color: #fff; }
.apply-btn-primary:hover, .apply-btn-primary:focus { background: #0d3259; color: #fff; }
.apply-btn-secondary { background: #55B3F0; color: #fff; }
.apply-btn-secondary:hover, .apply-btn-secondary:focus { background: #3a9fd4; color: #fff; }
.apply-btn-ghost { background: #fff; color: #14467f; border: 1px solid #14467f; }
.apply-btn-ghost:hover, .apply-btn-ghost:focus { background: #14467f; color: #fff; }
.apply-contact { font-size: 15px; color: #555; margin: 0; }
.apply-contact a { color: #0b5f96; }

/* ---------- notes ---------- */
.apply-note { font-size: 14px; color: #666; border-left: 4px solid #e3eef5; padding-left: 14px; margin: 22px 0; }
.apply-note p { margin: 0 0 8px; }
.apply-note p:last-child { margin-bottom: 0; }

/* ---------- faq ---------- */
.apply-faq summary { cursor: pointer; font-weight: 700; color: #14467f; padding: 14px 0; font-size: 18px; }
.apply-faq details { border-bottom: 1px solid #e3eef5; }
.apply-faq details p { padding: 0 0 16px; margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 991px) {
  .apply-courses { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .apply-step-summary { grid-template-columns: 1fr; }
  .apply-step-toggle { margin-top: 12px; justify-self: start; }
  .apply-step-title { font-size: 21px; }
  .apply-lead { font-size: 17px; }
}
