:root {
    --indesold-navy: #0a2038;
    --indesold-blue: #0b5d9e;
    --indesold-blue-dark: #084777;
    --indesold-light: #f3f7fb;
    --indesold-border: #dce6ef;
    --indesold-text: #132a42;
    --indesold-muted: #67788a;
    --indesold-yellow: #f0b323;
}

.indesold-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: min(1060px, 100%);
    margin: 0 auto;
}

.indesold-catalog-card {
    overflow: hidden;
    border: 1px solid var(--indesold-border);
    border-radius: 16px;
    color: inherit !important;
    background: #f7faff;
    box-shadow: 0 12px 34px rgba(10, 32, 56, .07);
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.indesold-catalog-card--clickable { display: block; cursor: pointer; }
.indesold-catalog-card--clickable:focus-visible { outline: 3px solid rgba(11, 93, 158, .35); outline-offset: 4px; }
.indesold-catalog-card:hover {
    border-color: #a9c7df;
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(10, 32, 56, .12);
}
.indesold-catalog-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 240px;
    background: linear-gradient(135deg, var(--indesold-navy), var(--indesold-blue));
}
.indesold-catalog-card__media img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform .35s ease;
}
.indesold-catalog-card:hover .indesold-catalog-card__media img { transform: scale(1.025); }
.indesold-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: rgba(255,255,255,.88);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .08em;
}
.indesold-catalog-badge {
    position: absolute;
    left: 16px;
    bottom: 14px;
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--indesold-navy);
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 15px rgba(3, 25, 44, .16);
    font-size: 11px;
    font-weight: 800;
}
.indesold-catalog-card__body { display: block; padding: 22px 24px 24px; }
.indesold-catalog-card__hint { display: inline-flex; margin-bottom: 8px; color: var(--indesold-blue); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.indesold-catalog-card h3 {
    margin: 0 0 10px;
    color: var(--indesold-navy);
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.22;
}
.indesold-catalog-card__excerpt {
    display: block;
    min-height: 4.5em;
    margin: 0;
    color: var(--indesold-muted);
    line-height: 1.55;
}
.indesold-catalog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.indesold-catalog-card__meta span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    color: #36536d;
    background: #eaf2f8;
    font-size: 11px;
    font-weight: 700;
}
.indesold-catalog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--indesold-border);
}
.indesold-course-price { color: var(--indesold-navy); font-size: 19px; font-weight: 800; }
.indesold-course-price del { color: var(--indesold-muted); font-size: 13px; font-weight: 500; }
.indesold-course-price ins { text-decoration: none; }
.indesold-course-price span { color: var(--indesold-muted); font-size: 13px; font-weight: 600; }

