/* HIMAA Education Services — page-scoped for Membes/CMS (custom-himaa-education-services) */

.wrap-custom-himaa-education-services,
.wrap-custom-himaa-education-services *,
.wrap-custom-himaa-education-services *::before,
.wrap-custom-himaa-education-services *::after {
    box-sizing: border-box;
}

.wrap-custom-himaa-education-services {
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
    color: #1a1a2e;
}

/* start css copy here */
/* hide exiting banner */
#carousel-banner-wrapper {
    display: none;
}

.jumbotron,
.generic-banner {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

.jumbotron.generic-banner {
    margin-bottom: 0 !important;
}

#footer-main {
    margin-top: 0 !important;
}

/* Remove stray band between site header and this page (CMS/main margins) */
#main-custom-himaa-education-services {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#main-custom-himaa-education-services > .education-main-banner {
    margin-bottom: 0 !important;
}

/* BANNER (original layout restored) */
.education-main-banner {
    width: 100%;
    height: 500px;
    background-color: #004174;
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/Events/HIM%20Week/2023/blue-vignette-v2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.education-main-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/himaa-assets/bg_pattern-himaa-lowres.png");
    background-repeat: repeat;
    background-size: 980px auto;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.education-main-banner .banner-content-container {
    position: relative;
    z-index: 1;
}

.banner-content-container {
    max-width: 1140px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    height: 100%;
}

.edu-banner-left {
    flex: 1 1 49%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 560px;
    padding: 0;
    position: relative;
}

.edu-banner-left-content-custom-himaa-education-services {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edu-banner-left-policies-custom-himaa-education-services {
    position: absolute;
    left: 0;
    bottom: 15px;
    width: fit-content;
}

.rto-id {
    align-self: flex-start;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.edu-banner-title {
    font-size: clamp(2.2rem, 3.4vw, 3.05rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif !important;
}

.edu-banner-sub-title {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    line-height: 1.7rem;
    font-weight: 400;
    margin-top: 4px;
    max-width: 44ch;
}

.get-in-touch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ff9348 0%, #f57f36 55%, #e86f24 100%);
    padding: 0.95rem 1.6rem;
    max-width: max-content;
    border-radius: 999px;
    margin-top: 0px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 10px 24px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.get-in-touch-button::before {
    content: "\f1d8"; /* paper-plane */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.get-in-touch-button:hover {
    cursor: pointer;
    background: linear-gradient(180deg, #0d5c96 0%, #004174 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 14px 32px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .get-in-touch-button:hover {
        transform: none !important;
    }
}

.hero-actions-row-custom-himaa-education-services {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.hero-policies-icon-custom-himaa-education-services {
    display: block;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    object-fit: contain;
    line-height: 1;
}

.hero-policies-link-custom-himaa-education-services {
    margin-top: auto;
    margin-bottom: 0px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    width: fit-content;
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-policies-link-custom-himaa-education-services:hover {
    color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.hero-policies-link-custom-himaa-education-services:focus-visible {
    outline: 3px solid #598dec !important;
    outline-offset: 3px;
    border-bottom-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .hero-policies-link-custom-himaa-education-services:hover {
        transform: none !important;
    }
}

.edu-banner-right {
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/Education%20Services/student-mod-4.png");
    background-size: cover;
    background-position: center;
    flex: 1 1 49%;
    height: 500px;
}

/* Enquiry strip CTA (namespaced — not part of original banner) */
.btn-cta-custom-himaa-education-services {
    color: #004174;
    font-size: 1.1rem;
    font-weight: 700;
    background-color: #fff;
    padding: 15px 30px;
    max-width: max-content;
    border-radius: 50px;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0, 45, 79, 0.7);
    transition: all 0.3s ease-in-out;
}

.btn-cta-custom-himaa-education-services:hover {
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 45, 79, 0.5);
    background-color: #598dec;
    color: #fff;
}

/* Enquiry strip CTA — full rules under .section-enquiry-strip-* (modernised) */
.btn-cta-enquiry-custom-himaa-education-services {
    margin-top: 0;
}

/* Banner responsive settings for handheld and tablets */
@media only screen and (max-width: 991px) {
    .edu-banner-right {
        display: none;
    }

    .edu-banner-left {
        align-items: center;
        text-align: center;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
        padding: 24px 20px;
    }

    .edu-banner-left-content-custom-himaa-education-services {
        align-items: center;
        text-align: center;
    }

    .edu-banner-left .rto-id {
        align-self: center;
        text-align: center;
    }

    .edu-banner-sub-title {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions-row-custom-himaa-education-services {
        justify-content: center;
    }

    .hero-policies-link-custom-himaa-education-services {
        align-self: center;
    }

    .edu-banner-left-policies-custom-himaa-education-services {
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }

    .edu-banner-title {
        font-size: 2.5rem;
        line-height: 2.9rem;
    }
}

@media only screen and (max-width: 1024px) {
    .banner-content-container {
        padding: 0 20px;
    }

    .edu-banner-right {
        display: none;
    }

    .edu-banner-left {
        align-items: center;
        text-align: center;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
        padding: 24px 20px;
    }

    .edu-banner-left-content-custom-himaa-education-services {
        align-items: center;
        text-align: center;
    }

    .edu-banner-left .rto-id {
        align-self: center;
        text-align: center;
    }

    .edu-banner-sub-title {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions-row-custom-himaa-education-services {
        justify-content: center;
    }

    .hero-policies-link-custom-himaa-education-services {
        align-self: center;
    }

    .edu-banner-left-policies-custom-himaa-education-services {
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }

    .education-main-banner {
        height: auto;
        min-height: 300px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .education-main-banner .banner-content-container {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

@media only screen and (max-width: 540px) {
    .education-main-banner {
        min-height: 500px;
    }

    .edu-banner-left-policies-custom-himaa-education-services {
        bottom: 0;
    }

    .hero-policies-link-custom-himaa-education-services {
        white-space: nowrap;
        flex-wrap: nowrap;
        margin-bottom: 15px;
    }

    .education-main-banner .banner-content-container {
        padding-top: 65px;
        padding-bottom: 65px;
    }
}

.h2-section-custom-himaa-education-services {
    font-size: 2.6rem;
    text-align: center;
    margin-top: 60px;
    color: #004174;
    font-weight: 500;
}

.h2-section-custom-himaa-education-services::after {
    content: "";
    display: block;
    height: 7px;
    width: 50px;
    background-color: #f57f36;
    border-radius: 30px;
    margin: 10px auto;
}

/* Section backdrop — modernise: subtle surface behind cards */
.section-courses-custom-himaa-education-services {
    padding: 60px 0 100px;
    margin-top: 0 !important;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
}

/* Tighten gap below hero: global h2 margin-top would leave a white band */
.section-courses-custom-himaa-education-services .h2-section-custom-himaa-education-services {
    margin-top: 0 !important;
}

/* TILE CONTAINER — CSS Grid: 3 columns on desktop (flex + 360px + padding forced 2-up) */
.grid-courses-custom-himaa-education-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    justify-items: stretch;
    align-content: start;
    max-width: 1140px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    padding: 0;
    box-sizing: border-box;
}

@media only screen and (max-width: 1024px) {
    .grid-courses-custom-himaa-education-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 1rem;
    }
}

@media only screen and (max-width: 640px) {
    .grid-courses-custom-himaa-education-services {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
    }
}

/* COURSE TILE — modernise: elevated card, CTA at bottom, brand accent */
.tile-course-custom-himaa-education-services {
    width: 100%;
    max-width: none;
    min-height: 0;
    display: flex;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
    border-radius: 14px;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 65, 116, 0.1) !important;
    box-shadow:
        0 1px 2px rgba(0, 65, 116, 0.06),
        0 12px 32px -8px rgba(0, 65, 116, 0.12);
    transition:
        box-shadow 0.35s ease,
        transform 0.35s ease,
        border-color 0.35s ease;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.tile-course-custom-himaa-education-services::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    order: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #004174 0%, #598dec 52%, #f57f36 100%);
}

.tile-course-custom-himaa-education-services:hover {
    box-shadow:
        0 2px 4px rgba(0, 65, 116, 0.08),
        0 20px 40px -12px rgba(0, 65, 116, 0.2) !important;
    transform: translateY(-6px);
    border-color: rgba(0, 65, 116, 0.22) !important;
    cursor: pointer;
}

.tile-course-custom-himaa-education-services:focus-visible {
    outline: 3px solid #598dec !important;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .tile-course-custom-himaa-education-services:hover {
        transform: none !important;
    }

    .tile-enrol-custom-himaa-education-services:hover {
        transform: none !important;
    }

    .tile-enrol-custom-himaa-education-services::after,
    .tile-enrol-custom-himaa-education-services:hover::after {
        transition: none !important;
        transform: none !important;
    }
}

/* Last tile responsive settings for handheld and tablets */
@media only screen and (max-width: 1024px) {
    .tile-course-custom-himaa-education-services {
        margin: unset;
    }
}

/* COURSE IMAGE — order 1: visual first after accent bar */
.tile-course-image-custom-himaa-education-services {
    order: 1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    flex-shrink: 0;
    min-height: 200px;
    max-height: 220px;
    aspect-ratio: 16 / 10;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 65, 116, 0.06);
}

#course-thumb-dcc-custom-himaa-education-services {
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-education/membes-education-home/images/dcc-thumb.png");
}

/* #course-1 {
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/Education%20Services/course_images/course-1.jpg");
} */
/* #course-2 {
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/Education%20Services/course-2.jpeg");
} */
#course-thumb-intro-nz12-custom-himaa-education-services {
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-education/membes-education-home/images/ICC_12_thumb.png");
}

#course-thumb-intermediate10-custom-himaa-education-services {
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-education/membes-education-home/images/ICC10.png");
}

/* #course-thumb-cert-exam-soon-custom-himaa-education-services {
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/Education%20Services/course_images/course-5.jpg");
} */
#course-thumb-intl12-custom-himaa-education-services {
    background-image: url("https://fs-prd.axcelerate.com.au/images/78028931/In12%20Tile-Cx208.jpeg");
}

/* #course-7 {
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/Education%20Services/course_images/course-7.jpg");
} */
#course-thumb-intro10-custom-himaa-education-services {
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-education/membes-education-home/images/ICC10_thumbnail.png");
}

#course-thumb-advanced10-custom-himaa-education-services {
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-education/membes-education-home/images/ACC10.png");
}

