/*
Theme Name: Platinum Education
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Child theme for Twenty Twenty-Five, built for Platinum Education.
Author: Site Owner
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

* {
    outline: none !important;
    scroll-behavior: smooth;
    text-decoration: none !important;
    box-sizing: border-box;
}

p {
    font-weight: 400;
    line-height: 1.7;
}

.eyebrow mark {
    width: 13px;
    height: 13px;
    display: inline-flex;
    line-height: 100%;
}

/* Dark section backgrounds: force white text on plain headings/paragraphs.
   Block-level inheritance loses to the global heading/text element color rules,
   so this must be an explicit override rather than relying on parent color. */
.has-custom-navy-background-color :where(h1, h2, h3, h4, h5, h6, p),
.has-custom-maroon-background-color :where(h1, h2, h3, h4, h5, h6, p) {
    color: var(--wp--preset--color--custom-white);
}

/* Re-assert card component colors regardless of the section background they sit in */
.pe-card :where(h1, h2, h3, h4, h5, h6),
.pe-icon-card :where(h1, h2, h3, h4, h5, h6),
.pe-testimonial-card :where(h1, h2, h3, h4, h5, h6) {
    color: var(--wp--preset--color--custom-navy) !important;
}

.pe-card p,
.pe-icon-card p,
.pe-testimonial-card p:not(.pe-stars):not(.pe-testimonial-author) {
    color: var(--wp--preset--color--custom-gray) !important;
}

.pe-card .pe-duration {
    color: var(--wp--preset--color--custom-gray) !important;
}

.pe-card .pe-duration strong {
    color: var(--wp--preset--color--custom-navy) !important;
}

.wp-block-buttons .wp-element-button {
    transition: all 0.3s ease;
    font-family: var(--wp--preset--font-family--poppins);
    font-weight: 600 !important;
    display: flex !important;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.wp-block-buttons .wp-element-button:not(.is-style-outline .wp-block-button__link) {
    border: 1px solid transparent !important;
}

.wp-block-buttons .is-style-outline .wp-block-button__link {
    border: 1.5px solid currentColor !important;
}

.wp-block-buttons .wp-element-button:hover {
    opacity: 0.88;
}

/* Pill-style "Learn more" link button used on cards */
.pe-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid var(--wp--preset--color--custom-navy);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--wp--preset--color--custom-navy) !important;
}

/* ---- Feature / icon cards (Beyond education section) ---- */
.pe-icon-card {
    background: var(--wp--preset--color--custom-white);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
}

.pe-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--wp--preset--color--custom-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}

/* ---- Hero checklist ---- */
.pe-check-item img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---- Popular Courses: "See all courses" CTA appended to the query loop ---- */
.pe-course-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 35px;
    background: rgb(255 255 255 / 20%);
    border-radius: 10px;
    padding: 32px;
    border: 1px solid #F4B4D5;
    height: 100%;
    box-sizing: border-box;
}

.pe-course-cta h3 {
    color: var(--wp--preset--color--custom-white);
    margin: 0;
    font-size: clamp(25.014px, 1.563rem + ((1vw - 3.2px) * 1.643), 42px);
    line-height: 1.4;
}

.pe-course-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--wp--preset--color--custom-white);
    color: var(--wp--preset--color--custom-white) !important;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.193), 16px);
}

.pe-course-cta-btn:hover {
    opacity: 0.88;
}

.pe-course-cta-btn img {
    width: 13px;
    height: 12px;
}

.wp-block-accordion-heading__toggle-icon {
    font-size: 24px;
    border-radius: 4px;
    display: flex;
    color: #701042;
}

.wp-block-accordion-item.is-open {
    border-color: #701042 !important;
}

/* ---- Tabs ---- */
.plethoraplugins-sidenavjump {
    padding-right: 8%;
}

.js-plethoraplugins-tabs {
    border-radius: 10px;
    overflow: hidden;
}

.js-plethoraplugins-tabs--link {
    line-height: 1.6;
}

.js-plethoraplugins-tabs--link * {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
}

.js-plethoraplugins-tabs--link.active * {
    color: #02275B !important;
}

.js-plethoraplugins-tabs--link img {
    margin-right: 10px;
    margin-bottom: -10px;
}

.js-plethoraplugins-tabs--link.active img {
    filter: brightness(32%) contrast(135%) saturate(235%) hue-rotate(310deg);
}

.js-plethoraplugins-tabs--link strong {
    font-size: 16px;
    font-weight: 300;
    display: none;
    margin-top: 10px;
}

.js-plethoraplugins-tabs--link.active strong {
    color: var(--wp--preset--color--custom-gray) !important;
}

.js-plethoraplugins-tabs--link.active strong {
    display: block;
}

.js-plethoraplugins-tabs li {
    border-bottom: 1px solid #CFADF7;
    margin: 0 !important;
}

.js-plethoraplugins-tabs li:last-child {
    border-bottom: none;
}

.js-plethoraplugins-tabs li .js-plethoraplugins-tabs--link {
    padding: 20px;
    display: block;
}

.js-plethoraplugins-tabs li .js-plethoraplugins-tabs--link.active {
    background-color: #fff;
}

.plethoraplugins-tabs--content {
    position: relative;
    z-index: 9;
}

.plethoraplugins-tabs--content figure {
    margin: 0;
}

.plethoraplugins-tabs--content:after {
    content: '';
    background: rgb(207 173 247 / 50%);
    position: absolute;
    width: 100vw;
    height: calc(100% + 50px);
    top: -25px;
    left: 130px;
    border-radius: 10px 0 0 10px;
    z-index: -1;
}

