.ql-page {
    --ql-red: var(--main-color, #a30023);
    --ql-text: #1a1a1a;
    --ql-muted: #6b7280;
    --ql-line: #e6e8ee;
    --ql-soft: #f4f5f7;
    --ql-radius: 18px;
    color: var(--ql-text);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    background: #fff;
}

.ql-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.ql-section {
    padding: 88px 0;
}

.ql-section-alt {
    background: #f6f7f9;
}

.ql-kicker {
    color: var(--ql-red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.ql-kicker-muted {
    color: #9aa1ad;
}

.ql-page h1,
.ql-page h2,
.ql-page h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ql-text);
}

.ql-page h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.12;
    margin: 0 0 18px;
}

.ql-page h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin: 0 0 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.ql-lead {
    color: var(--ql-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 640px;
}

.ql-accent {
    color: var(--ql-red);
}

.ql-center-head {
    text-align: center;
}

.ql-center-head .ql-lead {
    margin: 0 auto 36px;
}

.ql-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ql-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d9dde5;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.86rem;
    margin-bottom: 0;
    background: #fff;
}

.ql-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ql-red);
    flex: 0 0 auto;
    animation: ql-pill-blink 1.6s ease-in-out infinite;
}

@keyframes ql-pill-blink {
    0%, 100% { background: var(--ql-red); }
    50% { background: #ff8a96; }
}

@media (prefers-reduced-motion: reduce) {
    .ql-pill-dot {
        animation: none;
    }
}

.ql-pill-light {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border: 0;
    margin-bottom: 18px;
    font-weight: 700;
}

.ql-pill-light .ql-pill-dot {
    background: #fff;
}

.ql-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 28px;
}

.ql-actions-center {
    justify-content: center;
}