#course-thumb-acc13-custom-himaa-education-services {
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-education/membes-education-home/images/ACC_Thumb.png");
}

/* #course-thumb-rpl-custom-himaa-education-services {
    background-image: url("https://fs.axcelerate.com.au/images/78028931/rpl-4.jpeg");
} */
/* #course-thumb-challenge-kit-custom-himaa-education-services {
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/Education%20Services/course_images/chal-exam5.jpeg");
} */
#course-thumb-cmt-custom-himaa-education-services {
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-education/membes-education-home/images/med-termin-thumb.png");
}

#course-thumb-saudi-custom-himaa-education-services {
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/Education%20Services/course_images/saudi-prospectus-v3.png");
    background-position: center top;
}

#course-thumb-cert-cc-custom-himaa-education-services {
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-education/membes-education-home/images/certification.png");
}

/* ENROL / CTA — order 6: full-width footer CTA (high prominence) */
.tile-enrol-custom-himaa-education-services {
    order: 6;
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    align-self: stretch;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    min-height: 52px;
    padding: 1rem 1.25rem 1.1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    font-size: 1.0625rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase;
    color: #ffffff !important;
    background-color: #f57f36 !important;
    background-image: linear-gradient(180deg, #ff9348 0%, #f57f36 45%, #e86f24 100%) !important;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0 0 14px 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 16px rgba(245, 127, 54, 0.35);
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.tile-enrol-custom-himaa-education-services::after {
    content: "\f061"; /* arrow-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.tile-enrol-custom-himaa-education-services span {
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
}

.tile-enrol-custom-himaa-education-services:hover {
    background-color: #004174 !important;
    background-image: linear-gradient(180deg, #0d5c96 0%, #004174 100%) !important;
    border-top-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 6px 22px rgba(0, 65, 116, 0.4);
    cursor: pointer;
    transform: translateY(-1px);
}

.tile-enrol-custom-himaa-education-services:hover::after {
    transform: translateX(3px);
}

/* COURSE TITLE */
.tile-title-custom-himaa-education-services {
    order: 2;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 700 !important;
    color: #004174 !important;
    text-align: center;
    padding: 1.15rem 1.25rem 0.35rem;
    margin: 0;
}

/* COURSE CODE — badge chip */
.tile-code-custom-himaa-education-services {
    order: 3;
    display: inline-block;
    align-self: center;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #004174 !important;
    text-align: center;
    margin: 0.25rem 0 0;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 65, 116, 0.08);
    border-radius: 999px;
    border: 1px solid rgba(0, 65, 116, 0.12);
}

/* COURSE DESCRIPTION */
.tile-desc-custom-himaa-education-services {
    order: 4;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.75rem 1.25rem 1rem;
    margin: 0;
    font-size: 0.9375rem !important;
    line-height: 1.55 !important;
    color: #3d4f5f !important;
    text-align: center;
}

.tile-badges-custom-himaa-education-services {
    order: 5;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0 1rem 0.25rem;
    box-sizing: border-box;
}

/* Course tile accreditation badges
   These badges contain tiny text; they must be physically larger to be readable. */
.tile-badges-custom-himaa-education-services {
    gap: 14px;
    margin: 0.25rem 0 1rem;
    padding-bottom: 0.75rem;
}

.tile-badge-img-custom-himaa-education-services {
    display: block;
    height: 70px;
    width: auto;
    max-width: 48%;
    object-fit: contain;
    /* Beat CMS img { max-width: 100% } + ensure crisp scaling */
    image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 420px) {
    .tile-badges-custom-himaa-education-services {
        flex-direction: column;
        gap: 10px;
    }

    .tile-badge-img-custom-himaa-education-services {
        max-width: 100%;
    }
}

/* Studying at HIMAA — modernise: split band, gradient panel, refined CTAs */
.section-study-custom-himaa-education-services {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 0 !important;
    margin-left: auto;
    margin-right: auto;
    min-height: min(560px, 70vh);
    overflow: hidden;
    border-radius: 0;
    box-shadow:
        0 1px 2px rgba(0, 65, 116, 0.06),
        0 24px 48px -20px rgba(0, 65, 116, 0.18);
}

.section-study-visual-custom-himaa-education-services {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 320px;
    position: relative;
    background-color: #0a2d4a;
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/Education%20Services/course_images/class-medium.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-study-visual-custom-himaa-education-services::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 65, 116, 0.35) 0%,
        rgba(0, 65, 116, 0.08) 40%,
        transparent 100%
    );
    pointer-events: none;
}

