/* ===============================
   COURSES PAGE – HERO + LAYOUT
   Works alongside about.css
   =============================== */

/* PAGE BACKGROUND (match about/contact/portal) */
body {
    background: linear-gradient(to bottom, #f5f7fc 0%, #ffffff 100%);
}

/* ========= PREMIUM HERO ========= */

.courses-hero {
    background: radial-gradient(circle at top left, #132842 0%, #070f1b 40%, #040811 100%);
    color: #ffffff;
    padding: 140px 0 220px;
    position: relative;
    overflow: hidden;
}

.courses-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 70px;
    align-items: center;
}

/* left copy */

.courses-hero-copy {
    max-width: 560px;
}

.hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e5c278;
    font-weight: 700;
    margin-bottom: 10px;
}

.courses-hero-copy h1 {
    font-size: 3.4rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 1.12rem;
    line-height: 1.7;
    color: #d6deea;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.btn-ghost {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 40px;
    border: 1px solid rgba(229, 194, 120, 0.8);
    color: #f2e0b0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    transition: 0.25s ease;
}

.btn-ghost:hover {
    background: rgba(229, 194, 120, 0.08);
    transform: translateY(-2px);
}

.hero-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* right visual */

.courses-hero-visual {
    position: relative;
    min-height: 260px;
}

/* glowing orbits */

.hero-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(-12deg);
}

.hero-orbit-outer {
    width: 330px;
    height: 200px;
    top: 4%;
    right: 2%;
    box-shadow: 0 0 60px rgba(13, 127, 255, 0.18);
}

.hero-orbit-inner {
    width: 260px;
    height: 150px;
    top: 20%;
    right: 12%;
    opacity: 0.7;
}

/* main glass card */

.hero-card-main {
    position: absolute;
    top: 18%;
    right: 8%;
    width: 290px;

    padding: 20px 20px 18px;
    border-radius: 18px;

    background: rgba(12, 24, 45, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #d4dbe7;
}

.hero-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #45d38a;
    box-shadow: 0 0 8px rgba(69, 211, 138, 0.9);
}

.hero-card-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    margin-bottom: 6px;
}

.hero-mini-label {
    opacity: 0.75;
}

.hero-mini-value {
    font-weight: 600;
    color: #f2f5ff;
}

/* progress */

.hero-progress {
    margin-top: 12px;
}

.hero-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #e5c278, #ffd98d);
}

.hero-progress-text {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    opacity: 0.85;
}

/* floating pills */

.hero-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(10, 26, 47, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    color: #dde5f7;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-pill-top {
    top: 6%;
    right: 20%;
}

.hero-pill-bottom {
    bottom: 6%;
    right: 4%;
}

.hero-pill-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 194, 120, 0.12);
    color: #f2d99a;
    font-size: 0.9rem;
}

/* soft fade into next section */

.courses-hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -70px;
    height: 70px;
    background: linear-gradient(to bottom, rgba(4, 8, 17, 0) 0%, #f5f7fc 100%);
}

/* floating animations */

.float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}
.float-medium {
    animation: floatMedium 6s ease-in-out infinite;
}
.float-fast {
    animation: floatFast 4.5s ease-in-out infinite;
}

@keyframes floatSlow {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
@keyframes floatMedium {
    0% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
    100% { transform: translateY(0); }
}
@keyframes floatFast {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}

/* ========= PATHWAY STRIP (Intensive / Standard / Extended) ========= */

.pathway-strip {
    padding: 40px 0 80px;
    background: #f5f7fc;
}

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

.pathway-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 22px 20px;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(8, 25, 47, 0.06);
    transition: 0.25s ease;
}

.pathway-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(8, 25, 47, 0.18);
}

.pathway-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #08192f;
    margin-bottom: 10px;
}

.pathway-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0a233a;
    color: #f7e3aa;
}

.pathway-text {
    font-size: 0.95rem;
    color: #3d4e66;
    margin-bottom: 10px;
}

.pathway-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.9rem;
    color: #4a5971;
}

.pathway-list li {
    margin-bottom: 4px;
}

/* recommended card */

