/* =========================================================
   PKP ADDITIONS — PROFESSIONAL COURSES PAGE
   Add at the END of your pkb stylesheet.
   Also needs pkb-additions.css (.pkb-tags-center and the .pkb-field input styles)
   Page-specific classes use the "pkp-" prefix; the rest are shared pkb- classes.
========================================================= */


/* =====================================
   HERO VARIANT: SOLID GREEN + OFFSET IMAGE
===================================== */

.pkp-hero {
    position: relative;
    padding: 100px 0;
    background: #80e387;
    overflow: hidden;
}

.pkp-hero::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -150px;
    top: -200px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
}

.pkp-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 75px;
    align-items: center;
}

.pkb-page .pkp-hero h1 {
    font-size: 50px;
    line-height: 1.15;
    margin: 0 0 25px;
}

.pkb-page .pkp-hero p {
    font-size: 18px;
    line-height: 1.85;
    margin: 0 0 35px;
}

.pkb-page .pkp-hero .pkb-eyebrow { font-size: 14px; margin-bottom: 20px; }

.pkp-hero-media img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 18px 18px 0 #071a43;
}

/* navy solid button for light/green backgrounds */
.pkb-btn.pkp-btn-navy {
    background: #071a43;
    border-color: #071a43;
    color: #ffffff !important;
}
.pkb-btn.pkp-btn-navy:hover { background: transparent; color: #071a43 !important; }

@media (max-width: 991px) {
    .pkp-hero { padding: 75px 0; }
    .pkp-hero-container { gap: 40px; }
    .pkb-page .pkp-hero h1 { font-size: 38px; }
    .pkp-hero-media img { height: 380px; }
}

@media (max-width: 767px) {
    .pkp-hero { padding: 55px 0 65px; }
    .pkp-hero-container { grid-template-columns: 1fr; padding: 0 20px; }
    .pkb-page .pkp-hero h1 { font-size: 32px; }
    .pkb-page .pkp-hero p { font-size: 16px; }
    .pkp-hero-media img { height: 270px; box-shadow: 10px 10px 0 #071a43; }
    .pkp-hero .pkb-btn { width: 100%; }
}


/* =====================================
   GOAL CARDS (clickable)
===================================== */

.pkp-goal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #071a43;
    text-decoration: none !important;
}

.pkp-goal p { flex-grow: 1; }

.pkp-goal-link {
    margin-top: 22px;
    padding-bottom: 3px;
    border-bottom: 2px solid #80e387;
    font-size: 16px;
    font-weight: 700;
}

.pkp-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #80e387;
    border-radius: 50%;
    margin-bottom: 22px;
}

.pkp-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #071a43;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================
   FOR ORGANIZATIONS BAND
===================================== */

.pkp-org { background: #071a43; padding: 75px 0; }

.pkp-org-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.pkp-org-text { max-width: 720px; }

.pkb-page .pkp-org .pkb-eyebrow { color: #80e387 !important; font-size: 14px; }
.pkb-page .pkp-org h2 { color: #ffffff !important; font-size: 42px; margin: 0 0 14px; }
.pkb-page .pkp-org p { color: rgba(255,255,255,.85) !important; margin: 0; }

@media (max-width: 991px) {
    .pkp-org { padding: 60px 0; }
    .pkp-org-inner { flex-direction: column; align-items: flex-start; gap: 30px; }
    .pkb-page .pkp-org h2 { font-size: 34px; }
}


/* =====================================
   COURSE FINDER (prominent form section)
===================================== */

.pkp-finder {
    position: relative;
    padding: 105px 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(128,227,135,.18) 0, rgba(128,227,135,0) 45%),
        #071a43;
}

.pkb-page .pkp-finder .pkb-eyebrow { color: #80e387 !important; }
.pkb-page .pkp-finder .pkb-heading h2 { color: #ffffff !important; }

.pkp-finder-card {
    max-width: 1040px;
    margin: 0 auto;
    padding: 50px;
    background: #ffffff;
    border-top: 6px solid #80e387;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0,0,0,.3);
}

.pkp-form { display: grid; gap: 38px; }

.pkp-step-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: #071a43;
}

.pkp-step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #80e387;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.pkp-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pkp-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.pkp-other { display: none; margin-top: 14px; }
.pkp-other.show { display: flex; }

.pkp-submit { display: flex; justify-content: center; }
.pkp-submit .pkb-btn { cursor: pointer; font-family: inherit; min-width: 260px; }

@media (max-width: 991px) {
    .pkp-finder { padding: 75px 0; }
    .pkp-finder-card { padding: 38px 30px; }
    .pkp-row-3 { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 600px) {
    .pkp-finder { padding: 60px 0; }
    .pkp-finder-card { padding: 28px 18px; border-radius: 14px; }
    .pkp-row-2 { grid-template-columns: 1fr; }
    .pkp-submit .pkb-btn { width: 100%; }
    .pkp-step-title { font-size: 18px; }
}


/* =====================================
   PKP COURSE FINDER POPUP
===================================== */

#pkp-course-modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100%;
    height: 100%;
    z-index: 9999999 !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box !important;
}

#pkp-course-modal.active {
    display: flex !important;
}

#pkp-course-modal .pkp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 51, 0.85);
    cursor: pointer;
}

#pkp-course-modal .pkp-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 950px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);

    /* Internal padding */
    padding: 30px !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
}

/* FORM IFRAME */

#pkp-course-modal .pkp-modal-content iframe {
    display: block;
    width: 100% !important;
    height: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
    border: none !important;
    background: #ffffff;
    box-sizing: border-box;
}

/* CLOSE BUTTON */

#pkp-course-modal .pkp-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 15px !important;
    left: auto !important;
    z-index: 10;

    width: 36px;
    height: 36px;
    padding: 0 !important;

    border: none;
    border-radius: 50%;
    background: #071a43;
    color: #ffffff;

    font-size: 27px;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

#pkp-course-modal .pkp-modal-close:hover {
    background: #c49a45;
}

body.pkp-modal-open {
    overflow: hidden !important;
}

/* MOBILE */

@media (max-width: 767px) {

    #pkp-course-modal {
        padding: 8px;
    }

    #pkp-course-modal .pkp-modal-content {
        height: 95vh;
        max-height: none;
        padding: 15px !important;
        border-radius: 8px;
    }

    #pkp-course-modal .pkp-modal-close {
        top: 10px !important;
        right: 10px !important;
    }

}

/* =====================================
   PKB WHY SECTION IMAGE
===================================== */

.pkb-why-image {
    width: 100%;
    max-width: 390px;
    margin-top: 25px;
    border-radius: 14px;
    overflow: hidden;
}

.pkb-why-image img {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: 14px;
}

@media (max-width: 767px) {
    .pkb-why-image {
        max-width: 100%;
    }

    .pkb-why-image img {
        height: 220px;
    }
}