.section-study-panel-custom-himaa-education-services {
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    margin-top: 0;
    /* Align text block with page column (matches 1140px max-width grid / sections) */
    padding-top: clamp(2rem, 4.5vw, 4rem);
    padding-bottom: clamp(2rem, 4.5vw, 4rem);
    padding-left: max(1.5rem, calc((100vw - 1140px) / 2));
    padding-right: clamp(1.5rem, 3vw, 2.75rem);
    color: #ffffff !important;
    background-color: #004174;
    background-image: linear-gradient(
        160deg,
        #045a8f 0%,
        #004174 38%,
        #00345c 100%
    );
}

.section-study-panel-custom-himaa-education-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #004174 0%, #598dec 50%, #f57f36 100%);
    z-index: 1;
}

.section-study-panel-custom-himaa-education-services::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/himaa-assets/bg_pattern-himaa-lowres.png");
    background-repeat: repeat;
    background-size: 980px auto;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.h1-study-panel-custom-himaa-education-services {
    margin: 0 0 1rem;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: clamp(1.75rem, 2.5vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif !important;
}

.study-heading-row-custom-himaa-education-services {
    display: flex;
    flex-direction: row;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    align-items: center;
    margin-bottom: 0.85rem;
}

.study-heading-row-custom-himaa-education-services .h1-study-panel-custom-himaa-education-services {
    margin: 0 !important;
    line-height: 1.15;
}

.study-heading-row-custom-himaa-education-services .study-heading-icon-custom-himaa-education-services {
    align-self: center;
    /* Beat CMS img { max-width: 100% } so flex cross-axis centering uses real dimensions */
    max-width: none !important;
    /*
     * PNG includes uneven transparent padding; flex align-items:center centers the bitmap box,
     * so the mortarboard reads high vs cap-height. Nudge down to match CMS heading line box.
     */
    transform: translateY(clamp(10px, 1.65vw, 18px));
}

.study-inner-custom-himaa-education-services {
    max-width: min(38rem, 100%);
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.study-heading-icon-custom-himaa-education-services {
    display: block;
    /* Height-driven: FA used font-size in this band for visual weight; width-from-PNG left too much empty canvas */
    height: clamp(3rem, 5.5vw, 4.25rem);
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.section-study-panel-custom-himaa-education-services p {
    margin: 0 0 2rem;
    font-size: 1.125rem !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.93) !important;
    max-width: 38rem;
    text-wrap: balance;
}

.study-links-custom-himaa-education-services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.study-links-custom-himaa-education-services i {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem !important;
    color: #004174 !important;
    background: linear-gradient(145deg, rgba(0, 65, 116, 0.1) 0%, rgba(89, 141, 236, 0.15) 100%);
    border-radius: 50%;
    border: 1px solid rgba(0, 65, 116, 0.12);
    transition:
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        transform 0.2s ease;
}

.study-btn-image-badge-custom-himaa-education-services {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: linear-gradient(145deg, rgba(0, 65, 116, 0.1) 0%, rgba(89, 141, 236, 0.15) 100%);
    border-radius: 50%;
    border: 1px solid rgba(0, 65, 116, 0.12);
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.2s ease,
        box-shadow 0.22s ease;
}

.study-btn-image-icon-custom-himaa-education-services {
    flex-shrink: 0;
    width: 1.3rem;
    height: 18px;
    min-width: 1.3rem;
    display: block !important;
    object-fit: contain;
    object-position: center;
    transition:
        transform 0.2s ease,
        filter 0.22s ease;
}

.study-btn-custom-himaa-education-services {
    text-decoration: none !important;
    color: #004174 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    padding: 0.85rem 1rem 0.85rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-left: 4px solid #f57f36;
    text-align: left;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    min-height: 52px;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.2s ease,
        border-color 0.22s ease;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    align-items: center;
    gap: 1rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 10px 28px rgba(0, 65, 116, 0.12);
}

.study-btn-custom-himaa-education-services:hover,
.study-btn-custom-himaa-education-services:focus-visible,
#btn-open-why-modal-custom-himaa-education-services:hover {
    background: linear-gradient(180deg, #ff9348 0%, #f57f36 55%, #e86f24 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35);
    border-left-color: #ffffff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 6px 20px rgba(245, 127, 54, 0.4),
        0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.study-btn-custom-himaa-education-services:hover i,
.study-btn-custom-himaa-education-services:focus-visible i,
#btn-open-why-modal-custom-himaa-education-services:hover i {
    color: #004174 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.study-btn-custom-himaa-education-services:hover .study-btn-image-badge-custom-himaa-education-services,
.study-btn-custom-himaa-education-services:focus-visible .study-btn-image-badge-custom-himaa-education-services,
#btn-open-why-modal-custom-himaa-education-services:hover .study-btn-image-badge-custom-himaa-education-services {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 18px rgba(0, 65, 116, 0.12);
}

.study-btn-custom-himaa-education-services:focus-visible {
    outline: 3px solid #ffffff !important;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .study-btn-custom-himaa-education-services:hover,
    .study-btn-custom-himaa-education-services:focus-visible {
        transform: none !important;
    }
}

.section-about-coding-custom-himaa-education-services {
    width: 100%;
    max-width: 1140px;
    margin: 60px auto 0;
}

/* SECTION 4: About Clinical Coding — surface + balanced vertical padding */
#section-4-custom-himaa-education-services {
    --section-4-pad-y-custom-himaa-education-services: clamp(3rem, 6vw, 4.5rem);
    padding-top: var(--section-4-pad-y-custom-himaa-education-services) !important;
    padding-bottom: var(--section-4-pad-y-custom-himaa-education-services) !important;
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 38%, #f8fafc 100%);
}

#section-4-custom-himaa-education-services .h2-section-custom-himaa-education-services {
    margin-top: 0 !important;
}