.ql-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    padding: 13px 20px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition:
        background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.ql-btn-primary {
    background: linear-gradient(135deg, var(--ql-red) 0%, #8c001e 100%);
    color: #fff;
}

.ql-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.ql-btn-primary:hover,
.ql-btn-primary:focus-visible {
    background: linear-gradient(135deg, #8c001e 0%, var(--ql-red) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(163, 0, 35, 0.35);
}

.ql-btn-primary:hover::before,
.ql-btn-primary:focus-visible::before {
    left: 100%;
}

.ql-btn-ghost {
    background: #fff;
    color: var(--ql-text);
    border-color: #d7dbe3;
}

.ql-btn-white {
    background: #fff;
    color: #111;
}

.ql-btn-outline-white {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

/* CTA buttons: solid white primary + soft outline (scoped to .ql-cta) */
.ql-cta .ql-btn {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.ql-cta .ql-btn-white {
    background: #fff;
    color: var(--ql-red);
    border-color: #fff;
}

.ql-cta .ql-btn-white:hover {
    background: #fff;
    color: var(--ql-red);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.ql-cta .ql-btn-outline-white {
    background: transparent;
    color: #fff;
}

.ql-cta .ql-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.ql-hero {
    padding: 48px 0 72px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 48px);
}

.ql-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.ql-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ql-hero-stats article {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 16px;
    padding: 14px 14px 12px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.ql-hero-stats article:hover {
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
    border-color: #e0e3e9;
    transform: translateY(-2px);
}

.ql-hero-stats strong {
    display: block;
    font-size: 1.15rem;
}

.ql-hero-stats span {
    color: var(--ql-muted);
    font-size: 0.86rem;
}

.ql-hero-visual {
    position: relative;
    min-height: 460px;
    border-radius: 28px;
    overflow: hidden;
}

.ql-hero-visual img,
.ql-ph,
.ql-path-media img,
.ql-life-item img,
.ql-why-photo img,
.ql-quote-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ql-ph {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: linear-gradient(180deg, #eceff3, #dfe3ea);
}

.ql-overlay {
    position: absolute;
    background: rgba(20, 24, 32, 0.72);
    color: #fff;
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.84rem;
}

.ql-overlay-students { top: 18px; left: 18px; }
.ql-overlay-index { top: 18px; right: 18px; min-width: 170px; }
.ql-overlay-index span,
.ql-overlay-defect span { display: block; opacity: 0.8; font-size: 0.72rem; letter-spacing: 0.04em; }
.ql-overlay-index strong { font-size: 1.5rem; }
.ql-overlay-index em { color: #74e0a0; font-style: normal; }
.ql-overlay-defect { left: 18px; bottom: 18px; width: 210px; }
.ql-overlay-iso { right: 18px; bottom: 18px; }
.ql-dots {
    height: 42px;
    margin: 8px 0;
    background: radial-gradient(#fff 1.4px, transparent 1.5px) 0 0 / 12px 12px;
    opacity: 0.7;
}

.ql-split {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 48px;
    align-items: start;
}

.ql-chain-card,
.ql-card,
.ql-quote,
.ql-why-card,
.ql-faq details {
    background: #fff;
    border-radius: var(--ql-radius);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}

.ql-chain-card {
    padding: 22px;
    border: 1px solid #eceff3;
}

.ql-chain {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.ql-chain-step,
.ql-function-list article,
.ql-year-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ql-chain-step {
    padding: 12px;
    border-radius: 14px;
    background: #f7f8fa;
    position: relative;
    transition: box-shadow 0.22s ease, background-color 0.22s ease;
}

.ql-chain-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 32px;
    top: 100%;
    width: 2px;
    height: 16px;
    background: rgba(163, 0, 35, 0.28);
    pointer-events: none;
}

.ql-chain-step:hover {
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.ql-chain-step.is-role {
    background: #fdecee;
    outline: 1px solid rgba(163, 0, 35, 0.2);
}

.ql-chain-step.is-role:hover {
    box-shadow: 0 10px 24px rgba(163, 0, 35, 0.12);
}

.ql-role-badge {
    margin-left: auto;
    background: var(--ql-red);
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.ql-icon {
    width: 22px;
    height: 22px;
}

.ql-chain-icon,
.ql-mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eceff3;
    color: #4b5563;
    flex: 0 0 auto;
    transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.ql-function-list .ql-mini-icon,
.ql-career-grid .ql-mini-icon {
    background: #fdecee;
    color: var(--ql-red);
    border-radius: 12px;
}

.ql-function-list .ql-mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.ql-function-list .ql-mini-icon .ql-icon {
    width: 18px;
    height: 18px;
}

.ql-mini-icon.solid,
.ql-chain-step.is-role .ql-chain-icon {
    background: var(--ql-red);
    color: #fff;
}

.ql-function-list,
.ql-career-grid,
.ql-partner-stats,
.ql-why-grid {
    display: grid;
    gap: 14px;
}

.ql-function-list {
    gap: 8px;
}

.ql-function-list article {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
    background: #f7f8fa;
    transition: box-shadow 0.22s ease, background-color 0.22s ease;
}

.ql-function-list article h3 {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    margin: 0 0 2px;
    line-height: 1.3;
}

.ql-function-list article p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--ql-muted);
}

.ql-function-list article:hover {
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.ql-function-list article:hover .ql-mini-icon {
    transform: scale(1.18) rotate(8deg);
}

.ql-career-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ql-card {
    padding: 22px;
    text-align: left;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.ql-career-grid .ql-card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.1);
}

.ql-career-grid .ql-card:hover .ql-mini-icon {
    transform: scale(1.18) rotate(8deg);
}

.ql-partner-stats .ql-card:hover {
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.09);
}

.ql-salary {
    margin-top: 16px;
    display: inline-flex;
    background: #f1f3f6;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
}

.ql-marquee {
    overflow: hidden;
    margin: 8px 0 28px;
}

.ql-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: ql-marquee 28s linear infinite;
}

.ql-marquee-track span {
    background: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.05);
}

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

.ql-partner-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.ql-partner-stats strong {
    color: var(--ql-red);
    font-size: 2rem;
}

.ql-quote {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
}

.ql-quote-photo {
    min-height: 240px;
}

.ql-quote-body {
    padding: 28px;
}

.ql-quote-mark {
    color: var(--ql-red);
    font-size: 42px;
    line-height: 1;
}

.ql-quote-author {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.ql-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ql-red);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.ql-roadmap {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 820px;
    text-align: left;
    position: relative;
}

.ql-roadmap li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    margin-bottom: 14px;
    position: relative;
}

.ql-num {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ql-red);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    transition: transform 0.22s ease;
}

.ql-roadmap li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: -14px;
    width: 2px;
    background: rgba(163, 0, 35, 0.28);
    pointer-events: none;
}

.ql-roadmap li > div {
    background: #f6f7f9;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.04);
    transition: background-color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ql-roadmap li:hover > div {
    background: #fff;
    border-color: #dce0e6;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.ql-roadmap li:hover .ql-num {
    transform: scale(1.06);
}

.ql-form-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 20px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.ql-form-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    border-radius: 16px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
}

.ql-form-tab.is-active {
    background: var(--ql-red);
    color: #fff;
    border-color: var(--ql-red);
}

.ql-form-tab-code {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.ql-form-tab-title {
    font-weight: 700;
    line-height: 1.35;
}

.ql-form-tab-format {
    font-size: 0.82rem;
    opacity: 0.75;
}

.ql-track-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 8px auto 4px;
    max-width: 980px;
}

.ql-track-tab {
    border: 1px solid #f3c5cb;
    background: #fff;
    color: var(--ql-red);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.ql-track-tab.is-active {
    background: #fde8eb;
    border-color: #f0a8b2;
    color: var(--ql-red);
}

.ql-path-block {
    display: none;
}

.ql-path-block.is-active {
    display: block;
}

.ql-path-track {
    display: none;
}

.ql-path-track.is-active {
    display: block;
}

.ql-path-empty {
    text-align: center;
    color: #6b7280;
    margin: 24px 0;
}

.ql-path-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.ql-path-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 4px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.ql-path-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--ql-red);
}

.ql-path-list-electives li:before {
    content: "◇";
}

.ql-path-list-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
}