.indesold-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px !important;
    border: 1px solid var(--indesold-blue) !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: var(--indesold-blue) !important;
    text-decoration: none !important;
    font-weight: 750 !important;
    line-height: 1.2;
    transition: .18s ease;
}
.indesold-button:hover { color: #fff !important; background: var(--indesold-blue-dark) !important; transform: translateY(-1px); }
.indesold-button--secondary { color: var(--indesold-blue) !important; background: transparent !important; }
.indesold-button--secondary:hover { color: #fff !important; background: var(--indesold-blue) !important; }

.indesold-empty-state {
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 42px 24px;
    border: 1px dashed #bfcedb;
    border-radius: 16px;
    text-align: center;
    background: #f8fbfd;
}
.indesold-empty-state strong { display: block; color: var(--indesold-navy); font-size: 22px; }
.indesold-empty-state p { color: var(--indesold-muted); }

/* Single course */
.indesold-single-course {
    color: var(--indesold-text);
    background: #fff;
}
.indesold-course-hero {
    padding: 70px 20px;
    color: #fff;
    background: linear-gradient(125deg, rgba(5, 24, 43, .98), rgba(10, 75, 120, .92));
}
.indesold-course-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    align-items: center;
    gap: 48px;
    width: min(1160px, 100%);
    margin: 0 auto;
}
.indesold-course-hero__kicker {
    display: block;
    margin-bottom: 10px;
    color: #b9d7ee;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.indesold-course-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.03;
}
.indesold-course-hero__lead {
    max-width: 720px;
    margin: 20px 0 0;
    color: #d9e7f2;
    font-size: 18px;
    line-height: 1.65;
}
.indesold-course-hero__image {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(0,0,0,.26);
}
.indesold-course-hero__image img {
    display: block;
    width: 100%;
    min-height: 340px;
    object-fit: cover;
}
.indesold-course-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 52px;
    width: min(1160px, calc(100% - 40px));
    margin: 64px auto 82px;
}
.indesold-course-content h2,
.indesold-course-content h3 { color: var(--indesold-navy); }
.indesold-course-content { color: #40566b; font-size: 17px; line-height: 1.75; }
.indesold-course-content > *:first-child { margin-top: 0; }
.indesold-course-block {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--indesold-border);
}
.indesold-course-block h2 { margin: 0 0 16px; font-size: 27px; }
.indesold-course-list { margin: 0; padding: 0; list-style: none; }
.indesold-course-list li {
    position: relative;
    margin: 9px 0;
    padding-left: 24px;
}
.indesold-course-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--indesold-yellow);
}
.indesold-course-purchase {
    position: sticky;
    top: 30px;
    align-self: start;
    padding: 26px;
    border: 1px solid var(--indesold-border);
    border-radius: 18px;
    background: var(--indesold-light);
    box-shadow: 0 14px 38px rgba(10, 32, 56, .08);
}
.indesold-course-purchase h2 { margin: 0 0 8px; color: var(--indesold-navy); font-size: 22px; }
.indesold-course-purchase__price { margin: 18px 0; color: var(--indesold-navy); font-size: 28px; font-weight: 850; }
.indesold-course-purchase .indesold-button { width: 100%; }
.indesold-course-facts {
    margin: 24px 0 0;
    padding: 0;
    border-top: 1px solid var(--indesold-border);
    list-style: none;
}
.indesold-course-facts li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--indesold-border);
    color: var(--indesold-muted);
    font-size: 14px;
}
.indesold-course-facts strong { color: var(--indesold-navy); }
.indesold-course-purchase__note { margin: 16px 0 0; color: var(--indesold-muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
    .indesold-catalog-grid { grid-template-columns: 1fr; }
    .indesold-course-hero__inner,
    .indesold-course-detail { grid-template-columns: 1fr; }
    .indesold-course-purchase { position: static; }
    .indesold-course-hero__image { max-width: 650px; }
}

@media (max-width: 640px) {
    .indesold-catalog-card__media img,
    .indesold-image-placeholder { height: 210px; min-height: 210px; }
    .indesold-catalog-card__body { padding: 19px; }
    .indesold-catalog-card__footer { align-items: flex-start; flex-direction: column; }
    .indesold-catalog-card__footer .indesold-button { width: 100%; }
    .indesold-course-hero { padding: 48px 18px; }
    .indesold-course-hero__inner { gap: 28px; }
    .indesold-course-hero__image img { min-height: 250px; }
    .indesold-course-detail { width: min(100% - 28px, 1160px); margin-top: 42px; }
    .indesold-course-purchase { padding: 22px; }
}

/* 0.6.1 defensive wrapping */
.indesold-catalog-grid,
.indesold-catalog-card,
.indesold-catalog-card__body,
.indesold-course-hero__inner,
.indesold-course-detail { min-width: 0; max-width: 100%; }
.indesold-catalog-card h3,
.indesold-catalog-card__excerpt,
.indesold-course-hero h1 { overflow-wrap: anywhere; }

/* 0.7.3 — visual alignment with the INDESOLD site design system */
:root {
    --indesold-navy: #0B1F33;
    --indesold-blue: #06518F;
    --indesold-blue-dark: #0B1F33;
    --indesold-light: #F7FAFD;
    --indesold-border: #D9E3EE;
    --indesold-text: #334155;
    --indesold-muted: #64748B;
    --indesold-yellow: #F2B705;
}

.indesold-catalog-grid,
.indesold-single-course {
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--indesold-text);
}