#section-4-custom-himaa-education-services .section-about-coding-custom-himaa-education-services {
    margin-top: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0;
}

/* SECTION 5: Enquiry CTA — vertical padding around full-bleed band */
#section-5-custom-himaa-education-services {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* About Clinical Coding — two columns (modernised: elevated cards, brand rail) */
.about-coding-two-col-custom-himaa-education-services {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(1.35rem, 3.25vw, 2.25rem);
    width: 100%;
}

.about-coding-col-custom-himaa-education-services {
    flex: 1 1 calc(50% - clamp(0.675rem, 1.65vw, 1.125rem));
    min-width: min(100%, 280px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 65, 116, 0.1) !important;
    background-color: #ffffff !important;
    box-shadow:
        0 1px 2px rgba(0, 65, 116, 0.06),
        0 14px 36px -10px rgba(0, 65, 116, 0.14);
    transition:
        box-shadow 0.35s ease,
        transform 0.35s ease,
        border-color 0.35s ease;
}

.about-coding-col-custom-himaa-education-services::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #004174 0%, #598dec 52%, #f57f36 100%);
}

.about-coding-col-custom-himaa-education-services:hover {
    box-shadow:
        0 2px 4px rgba(0, 65, 116, 0.08),
        0 22px 44px -14px rgba(0, 65, 116, 0.2) !important;
    transform: translateY(-5px);
    border-color: rgba(0, 65, 116, 0.2) !important;
}

