/* ==================================================
   COURSE THEMES: scoped to page content, not header/footer
   ================================================== */
.course-page {
    --course-accent: #082f58;
    --course-tint: #edf6ff;
    color: #16304b;
}
.theme-pharmacy {
    --course-accent: #07564d;
    --course-tint: #eef8f5;
}
.course-page h1,
.course-page h2,
.course-page h3 {
    letter-spacing: -0.6px;
}

/* ==================================================
   CATEGORY HERO: real HTML copy with a reference photo
   ================================================== */
.course-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #edf8ff, #fff);
}
.course-hero-inner {
    position: relative;
    min-height: 365px;
    padding-top: 31px;
    padding-bottom: 46px;
}
.course-hero-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40%;
    overflow: hidden;
}
.course-hero-photo img {
    position: absolute;
    left: 0;
    top: 0;
    width: 266.667%;
    max-width: none;
    height: auto;
    transform: translate(-62.5%, -6.640625%);
}
.course-hero-photo:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f4faff 0%, #f4faff 28%, transparent 47%);
}
.theme-pharmacy .course-hero-photo {
    width: 44%;
}
.theme-pharmacy .course-hero-photo img {
    width: 232.727%;
    transform: translate(-57.03125%, -6.640625%);
}
.breadcrumb {
    --bs-breadcrumb-divider: "›";
    font-size: 11px;
    margin-bottom: 25px;
}
.breadcrumb-item.active {
    color: var(--navy);
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.course-hero-copy {
    width: 58%;
    position: relative;
    z-index: 1;
}
.course-hero h1 {
    font-size: clamp(30px, 3.7vw, 48px);
    line-height: 1.08;
    margin-bottom: 9px;
    color: var(--gold);
    white-space: nowrap;
    font-weight: 800;
    letter-spacing: -1.6px;
}
.course-hero h1 span {
    margin-right: 0.12em;
    color: var(--course-accent);
}
.theme-pharmacy .course-hero h1 {
    color: var(--navy);
}
.course-hero h2 {
    font-size: 23px;
    margin-bottom: 10px;
}
.course-hero-copy > p {
    max-width: 630px;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 24px;
}
.course-hero-features {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 650px;
}
.course-hero-features > span {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 11px;
    line-height: 1.65;
}
.course-hero-features i {
    font-size: 30px;
    color: var(--course-accent);
}
.course-handwriting {
    position: absolute;
    left: 59%;
    top: 55px;
    font:
        30px/0.95 Caveat,
        cursive;
    color: var(--navy);
    transform: rotate(-11deg);
    text-align: center;
}
.course-handwriting:after {
    content: "";
    height: 3px;
    background: var(--gold);
    display: block;
    margin-top: 9px;
    transform: rotate(-8deg);
}
.theme-pharmacy .course-handwriting {
    left: 56%;
}

/* ==================================================
   CATEGORY COURSE TABS
   ================================================== */
.course-content {
    padding-bottom: 22px;
}
.course-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: -12px -10px 25px;
    position: relative;
    z-index: 2;
}
.course-picker.two-courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.course-picker-button {
    border: 1px solid #dfe6ec;
    background: linear-gradient(#fff, #f3f8fc);
    padding: 19px 20px;
    border-radius: 8px;
    color: var(--navy);
    display: flex;
    align-items: center;
    text-align: left;
    gap: 18px;
    transition:
        background 0.2s,
        box-shadow 0.2s;
}
.course-picker-button > i {
    font-size: 35px;
    width: 39px;
    text-align: center;
    flex-shrink: 0;
}
.course-picker-button strong {
    display: block;
    font-size: 19px;
    font-weight: 800;
}
.course-picker-button small {
    display: block;
    font-size: 10px;
    line-height: 1.5;
    margin-top: 3px;
}
.course-picker-button.active {
    background: var(--course-accent);
    color: white;
    border-color: var(--course-accent);
    box-shadow: 0 3px 10px #092c5315;
}
.course-picker-button:hover {
    box-shadow: 0 4px 15px #092c5320;
}
.two-courses .course-picker-button {
    padding: 20px 28px;
}
.two-courses .course-picker-button strong {
    font-size: 24px;
}
.two-courses .course-picker-button small {
    font-size: 13px;
}
.picker-arrow {
    width: 36px;
    height: 36px;
    background: #d9e9f3;
    color: var(--course-accent);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.course-picker-button.active .picker-arrow {
    background: #e9f5f2;
}

/* ==================================================
   COURSE INTRODUCTION AND PHOTOGRAPH
   ================================================== */
.course-intro {
    display: grid;
    grid-template-columns: 57% 41%;
    gap: 2%;
    align-items: center;
    margin-bottom: 22px;
}
.course-intro h2 {
    color: var(--course-accent);
    font-size: 58px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}
.course-intro h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--course-accent);
}
.course-intro .course-tagline {
    font-size: 16px;
    margin-bottom: 16px;
}
.course-intro-copy > p:not(.course-tagline) {
    font-size: 13px;
    line-height: 1.65;
    max-width: 655px;
    margin-bottom: 18px;
}
.course-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.course-detail-photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 397/257;
    border-radius: 9px;
    background: #eef5fb;
}
.course-detail-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 257.935%;
    max-width: none;
    height: auto;
    transform: translate(-58.789063%, -32.942708%);
}
.theme-pharmacy .course-detail-photo {
    aspect-ratio: 410/292;
}
.theme-pharmacy .course-detail-photo img {
    width: 249.756%;
    transform: translate(-57.226563%, -31.901042%);
}