/* Career Outcomes tabs (vertical layout), mobile only: custom.js moves the
   active tab's image into a `.pe-mobile-tab-image-slot` list item right after
   that tab's title+description, instead of the plugin's separate side-by-side
   content column. This just makes room for that stacked layout; the ordering
   itself is handled in JS since it must follow whichever tab is active. */
@media (max-width: 767px) {
    .plethoraplugins-tabs-container--vertical {
        flex-direction: column;
    }

    .plethoraplugins-tabs-container--vertical .plethoraplugins-sidenavjump {
        flex-basis: 100% !important;
        padding-right: 0;
    }

    .plethoraplugins-tabs-container--vertical .plethoraplugins-tabs--content {
        flex-basis: 100% !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .plethoraplugins-tabs-container--vertical .plethoraplugins-tabs--content img {
        border-radius: 0 !important;
    }

    .pe-mobile-tab-image-slot {
        list-style: none;
    }

    .pe-mobile-tab-image-slot .plethoraplugins-tabs--content:after {
        display: none;
    }

    .js-plethoraplugins-tabs li .js-plethoraplugins-tabs--link {
        padding: 15px 10px;
    }

    .js-plethoraplugins-tabs--link * {
        font-size: 18px;
    }

    .js-plethoraplugins-tabs--link img {
        margin-bottom: -13px;
        margin-right: 5px;
    }
}

/* ---- Post Slider ---- */
.wp-block-gutsliders-post-slider .swiper-container-outer {
    background-color: rgb(255 255 255 / 20%) !important;
    border-radius: 10px;
    border: 1px solid #F4B4D5;
    background-size: auto 200px !important;
    background-position: top center !important;
    background-repeat: no-repeat;
}

.wp-block-gutsliders-post-slider .gutslider-content-wrapper {
    height: auto !important;
    margin-top: 200px;
}

.wp-block-gutsliders-post-slider .gutslider-overlay {
    opacity: 0 !important;
}

.wp-block-gutsliders-post-slider .post-excerpt {
    margin-bottom: 0 !important;
    text-align: left;
}

.wp-block-gutsliders-post-slider .post-title {
    text-align: left;
    font-weight: 600 !important;
}

.wp-block-gutsliders-post-slider .post-title:before {
    content: '';
    width: 100%;
    height: 200px;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
}


/* ---- Footer ---- */
.footer-contact p a {
    display: flex;
    gap: 8px;
}

footer .wp-social-link {
    background: rgb(245 245 245 / 20%);
    padding: 10px !important;
    border-radius: 0;
}

/* ---- Header: sticky white nav bar only (top maroon contact strip scrolls away) ----
   The white nav's WP block ancestors are only as tall as the header itself, so plain
   `position: sticky` runs out of room and un-sticks once the header scrolls off screen.
   custom.js instead toggles `.is-fixed` once the page has scrolled past the maroon bar,
   and inserts a same-height spacer so content below doesn't jump. While fixed, it also
   toggles `.is-hidden` to slide the nav away on scroll-down and back in on scroll-up. */
.pe-header-nav {
    z-index: 100;
    transition: box-shadow 0.2s ease;
}

.pe-header-nav.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    padding-right: 30px !important;
    padding-left: 30px !important;
}

.pe-header-nav.is-fixed.is-hidden {
    transform: translateY(-100%);
}

/* Hide the maroon contact strip (location/phone) above the white nav on mobile.
   custom.js measures the white nav's own offset dynamically, so it still fixes
   correctly to the top with this bar gone. */
@media (max-width: 1000px) {
    .wp-block-navigation__overlay-container>.wp-block-group {
        justify-content: space-between;
        padding-bottom: 150px !important;
    }

    nav.wp-block-navigation {
        order: 3;
    }
}

@media (max-width: 767px) {
    .wp-block-template-part>.wp-block-group>.wp-block-group.has-custom-maroon-background-color {
        display: none;
    }

    .pattern-1 {
        width: 50px;
    }

    .pattern-2 {
        width: 125px;
        bottom: 38px;
    }

    .pattern-3 {
        max-width: 67px;
    }

    .pattern-4 {
        width: 70px;
    }

    .pattern-5 {
        width: 125px;
        top: 60px;
    }

    .pattern-6 {
        width: 64px;
    }

    .pattern-7 {
        width: 85px;
        top: -35px;
    }

    .pattern-8 {
        width: 55px;
    }

    .pattern-9 {
        width: 75px;
        top: -38px;
    }

    .pattern-10 {
        width: 80px;
    }

    .pattern-11 {
        width: 182px;
        bottom: 10px;
    }

    .pattern-12 {
        width: 67px;
        top: -33px;
    }

    .pattern-13 {
        width: 80px;
        bottom: -40px;
    }

    .pe-section-trusted .is-type-video {
        margin-top: -100px !important;
    }

    .pe-section-hero {
        padding-bottom: 200px !important;
    }

    .hero-row-style>.wp-block-columns {
        margin-block-start: 25px;
    }

    .campus-info {
        padding: 0 0 10px !important;
    }

    .pe-column-spacing {
        padding: 30px 25px 0 !important;
    }

    .wp-block-gutsliders-post-slider .swiper-button-next,
    .wp-block-gutsliders-post-slider .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
        top: 25px !important;
    }

    .pe-testimonial .swiper-button-prev,
    .pe-testimonial .swiper-button-next {
        width: 40px;
        top: 25px !important;
    }
}

/* ---- Header nav: push hamburger breakpoint from core's default 600px to 1000px ---- */
@media (min-width: 600px) and (max-width: 1000px) {
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }

    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }
}