.about-coding-col-heading-custom-himaa-education-services {
    margin: 0 !important;
    padding: 1.15rem 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4fa 100%);
    color: #004174 !important;
    text-align: left;
    font-size: clamp(1.02rem, 1.1vw, 1.12rem) !important;
    font-weight: 700 !important;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(0, 65, 116, 0.08);
}

.about-coding-col-body-custom-himaa-education-services {
    flex: 1 1 auto;
    padding: clamp(1.15rem, 2.5vw, 1.5rem) clamp(1.15rem, 2.5vw, 1.45rem) clamp(1.25rem, 2.75vw, 1.65rem);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

.about-coding-col-body-custom-himaa-education-services p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
    color: #3d4f5f !important;
    margin: 0 0 1.05rem !important;
}

.about-coding-col-body-custom-himaa-education-services p:last-child {
    margin-bottom: 0 !important;
}

.about-coding-col-body-custom-himaa-education-services a {
    color: #f57f36 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 2px solid rgba(245, 127, 54, 0.35);
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.about-coding-col-body-custom-himaa-education-services a:hover {
    color: #d96b26 !important;
    border-bottom-color: rgba(217, 107, 38, 0.75);
}

.about-coding-col-body-custom-himaa-education-services a:focus-visible {
    outline: 3px solid #598dec !important;
    outline-offset: 3px;
    border-radius: 2px;
}

.link-traits-inline-custom-himaa-education-services {
    text-decoration: none;
    color: #f57f36 !important;
    font-weight: 700 !important;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.link-traits-inline-custom-himaa-education-services:hover {
    color: #d96b26 !important;
}

.link-traits-inline-custom-himaa-education-services:focus-visible {
    outline: 3px solid #598dec !important;
    outline-offset: 3px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .about-coding-col-custom-himaa-education-services:hover {
        transform: none !important;
    }
}

/* About Clinical Coding — enquiry strip (modernise) */
.section-enquiry-strip-custom-himaa-education-services {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem 2rem;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto 0;
    padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.5rem, 3vw, 2.25rem);
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.section-enquiry-strip-custom-himaa-education-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 4px;
    background: linear-gradient(90deg, #004174 0%, #598dec 52%, #f57f36 100%);
    pointer-events: none;
    z-index: 0;
}

.section-enquiry-strip-custom-himaa-education-services::after {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: linear-gradient(165deg, #ffffff 0%, #f4f8fc 45%, #eef4fa 100%);
    border-top: 1px solid rgba(0, 65, 116, 0.08);
    border-bottom: 1px solid rgba(0, 65, 116, 0.08);
    box-shadow:
        0 1px 2px rgba(0, 65, 116, 0.04),
        0 18px 44px -22px rgba(0, 65, 116, 0.16);
    pointer-events: none;
    z-index: -1;
}

.enquiry-strip-heading-custom-himaa-education-services {
    position: relative;
    z-index: 1;
    margin: 0;
    flex: 1 1 auto;
    min-width: min(100%, 16rem);
    font-size: clamp(1.2rem, 2.2vw, 1.55rem) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em;
    color: #004174 !important;
    text-align: left;
}

.section-enquiry-strip-custom-himaa-education-services .btn-cta-custom-himaa-education-services.btn-cta-enquiry-custom-himaa-education-services {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 0 !important;
    margin-left: auto;
    padding: 0.95rem 1.85rem !important;
    max-width: none;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase;
    color: #ffffff !important;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: linear-gradient(180deg, #ff9348 0%, #f57f36 48%, #e86f24 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 4px 16px rgba(245, 127, 54, 0.38);
    transition:
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.2s ease;
}

.section-enquiry-strip-custom-himaa-education-services .btn-cta-custom-himaa-education-services.btn-cta-enquiry-custom-himaa-education-services:hover {
    cursor: pointer;
    background: linear-gradient(180deg, #0d5c96 0%, #004174 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 6px 22px rgba(0, 65, 116, 0.38);
    transform: translateY(-2px);
}

.section-enquiry-strip-custom-himaa-education-services .btn-cta-custom-himaa-education-services.btn-cta-enquiry-custom-himaa-education-services:focus-visible {
    outline: 3px solid #598dec !important;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .section-enquiry-strip-custom-himaa-education-services .btn-cta-custom-himaa-education-services.btn-cta-enquiry-custom-himaa-education-services:hover {
        transform: none !important;
    }
}

@media only screen and (max-width: 640px) {
    .section-enquiry-strip-custom-himaa-education-services {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .enquiry-strip-heading-custom-himaa-education-services {
        text-align: center;
        min-width: 0;
    }

    .section-enquiry-strip-custom-himaa-education-services .btn-cta-custom-himaa-education-services.btn-cta-enquiry-custom-himaa-education-services {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/* CUSTOM MODALS */
#btn-exit-why-custom-himaa-education-services,
#btn-exit-traits-custom-himaa-education-services {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 0.6rem;
    width: 100%;
    align-self: stretch;
    max-width: none;
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    padding: 1rem 1.05rem;
    border-radius: 0 0 0 18px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(180deg, #ff9348 0%, #f57f36 55%, #e86f24 100%);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

#btn-exit-why-custom-himaa-education-services::before,
#btn-exit-traits-custom-himaa-education-services::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00d";
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#btn-exit-why-custom-himaa-education-services:hover,
#btn-exit-traits-custom-himaa-education-services:hover {
    background: linear-gradient(180deg, #0d5c96 0%, #004174 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 6px 18px rgba(0, 65, 116, 0.35);
    transform: translateY(-1px);
}

#btn-exit-why-custom-himaa-education-services:focus-visible,
#btn-exit-traits-custom-himaa-education-services:focus-visible {
    outline: 3px solid #598dec !important;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    #btn-exit-why-custom-himaa-education-services:hover,
    #btn-exit-traits-custom-himaa-education-services:hover {
        transform: none !important;
    }
}

.modal-why-custom-himaa-education-services {
    position: relative;
    width: min(820px, calc(100vw - 2rem));
    max-height: min(82vh, 760px);
    overflow: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    border: 1px solid rgba(0, 65, 116, 0.12);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 26px 72px rgba(0, 0, 0, 0.28);
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(0.85rem, 1.6vw, 1.25rem);
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.modal-why-custom-himaa-education-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #004174 0%, #598dec 52%, #f57f36 100%);
}

.modal-why-custom-himaa-education-services::after {
    content: none;
}

.modal-why-rail-custom-himaa-education-services {
    grid-column: 1;
    width: 240px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 65, 116, 0.06) 0%,
        rgba(89, 141, 236, 0.08) 55%,
        rgba(245, 127, 54, 0.05) 100%
    );
    border-right: 1px solid rgba(0, 65, 116, 0.08);
    overflow: hidden;
    box-sizing: border-box;
}

.modal-why-rail-content-custom-himaa-education-services {
    padding: clamp(1.25rem, 2.6vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.modal-why-body-custom-himaa-education-services {
    grid-column: 2;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: clamp(1.25rem, 2.6vw, 2.25rem);
    padding-top: clamp(1.1rem, 2.2vw, 2rem);
}

.modal-why-body-custom-himaa-education-services p {
    margin: 0 0 0.9rem;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
    letter-spacing: 0.002em;
    color: rgba(25, 36, 46, 0.86) !important;
    position: relative;
    padding-left: 3.35rem;
}

.modal-why-body-custom-himaa-education-services p:first-of-type {
    font-size: 1.08rem !important;
    line-height: 1.8 !important;
    color: rgba(25, 36, 46, 0.92) !important;
}

.modal-why-body-custom-himaa-education-services p::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f05a";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #004174;
    background: linear-gradient(145deg, rgba(0, 65, 116, 0.1) 0%, rgba(89, 141, 236, 0.15) 100%);
    border: 1px solid rgba(0, 65, 116, 0.12);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 8px 18px rgba(0, 65, 116, 0.12);
}

.modal-why-body-custom-himaa-education-services p:nth-of-type(1)::before {
    content: "\f4ff"; /* user-graduate */
}

.modal-why-body-custom-himaa-education-services p:nth-of-type(2)::before {
    content: "\f0a1"; /* bullhorn */
}

.modal-why-body-custom-himaa-education-services p:nth-of-type(3)::before {
    content: "\f0c0"; /* users */
}

#overlay-why-custom-himaa-education-services,
#overlay-traits-custom-himaa-education-services {
    background-color: rgba(4, 4, 4, 0.6);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.35s ease;
    position: fixed;
    top: 0;
    left: 0;
    filter: opacity(0);
    z-index: -1;
    /* Closed overlay must not sit above content and steal clicks (filter opacity ≠ hit-test off). */
    pointer-events: none;
}

/* Legacy Membes “Why study” root: live S3 v2.2 CSS omitted this selector (traits overlay only). */
#customModal_Overlay {
    background-color: rgba(4, 4, 4, 0.6);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    filter: opacity(0);
    z-index: -1;
    pointer-events: none;
}

/* Live traits root: keep hit-testing off when closed (matches why overlay). */
#customModal_Overlay-2 {
    pointer-events: none;
}

.modal-why-logo-custom-himaa-education-services {
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/logo_400x454.png");
    background-position: center;
    background-size: cover;
    width: 84px;
    height: 96px;
    margin: 0;
}

.modal-why-title-custom-himaa-education-services {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 2.05rem;
    font-weight: 900;
    text-align: left;
    display: block;
    margin-bottom: 0.25rem;
    color: #004174 !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.modal-why-title-custom-himaa-education-services::after {
    content: "";
    display: block;
    height: 4px;
    width: 64px;
    background: linear-gradient(90deg, #004174 0%, #598dec 52%, #f57f36 100%);
    border-radius: 999px;
    margin: 0.85rem 0 0.35rem;
}

.modal-why-body-custom-himaa-education-services p:last-of-type {
    margin-bottom: 0;
}

/* Traits modal — same layout language as “Why study at HIMAA?” modal */
.modal-traits-custom-himaa-education-services {
    position: relative;
    width: min(640px, calc(100vw - 2rem));
    max-height: min(82vh, 760px);
    overflow: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    border: 1px solid rgba(0, 65, 116, 0.12);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 26px 72px rgba(0, 0, 0, 0.28);
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    padding: 0;
}

.modal-traits-custom-himaa-education-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #004174 0%, #598dec 52%, #f57f36 100%);
}

.modal-traits-rail-custom-himaa-education-services {
    grid-column: 1;
    width: 220px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 65, 116, 0.06) 0%,
        rgba(89, 141, 236, 0.08) 55%,
        rgba(245, 127, 54, 0.05) 100%
    );
    border-right: 1px solid rgba(0, 65, 116, 0.08);
    overflow: hidden;
    box-sizing: border-box;
}

