.aie-course-pdf-button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ed1c24 0%, #b5121b 100%);
    box-shadow: 0 10px 24px rgba(181, 18, 27, 0.24);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.aie-course-pdf-button:hover,.aie-course-pdf-button:focus-visible{color:#fff;transform:translateY(-2px);box-shadow:0 14px 30px rgba(181,18,27,.32)}
.aie-course-pdf-button:focus-visible{outline:3px solid rgba(237,28,36,.28);outline-offset:3px}
.aie-course-pdf-button[disabled]{cursor:wait;opacity:.78;transform:none}
.aie-course-pdf-icon{width:20px;height:20px;flex:0 0 20px;position:relative}
.aie-course-pdf-icon::before{content:'';position:absolute;left:7px;top:1px;width:6px;height:11px;border-left:2px solid currentColor;border-right:2px solid currentColor}
.aie-course-pdf-icon::after{content:'';position:absolute;left:3px;top:8px;width:12px;height:8px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.aie-course-pdf-status:empty{display:none}.aie-course-pdf-status{font-size:12px;font-weight:600;opacity:.9}

/* Hidden PDF working areas. All course pages use one locked AIE brochure design. */
.aie-pdf-hero-stage,.aie-pdf-layout-stage{
    position:fixed!important;left:-100000px!important;top:0!important;z-index:-99999!important;
    width:760px!important;margin:0!important;box-sizing:border-box!important;pointer-events:none!important;
    opacity:1!important;color:#2b2b2b!important;font-family:Arial,Helvetica,sans-serif!important;
}
.aie-pdf-hero-stage *,.aie-pdf-layout-stage *{box-sizing:border-box!important}
.aie-pdf-layout-stage{padding:0!important;background:#fff!important;overflow:visible!important}
.aie-pdf-layout-page{width:760px!important;padding:0 10px 18px!important;background:#fff!important;font-size:11.2px!important;line-height:1.42!important}

/* Same page-heading treatment used by the approved MEM50119 brochure. */
.aie-page-title{margin:0!important;padding:0!important;color:#2a2a2a!important;font-family:Arial,Helvetica,sans-serif!important;font-size:27px!important;font-weight:800!important;line-height:1.12!important;letter-spacing:-.25px!important}
.aie-page-title-underline{width:120px!important;height:4px!important;margin:8px 0 24px!important;background:#ed1c24!important}
.aie-section-label{display:block!important;width:max-content!important;max-width:92%!important;min-width:190px!important;margin:12px auto 10px!important;padding:7px 18px!important;border-radius:2px!important;background:#ed1c24!important;color:#fff!important;font-size:11px!important;font-weight:800!important;line-height:1.15!important;text-align:center!important;text-transform:uppercase!important}
.aie-section-label-centered{margin-left:auto!important;margin-right:auto!important}
.aie-layout-section{margin:0 0 18px!important;padding:0!important;break-inside:avoid!important;page-break-inside:avoid!important}
.aie-section-content{width:100%!important;padding:4px 8px 2px!important;background:#fff!important;color:#333!important}
.aie-section-content p{margin:0 0 8px!important;padding:0!important}
.aie-section-content ul,.aie-section-content ol{margin:5px 0 10px 21px!important;padding:0!important}
.aie-section-content li{margin:0 0 4px!important;padding:0!important}
.aie-section-content h2,.aie-section-content h3,.aie-section-content h4,.aie-section-content h5,.aie-section-content h6{margin:10px 0 7px!important;padding:0!important;color:#333!important;font-size:12.2px!important;font-weight:800!important;line-height:1.25!important;border:0!important;background:none!important}
.aie-section-content a{color:#333!important;text-decoration:none!important}
.aie-section-content img{display:block!important;max-width:100%!important;max-height:330px!important;width:auto!important;height:auto!important;margin:12px auto!important;object-fit:contain!important}
.aie-section-content figure{margin:10px auto!important;max-width:100%!important}
.aie-section-content blockquote{margin:8px 0!important;padding:9px 12px!important;border-left:4px solid #ed1c24!important;background:#f7f7f7!important}

/* Tables: identical red AIE table treatment across every course. */
.aie-section-content table{width:100%!important;max-width:100%!important;border-collapse:collapse!important;table-layout:auto!important;margin:8px 0 12px!important;font-size:9px!important;line-height:1.2!important;background:#fff!important}
.aie-section-content thead{display:table-header-group!important}.aie-section-content tr{break-inside:avoid!important;page-break-inside:avoid!important}
.aie-section-content th{background:#ed1c24!important;color:#fff!important;font-weight:800!important;text-align:left!important}
.aie-section-content th,.aie-section-content td{border:1px solid #d5d5d5!important;padding:4px 5px!important;vertical-align:top!important;overflow-wrap:anywhere!important}
.aie-section-content tr:nth-child(even) td{background:#f7f7f7!important}

/* Page 3: same overview composition as approved sample. */
.aie-overview-grid{display:grid!important;grid-template-columns:1.02fr .98fr!important;gap:18px!important;align-items:stretch!important;margin:0 0 14px!important}
.aie-overview-image,.aie-overview-image-placeholder{width:100%!important;height:235px!important;border:3px solid #ed1c24!important;background:#262626!important;object-fit:cover!important}
.aie-overview-stats{width:100%!important;align-self:stretch!important;padding:10px 17px!important;border-radius:3px!important;background:#292929!important;color:#fff!important}
.aie-overview-stat-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;min-height:48px!important;border-bottom:1px solid #555!important}
.aie-overview-stat-row:last-child{border-bottom:0!important}
.aie-overview-stat-label{color:#d7d7d7!important;font-size:9.5px!important;font-weight:600!important}.aie-overview-stat-value{max-width:64%!important;color:#fff!important;font-size:12.2px!important;font-weight:800!important;text-align:right!important}
.aie-green-content{padding:11px 14px!important;border:1px solid #8bc7bb!important;border-radius:3px!important;background:#edf8f5!important}
.aie-outline-content{padding:11px 14px!important;border:1.5px solid #ed1c24!important;border-radius:3px!important;background:#fff!important}

/* Course-structure pages: same badge row and table styling as sample. */
.aie-structure-badges{display:flex!important;gap:14px!important;width:100%!important;margin:0 0 14px!important}
.aie-structure-badge{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:130px!important;padding:9px 15px!important;border-radius:20px!important;color:#fff!important;text-align:center!important}
.aie-structure-badge strong{font-size:14px!important}.aie-structure-badge span{font-size:10px!important;font-weight:800!important}
.aie-structure-badge-0{background:#ed1c24!important}.aie-structure-badge-1{background:#292929!important}.aie-structure-badge-2{background:#00785f!important}
.aie-structure-section .aie-section-content{padding-left:0!important;padding-right:0!important}
.aie-structure-section .aie-section-content table{font-size:8.7px!important}

/* Duration page: exact red/green/dark stat-bar language from sample. */
.aie-duration-cards{display:flex!important;width:100%!important;margin:0 0 14px!important;overflow:hidden!important;border-radius:2px!important}
.aie-duration-card{flex:1 1 0!important;min-height:75px!important;padding:12px 10px!important;color:#fff!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
.aie-duration-card strong{font-size:18px!important;line-height:1.15!important}.aie-duration-card span{margin-top:5px!important;font-size:9px!important;line-height:1.2!important}
.aie-duration-red{background:#ed1c24!important}.aie-duration-green{background:#00785f!important}.aie-duration-dark{background:#292929!important}
.aie-duration-content{margin-bottom:14px!important}

/* Training/assessment page image + green information panel. */
.aie-training-media{display:grid!important;grid-template-columns:210px 1fr!important;gap:18px!important;align-items:stretch!important;margin:14px 0 0!important;break-inside:avoid!important}
.aie-training-media>img{width:210px!important;height:245px!important;object-fit:cover!important;border:0!important;margin:0!important}
.aie-training-info{min-height:160px!important;padding:10px 14px!important}
.aie-training-info .aie-section-label{margin:0 0 10px!important}
.aie-training-info .aie-section-content{background:transparent!important;padding:0!important}

/* Job-role page callouts. */
.aie-black-callout{margin:0 0 16px!important;padding:13px 16px!important;border-radius:3px!important;background:#292929!important;color:#fff!important}
.aie-black-callout *{margin:0!important;color:#fff!important}
.aie-job-content{padding:0 8px!important}

/* Fees page keeps all original site text but uses the same approved panel style. */
.aie-fees-section>.aie-section-content{padding:14px 18px!important;border:1px solid #d7d7d7!important;background:#fff!important}
.aie-fees-section>.aie-section-content table{font-size:10px!important}

/* Dynamic hero page placed over the exact approved blank AIE cover artwork. */
.aie-pdf-hero-stage{min-height:890px!important;padding:18px 24px 20px!important;background:transparent!important}
.aie-hero-title-card{width:100%!important;padding:22px 26px 18px!important;border:2px solid #ed1c24!important;border-radius:16px!important;background:#fff!important}
.aie-hero-code{margin:0 0 4px!important;color:#242424!important;font-size:34px!important;font-weight:800!important;line-height:1!important}
.aie-hero-title{color:#2a2a2a!important;font-size:29px!important;font-weight:700!important;line-height:1.12!important}
.aie-hero-course-code{margin-top:8px!important;color:#555!important;font-size:12px!important}.aie-hero-badges{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:13px!important}
.aie-hero-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:29px!important;padding:6px 18px!important;border-radius:18px!important;color:#fff!important;font-size:11px!important;font-weight:700!important;line-height:1.15!important;text-align:center!important}
.aie-hero-badge-red{background:#ed1c24!important}.aie-hero-badge-green{background:#00785f!important}
.aie-hero-image-frame{width:100%!important;height:310px!important;margin-top:17px!important;border:4px solid #ed1c24!important;background:#262626!important;overflow:hidden!important}
.aie-hero-image-frame img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important}
.aie-hero-stats{display:flex!important;width:100%!important;margin-top:17px!important;border-radius:10px!important;overflow:hidden!important;background:#2d2d2d!important}
.aie-hero-stat{flex:1 1 0!important;min-width:0!important;padding:17px 12px!important;border-right:1px solid #606060!important;text-align:center!important}.aie-hero-stat:last-child{border-right:0!important}
.aie-hero-stat-value{color:#fff!important;font-size:17px!important;font-weight:800!important;line-height:1.15!important}.aie-hero-stat-label{margin-top:5px!important;color:#cfcfcf!important;font-size:10px!important;line-height:1.15!important}
.aie-hero-note{width:100%!important;margin-top:17px!important;padding:15px 20px!important;border:2px solid #ed1c24!important;border-radius:10px!important;background:rgba(255,255,255,.96)!important}
.aie-hero-note-main{color:#ed1c24!important;font-size:14px!important;font-weight:800!important;line-height:1.25!important}.aie-hero-note-secondary{margin-top:7px!important;color:#333!important;font-size:11px!important;line-height:1.25!important}

@media(max-width:600px){.aie-course-pdf-button{width:100%}}
