/* ==========================================================================
   course-page.css — shared styles for the dedicated course landing pages
   (/courses/gaca, /courses/dabi, /courses/dsml, /courses/lscm-ai)

   Loaded AFTER styles.css. Adds only new classes prefixed .cp- so it can
   never collide with the homepage. Uses the existing :root variables.
   ========================================================================== */

/* --- Page hero ---------------------------------------------------------- */
.cp-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.cp-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.10);
    pointer-events: none;
}

.cp-hero .container {
    position: relative;
    z-index: 1;
}

.cp-breadcrumb {
    font-size: 0.85rem;
    color: rgba(247, 250, 252, 0.7);
    margin-bottom: 1.25rem;
}

.cp-breadcrumb a {
    color: rgba(247, 250, 252, 0.7);
    text-decoration: none;
}

.cp-breadcrumb a:hover {
    color: var(--accent);
}

.cp-eyebrow {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.cp-hero h1 {
    color: var(--text-light);
    font-size: 2.6rem;
    max-width: 900px;
    margin-bottom: 1rem;
}

.cp-hero .cp-lede {
    color: rgba(247, 250, 252, 0.88);
    font-size: 1.12rem;
    max-width: 760px;
    margin-bottom: 2rem;
}

.cp-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- At-a-glance fact strip --------------------------------------------- */
.cp-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin: -2.5rem auto 0;
    max-width: var(--container-max);
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow-md);
}

.cp-fact {
    background: var(--bg-white);
    padding: 1.4rem 1.25rem;
    text-align: center;
}

.cp-fact .cp-fact-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-body);
    opacity: 0.75;
    margin-bottom: 0.35rem;
}

.cp-fact .cp-fact-value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

/* --- Generic section ---------------------------------------------------- */
.cp-section {
    padding: 4rem 0;
}

.cp-section.bg-light {
    background: var(--bg-light);
}

.cp-section h2 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
}

.cp-section .cp-section-lede {
    max-width: 780px;
    margin-bottom: 2.25rem;
}

.cp-prose p {
    margin-bottom: 1rem;
    max-width: 820px;
}

/* --- Outcome / bullet cards --------------------------------------------- */
.cp-outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cp-outcome {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.6rem;
    transition: var(--transition);
}

.cp-outcome:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.cp-outcome i {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
    display: block;
}

.cp-outcome h3 {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
}

.cp-outcome p {
    font-size: 0.94rem;
    margin: 0;
}

/* --- Syllabus table ------------------------------------------------------ */
.cp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
}

.cp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: 0.95rem;
}

.cp-table th,
.cp-table td {
    text-align: left;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.cp-table thead th {
    background: var(--primary);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cp-table tbody tr:last-child td {
    border-bottom: none;
}

.cp-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.cp-table .cp-mod {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.cp-table .cp-hrs {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cp-highlight-row {
    box-shadow: inset 4px 0 0 var(--accent);
}

/* --- Who it's for list --------------------------------------------------- */
.cp-list {
    list-style: none;
    padding: 0;
    max-width: 820px;
}

.cp-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.85rem;
}

.cp-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent);
    font-size: 0.9rem;
}

/* --- Callout ------------------------------------------------------------- */
.cp-callout {
    border-left: 4px solid var(--accent);
    background: var(--bg-light);
    padding: 1.4rem 1.6rem;
    border-radius: 0 8px 8px 0;
    max-width: 820px;
    margin-top: 1.5rem;
}

.cp-callout p:last-child {
    margin-bottom: 0;
}

/* --- Related courses ----------------------------------------------------- */
.cp-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.cp-related a {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
}

.cp-related a:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.cp-related h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--primary);
}

.cp-related p {
    font-size: 0.88rem;
    color: var(--text-body);
    margin: 0;
}

/* --- Homepage: "New for 2026" badge on course cards ---------------------- */
.course-card.is-new {
    border-color: var(--accent);
    position: relative;
}

.course-card .cp-new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
}

.course-card .cp-card-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: -0.55rem;
    margin-bottom: 0.75rem;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 768px) {
    .cp-hero {
        padding: 3rem 0 2.5rem;
    }

    .cp-hero h1 {
        font-size: 1.85rem;
    }

    .cp-hero .cp-lede {
        font-size: 1rem;
    }

    .cp-facts {
        margin-top: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .cp-section {
        padding: 2.75rem 0;
    }

    .cp-section h2 {
        font-size: 1.5rem;
    }
}
