/* ==========================================================================
   preview-v2.css — Course preview redesign (Option A)
   Image-aware hero + sticky sidebar + clean two-column body.

   Scope: classes prefixed `cv2-` to avoid colliding with Bootstrap or theme.
   Theme colors: navy #0a294f, red #a72d38.
   ========================================================================== */

/* ---------- Reset within v2 wrapper ---------- */
.cv2-page,
.cv2-page * {
    box-sizing: border-box;
}
.cv2-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: #1a2433;
    line-height: 1.6;
    background: #f5f7fa;
}

/* ---------- HERO ---------- */
.cv2-hero {
    position: relative;
    padding: 50px 20px 60px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #0a294f 0%, #16447a 100%);
}
/* Variant: gradient-only (no course image uploaded) */
.cv2-hero--gradient {
    background: linear-gradient(135deg, #0a294f 0%, #16447a 50%, #a72d38 100%);
}
/* Variant: 2-column with image on the right */
.cv2-hero--split {
    background: linear-gradient(135deg, #0a294f 0%, #16447a 100%);
}
.cv2-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}
.cv2-hero--split .cv2-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
}
.cv2-hero-text {
    min-width: 0;
}
/* Breadcrumb bar above the hero */
.cv2-crumb-bar {
    background: #fff;
    border-bottom: 1px solid #e6e9ef;
}
.cv2-crumb-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 13px;
    color: #5a6470;
    line-height: 1.4;
}
.cv2-crumb-inner a {
    color: #0a294f;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.cv2-crumb-inner a:hover {
    color: #a72d38;
    text-decoration: none;
}
.cv2-crumb-sep {
    margin: 0 8px;
    color: #a8b0bd;
    font-size: 14px;
}
.cv2-crumb-current {
    color: #3a424d;
    font-weight: 500;
}
.cv2-school-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cv2-school-row img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}
.cv2-school-row span {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.2px;
}
.cv2-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.cv2-hero--gradient .cv2-title {
    font-size: 48px;
    max-width: 900px;
}
.cv2-tagline {
    font-size: 16px;
    line-height: 1.55;
    color: #e0e6f0;
    margin: 0 0 22px;
    font-weight: 400;
}
.cv2-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}
.cv2-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cv2-pill i {
    font-size: 11px;
    opacity: 0.9;
}
/* Hero CTA (primary apply button on the hero) */
.cv2-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #a72d38;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(167, 45, 56, 0.35);
    transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
    margin-top: 4px;
}
.cv2-hero-cta:hover {
    background: #c63341;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(167, 45, 56, 0.45);
}
.cv2-hero-cta:active { transform: translateY(1px); }
.cv2-hero-cta-foot {
    margin: 10px 0 0;
    font-size: 12px;
    color: #cfd6e2;
}

/* Hero image (right column, native ratio, never stretched beyond source) */
.cv2-hero-imgwrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}
.cv2-hero-imgwrap img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

/* ---------- BODY ---------- */
.cv2-body {
    max-width: 1180px;
    margin: -40px auto 0;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* ---------- MAIN COLUMN ---------- */
.cv2-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cv2-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(10, 41, 79, 0.04);
    padding: 32px 36px;
}
.cv2-card h2,
.cv2-card h3 {
    color: #0a294f;
    font-weight: 700;
    line-height: 1.3;
}
.cv2-card h2 {
    font-size: 22px;
    margin: 0 0 16px;
}
.cv2-card h3 {
    font-size: 17px;
    margin: 24px 0 10px;
}
.cv2-card p {
    color: #3a424d;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 14px;
}
.cv2-card ul {
    padding-left: 22px;
    margin: 0 0 14px;
}
.cv2-card ul li {
    color: #3a424d;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 6px;
    padding-left: 4px;
}
.cv2-card ul li::marker {
    color: #a72d38;
}
.cv2-card strong {
    color: #1a2433;
    font-weight: 600;
}
.cv2-card a {
    color: #a72d38;
    text-decoration: none;
}
.cv2-card a:hover {
    text-decoration: underline;
}

/* ---------- SIDEBAR ---------- */
.cv2-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
    position: sticky;
    top: 20px;
}

/* Price card */
.cv2-price-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(10, 41, 79, 0.08);
    overflow: hidden;
    border: 1px solid #e6e9ef;
}
.cv2-price-head {
    padding: 24px 24px 18px;
    background: linear-gradient(135deg, #0a294f 0%, #16447a 100%);
    color: #fff;
}
.cv2-price-label {
    font-size: 12px;
    color: #cfd6e2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0 0 6px;
}
.cv2-price-amount {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}
.cv2-price-amount .cv2-price-currency {
    font-size: 24px;
    font-weight: 500;
    margin-right: 2px;
    opacity: 0.85;
}
.cv2-price-meta {
    margin-top: 8px;
    font-size: 13px;
    color: #cfd6e2;
}
.cv2-price-meta strong {
    color: #fff;
    font-weight: 600;
}
.cv2-price-list {
    list-style: none;
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid #eef0f4;
}
.cv2-price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}
.cv2-price-list li span {
    color: #5a6470;
}
.cv2-price-list li strong {
    color: #1a2433;
    font-weight: 600;
}
.cv2-cta-wrap {
    padding: 20px 24px 24px;
    text-align: center;
}
.cv2-cta {
    display: block;
    padding: 14px 24px;
    background: #a72d38;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    text-align: center;
    width: 100%;
}
.cv2-cta:hover {
    background: #c63341;
    color: #fff;
    text-decoration: none;
}
.cv2-cta:active {
    transform: translateY(1px);
}
.cv2-cta-foot {
    margin: 12px 0 0;
    font-size: 12px;
    color: #5a6470;
    line-height: 1.4;
}

/* Side info card */
.cv2-side-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(10, 41, 79, 0.04);
}
.cv2-side-card h4 {
    margin: 0 0 8px;
    color: #0a294f;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.cv2-side-card p {
    margin: 0;
    color: #1a2433;
    font-size: 15px;
    line-height: 1.5;
}
.cv2-side-card .cv2-muted {
    color: #5a6470;
    font-size: 13px;
    margin-top: 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .cv2-crumb-inner {
        padding: 10px 14px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cv2-hero {
        padding: 36px 18px 40px;
    }
    .cv2-hero--split .cv2-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .cv2-hero--split .cv2-hero-imgwrap {
        order: -1; /* Show image first on mobile */
    }
    .cv2-hero-imgwrap img {
        max-width: 480px;
    }
    .cv2-title {
        font-size: 28px;
    }
    .cv2-hero--gradient .cv2-title {
        font-size: 32px;
    }
    .cv2-tagline {
        font-size: 15px;
    }
    .cv2-pill {
        font-size: 12px;
        padding: 6px 12px;
    }
    .cv2-body {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: -28px;
        padding: 0 14px 40px;
    }
    .cv2-sidebar {
        position: static;
    }
    .cv2-card {
        padding: 22px 22px;
    }
    .cv2-card h2 { font-size: 19px; }
    .cv2-card h3 { font-size: 16px; }
}
@media (max-width: 480px) {
    .cv2-title {
        font-size: 24px;
        letter-spacing: -0.3px;
    }
    .cv2-hero--gradient .cv2-title {
        font-size: 28px;
    }
    .cv2-school-row img {
        width: 30px;
        height: 30px;
    }
    .cv2-school-row span {
        font-size: 12px;
    }
    .cv2-price-amount {
        font-size: 30px;
    }
    .cv2-hero-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
