/* =================================
   SUBPAGE STYLES
   Shared across all detail / landing pages
   Updated: June 2026
================================= */

/* ---- SUBPAGE HERO ---- */
.subpage-hero {
    margin-top: 74px;
    position: relative;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subpage-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.subpage-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
    max-width: 700px;
}

.subpage-hero__title {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.subpage-hero__underline {
    display: block;
    width: 350px;
    height: 4px;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* Section-colour underlines */
.subpage-hero__underline--hair     { background: var(--color-hair); }
.subpage-hero__underline--business { background: var(--color-business); }
.subpage-hero__underline--tl       { background: var(--color-tl); }
.subpage-hero__underline--platform { background: var(--color-platform); }
.subpage-hero__underline--about    { background: var(--color-about); }

.subpage-hero__subtitle {
    font-size: 1.15rem;
    margin-top: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
}


/* ---- DESCRIPTION SECTION ---- */
.description-section {
    padding: 3rem 0;
    background: var(--color-white);
}

.description-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-black);
}


/* ---- TABS ---- */
.tabs-section {
    padding: 3rem 0;
    background: var(--color-light-gray);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.75rem 1.75rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-primary);
}

.tab:hover {
    color: var(--color-black);
    border-color: var(--color-gray);
}

/* Section-colour active tabs */
.tab--active {
    color: var(--color-white);
    border-color: transparent;
}

/* Hair tabs */
.tabs--hair .tab--active {
    background: var(--color-hair);
}

.tabs--hair .tab:hover:not(.tab--active) {
    border-color: var(--color-hair);
    color: var(--color-hair);
}

/* Business tabs */
.tabs--business .tab--active {
    background: var(--color-business);
}

.tabs--business .tab:hover:not(.tab--active) {
    border-color: var(--color-business);
    color: var(--color-business);
}

/* T&L tabs */
.tabs--tl .tab--active {
    background: var(--color-tl);
}

.tabs--tl .tab:hover:not(.tab--active) {
    border-color: var(--color-tl);
    color: var(--color-tl);
}

/* Tab content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content--active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ---- UNITS OVERVIEW ---- */
.units-overview {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.units-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-black);
    margin-bottom: 2.5rem;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.units-column h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.units-list {
    list-style: none;
    padding: 0;
}

.units-list li {
    padding: 0.6rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-black);
}

/* Section-coloured bullet points */
.units-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-master);
}

.units-list--hair li::before     { background: var(--color-hair); }
.units-list--business li::before { background: var(--color-business); }
.units-list--tl li::before       { background: var(--color-tl); }


/* ---- LEARNING OUTCOME & CAREER SECTIONS ---- */
.learning-outcome,
.career-opportunities {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.learning-outcome p,
.career-opportunities p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-black);
}


/* ---- SIMPLE CONTENT (e.g. assessor awards page) ---- */
.simple-content-section {
    padding: 4rem 0;
    background: var(--color-white);
}

.simple-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.simple-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1.5rem;
}

.simple-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.simple-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-black);
}

.simple-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-master);
}

.simple-list--hair li::before     { background: var(--color-hair); }
.simple-list--business li::before { background: var(--color-business); }
.simple-list--tl li::before       { background: var(--color-tl); }


/* ---- SUBPAGE CARDS (course landing pages) ---- */
.subpage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subpage-card {
    display: block;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}

.subpage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.subpage-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.subpage-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.subpage-card__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.subpage-card__body p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.subpage-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.subpage-card__link--hair,
.subpage-card__link--business,
.subpage-card__link--tl {
    color: var(--color-master);
}


/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .subpage-hero {
        height: 350px;
        margin-top: 68px;
    }

    .subpage-hero__title {
        font-size: 2.25rem;
    }

    .subpage-hero__underline {
        width: 260px;
    }

    .units-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .subpage-hero {
        height: 280px;
        margin-top: 62px;
    }

    .subpage-hero__title {
        font-size: 1.75rem;
    }

    .subpage-hero__underline {
        width: 200px;
    }

    .subpage-hero__subtitle {
        font-size: 1rem;
    }

    .description-text {
        font-size: 1rem;
    }

    .tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab {
        width: 100%;
        text-align: center;
    }

    .units-overview {
        padding: 1.5rem;
    }

    .learning-outcome,
    .career-opportunities {
        padding: 1.5rem;
    }
}


/* =============================================
   LANDING PAGE STYLES
   For section landing pages (Business School,
   Teaching & Learning, About Us, etc.)
============================================= */

/* ---- INTRO TEXT ---- */
.landing-intro {
    padding: 3rem 0;
    text-align: center;
}

.landing-intro p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-gray);
}

/* ---- COURSE BLOCKS (side-by-side layout) ---- */
.course-block {
    padding: 3.5rem 0;
}

.course-block:nth-child(even) {
    background: var(--color-light-gray);
}

.course-block__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Reversed layout: image left, text right */
.course-block--reversed .course-block__inner {
    direction: rtl;
}

.course-block--reversed .course-block__inner > * {
    direction: ltr;
}