.indesold-catalog-card h1,
.indesold-catalog-card h2,
.indesold-catalog-card h3,
.indesold-catalog-card h4,
.indesold-catalog-card h5,
.indesold-catalog-card h6,
.indesold-single-course h1,
.indesold-single-course h2,
.indesold-single-course h3,
.indesold-single-course h4,
.indesold-single-course h5,
.indesold-single-course h6 {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 600;
    color: var(--indesold-navy);
}

.indesold-catalog-card,
.indesold-course-purchase {
    border-color: var(--indesold-border);
}

.indesold-catalog-card {
    background: #FFFFFF;
}

.indesold-catalog-card:hover {
    border-color: #B8CBDC;
}

.indesold-catalog-card__hint,
.indesold-course-hero__kicker,
.indesold-catalog-card a:not(.indesold-button),
.indesold-single-course a:not(.indesold-button) {
    color: var(--indesold-blue);
}

.indesold-catalog-card a:not(.indesold-button):hover,
.indesold-single-course a:not(.indesold-button):hover {
    color: var(--indesold-navy);
}

.indesold-button {
    min-height: 52px;
    padding: 13px 30px !important;
    border: 2px solid var(--indesold-blue) !important;
    border-radius: 50px !important;
    color: #FFFFFF !important;
    background: var(--indesold-blue) !important;
    font-family: Karla, Inter, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.indesold-button:hover,
.indesold-button:focus-visible {
    border-color: var(--indesold-yellow) !important;
    color: var(--indesold-navy) !important;
    background: var(--indesold-yellow) !important;
}

.indesold-button--secondary {
    border-color: var(--indesold-blue) !important;
    color: var(--indesold-blue) !important;
    background: #FFFFFF !important;
}

.indesold-button--secondary:hover,
.indesold-button--secondary:focus-visible {
    border-color: var(--indesold-yellow) !important;
    color: var(--indesold-navy) !important;
    background: var(--indesold-yellow) !important;
}

.indesold-catalog-card__excerpt,
.indesold-course-content,
.indesold-course-purchase__note {
    color: var(--indesold-text);
}

.indesold-catalog-card__meta span {
    color: #284A68;
    background: #EEF5FA;
}

.indesold-course-hero {
    background: linear-gradient(125deg, rgba(11,31,51,.98), rgba(6,81,143,.92));
}

.indesold-course-purchase {
    background: #F7FAFD;
}

@media (max-width: 640px) {
    .indesold-button {
        min-height: 48px;
        padding: 11px 22px !important;
        font-size: 16px !important;
    }
}

/* 0.7.4 — explicit on-dark contrast rules.
 * These live after the global design-system rules so headings/links inherited
 * from Elementor, Astra or the generic INDESOLD selectors cannot override the
 * dark hero treatment. */
.indesold-single-course .indesold-course-hero {
    --indesold-on-dark-title: #FFFFFF;
    --indesold-on-dark-text: #E5EEF6;
    --indesold-on-dark-muted: #C7D6E4;
}

.indesold-single-course .indesold-course-hero h1,
.indesold-single-course .indesold-course-hero h2,
.indesold-single-course .indesold-course-hero h3,
.indesold-single-course .indesold-course-hero h4,
.indesold-single-course .indesold-course-hero h5,
.indesold-single-course .indesold-course-hero h6 {
    color: var(--indesold-on-dark-title) !important;
}

.indesold-single-course .indesold-course-hero__kicker {
    color: var(--indesold-on-dark-muted) !important;
}

.indesold-single-course .indesold-course-hero__lead,
.indesold-single-course .indesold-course-hero p {
    color: var(--indesold-on-dark-text) !important;
}

.indesold-single-course .indesold-course-hero a:not(.indesold-button) {
    color: #FFFFFF !important;
}
.indesold-single-course .indesold-course-hero a:not(.indesold-button):hover,
.indesold-single-course .indesold-course-hero a:not(.indesold-button):focus-visible {
    color: #F2B705 !important;
}
