html,
body,
button,
input,
textarea,
select,
optgroup {
    font-family: Shabnam, Tahoma, Arial, sans-serif !important;
}

/* CARMAP map cards */
.carmap-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 8px 5px 22px;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.carmap-slider-track::-webkit-scrollbar {
    display: none;
}

.carmap-slider-track .map-card {
    flex: 0 0 calc((100% - 32px) / 3);
    scroll-snap-align: start;
}

.carmap-slider-controls {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.carmap-slider-dots {
    align-items: center;
    direction: ltr;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.carmap-slider-dots button {
    background: #8b91a5;
    border: 0;
    border-radius: 999px;
    height: 11px;
    padding: 0;
    transition: background-color .22s ease, transform .22s ease, width .22s ease;
    width: 11px;
}

.carmap-slider-dots button.is-active {
    background: #111a46;
    transform: scale(1.08);
    width: 16px;
}

.carmap-slider-dots button:hover,
.carmap-slider-dots button:focus-visible {
    background: #176cf3;
    outline: 2px solid rgba(36, 223, 255, .35);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .carmap-slider-track .map-card {
        flex-basis: 100%;
    }
}

.map-preview {
    height: 210px;
    overflow: hidden;
}

.map-preview img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.map-preview > span {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.map-card .map-card-action {
    align-items: center;
    align-self: end;
    display: inline-flex;
    height: 48px;
    justify-self: center;
    padding: 0 18px;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
    width: 180px;
}

.map-card .map-preview > span {
    color: #fff;
    font-size: 16px;
}

.map-card h3 {
    border-top: 1px solid #dbe5f2;
    margin-top: 12px;
    padding-top: 12px;
}

.map-card .map-card-action:hover,
.map-card .map-card-action:focus-visible {
    border-color: rgba(37, 99, 235, .7);
    box-shadow:
        -4px 0 0 #24dfff,
        0 4px 0 #24dfff,
        -8px 10px 24px rgba(20, 205, 255, .28);
    outline: none;
    transform: translateY(-3px) scale(1.035);
}

/* Full technical image on CARMAP detail pages */
.carmap-map-box {
    max-width: 1080px;
    width: 100%;
}

.carmap-technical-image {
    align-items: center;
    -webkit-touch-callout: none;
    display: flex;
    justify-content: center;
    margin: 26px auto;
    position: relative;
    user-select: none;
    width: 100%;
}

.carmap-technical-image img {
    border-radius: 8px;
    display: block;
    height: auto;
    margin-inline: auto;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    width: auto;
}

.carmap-technical-image::after {
    content: "";
    inset: 0;
    position: absolute;
}

/* Centered CarMap category cards */
.carmap-category-grid a {
    align-content: center;
    border-color: #d9e4f2;
    box-shadow: 0 12px 28px rgba(26, 59, 100, .08);
    justify-items: center;
    min-height: 112px;
    overflow: hidden;
    position: relative;
    text-align: center;
    transform-origin: center;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.carmap-category-grid a:hover,
.carmap-category-grid a:focus-visible {
    border-color: rgba(37, 99, 235, .55);
    box-shadow:
        -4px 0 0 #24dfff,
        0 4px 0 #24dfff,
        -10px 14px 32px rgba(20, 205, 255, .32);
    outline: none;
    transform: translateY(-5px) scale(1.045);
}

.carmap-category-grid strong {
    font-size: 17px;
    line-height: 1.7;
}

.carmap-category-grid span {
    align-items: center;
    background: #eef4ff;
    border-radius: 6px;
    display: inline-flex;
    justify-content: center;
    min-height: 28px;
    padding: 4px 11px;
}

/* Full-width CarMap hero */
.carmap-page-hero {
    border-radius: 0;
    max-width: none;
    padding-inline: max(28px, calc((100vw - 1320px) / 2));
    width: 100%;
}

.carmap-hero-content {
    text-align: center;
}

.app-hero .carmap-hero-content > span {
    display: block;
    font-size: 42px;
    line-height: 1;
    margin: 0 auto 22px;
    text-align: center;
    transform: translateY(-18px);
}

.carmap-hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.carmap-logo-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    padding: 0;
}

.carmap-logo-panel img {
    display: block;
    height: 100%;
    object-fit: contain;
    transform: scale(1.5);
    width: 100%;
}

/* Check Light hero mirrors the CARMAP composition. */
.checklight-page-hero {
    border-radius: 0;
    max-width: none;
    padding-inline: max(28px, calc((100vw - 1320px) / 2));
    width: 100%;
}

.checklight-hero-content {
    text-align: center;
}

.checklight-hero-content h1 {
    font-weight: 900;
}

.app-hero .checklight-hero-content > span {
    color: #ffb000;
    display: block;
    font-size: 42px;
    line-height: 1;
    margin: 0 auto 22px;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 176, 0, .24);
    transform: translateY(-18px);
}

.checklight-hero-content p {
    margin-inline: auto;
}

.checklight-hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.checklight-hero-actions form {
    margin-top: 0;
}

.checklight-pack-action {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(115, 183, 255, .58) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    color: #fff;
    min-height: 44px;
    min-width: 190px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.checklight-pack-action:hover,
.checklight-pack-action:focus-visible {
    background: rgba(37, 129, 255, .2);
    border-color: #73b7ff !important;
    box-shadow: 0 8px 24px rgba(37, 129, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
    outline: none;
    transform: translateY(-2px);
}

.app-phone.checklight-logo-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    overflow: visible;
    padding: 0;
    width: min(290px, 100%);
}

.app-phone.checklight-logo-panel img {
    display: block;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    transform: none;
    width: 100%;
}

@media (max-width: 820px) {
    .carmap-page-hero {
        padding: 32px 18px;
    }

    .checklight-page-hero {
        padding: 32px 18px;
    }

    .carmap-logo-panel {
        height: 230px;
        justify-self: center;
        width: min(250px, 100%);
    }

    .app-phone.checklight-logo-panel {
        height: auto;
        justify-self: center;
        width: min(260px, 100%);
    }

    .app-phone.checklight-logo-panel img {
        max-height: 120px;
    }

    .app-hero .carmap-hero-content > span {
        font-size: 36px;
        transform: translateY(-8px);
    }

    .app-hero .checklight-hero-content > span {
        font-size: 36px;
        transform: translateY(-8px);
    }
}

/* Compact CARMAP pack header */
.carmap-category-hero {
    gap: 52px;
    grid-template-columns: minmax(0, 1fr) 170px;
    min-height: 240px;
    padding-block: 30px;
    position: relative;
}

.carmap-category-hero-content {
    padding-top: 48px;
    text-align: right;
}

.app-hero .carmap-category-hero-content > span {
    font-size: 42px;
    left: 50%;
    line-height: 1;
    margin: 0;
    position: absolute;
    text-align: center;
    top: 36px;
    transform: translateX(-50%);
}

.carmap-category-title-group {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    max-width: 100%;
    transform: translateY(-14px);
    width: fit-content;
}

.app-hero .carmap-category-hero-content h1 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 8px;
    text-align: center;
}

.carmap-category-hero-actions {
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.carmap-category-back {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(115, 183, 255, .58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    color: #f4f9ff;
    min-height: 44px;
    min-width: 172px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.carmap-category-back:hover,
.carmap-category-back:focus-visible {
    background: rgba(37, 129, 255, .2);
    border-color: #73b7ff;
    box-shadow: 0 8px 24px rgba(37, 129, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
    outline: none;
    transform: translateY(-2px);
}

.carmap-category-logo-panel {
    height: 170px;
    justify-self: center;
    width: 170px;
}

.carmap-category-logo-panel img {
    transform: scale(1.28);
}

.carmap-pack-price {
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(115, 183, 255, .42);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 50%;
    min-height: 76px;
    min-width: 240px;
    padding: 10px 22px;
    position: absolute;
    top: 128px;
    transform: translateX(-50%);
}

.carmap-pack-price small {
    color: #9ecbff;
    font-size: 12px;
    font-weight: 800;
}

.carmap-pack-price strong {
    color: #fff;
    direction: rtl;
    font-size: 23px;
    line-height: 1.5;
}

.carmap-pack-price strong span {
    color: #cfe5ff;
    display: inline;
    font-size: 12px;
}

.carmap-node-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.carmap-category-grid .carmap-node-price {
    background: #e9fbf4;
    color: #087a53;
}

@media (max-width: 1050px) {
    .carmap-category-hero {
        gap: 20px;
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 26px 18px;
    }

    .carmap-category-hero-content {
        padding-top: 0;
        text-align: center;
    }

    .app-hero .carmap-category-hero-content > span {
        font-size: 36px;
        left: auto;
        margin: 0 auto 18px;
        position: static;
        text-align: center;
        top: auto;
        transform: none;
    }

    .carmap-category-title-group {
        margin-inline: auto;
        transform: none;
    }

    .app-hero .carmap-category-hero-content h1 {
        font-size: 30px;
    }

    .carmap-category-hero-actions {
        justify-content: center;
    }

    .carmap-category-hero .carmap-category-logo-panel {
        height: 125px;
        width: 125px;
    }

    .carmap-pack-price {
        left: auto;
        margin: 0 auto;
        min-width: min(240px, 100%);
        position: static;
        top: auto;
        transform: none;
    }
}

.article-card {
    margin-top: 25.5%;
    min-height: 286px;
    padding: 0 20px 26px;
}

.article-card-media {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    margin: -25.5% auto 24px;
}

.article-card-media img {
    border-radius: 18px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.article-card-media span {
    border-radius: 0 8px 0 0;
    left: 0;
    padding: 5px 11px;
    right: auto;
}

.article-card h2 {
    font-size: 20px;
    line-height: 1.7;
}

.article-card time {
    align-items: center;
    direction: rtl;
    display: inline-flex;
    font-size: 17px;
    gap: 5px;
    line-height: 1.4;
}

.article-card time svg {
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 14px;
}

.article-mini-thumb {
    display: block;
    height: 52px;
    object-fit: cover;
    width: 76px;
}

@media (max-width: 760px) {
    .article-card {
        margin-top: 25.5%;
        padding: 0 14px 20px;
    }

    .article-card-media {
        margin-top: -25.5%;
    }
}
.footer-cta {
    justify-content: center;
    text-align: center;
}

.footer-cta > div {
    width: 100%;
}

.footer-cta h2 a {
    color: #fff;
    text-decoration: none;
}

.footer-cta h2 a:hover,
.footer-cta h2 a:focus-visible {
    color: #ffb400;
}

/* About page */
.about-hero {
    background: #07172b;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    min-height: 480px;
    overflow: hidden;
    position: relative;
}

.about-hero::after {
    background-image:
        linear-gradient(rgba(36, 122, 255, .13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 122, 255, .13) 1px, transparent 1px);
    background-size: 46px 46px;
    content: "";
    inset: 0;
    opacity: .28;
    pointer-events: none;
    position: absolute;
}

.about-hero-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 920px;
    padding: 56px 24px 66px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.about-hero-inner > img {
    height: auto;
    margin-bottom: 16px;
    object-fit: contain;
    width: 200px;
}

.about-eyebrow,
.about-section-heading > span,
.about-values-copy > span,
.about-cta > div > span {
    color: #16c784;
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 10px;
}

.about-hero h1 {
    font-size: 42px;
    line-height: 1.45;
    margin: 0;
}

.about-hero-lead {
    color: #c9d7ea;
    font-size: 17px;
    line-height: 2.05;
    margin: 16px auto 0;
    max-width: 800px;
}

.about-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.about-hero-actions a,
.about-cta > a {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.about-primary-action,
.about-cta > a {
    background: #156cf7;
    color: #fff;
}

.about-primary-action:hover,
.about-cta > a:hover {
    background: #0759dc;
}

.about-secondary-action {
    border-color: rgba(255, 255, 255, .34) !important;
    color: #fff;
}

.about-secondary-action:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .62) !important;
}

.about-page {
    background: #f7faff;
}

.about-intro,
.about-services,
.about-values,
.about-audience,
.about-cta {
    margin: 0 auto;
    max-width: 1180px;
    padding: 76px 24px;
}

.about-intro {
    align-items: start;
    display: grid;
    gap: 72px;
    grid-template-columns: .82fr 1.18fr;
}

.about-section-heading h2,
.about-values-copy h2,
.about-cta h2 {
    color: #0b1c33;
    font-size: 29px;
    line-height: 1.75;
    margin: 0;
}

.about-section-heading > p {
    color: #64748b;
    line-height: 1.9;
    margin: 10px auto 0;
    max-width: 700px;
}

.about-intro-copy {
    border-right: 3px solid #f6b71e;
    padding-right: 26px;
}

.about-intro-copy p,
.about-values-copy p,
.about-cta p {
    color: #52647b;
    font-size: 15px;
    line-height: 2.1;
    margin: 0;
}

.about-intro-copy p + p {
    margin-top: 16px;
}

.about-services {
    max-width: none;
    padding-left: max(24px, calc((100% - 1180px) / 2));
    padding-right: max(24px, calc((100% - 1180px) / 2));
}

.about-section-heading-center {
    margin: 0 auto 34px;
    max-width: 780px;
    text-align: center;
}

.about-service-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-service-card {
    background: #fff;
    border: 1px solid #dbe5f2;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 28px;
}

.about-service-card::before {
    background: #f6b71e;
    content: "";
    height: 3px;
    margin: -28px -28px 24px;
}

.about-service-carmap::before {
    background: #16a76d;
}

.about-service-academy::before {
    background: #2174e8;
}

.about-service-icon {
    align-items: center;
    background: #fff6dc;
    color: #c78000;
    display: inline-flex;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.about-service-carmap .about-service-icon {
    background: #e6f9f1;
    color: #118358;
}

.about-service-academy .about-service-icon {
    background: #eaf2ff;
    color: #1764d3;
}

.about-service-icon svg {
    height: 27px;
    width: 27px;
}

.about-service-card h3 {
    color: #0b1c33;
    font-size: 20px;
    margin: 20px 0 8px;
}

.about-service-card p {
    color: #607086;
    font-size: 14px;
    line-height: 2;
    margin: 0 0 22px;
}

.about-service-card > a {
    color: #1264d9;
    font-size: 13px;
    font-weight: 900;
    margin-top: auto;
}

.about-values {
    align-items: start;
    display: grid;
    gap: 56px;
    grid-template-columns: 1fr 1fr;
}

.about-values-copy p {
    margin-top: 16px;
}

.about-value-list {
    border-top: 1px solid #dce5f0;
}

.about-value-list article {
    border-bottom: 1px solid #dce5f0;
    display: grid;
    gap: 10px;
    grid-template-columns: 140px 1fr;
    padding: 18px 0;
}

.about-value-list strong {
    color: #0d5fd0;
    font-size: 14px;
}

.about-value-list p {
    color: #607086;
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}

.about-audience {
    padding-top: 42px;
}

.about-audience-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-audience-list span {
    background: #fff;
    border: 1px solid #dbe5f2;
    border-radius: 6px;
    color: #203752;
    font-size: 14px;
    font-weight: 800;
    padding: 19px 14px;
    text-align: center;
}

.about-cta {
    align-items: center;
    background: #0a213d;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 76px;
    padding: 34px 38px;
}

.about-cta h2 {
    color: #fff;
    font-size: 25px;
}

.about-cta p {
    color: #c2d2e7;
    margin-top: 8px;
}

.about-cta > a {
    flex: 0 0 auto;
    margin-right: 28px;
}

@media (max-width: 820px) {
    .about-hero {
        min-height: 0;
    }

    .about-hero-inner {
        padding: 42px 20px 50px;
    }

    .about-hero-inner > img {
        width: 165px;
    }

    .about-hero h1 {
        font-size: 31px;
    }

    .about-hero-lead {
        font-size: 15px;
        line-height: 2;
    }

    .about-intro,
    .about-values {
        gap: 28px;
        grid-template-columns: 1fr;
    }

    .about-intro,
    .about-services,
    .about-values,
    .about-audience {
        padding: 52px 18px;
    }

    .about-section-heading h2,
    .about-values-copy h2 {
        font-size: 24px;
    }

    .about-service-grid {
        grid-template-columns: 1fr;
    }

    .about-service-card {
        min-height: 0;
    }

    .about-audience-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-cta {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
        margin: 0 18px 52px;
        padding: 28px 22px;
    }

    .about-cta > a {
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .about-hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .about-hero-actions a {
        width: 100%;
    }

    .about-audience-list {
        grid-template-columns: 1fr;
    }

    .about-value-list article {
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .about-intro-copy {
        padding-right: 18px;
    }
}

/* Academy pages reuse the article visual language. */
.academy-card .article-card-body {
    align-content: center;
    min-height: 68px;
}

.course-purchase-panel {
    align-items: center;
    background: #f5f8fd;
    border: 1px solid #d9e5f4;
    border-radius: 8px;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr auto;
    margin-top: 38px;
    padding: 26px;
}

.course-purchase-status {
    background: #e9f9f1;
    border: 1px solid #bcebd3;
    border-radius: 6px;
    color: #087a48;
    font-weight: 800;
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px 16px;
    text-align: center;
}

.course-price {
    display: grid;
    gap: 5px;
}

.course-price span {
    color: #64748b;
    font-size: 13px;
}

.course-price strong {
    color: #061c38;
    font-size: 24px;
}

.course-buy-action {
    align-items: center;
    background: #1268ee;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    min-height: 52px;
    min-width: 210px;
    padding: 12px 24px;
    transition: background .18s ease, transform .18s ease;
}

.course-buy-action:hover {
    background: #0756cd;
    color: #fff;
    transform: translateY(-2px);
}

.course-purchase-panel > small {
    color: #64748b;
    font-size: 12px;
    grid-column: 1 / -1;
    text-align: center;
}

.course-access-active {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: flex-end;
}

.course-access-active strong {
    color: #087a48;
}

.course-access-active a {
    color: #1268ee;
    font-weight: 900;
}

.course-unavailable {
    color: #a33a2a;
    font-weight: 800;
    margin: 0;
}

.course-checkout-page {
    margin: 0 auto;
    max-width: 860px;
    padding: 52px 18px 76px;
}

.course-checkout-box {
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 35, 65, .1);
    display: grid;
    gap: 24px;
    padding: 28px;
}

.course-checkout-back {
    color: #1268ee;
    font-size: 13px;
    font-weight: 900;
}

.course-checkout-box > img {
    aspect-ratio: 16 / 7;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.course-checkout-copy > span {
    color: #1268ee;
    font-size: 13px;
    font-weight: 900;
}

.course-checkout-copy h1 {
    color: #071a33;
    font-size: 28px;
    margin: 6px 0 8px;
}

.course-checkout-copy p {
    color: #64748b;
    line-height: 2;
    margin: 0;
}

.course-checkout-summary {
    border-bottom: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 18px 0;
}

.course-checkout-summary > div {
    display: grid;
    gap: 5px;
}

.course-checkout-summary > div + div {
    border-right: 1px solid #e2e8f0;
    padding-right: 24px;
}

.course-checkout-summary span {
    color: #64748b;
    font-size: 13px;
}

.course-checkout-summary strong {
    color: #071a33;
    font-size: 18px;
}

.course-checkout-box form,
.course-checkout-box form .course-buy-action {
    width: 100%;
}

@media (max-width: 760px) {
    .course-purchase-panel {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        text-align: center;
    }

    .course-buy-action {
        width: 100%;
    }

    .course-access-active {
        display: grid;
        justify-content: stretch;
        text-align: center;
    }

    .course-checkout-page {
        padding: 28px 14px 52px;
    }

    .course-checkout-box {
        padding: 18px;
    }

    .course-checkout-copy h1 {
        font-size: 23px;
    }

    .course-checkout-summary {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .course-checkout-summary > div + div {
        border-right: 0;
        border-top: 1px solid #e2e8f0;
        padding-right: 0;
        padding-top: 16px;
    }
}
.course-card .course-media {
    aspect-ratio: auto;
    background: none;
    display: block;
    height: auto;
    object-fit: initial;
    width: 100%;
}
/* Check Light featured images use the same markup in local and cloud storage. */
.checklight-thumb {
    position: relative;
}

.checklight-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.checklight-thumb > span {
    align-items: center;
    background: linear-gradient(180deg, rgba(4, 9, 18, .08), rgba(4, 9, 18, .7));
    color: #fff;
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}

/* Legal pages */
.legal-hero {
    background: #0b2447;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.legal-hero::after {
    background: #1268ee;
    content: "";
    height: 4px;
    inset: auto 0 0;
    position: absolute;
}

.legal-hero-inner {
    margin: 0 auto;
    max-width: 1180px;
    padding: 70px 24px 64px;
}

.legal-hero span {
    color: #7db3ff;
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.legal-hero h1 {
    font-size: 38px;
    margin: 0 0 12px;
}

.legal-hero p {
    color: #d8e7ff;
    line-height: 2;
    margin: 0;
    max-width: 760px;
}

.legal-page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 44px 24px 80px;
}

.legal-summary {
    background: #eef5ff;
    border-right: 4px solid #1268ee;
    margin-bottom: 24px;
    padding: 20px 22px;
}

.legal-summary strong {
    color: #0b2447;
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.legal-summary p,
.legal-content p,
.legal-contact p {
    color: #52657d;
    line-height: 2.05;
    margin: 0;
}

.legal-content {
    counter-reset: legal-section;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-content article {
    background: #fff;
    border: 1px solid #dce6f2;
    border-radius: 8px;
    padding: 24px;
}

.legal-content h2 {
    align-items: center;
    color: #0b2447;
    display: flex;
    font-size: 18px;
    gap: 10px;
    margin: 0 0 12px;
}

.legal-content h2::before {
    align-items: center;
    background: #1268ee;
    border-radius: 50%;
    color: #fff;
    content: counter(legal-section);
    counter-increment: legal-section;
    display: inline-flex;
    flex: 0 0 30px;
    font-size: 13px;
    height: 30px;
    justify-content: center;
}

.legal-subject {
    background: #0b2447;
    border-radius: 8px;
    color: #fff;
    margin: 36px 0 18px;
    padding: 26px;
}

.legal-subject span {
    color: #7db3ff;
    font-size: 13px;
    font-weight: 900;
}

.legal-subject h2 {
    font-size: 24px;
    margin: 5px 0 8px;
}

.legal-subject p {
    color: #d8e7ff;
    line-height: 2;
    margin: 0;
}

.legal-content-secondary {
    counter-reset: legal-section;
}

.legal-contact {
    background: #f7faff;
    border: 1px solid #dce6f2;
    border-radius: 8px;
    margin-top: 28px;
    padding: 24px;
}

.legal-contact h2 {
    color: #0b2447;
    font-size: 19px;
    margin: 0 0 8px;
}

.legal-contact a,
.auth-legal-note a,
.footer-legal a {
    color: #1268ee;
    font-weight: 800;
}

.auth-panel .auth-legal-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.9;
    margin: 16px 0 0;
    text-align: center;
}

.footer-legal {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1240px;
    padding: 18px 0;
    width: calc(100% - 36px);
}

.footer-legal .copyright {
    border-top: 0;
    margin: 0;
    padding: 0;
    text-align: right;
}

.footer-legal nav {
    display: flex;
    gap: 18px;
}

.footer-legal a {
    color: #c8d8ef;
    font-size: 13px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #fff;
}

@media (max-width: 700px) {
    .legal-hero-inner {
        padding: 44px 18px 40px;
    }

    .legal-hero h1 {
        font-size: 28px;
    }

    .legal-page {
        padding: 28px 14px 52px;
    }

    .legal-content {
        grid-template-columns: 1fr;
    }

    .legal-content article,
    .legal-contact,
    .legal-subject {
        padding: 20px 16px;
    }

    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-left: 18px;
        padding-right: 18px;
    }
}
.checklight-card.is-targeted {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
    scroll-margin-top: 96px;
}
/* Linked home cards */
.content-card-link,
.course-card-link {
    color: inherit;
    display: block;
    text-decoration: none;
}
.content-card-link .content-card,
.course-card-link .course-card {
    height: 100%;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.content-card-link:hover .content-card,
.course-card-link:hover .course-card {
    border-color: #9bbef2;
    box-shadow: 0 14px 30px rgba(15, 35, 65, .12);
    transform: translateY(-2px);
}

/* Comments */
.comments-section {
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    margin: 42px auto 0;
    max-width: 980px;
    padding: 26px;
    width: 100%;
}
.comments-heading {
    align-items: center;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 18px;
}
.comments-heading span { color: #64748b; font-size: 12px; }
.comments-heading h2 { color: #0f2341; font-size: 22px; margin: 4px 0 0; }
.comments-heading b { color: #1268ee; font-size: 13px; }
.comment-notice {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    color: #047857;
    margin-bottom: 16px;
    padding: 11px 14px;
}
.comment-form { display: grid; gap: 15px; }
.comment-form label { display: grid; gap: 7px; }
.comment-form label > span { color: #334155; font-size: 13px; font-weight: 800; }
.comment-form input,
.comment-form textarea {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font: inherit;
    line-height: 1.9;
    padding: 11px 13px;
    width: 100%;
}
.comment-form textarea { resize: vertical; }
.comment-form small { color: #dc2626; }
.comment-form button {
    background: #1268ee;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    justify-self: start;
    padding: 11px 28px;
}
.comment-honeypot {
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px !important;
}
.comment-author-note { color: #64748b; margin: 0; }
.comment-captcha { max-width: none; }
.comment-captcha-row { align-items: stretch; display: flex; gap: 18px; }
.comment-captcha-row input { flex: 1 1 auto; min-width: 0; }
.comment-captcha-row img { border: 1px solid #d7dee6; flex: 0 0 250px; height: 64px; object-fit: cover; width: 250px; }
.comment-captcha-help { color: #64748b !important; }
.comment-login-required { align-items: center; background: #f8fafc; border: 1px solid #dbe4ef; display: flex; gap: 16px; justify-content: space-between; padding: 16px; }
.comment-login-required p { color: #475569; margin: 0; }
.comment-login-required a { background: #1268ee; color: #fff; font-weight: 800; padding: 10px 16px; }
.comments-list { display: grid; gap: 12px; margin-top: 26px; }
.comment-item { background: #f8fafc; border: 1px solid #e5eaf1; border-radius: 7px; padding: 16px; }
.comment-item header { align-items: center; display: flex; justify-content: space-between; }
.comment-item time { color: #64748b; font-size: 12px; }
.comment-item p { color: #334155; line-height: 2; margin: 10px 0 0; white-space: pre-wrap; }
.comment-admin-reply { background: #eef6ff; border-right: 3px solid #1268ee; margin-top: 14px; padding: 12px 14px; }
.comment-admin-reply strong { color: #0f4ca6; font-size: 13px; }
.comment-admin-reply p { margin-top: 6px; }
.comment-admin-reply time { color: #64748b; display: block; font-size: 11px; margin-top: 8px; }
.comments-empty { color: #64748b; margin: 0; text-align: center; }

/* Transactions */
.transaction-table .table-head,
.transaction-table .table-row {
    gap: 14px;
    grid-template-columns: minmax(170px, 1.2fr) minmax(180px, 1.35fr) 105px 115px minmax(130px, 1fr) 110px;
}
.transaction-table .table-head {
    background: #f8fafc;
    border-radius: 6px;
    font-weight: 800;
    min-height: 48px;
    padding: 0 14px;
}
.transaction-table .table-row { padding: 13px 14px; }
.transaction-number { color: #0f2341; font-weight: 800; text-align: right; }
.transaction-description { color: #475569; overflow-wrap: anywhere; }

@media (max-width: 760px) {
    .comments-section { margin-top: 28px; padding: 18px 14px; }
    .comments-heading { align-items: flex-start; gap: 12px; }
    .comment-item header { align-items: flex-start; flex-direction: column; gap: 5px; }
    .comment-form button { justify-self: stretch; width: 100%; }
    .comment-captcha-row { align-items: stretch; flex-direction: column; }
    .comment-captcha-row img { align-self: flex-start; flex-basis: 64px; max-width: 100%; }
    .comment-login-required { align-items: stretch; flex-direction: column; }
    .comment-login-required a { text-align: center; }

    .transaction-table { display: grid; gap: 12px; overflow: visible; }
    .transaction-table .table-head { display: none; }
    .transaction-table .table-row {
        background: #fff;
        border: 1px solid #dce5f1;
        border-radius: 8px;
        display: grid;
        gap: 9px 12px;
        grid-template-columns: 1fr auto;
        min-width: 0;
        padding: 14px;
    }
    .transaction-table .table-row > span { min-width: 0; }
    .transaction-table .transaction-number,
    .transaction-table .transaction-description { grid-column: 1 / -1; }
    .transaction-table .transaction-description { border-bottom: 1px solid #eef2f7; padding-bottom: 9px; }
    .transaction-table .table-row > [data-label]::before {
        color: #94a3b8;
        content: attr(data-label) ": ";
        font-size: 11px;
    }
    .transaction-table .status-pill { align-self: center; justify-self: end; }
}