/* ==================================================
   DURATION, ELIGIBILITY, COURSE TYPE AND AFFILIATION
   ================================================== */
.course-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.course-facts > div {
    border: 1px solid #e0e7ef;
    border-radius: 6px;
    background: linear-gradient(#fff, #f6faff);
    padding: 17px 15px;
    display: flex;
    gap: 17px;
    align-items: center;
}
.course-facts i {
    font-size: 37px;
    color: var(--course-accent);
    flex-shrink: 0;
}
.course-facts p {
    margin: 0;
    line-height: 1.4;
}
.course-facts span {
    display: block;
    font-size: 11px;
    font-weight: 800;
}
.course-facts strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    margin: 3px 0;
}
.course-facts small {
    display: block;
    font-size: 10px;
}

/* ==================================================
   SECTION SHORTCUTS AND INFORMATION CARDS
   ================================================== */
.course-section-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.course-section-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid #e1e7ed;
    border-radius: 5px;
    background: linear-gradient(#fff, #f5f9fc);
    color: var(--navy);
    padding: 13px 10px;
    font-size: 12px;
    font-weight: 800;
    position: relative;
}
.course-section-nav i {
    font-size: 25px;
}
.course-section-nav a.active {
    background: var(--course-accent);
    color: #fff;
    border-color: var(--course-accent);
}
.course-section-nav a.active:after {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--course-accent);
    position: absolute;
    bottom: -6px;
    left: calc(50% - 6px);
    transform: rotate(45deg);
}
.course-overview-row {
    display: grid;
    grid-template-columns: 62% 1fr;
    gap: 12px;
    margin-bottom: 13px;
}
.course-info-card {
    border: 1px solid #e0e7ef;
    border-radius: 7px;
    padding: 22px;
    scroll-margin-top: 115px;
    background: #fff;
}
.course-info-card h3 {
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 24px;
    position: relative;
}
.course-info-card h3:after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    background: var(--gold);
    margin-top: 9px;
}
.course-info-card p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 0;
}
.course-info-card.highlights {
    background: linear-gradient(110deg, #f0f8ff, #e7f3fd);
}
.theme-pharmacy .course-info-card.highlights {
    background: linear-gradient(110deg, #f1faf8, #e9f4f3);
}
.highlights h3 {
    font-size: 18px;
    margin-bottom: 14px;
}
.course-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.course-checklist li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.55;
}
.course-checklist li:last-child {
    margin-bottom: 0;
}
.course-checklist i {
    color: var(--gold);
    font-size: 11px;
    flex-shrink: 0;
}
.highlights .course-checklist i {
    color: var(--course-accent);
    font-size: 15px;
}
.course-information-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.course-information-grid .course-info-card {
    padding: 18px 16px;
}
.course-information-grid h3 {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    font-size: 17px;
    margin-bottom: 20px;
}
.course-information-grid h3 > i {
    font-size: 30px;
}
.course-information-grid h3:after {
    position: absolute;
    bottom: -9px;
    left: 44px;
    width: 25px;
    height: 2px;
}
.course-information-grid .course-checklist li {
    font-size: 11px;
    line-height: 1.6;
}
.course-admission-note {
    margin: 17px 0;
    font-size: 10px;
    color: #64758b;
    line-height: 1.65;
}
.course-admission-note i {
    margin-right: 5px;
}

/* ==================================================
   COURSE CALL TO ACTION
   ================================================== */
.course-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 30px;
    background: var(--course-accent);
    color: white;
    border-radius: 8px;
}
.course-cta > i {
    font-size: 45px;
    color: #d7ad58;
}
.course-cta > div {
    flex: 1;
}
.course-cta h3 {
    color: #fff;
    font-size: 23px;
    margin-bottom: 5px;
}
.course-cta p {
    font-size: 12px;
    margin-bottom: 0;
}
.course-cta .btn {
    flex-shrink: 0;
}