.modal-traits-rail-content-custom-himaa-education-services {
    padding: clamp(1.15rem, 2.4vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-traits-logo-custom-himaa-education-services {
    background-image: url("https://www.himaa.org.au/public/169/images/website_mages/logo_400x454.png");
    background-position: center;
    background-size: cover;
    width: 72px;
    height: 82px;
    margin: 0;
    flex-shrink: 0;
}

.modal-traits-title-custom-himaa-education-services {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif !important;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    text-align: left;
    display: block;
    margin: 0 !important;
    color: #004174 !important;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.modal-traits-title-custom-himaa-education-services::after {
    content: "";
    display: block;
    height: 4px;
    width: 56px;
    background: linear-gradient(90deg, #004174 0%, #598dec 52%, #f57f36 100%);
    border-radius: 999px;
    margin: 0.75rem 0 0.25rem;
}

.modal-traits-body-custom-himaa-education-services {
    grid-column: 2;
    position: relative;
    z-index: 1;
    padding: clamp(1.15rem, 2.4vw, 2rem);
    padding-top: clamp(1rem, 2vw, 1.75rem);
    overflow: auto;
    min-height: 0;
}

.modal-traits-body-custom-himaa-education-services .list-traits-custom-himaa-education-services {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal-traits-body-custom-himaa-education-services .list-traits-item-custom-himaa-education-services {
    list-style: none !important;
    position: relative;
    margin: 0 0 0.5rem !important;
    padding: 0.55rem 0.65rem 0.55rem 2.15rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    color: rgba(25, 36, 46, 0.9) !important;
    background: rgba(0, 65, 116, 0.04);
    border: 1px solid rgba(0, 65, 116, 0.08);
    border-radius: 10px;
}

.modal-traits-body-custom-himaa-education-services .list-traits-item-custom-himaa-education-services:last-child {
    margin-bottom: 0 !important;
}

.modal-traits-body-custom-himaa-education-services .list-traits-item-custom-himaa-education-services::before {
    content: "";
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(145deg, #004174 0%, #598dec 100%);
    box-shadow: 0 0 0 2px rgba(245, 127, 54, 0.35);
}

@media (max-width: 768px) {
    #overlay-why-custom-himaa-education-services,
    #overlay-traits-custom-himaa-education-services {
        align-items: flex-start;
        padding: 1rem;
        box-sizing: border-box;
    }

    .modal-why-custom-himaa-education-services {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: calc(100vh - 2rem);
        overflow: hidden;
    }

    .modal-why-custom-himaa-education-services::after {
        display: none;
    }

    .modal-why-rail-custom-himaa-education-services,
    .modal-why-body-custom-himaa-education-services {
        grid-column: 1;
    }

    .modal-why-rail-custom-himaa-education-services {
        display: contents;
    }

    .modal-why-rail-content-custom-himaa-education-services {
        padding: 1.25rem;
        order: 0;
        text-align: center;
        border-bottom: 1px solid rgba(0, 65, 116, 0.08);
    }

    #btn-exit-why-custom-himaa-education-services {
        order: 2;
        border-radius: 0 0 18px 18px;
    }

    .modal-why-body-custom-himaa-education-services {
        padding: 1.25rem;
        order: 1;
        overflow: auto;
    }

    .modal-why-logo-custom-himaa-education-services {
        margin: 0 auto;
    }

    .modal-why-title-custom-himaa-education-services {
        text-align: center;
    }

    .modal-why-title-custom-himaa-education-services::after {
        margin-left: auto;
        margin-right: auto;
    }

    .modal-why-body-custom-himaa-education-services p {
        padding-left: 0;
    }

    .modal-why-body-custom-himaa-education-services p::before {
        display: none;
    }

    .modal-traits-custom-himaa-education-services {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: calc(100vh - 2rem);
        overflow: hidden;
    }

    .modal-traits-rail-custom-himaa-education-services,
    .modal-traits-body-custom-himaa-education-services {
        grid-column: 1;
    }

    .modal-traits-rail-custom-himaa-education-services {
        display: contents;
    }

    .modal-traits-rail-content-custom-himaa-education-services {
        padding: 1.25rem;
        order: 0;
        text-align: center;
        border-bottom: 1px solid rgba(0, 65, 116, 0.08);
    }

    #btn-exit-traits-custom-himaa-education-services {
        order: 2;
        border-radius: 0 0 18px 18px;
    }

    .modal-traits-body-custom-himaa-education-services {
        padding: 1.25rem;
        order: 1;
        overflow: auto;
    }

    .modal-traits-logo-custom-himaa-education-services {
        margin: 0 auto;
    }

    .modal-traits-title-custom-himaa-education-services {
        text-align: center;
    }

    .modal-traits-title-custom-himaa-education-services::after {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-study-custom-himaa-education-services {
        flex-direction: column;
        flex-wrap: wrap;
        min-height: 0;
    }

    .section-study-visual-custom-himaa-education-services,
    .section-study-panel-custom-himaa-education-services {
        flex: 1 1 100%;
    }

    .section-study-visual-custom-himaa-education-services {
        min-height: 240px;
        order: -1;
    }

    .section-study-visual-custom-himaa-education-services::after {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 65, 116, 0.25) 100%
        );
    }

    .section-study-panel-custom-himaa-education-services {
        padding-top: 1.75rem;
        padding-bottom: 2rem;
        padding-left: max(1.25rem, calc((100vw - 1140px) / 2));
        padding-right: max(1.25rem, calc((100vw - 1140px) / 2));
    }

    .study-btn-custom-himaa-education-services {
        padding: 0.85rem 1rem;
    }
}

.tile-title-cert-placeholder-custom-himaa-education-services {
    line-height: 1.4rem;
    padding-bottom: 15px;
}

@media (max-width: 480px) {
    .h1-study-panel-custom-himaa-education-services {
        font-size: 1.65rem !important;
    }

    .study-heading-icon-custom-himaa-education-services {
        height: 2.75rem;
        width: auto;
        padding-top: 0;
    }

    .section-study-visual-custom-himaa-education-services {
        display: none;
    }

    .section-study-panel-custom-himaa-education-services p {
        font-size: 1.1rem;
        line-height: 1.6rem;
    }

    .study-btn-custom-himaa-education-services {
        padding: 15px;
        font-size: 1.2rem;
    }

    .modal-why-custom-himaa-education-services {
        scroll-behavior: auto;
    }

    .modal-why-custom-himaa-education-services p {
        font-size: 1rem;
    }

    .modal-traits-custom-himaa-education-services {
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 1.5rem);
        align-items: stretch;
        overflow: hidden;
    }

    .modal-traits-body-custom-himaa-education-services {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .section-about-coding-custom-himaa-education-services {
        padding: 0 15px;
    }
}

div.tile-course-inactive-custom-himaa-education-services {
    pointer-events: none;
    opacity: 0.7;
    cursor: none;
    filter: saturate(.3);
}

.is-hidden-custom-himaa-education-services {
    display: none;
}