.ql-path-list-cols li {
    font-size: 0.84rem;
    line-height: 1.35;
    margin-bottom: 2px;
}

.ql-path-boxes .is-gia {
    background: #eef4ff;
}

.ql-path {
    position: relative;
    max-width: 980px;
    margin: 24px auto 0;
    padding-left: 36px;
}

.ql-path:before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ql-red);
    transform: none;
}

.ql-path-card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    overflow: visible;
    position: relative;
    margin-bottom: 16px;
    border: 1px solid #eceff3;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.ql-path-card:hover {
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.1);
    border-color: rgba(163, 0, 35, 0.22);
    transform: translateY(-2px);
}

.ql-path-card-intro {
    margin: 0;
    padding: 14px 16px 0;
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: left;
}

.ql-path-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 0;
}

.ql-path-card-head.has-media {
    display: grid;
    grid-template-columns: 120px 1fr;
}

.ql-path-media {
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
}

.ql-path-body {
    padding: 12px 16px 16px;
    text-align: left;
}

.ql-year-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.ql-year-row h3 {
    margin: 0;
    font-size: 1.15rem;
}

.ql-year-badge {
    border-radius: 8px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    flex-shrink: 0;
}

.tone-red { background: var(--ql-red); }
.tone-dark { background: #111; }

.ql-path-boxes {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: 10px;
    margin-top: 12px;
}

.ql-path-boxes-single {
    grid-template-columns: 1fr;
}

.ql-path-box-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ql-path-box-col-side {
    align-self: start;
}

.ql-path-boxes div {
    background: #f4f5f7;
    border-radius: 12px;
    padding: 10px 12px;
}

.ql-path-boxes .is-practice {
    background: #fdecee;
    color: var(--ql-red);
}

.ql-path-boxes span {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.ql-path-boxes p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.4;
}

.ql-path-marker {
    position: absolute;
    top: 28px;
    left: -29px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--ql-red);
    z-index: 1;
    box-sizing: border-box;
}