/* ==================================================
   RESPONSIVE: SMALL DESKTOP AND TABLET
   ================================================== */
@media (max-width: 1199px) {
    .course-hero-inner {
        min-height: 340px;
    }
    .course-hero h1 {
        font-size: 38px;
    }
    .course-hero h2 {
        font-size: 20px;
    }
    .course-hero-copy > p {
        font-size: 12px;
    }
    .course-hero-features > span {
        gap: 10px;
        font-size: 10px;
    }
    .course-hero-features i {
        font-size: 26px;
    }
    .course-handwriting {
        font-size: 26px;
        left: 60%;
    }
    .course-picker-button {
        padding: 17px 13px;
        gap: 12px;
    }
    .course-picker-button > i {
        font-size: 31px;
        width: 33px;
    }
    .course-picker-button small {
        font-size: 9px;
    }
    .course-intro h2 {
        font-size: 50px;
    }
    .course-intro h3 {
        font-size: 22px;
    }
    .course-intro-copy > p:not(.course-tagline) {
        font-size: 12px;
    }
    .course-facts > div {
        gap: 12px;
        padding: 15px 12px;
    }
    .course-facts i {
        font-size: 30px;
    }
    .course-facts strong {
        font-size: 13px;
    }
    .course-section-nav a {
        font-size: 11px;
        gap: 10px;
    }
    .course-info-card {
        padding: 18px;
    }
    .course-information-grid .course-info-card {
        padding: 16px 12px;
    }
    .course-information-grid h3 {
        font-size: 15px;
        gap: 10px;
    }
    .course-information-grid h3 > i {
        font-size: 26px;
    }
}
@media (max-width: 991px) {
    .course-hero-inner {
        min-height: 350px;
    }
    .course-hero-copy {
        width: 65%;
    }
    .course-hero h1 {
        font-size: 29px;
    }
    .course-hero h2 {
        font-size: 18px;
    }
    .course-hero-features {
        flex-wrap: wrap;
        gap: 16px;
    }
    .course-hero-features > span {
        width: 43%;
    }
    .course-handwriting {
        display: none;
    }
    .course-hero-photo {
        width: 39%;
    }
    .course-hero-photo img {
        width: 365%;
    }
    .theme-pharmacy .course-hero-photo img {
        width: 300%;
    }
    .course-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0;
        margin-right: 0;
    }
    .course-picker-button small {
        font-size: 10px;
    }
    .two-courses .course-picker-button {
        padding: 18px;
        gap: 14px;
    }
    .two-courses .course-picker-button small {
        font-size: 10px;
    }
    .course-intro {
        grid-template-columns: 57% 41%;
    }
    .course-intro h2 {
        font-size: 44px;
    }
    .course-intro h3 {
        font-size: 19px;
    }
    .course-intro .course-tagline {
        font-size: 14px;
    }
    .course-actions {
        gap: 10px;
    }
    .course-actions .btn {
        padding: 11px 14px;
        font-size: 10px;
        gap: 10px;
    }
    .course-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .course-section-nav a {
        font-size: 9px;
        flex-direction: column;
        gap: 8px;
        padding: 12px 5px;
    }
    .course-section-nav i {
        font-size: 23px;
    }
    .course-overview-row {
        grid-template-columns: 56% 1fr;
    }
    .course-information-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .course-information-grid h3 {
        font-size: 18px;
    }
    .course-information-grid .course-checklist li {
        font-size: 12px;
    }
    .course-cta {
        padding: 22px;
        gap: 18px;
    }
    .course-cta h3 {
        font-size: 19px;
    }
    .course-cta > i {
        font-size: 35px;
    }
}

