/* ==========================================================
   PEARSON HND PAGE ONLY
   This stylesheet is intentionally separate from css/style.css
   so it will not disturb the rest of your website.
   ========================================================== */

html {
    scroll-behavior: smooth;
}

.wca-hnd-page {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
    background: #000;
    overflow: hidden;
}

.wca-hnd-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.wca-hnd-dark {
    background: #000;
}

.wca-hnd-light {
    background: #fff;
}

.wca-hnd-frame {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}

.wca-hnd-art {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .65s cubic-bezier(.22,.61,.36,1),
                filter .35s ease;
}

/* Gentle section image motion on desktop */
@media (hover: hover) {
    .wca-hnd-section:hover .wca-hnd-art {
        transform: scale(1.004);
    }
}

/* Scroll-in animation */
.wca-hnd-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s ease,
                transform .85s cubic-bezier(.2,.7,.2,1);
}

.wca-hnd-reveal.wca-hnd-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Clickable transparent overlays positioned above buttons drawn in the artwork */
.wca-hnd-hotspot {
    position: absolute;
    z-index: 20;
    display: block;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color .25s ease,
                box-shadow .25s ease,
                transform .25s ease,
                backdrop-filter .25s ease;
}

/* User-confirmed rule: BLACK section buttons become GOLD on hover */
.wca-hnd-hotspot-dark:hover,
.wca-hnd-hotspot-dark:focus-visible {
    background: rgba(225, 169, 45, .22);
    box-shadow:
        0 0 0 2px rgba(255, 209, 83, .90),
        0 0 26px rgba(255, 190, 45, .65),
        inset 0 0 28px rgba(255, 193, 45, .12);
    transform: translateY(-2px) scale(1.012);
    outline: none;
}

/* User-confirmed rule: WHITE section buttons become BLACK on hover */
.wca-hnd-hotspot-light:hover,
.wca-hnd-hotspot-light:focus-visible {
    background: rgba(0, 0, 0, .20);
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, .82),
        0 8px 25px rgba(0, 0, 0, .25);
    backdrop-filter: brightness(.9);
    transform: translateY(-2px) scale(1.012);
    outline: none;
}

/* Soft premium gold pulse for enquiry CTAs */
@keyframes wcaHndGoldPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 190, 45, 0);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 190, 45, .30);
    }
}

.wca-hnd-hero-check,
.wca-hnd-final-enquire {
    animation: wcaHndGoldPulse 3.2s ease-in-out infinite;
}

/* ==========================================================
   RESPONSIVE HOTSPOT POSITIONS
   Percentages keep the clickable area aligned to each image.
   ========================================================== */

/* Hero - Check Eligibility */
.wca-hnd-hero-check {
    left: 7.8%;
    top: 80.9%;
    width: 36.4%;
    height: 10.6%;
}

/* Choose Your HND */
.wca-hnd-choose-business {
    left: 18.8%;
    top: 78.5%;
    width: 22.5%;
    height: 13%;
}

.wca-hnd-choose-computing {
    left: 59%;
    top: 78.5%;
    width: 22.5%;
    height: 13%;
}

/* Business - View Modules */
.wca-hnd-business-modules {
    left: 18.4%;
    top: 86%;
    width: 27.5%;
    height: 8.6%;
}

/* Computing - View Modules */
.wca-hnd-computing-modules {
    left: 4.1%;
    top: 89.2%;
    width: 23%;
    height: 7.1%;
}

/* Entry Requirements - Check Eligibility */
.wca-hnd-entry-check {
    left: 75.5%;
    top: 46.5%;
    width: 15.7%;
    height: 9%;
}

/* Final CTA - Enquire Now */
.wca-hnd-final-enquire {
    left: 19.8%;
    top: 65.2%;
    width: 27.6%;
    height: 12.8%;
}

/* Makes the information-heavy sections visually breathe a little more */
@media (min-width: 992px) {
    .wca-hnd-reading-section .wca-hnd-art {
        width: 100%;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .wca-hnd-reveal {
        transform: translateY(16px);
    }

    .wca-hnd-hotspot {
        border-radius: 8px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .wca-hnd-page {
        width: 100%;
    }

    .wca-hnd-reveal {
        transform: translateY(10px);
    }

    /* Avoid unnecessary image zoom on small screens */
    .wca-hnd-art {
        transition: none;
    }

    .wca-hnd-hotspot {
        border-radius: 5px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .wca-hnd-reveal,
    .wca-hnd-reveal.wca-hnd-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .wca-hnd-art,
    .wca-hnd-hotspot {
        transition: none;
    }

    .wca-hnd-hero-check,
    .wca-hnd-final-enquire {
        animation: none;
    }
}