.ql-path-card:not(:last-child) .ql-path-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 16px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--ql-red);
    transform: translateX(-50%);
}

.ql-life-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 1fr;
    grid-template-rows: 170px 230px 170px;
    gap: 14px;
}

.ql-life-item {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.ql-life-item img,
.ql-life-item .ql-ph {
    transition: transform 0.35s ease;
}

.ql-life-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 16px 14px;
    background: linear-gradient(180deg, transparent, rgba(20, 24, 32, 0.78));
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    text-align: left;
}

.ql-life-item:hover img,
.ql-life-item:hover .ql-ph {
    transform: scale(1.04);
}

.ql-life-item:hover .ql-life-caption {
    opacity: 1;
    transform: translateY(0);
}

.ql-life-item:nth-child(1) { grid-row: 1 / 3; }
.ql-life-item:nth-child(2) { grid-column: 1; grid-row: 3; }
.ql-life-item:nth-child(3) { grid-column: 2; grid-row: 1; }
.ql-life-item:nth-child(4) { grid-column: 2; grid-row: 2 / 4; }
.ql-life-item:nth-child(5) { grid-column: 3; grid-row: 1; }
.ql-life-item:nth-child(6) { grid-column: 3; grid-row: 2 / 4; }

.ql-why-grid {
    grid-template-columns: 1fr 1fr;
}

.ql-why-card {
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    overflow: hidden;
}

.ql-why-card:hover {
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.1);
    transform: translateY(-2px);
}

.ql-why-photo {
    height: 180px;
    overflow: hidden;
}

.ql-why-photo img,
.ql-why-photo .ql-ph {
    transition: transform 0.35s ease;
}

.ql-why-card:hover .ql-why-photo img,
.ql-why-card:hover .ql-why-photo .ql-ph {
    transform: scale(1.05);
}

.ql-why-body {
    padding: 18px;
    text-align: left;
}

.ql-faq-wrap {
    max-width: 860px;
}

.ql-faq details {
    border: 1px solid #eceff3;
    margin-bottom: 10px;
    text-align: left;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ql-faq details:hover {
    background: #fff5f6;
}

.ql-faq details[open] {
    background: #fff;
    border-color: var(--ql-red);
    box-shadow: none;
}

.ql-faq details[open]:hover {
    background: #fff;
}

.ql-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    font-weight: 700;
    position: relative;
    padding-right: 42px;
}

.ql-faq summary::-webkit-details-marker { display: none; }

.ql-faq summary:after {
    content: "▾";
    position: absolute;
    right: 18px;
    color: var(--ql-red);
}

.ql-faq details[open] summary:after {
    transform: rotate(180deg);
}

.ql-faq details p {
    padding: 0 20px 18px;
    color: var(--ql-muted);
    margin: 0;
}

.ql-cta-wrap {
    padding: 0 0 64px;
}

.ql-cta {
    background: var(--ql-red);
    color: #fff;
    border-radius: 28px;
    text-align: center;
    padding: 56px 24px;
}

.ql-cta h2,
.ql-cta p {
    color: #fff;
}

.ql-cta p {
    max-width: 640px;
    margin: 0 auto 24px;
    opacity: 0.92;
}