/* ==================================================
   RESPONSIVE: MOBILE
   ================================================== */
@media (max-width: 575px) {
    .course-hero-inner {
        padding-top: 22px;
        padding-bottom: 255px;
        min-height: 0;
    }
    .breadcrumb {
        font-size: 10px;
        margin-bottom: 23px;
    }
    .course-hero-copy {
        width: 100%;
    }
    .course-hero h1 {
        font-size: clamp(23px, 6.4vw, 34px);
        letter-spacing: -1px;
    }
    .course-hero h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .course-hero-copy > p {
        font-size: 12px;
    }
    .course-hero-features {
        max-width: 340px;
        gap: 15px;
    }
    .course-hero-features > span {
        font-size: 10px;
        gap: 12px;
    }
    .course-hero-features i {
        width: 28px;
        font-size: 27px;
    }
    .course-hero-photo,
    .theme-pharmacy .course-hero-photo {
        width: 100%;
        height: 235px;
        top: auto;
        bottom: 0;
    }
    .course-hero-photo img {
        width: 266.667%;
        transform: translate(-62.5%, -6.640625%);
    }
    .theme-pharmacy .course-hero-photo img {
        width: 250%;
        transform: translate(-60%, -6.640625%);
    }
    .course-hero-photo:after {
        background:
            linear-gradient(90deg, #f4faff 0%, #f4faff 18%, transparent 38%),
            linear-gradient(#f4faff, transparent 25%);
    }
    .course-picker {
        gap: 9px;
        margin-top: -8px;
        margin-bottom: 25px;
    }
    .course-picker-button {
        padding: 14px 10px;
        gap: 9px;
        align-items: flex-start;
    }
    .course-picker-button > i {
        font-size: 26px;
        width: 27px;
        padding-top: 3px;
    }
    .course-picker-button strong {
        font-size: 16px;
    }
    .course-picker-button small {
        font-size: 8px;
    }
    .course-picker.two-courses {
        gap: 10px;
    }
    .two-courses .course-picker-button {
        padding: 14px 10px;
        gap: 9px;
    }
    .two-courses .course-picker-button strong {
        font-size: 19px;
    }
    .two-courses .course-picker-button small {
        font-size: 9px;
    }
    .picker-arrow {
        display: none;
    }
    .course-intro {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .course-intro h2 {
        font-size: 45px;
    }
    .course-intro h3 {
        font-size: 22px;
    }
    .course-intro .course-tagline {
        font-size: 14px;
    }
    .course-intro-copy > p:not(.course-tagline) {
        font-size: 12px;
    }
    .course-actions .btn {
        padding: 12px 15px;
    }
    .course-facts {
        gap: 9px;
    }
    .course-facts > div {
        align-items: flex-start;
        padding: 13px 10px;
        gap: 9px;
    }
    .course-facts i {
        font-size: 25px;
        margin-top: 3px;
    }
    .course-facts strong {
        font-size: 12px;
    }
    .course-facts span,
    .course-facts small {
        font-size: 9px;
    }
    .course-section-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
    }
    .course-section-nav a {
        font-size: 8px;
        line-height: 1.4;
        text-align: center;
        padding: 10px 3px;
    }
    .course-section-nav i {
        font-size: 20px;
    }
    .course-overview-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .course-info-card h3 {
        font-size: 20px;
    }
    .course-info-card p {
        font-size: 12px;
    }
    .course-information-grid {
        grid-template-columns: 1fr;
    }
    .course-information-grid .course-info-card {
        padding: 20px;
    }
    .course-information-grid h3 {
        font-size: 19px;
    }
    .course-information-grid .course-checklist li {
        font-size: 12px;
    }
    .course-admission-note {
        font-size: 9px;
    }
    .course-cta {
        flex-wrap: wrap;
        padding: 22px 18px;
        gap: 14px;
    }
    .course-cta > i {
        font-size: 32px;
    }
    .course-cta h3 {
        font-size: 19px;
    }
    .course-cta p {
        font-size: 11px;
    }
    .course-cta .btn {
        width: 100%;
    }
}

/* ==================================================
   NURSING: three course tabs and reference photographs
   Header/footer colours remain controlled by style.css.
   ================================================== */
.theme-nursing {
    --course-accent: #082f58;
    --course-tint: #edf6ff;
}
.course-picker.three-courses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}
.three-courses .course-picker-button {
    padding: 19px 22px;
    gap: 17px;
}
.three-courses .course-picker-button > span:not(.picker-arrow) {
    min-width: 0;
}
.theme-nursing .course-hero-photo {
    width: 44%;
}
.theme-nursing .course-hero-photo img {
    width: 241.51%;
    transform: translate(-58.59375%, -6.640625%);
}
.theme-nursing .course-hero-photo:after {
    background: linear-gradient(90deg, #f4faff 0%, #f4faff 14%, transparent 32%);
}
.theme-nursing .course-handwriting {
    left: 57%;
    top: 45px;
    font-size: 34px;
}
.theme-nursing .course-detail-photo {
    aspect-ratio: 400 / 301;
}
.theme-nursing .course-detail-photo img {
    width: 256%;
    transform: translate(-58.3984375%, -32.096354%);
}
@media (max-width: 1199px) {
    .three-courses .course-picker-button {
        padding: 18px 16px;
        gap: 12px;
    }
    .three-courses .course-picker-button strong {
        font-size: 18px;
    }
    .three-courses .picker-arrow {
        width: 29px;
        height: 29px;
    }
}
@media (max-width: 991px) {
    .three-courses .course-picker-button {
        padding: 15px 12px;
        gap: 10px;
    }
    .three-courses .course-picker-button > i {
        font-size: 28px;
        width: 29px;
    }
    .three-courses .course-picker-button strong {
        font-size: 17px;
    }
    .three-courses .course-picker-button small {
        font-size: 9px;
    }
    .three-courses .picker-arrow {
        display: none;
    }
    .theme-nursing .course-hero-photo img {
        width: 300%;
    }
}
@media (max-width: 575px) {
    .theme-nursing .course-hero-photo {
        width: 100%;
        height: 235px;
    }
    .theme-nursing .course-hero-photo img {
        width: 250%;
        transform: translate(-60%, -6.640625%);
    }
    .course-picker.three-courses {
        grid-template-columns: 1fr;
        gap: 9px;
    }
    .three-courses .course-picker-button {
        padding: 13px 16px;
        align-items: center;
        gap: 15px;
    }
    .three-courses .course-picker-button strong {
        font-size: 18px;
    }
    .three-courses .course-picker-button small {
        font-size: 10px;
    }
    .three-courses .picker-arrow {
        display: grid;
    }
    .theme-nursing .course-intro h2 {
        font-size: 39px;
    }
}
