/* Package Category Showcase for Elementor
 * Responsive layout: desktop / laptop / tablet / mobile
 */

.pcse-grid,
.pcse-grid *,
.pcse-grid *::before,
.pcse-grid *::after {
    box-sizing: border-box;
}

.pcse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.pcse-card {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.pcse-image-wrap {
    flex: 0 1 var(--pcse-image-width, 42%);
    width: var(--pcse-image-width, 42%);
    max-width: var(--pcse-image-width, 42%);
    min-width: 0;
    min-height: 290px;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
}

.pcse-image-wrap img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
}

.pcse-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: #efefef;
}

.pcse-content {
    position: relative;
    z-index: 2;
    flex: 0 1 var(--pcse-content-width, 58%);
    width: var(--pcse-content-width, 58%);
    max-width: var(--pcse-content-width, 58%);
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 8px 8px 14px;
    overflow: hidden;
}

.pcse-title,
.pcse-description,
.pcse-list-heading,
.pcse-package-title,
.pcse-package-title a,
.pcse-button,
.pcse-cta-highlight,
.pcse-cta-main,
.pcse-cta-with,
.pcse-cta-subheading,
.pcse-cta-button {
    overflow-wrap: anywhere;
    word-break: normal;
}

.pcse-title {
    margin: 0 0 12px;
    color: #111;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 500;
}

.pcse-description {
    margin: 0;
    color: #787878;
    font-size: 13px;
    line-height: 1.65;
}

.pcse-list-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 10px;
    padding: 12px;
    border: 1px dashed #f7b900;
    border-radius: 10px;
    background: #fffdf7;
    overflow: hidden;
}

.pcse-list-heading {
    margin: 0 0 10px;
    color: #111;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.pcse-package-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    min-width: 0;
}

.pcse-package-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    min-width: 0;
    color: #111;
    font-size: 11px;
    line-height: 1.45;
}

.pcse-bullet {
    flex: 0 0 auto;
    line-height: inherit;
}

.pcse-package-title,
.pcse-package-title a {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.pcse-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 12px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #f8bd00;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
    white-space: normal;
    transition: all .3s ease;
}

.pcse-button:hover,
.pcse-button:focus {
    color: #fff;
    text-decoration: none;
}

.pcse-empty {
    font-size: 12px;
    color: #888;
}

.pcse-notice {
    padding: 14px;
    border: 1px dashed #d6d6d6;
    background: #fafafa;
    color: #555;
}

/* Middle CTA block */
.pcse-cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 12px 8px;
    overflow: visible;
}

.pcse-cta-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.pcse-cta-title-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.pcse-cta-highlight {
    max-width: 100%;
    color: #f0b400;
    font-size: 36px;
    line-height: 1.05;
    font-weight: 700;
}

.pcse-cta-main {
    max-width: 100%;
    color: #3e3e3e;
    font-size: 32px;
    line-height: 1.08;
    font-weight: 700;
}

.pcse-cta-with {
    max-width: 100%;
    color: #3e3e3e;
    font-size: 32px;
    line-height: 1.08;
    font-weight: 700;
}

.pcse-cta-subheading {
    width: 100%;
    max-width: 780px;
    margin-top: 4px;
    color: #4f4f4f;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 300;
}

.pcse-cta-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.pcse-cta-button {
    flex: 1 1 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    text-align: center;
    white-space: normal;
}

.pcse-cta-button-secondary {
    background: transparent;
    color: #d6a300;
    border-color: #d6a300;
}

.pcse-cta-button-primary {
    background: #f0b400;
    color: #ffffff;
    border-color: #f0b400;
}

.pcse-cta-button:hover,
.pcse-cta-button:focus {
    text-decoration: none;
}

/* Responsive behavior
 * Desktop (>1366px): use Elementor's selected desktop columns.
 * Laptop (1025px-1366px): FORCE 2 category cards per row.
 * Each laptop card remains 2-column internally: image left / content right.
 * Responsive JS places the CTA immediately after the 3rd category card on laptop,
 * where it occupies the 4th grid cell beside the 3rd card.
 * Tablet / mobile (<=1024px): 1 category card per row, stacked.
 */