@media (max-width: 980px) {
    .ql-hero-grid,
    .ql-split,
    .ql-quote,
    .ql-career-grid,
    .ql-partner-stats,
    .ql-why-grid,
    .ql-life-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .ql-life-item { min-height: 180px; }
    .ql-life-item:nth-child(n) { grid-column: auto; grid-row: auto; }
    .ql-path {
        padding-left: 0;
    }
    .ql-path:before,
    .ql-path-marker { display: none; }
    .ql-path-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .ql-path-card-head.has-media {
        grid-template-columns: 88px 1fr;
        gap: 12px;
    }
    .ql-path-media {
        height: 72px;
    }
    .ql-hero-visual { min-height: 360px; }
}

@media (max-width: 900px) {
    .ql-form-tabs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ql-section { padding: 56px 0; }
    .ql-hero-stats,
    .ql-path-boxes {
        grid-template-columns: 1fr;
    }
    .ql-path-list-cols {
        grid-template-columns: 1fr;
    }
}

/* Scroll reveal (landing-reveal.js) — sections after hero */
.landing-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.landing-reveal.landing-reveal--visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.landing-reveal .landing-reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0ms;
}

.landing-reveal.landing-reveal--visible .landing-reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--landing-reveal-delay, 0ms);
}

/* Hover transforms after reveal settles (must beat .landing-reveal-item rules) */
.landing-reveal.landing-reveal--visible .ql-career-grid .ql-card:hover,
.ql-career-grid .ql-card:hover {
    transform: scale(1.02);
}

.landing-reveal.landing-reveal--visible .ql-function-list article:hover .ql-mini-icon,
.landing-reveal.landing-reveal--visible .ql-career-grid .ql-card:hover .ql-mini-icon,
.ql-function-list article:hover .ql-mini-icon,
.ql-career-grid .ql-card:hover .ql-mini-icon {
    transform: scale(1.18) rotate(8deg);
}

.landing-reveal.landing-reveal--visible .ql-roadmap li:hover .ql-num,
.ql-roadmap li:hover .ql-num {
    transform: scale(1.06);
}

.landing-reveal.landing-reveal--visible .ql-path-card:hover,
.ql-path-card:hover {
    transform: translateY(-2px);
}

.landing-reveal.landing-reveal--visible .ql-why-card:hover,
.ql-why-card:hover {
    transform: translateY(-2px);
}

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

    .ql-chain-step,
    .ql-function-list article,
    .ql-card,
    .ql-mini-icon,
    .ql-chain-icon,
    .ql-num,
    .ql-path-card,
    .ql-why-card,
    .ql-why-photo img,
    .ql-why-photo .ql-ph,
    .ql-life-item img,
    .ql-life-item .ql-ph,
    .ql-life-caption,
    .ql-cta .ql-btn,
    .ql-roadmap li > div,
    .ql-faq details {
        transition: none !important;
    }

    .landing-reveal.landing-reveal--visible .ql-career-grid .ql-card:hover,
    .ql-career-grid .ql-card:hover,
    .landing-reveal.landing-reveal--visible .ql-path-card:hover,
    .ql-path-card:hover,
    .landing-reveal.landing-reveal--visible .ql-why-card:hover,
    .ql-why-card:hover,
    .ql-cta .ql-btn-white:hover,
    .landing-reveal.landing-reveal--visible .ql-roadmap li:hover .ql-num,
    .ql-roadmap li:hover .ql-num,
    .landing-reveal.landing-reveal--visible .ql-function-list article:hover .ql-mini-icon,
    .landing-reveal.landing-reveal--visible .ql-career-grid .ql-card:hover .ql-mini-icon,
    .ql-function-list article:hover .ql-mini-icon,
    .ql-career-grid .ql-card:hover .ql-mini-icon,
    .ql-life-item:hover img,
    .ql-life-item:hover .ql-ph,
    .ql-why-card:hover .ql-why-photo img,
    .ql-why-card:hover .ql-why-photo .ql-ph,
    .ql-hero-stats article:hover,
    .ql-btn-primary:hover,
    .ql-btn-primary:focus-visible {
        transform: none;
    }

    .ql-life-caption {
        opacity: 1;
        transform: none;
    }
}