.course-block__content {
    display: flex;
    flex-direction: column;
}

.course-block__title {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.course-block__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.course-block__button {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 1.5px solid var(--color-black);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-black);
    background: transparent;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.course-block__button:hover {
    background: var(--color-master);
    border-color: var(--color-master);
    color: var(--color-white);
}

.course-block__image {
    border-radius: 12px;
    overflow: hidden;
}

.course-block__image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}


/* ---- ABOUT PAGE SECTIONS (side-by-side layout) ---- */
.about-intro {
    padding: 3rem 0;
}

.about-intro__text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-black);
    text-align: center;
}

.about-block {
    padding: 3.5rem 0;
}

.about-block:nth-child(even) {
    background: var(--color-light-gray);
}

.about-block__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-block--reversed .about-block__inner {
    direction: rtl;
}

.about-block--reversed .about-block__inner > * {
    direction: ltr;
}

.about-block__content {
    display: flex;
    flex-direction: column;
}

.about-block__title {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 1.25rem;
}

.about-block__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.about-block__image {
    border-radius: 12px;
    overflow: hidden;
}

.about-block__image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.about-block__button {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 1.5px solid var(--color-black);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-black);
    background: transparent;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.about-block__button:hover {
    background: var(--color-master);
    border-color: var(--color-master);
    color: var(--color-white);
}


/* ---- CONTACT FORM ---- */
.contact-section {
    padding: 3.5rem 0;
}

.contact-section__inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form__group {
    display: flex;
    flex-direction: column;
}

.contact-form__group--full {
    grid-column: 1 / -1;
}

.contact-form__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 0.4rem;
}

.contact-form__input,
.contact-form__textarea {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-black);
    transition: border-color 0.2s;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--color-master);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form__submit {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background: var(--color-master);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form__submit:hover {
    background: var(--color-black);
}

/* Contact image */
.contact-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.contact-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Contact details grid */
.contact-details {
    padding: 3rem 0;
    background: var(--color-light-gray);
}

.contact-details__inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-details__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-details__group h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.contact-details__group p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-gray);
}

.contact-details__group a {
    color: var(--color-master);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ---- COMING SOON PAGE ---- */
.coming-soon {
    text-align: center;
    padding: 5rem 2rem;
}

.coming-soon p {
    font-size: 1.15rem;
    color: var(--color-gray);
    max-width: 500px;
    margin: 0 auto;
}


/* ---- LANDING PAGE RESPONSIVE ---- */
@media (max-width: 1024px) {
    .course-block__inner {
        gap: 2rem;
    }

    .about-block__inner {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .course-block__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-block--reversed .course-block__inner {
        direction: ltr;
    }

    .course-block__title {
        font-size: 1.4rem;
    }

    .course-block__image img {
        min-height: 250px;
    }

    .about-block__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-block--reversed .about-block__inner {
        direction: ltr;
    }

    .about-block__image img {
        min-height: 250px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-image img {
        height: 250px;
    }
}

/* ---- Added 26 Nov 2026: lists, notes and policy pages ---- */
.course-block__list { margin: 0.75rem 0 0 1.2rem; color: var(--color-gray); line-height: 1.8; }
.course-block__list li { list-style: disc; }
.course-block__text + .course-block__text, .course-block__list + .course-block__text { margin-top: 1rem; }
.course-block__note { margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--color-light-gray); border-left: 4px solid var(--color-master); color: var(--color-black); font-size: 0.95rem; line-height: 1.6; }
.policy { padding: 4rem 2rem; }
.policy__inner { max-width: 820px; margin: 0 auto; color: var(--color-black); line-height: 1.75; }
.policy__inner h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.policy__inner p { margin-bottom: 1rem; }
.policy__inner ul, .policy__inner ol { margin: 0 0 1rem 1.4rem; }
.policy__inner ul li { list-style: disc; } .policy__inner ol li { list-style: decimal; margin-bottom: 0.5rem; }
.policy__inner a, .footer a { color: var(--color-master); text-decoration: underline; }
.policy__table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.policy__table th, .policy__table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--color-border); }
.policy__table th { background: var(--color-light-gray); }
.footer__links { margin-bottom: 0.6rem; }
.partner-logos { display: flex; justify-content: center; align-items: center; gap: 3.5rem; flex-wrap: wrap; margin-top: 3rem; }
.partner-logos img { height: 90px; width: auto; }
.policy__flow { display: block; width: 100%; max-width: 760px; height: auto; margin: 1.5rem auto 0; border: 1px solid var(--color-border); border-radius: 12px; }

/* ---- Contact form handler, 26 Nov 2026 ---- */
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__status { margin-top: 0.9rem; font-weight: 500; min-height: 1.4em; }
.contact-form__status.is-ok { color: #1c6b3a; }
.contact-form__status.is-error { color: #a12222; }
.report-form { margin-top: 1.5rem; }
.report-form .contact-form__textarea { min-height: 180px; }
@media (max-width: 700px) { .report-form { grid-template-columns: 1fr; } }
