/* Photo treatment is scoped to the individual AI school page. */
.education-page .hero-bg {
    background-image: linear-gradient(125deg, #f5f1f8, #fbf8f3 50%, #edf3f2);
    opacity: 1;
}
.education-page .personal-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
    max-width: 1240px;
    width: calc(100% - 3rem);
    margin-top: 2rem;
    margin-bottom: 5rem;
    padding: clamp(1.5rem, 3.5vw, 3rem);
    text-align: left;
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 65px #44384e0a;
}
.personal-hero-copy { min-width: 0; }
.education-page .personal-hero-copy .hero-title { font-size: clamp(2.6rem, 5.2vw, 4.35rem); }
.personal-hero-copy .badge { font-size: 0.78rem; padding-right: 0.85rem; padding-left: 0.85rem; }
.personal-hero-copy .hero-subtitle { font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.75rem; }
.personal-hero-copy .desktop-break { display: none; }
.personal-hero-copy .cta-group { align-items: stretch; }
.personal-hero-copy .hero-actions { justify-content: flex-start; gap: 0.65rem; }
.personal-hero-copy .btn { padding: 0.95rem 1.05rem; font-size: 0.88rem; }
.personal-hero-copy .cta-note { font-size: 0.8rem; line-height: 1.8; }
.personal-line-cta { display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem; min-width: 0; }
.education-page .personal-contact-link { align-self: center; display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 2px 0; color: #68497d; font-size: 0.8rem; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.education-page .personal-contact-link:hover { color: #4c1d95; }
.education-page .personal-contact-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.personal-hero-copy .hero-actions { align-items: flex-start; }
.education-page .navbar .personal-line-cta { flex-shrink: 0; gap: 0.1rem; }
.education-page .navbar .personal-line-cta .btn { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.education-page .individual-final-cta .personal-contact-link { color: #e2d8f1; }
.education-page .individual-final-cta .personal-contact-link:hover { color: #fff; }
.personal-hero-photo { min-width: 0; }
.personal-hero-photo img { display: block; width: 100%; height: auto; border-radius: 26px 26px 6px 26px; box-shadow: 0 18px 40px #3b31421a; }
.personal-hero-photo figcaption { margin-top: 1.25rem; padding: 0 0.3rem; text-align: center; }
.personal-hero-photo figcaption > span { display: block; color: #5f456f; font-weight: 700; font-size: 0.95rem; }
.personal-hero-photo small, .personal-photo-note { display: block; color: #746d78; font-size: 0.72rem; line-height: 1.85; }
.personal-hero-photo small { max-width: 36em; margin: 0.55rem auto 0; }
.personal-hero-photo small > span { display: block; }
.personal-curriculum-photo { margin: 0; border-radius: 22px; background: #fff; box-shadow: 0 18px 48px #37283d0a; overflow: hidden; }
.education-page .personal-curriculum-photo img { display: block; max-width: none; width: 100%; height: auto; border-radius: 0; filter: none; }
.personal-curriculum-photo figcaption { padding: 1.5rem; }
.personal-curriculum-photo strong { display: block; color: #593c6c; font-size: 1.03rem; margin-bottom: 0.4rem; }
.personal-curriculum-photo figcaption > span { display: block; font-size: 0.85rem; color: #625968; }
.personal-curriculum-photo small { display: block; margin-top: 0.85rem; color: #746d78; font-size: 0.72rem; }
.education-page .first-month-roadmap { margin-top: 5.5rem; }
.photo-story-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; margin-top: 2.5rem; }
.photo-story-media { min-width: 0; }
.photo-story-figure { margin: 0; }
.photo-story-screen { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: #eee8ee; border-radius: 18px; box-shadow: 0 16px 42px #372c4612; overflow: hidden; }
[data-photo-scene] { opacity: 0; transition: opacity 1.1s ease-in-out; }
[data-photo-scene][data-active="true"] { opacity: 1; }
.photo-scene-image { transform-box: fill-box; transform-origin: center; animation: personal-photo-drift 16s ease-in-out infinite alternate; animation-play-state: paused; }
[data-photo-story][data-motion="running"] [data-photo-scene][data-active="true"] .photo-scene-image { animation-play-state: running; }
.photo-story-caption { display: flex; align-items: baseline; gap: 0.9rem; padding: 1.25rem 0 1rem; }
[data-photo-counter] { flex: none; color: #8b6f9e; font: 700 0.75rem 'Inter', sans-serif; letter-spacing: 0.07em; }
[data-photo-caption] { color: #40324c; font-size: 1.05rem; }
.photo-story-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.photo-story-pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.photo-story-pagination button, .photo-story-toggle { min-width: 44px; min-height: 44px; border: 1px solid #d5c7de; background: #fff; color: #68497d; cursor: pointer; }
.photo-story-pagination button { border-radius: 50%; font: 600 0.8rem 'Inter', sans-serif; transition: background 0.2s, color 0.2s; }
.photo-story-pagination button[aria-pressed="true"] { background: #674382; border-color: #674382; color: #fff; }
.photo-story-pagination button:disabled { cursor: default; }
.photo-story-pagination button:hover:not(:disabled):not([aria-pressed="true"]), .photo-story-toggle:hover { background: #f1eaf5; }
.photo-story-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.6rem 0.9rem; border-radius: 100px; font: 600 0.78rem var(--font-main); }
.photo-story-toggle[hidden] { display: none; }
.photo-story-toggle-icon { display: block; width: 9px; height: 11px; border-right: 3px solid currentColor; border-left: 3px solid currentColor; }
[data-photo-story][data-motion="paused"] .photo-story-toggle-icon { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 0; border-left: 9px solid currentColor; }
.photo-story-media .personal-photo-note { margin-top: 1.15rem; max-width: 45em; }
.education-page .first-month-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.65rem; margin-top: 0; border: 0; }
.education-page .first-month-steps .flow-step { display: grid; grid-template-columns: 25px minmax(0, 1fr); column-gap: 0.75rem; align-content: center; min-width: 0; padding: 1.1rem 1rem; border: 1px solid transparent; border-radius: 14px; transition: background 0.5s, border-color 0.5s; }
.education-page .first-month-steps .flow-step[data-active="true"] { background: #fff; border-color: #c9b7d8; }
.first-month-steps .flow-number { grid-row: 1 / 3; margin: 0; padding-top: 0.2rem; color: #8d6ba7; }
.first-month-steps .roadmap-step-title { margin: 0 0 0.4rem; color: #463252; font-size: 1rem; }
.first-month-steps .flow-step p { grid-column: 2; font-size: 0.85rem; line-height: 1.8; }
@keyframes personal-photo-drift { from { transform: scale(1); } to { transform: scale(1.055); } }
@media (max-width: 1050px) {
    .education-page .personal-hero-layout { grid-template-columns: minmax(0, 1fr); max-width: 800px; text-align: center; }
    .personal-hero-copy .hero-actions { justify-content: center; }
    .personal-hero-photo { width: 100%; max-width: 600px; justify-self: center; }
    .photo-story-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; max-width: 760px; margin-right: auto; margin-left: auto; }
    .education-page .first-month-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .personal-hero-copy .personal-line-cta { width: 100%; }
    .education-page .mobile-cta-bar { flex-direction: column; gap: 0.25rem; }
    .education-page.has-mobile-cta { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
    .education-page .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .education-page .footer-info { width: 100%; min-width: 0; }
    .education-page .footer-address-line { display: block; }
    .education-page .footer-links { align-items: center; }
    .education-page .personal-hero-layout { width: calc(100% - 2rem); margin-top: 0; margin-bottom: 0; padding: 1.75rem 1.2rem; gap: 2rem; }
    .education-page .personal-hero-copy .hero-title { font-size: clamp(2.15rem, 11vw, 3.1rem); }
    .personal-hero-copy .hero-subtitle { font-size: 1rem; line-height: 1.8; }
    .personal-hero-photo img { border-radius: 18px; }
    .personal-hero-photo figcaption > span { font-size: 0.9rem; }
    .personal-hero-photo small { font-size: 0.7rem; text-align: left; }
    .education-page .first-month-roadmap { margin-top: 4rem; }
    .photo-story-layout { margin-top: 2rem; }
    .photo-story-screen { border-radius: 14px; }
    .photo-story-caption { gap: 0.65rem; padding-top: 1rem; }
    [data-photo-caption] { font-size: 0.98rem; }
}
@media (max-width: 600px) {
    .education-page .first-month-steps { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
    .photo-story-pagination { gap: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .photo-scene-image { animation: none !important; transform: none; }
    [data-photo-scene], .education-page .first-month-steps .flow-step { transition: none; }
    .education-page .scroll-indicator { display: none; }
}