@media (min-width: 1025px) and (max-width: 1366px) {
    .elementor-widget-pcse_package_category_showcase .pcse-grid,
    .elementor-widget-pcse_package_category_showcase > .elementor-widget-container > .pcse-grid,
    .pcse-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .pcse-grid > .pcse-card {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 340px !important;
        overflow: hidden !important;
    }

    .pcse-image-wrap {
        order: 1 !important;
        flex: 0 0 var(--pcse-image-width, 42%) !important;
        width: var(--pcse-image-width, 42%) !important;
        max-width: var(--pcse-image-width, 42%) !important;
        min-width: 0 !important;
        min-height: 340px !important;
        height: auto !important;
        align-self: stretch !important;
    }

    .pcse-image-wrap img,
    .pcse-image-placeholder {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
    }

    .pcse-content {
        order: 2 !important;
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        align-self: stretch !important;
        justify-content: flex-start !important;
        margin-top: 0 !important;
        transform: none !important;
        padding: 14px 10px 10px 16px !important;
    }

    .pcse-title {
        margin-bottom: 9px;
    }

    .pcse-description {
        line-height: 1.5;
    }

    .pcse-list-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px;
    }

    .pcse-package-list {
        gap: 7px;
    }

    .pcse-button {
        margin-top: 10px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    /* Laptop: CTA is the 4th grid item, directly beside the 3rd category card. */
    .pcse-cta-card {
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 340px !important;
        align-self: stretch !important;
        justify-content: center !important;
        padding: 24px 18px !important;
    }

    .pcse-cta-highlight {
        font-size: 30px;
    }

    .pcse-cta-main,
    .pcse-cta-with {
        font-size: 27px;
    }

    .pcse-cta-subheading {
        font-size: 22px;
    }
}

/* Tablet + mobile: stacked, with Right Content first and image second. */
@media (max-width: 1024px) {
    .elementor-widget-pcse_package_category_showcase .pcse-grid,
    .elementor-widget-pcse_package_category_showcase > .elementor-widget-container > .pcse-grid,
    .pcse-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .pcse-grid > .pcse-card {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        overflow: visible;
    }

    .pcse-content {
        order: 1 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        align-self: stretch !important;
        justify-content: flex-start !important;
        margin-top: 0 !important;
        transform: none !important;
        padding: 14px 12px;
    }

    .pcse-image-wrap {
        order: 2 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 300px;
        height: auto;
        align-self: stretch !important;
    }

    .pcse-image-wrap img,
    .pcse-image-placeholder,
    .pcse-list-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .pcse-cta-card {
        grid-column: 1 / -1 !important;
        min-height: 0;
    }

    .pcse-cta-buttons {
        flex-wrap: wrap;
    }

    .pcse-cta-button {
        flex: 1 1 180px;
    }
}

@media (max-width: 767px) {
    .pcse-card {
        gap: 10px;
    }

    .pcse-content {
        padding: 10px 8px 8px;
    }

    .pcse-image-wrap {
        min-height: 240px !important;
        height: 240px;
    }

    .pcse-image-wrap img,
    .pcse-image-placeholder {
        height: 100%;
        min-height: 0;
    }

    .pcse-cta-card {
        gap: 14px;
        padding: 14px 6px;
    }

    .pcse-cta-title-line {
        gap: 5px 7px;
    }

    .pcse-cta-highlight {
        font-size: 28px;
    }

    .pcse-cta-main,
    .pcse-cta-with {
        font-size: 24px;
    }

    .pcse-cta-subheading {
        font-size: 22px;
    }

    .pcse-cta-buttons {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
    }

    .pcse-cta-button {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .pcse-card { padding: 6px; }
    .pcse-image-wrap { min-height: 210px !important; height: 210px; }
    .pcse-content { padding: 8px 6px 6px; }
    .pcse-title { margin-bottom: 8px; }
    .pcse-list-box { margin-top: 8px; padding: 10px; }
    .pcse-package-item { gap: 6px; }
    .pcse-button { padding-left: 14px; padding-right: 14px; }
    .pcse-cta-card { padding-left: 4px; padding-right: 4px; }
    .pcse-cta-highlight { font-size: 25px; }
    .pcse-cta-main, .pcse-cta-with { font-size: 22px; }
    .pcse-cta-subheading { font-size: 19px; line-height: 1.2; }
    .pcse-cta-button { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 375px) {
    .pcse-image-wrap { min-height: 190px !important; height: 190px; }
    .pcse-content { padding-left: 4px; padding-right: 4px; }
    .pcse-list-box { padding: 9px; }
}