.pathway-card--recommended {
    position: relative;
    border-color: rgba(229, 194, 120, 0.7);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.pathway-badge {
    position: absolute;
    top: -14px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5c278;
    color: #08192f;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ========= GENERIC PAGE LAYOUT (OVERVIEW + OTHER SECTIONS) ========= */

.page-section {
    padding: 80px 0;
}

.page-section--soft {
    background: #f7f9fc;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: 60px;
    align-items: flex-start;
}

.page-content ul {
    margin-top: 14px;
    padding-left: 18px;
}

.page-content ul li {
    margin-bottom: 6px;
}

/* aside card */

.page-aside .info-card {
    background: #ffffff;
    padding: 22px 22px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(8, 25, 47, 0.06);
}

.page-aside .info-card h3 {
    margin-bottom: 10px;
}

.page-aside .info-card ul {
    list-style: none;
    padding-left: 0;
    font-size: 0.95rem;
}

.page-aside .info-card ul li {
    margin-bottom: 6px;
    color: #3f4f65;
}

/* ========= CORE PROGRAMMES (CARDS) ========= */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.course-card {
    background: #ffffff;
    padding: 26px 24px 22px;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(8, 25, 47, 0.07);
    transition: 0.25s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(8, 25, 47, 0.16);
}

.course-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #0a233a;
    color: #f4e2a8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.course-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.course-card p {
    font-size: 0.96rem;
    color: #3f4f65;
    margin-bottom: 14px;
}

.course-meta {
    list-style: none;
    padding-left: 0;
    font-size: 0.9rem;
    color: #465674;
    margin-bottom: 18px;
}

.course-meta li {
    margin-bottom: 4px;
}

/* actions */

.course-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.9rem;
}

/* secondary button */

.btn-secondary {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 40px;
    border: 1px solid #e5c278;
    color: #0a1a2f;
    text-decoration: none;
    font-weight: 600;
    background: #ffffff;
    transition: 0.25s ease;
}

.btn-secondary:hover {
    background: #fff7dd;
    transform: translateY(-2px);
}

/* ========= TRACK CARDS ========= */

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

.track-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 22px 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(8, 25, 47, 0.06);
    transition: 0.25s ease;
}

.track-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(8, 25, 47, 0.15);
}

.track-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #08192f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.track-card p {
    font-size: 0.95rem;
    color: #3f4f65;
    margin-bottom: 10px;
}

.track-card ul {
    list-style: none;
    padding-left: 0;
    font-size: 0.9rem;
    color: #4a5971;
}

.track-card ul li {
    margin-bottom: 4px;
}

/* ========= TRACK COMPARISON TABLE ========= */

.track-compare {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(8, 25, 47, 0.1);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    font-size: 0.95rem;
}

.track-compare-row {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr;
    padding: 10px 16px;
}

.track-compare-row:nth-child(even):not(.track-compare-header) {
    background: #f7f9fc;
}

.track-compare-header {
    background: #0a1f35;
    color: #ffffff;
    font-weight: 700;
}

.track-compare-header > div {
    font-size: 0.9rem;
}

/* ========= SUPPORT CARDS ========= */

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

.support-card {
    background: #ffffff;
    padding: 22px 22px 20px;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(8, 25, 47, 0.06);
    transition: 0.25s ease;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
    border-color: rgba(8, 25, 47, 0.14);
}

.support-card h3 {
    margin-bottom: 8px;
}

.support-card p {
    font-size: 0.95rem;
    color: #3f4f65;
}

/* ========= CTA STRIP ========= */

.cta-strip {
    padding: 70px 0 80px;
    background: #0f2234;
    color: #ffffff;
}

.cta-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-flex h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.cta-flex p {
    font-size: 0.98rem;
    color: #d2d9e6;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 1000px) {
    .courses-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .courses-hero-visual {
        min-height: 240px;
    }

    .hero-card-main {
        right: 50%;
        transform: translateX(50%);
    }

    .hero-pill-top {
        right: 12%;
    }
    .hero-pill-bottom {
        right: 18%;
    }

    .pathway-grid,
    .courses-grid,
    .track-grid,
    .support-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .cta-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .courses-hero {
        padding: 150px 0 120px;
    }

    .courses-hero-copy h1 {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card-main,
    .hero-pill-top,
    .hero-pill-bottom {
        display: none; /* if it feels cramped on very small screens */
    }
}

.courses-hero-copy h1 {
    color: #f4e2a8 !important;
    opacity: 1 !important;
}


/* -------------------------------------- */
/* FIX CTA HEADING VISIBILITY + SPACING  */
/* -------------------------------------- */

/* Make CTA heading readable */
.cta-strip h3,
.cta-strip p {
    color: #ffffff !important;
}

/* Add spacing so the CTA doesn't sit too close to the support section */
.cta-strip {
    padding: 70px 0 !important;
}

/* -------------------------------------- */
/* GLOBAL HEADING SPACING FOR COURSES PAGE */
/* -------------------------------------- */

.page-section h2,
.section-heading {
    margin-top: 60px !important;
    margin-bottom: 25px !important;
}

/* Improve spacing for “Choose a Study Track”, “Compare Tracks” */
.section-subtitle {
    margin-bottom: 40px !important;
}

/* Add spacing between sections */
.page-section {
    padding-top: 90px !important;
    padding-bottom: 70px !important;
}

/* Track cards spacing fix */
.track-grid {
    margin-top: 40px !important;
}

/* Compare table spacing */
.track-compare {
    margin-top: 50px !important;
}

/* Dark CTA layout improvements */
.cta-flex {
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}