/*******************************************************
    COMMON
*******************************************************/
.swal2-popup {
    font-size: 16px;
}
.modal-dialog.modal-xl {
    width: 95%;
    max-width: 1170px;
}
.form-group .select2-container--default .select2-selection--single {
    height: 34px;
    border-radius: 0;
    border-color: #d2d6de;
}
.form-group .select2-container {
    width: 100% !important;
}
.form-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
}
.help-block.help-block--initial {
    color: #666666 !important;
}
.help-block.text-muted {
    color: #777 !important;
}
.content-block-placeholder-image {
    position: relative;
    padding-top: 75.25%;
    border: 2px solid transparent;
    background-color: rgba(0, 0, 0, 0.1);
    display: block;
    cursor: pointer;
    max-height: 500px;
    overflow: hidden;
}
.content-block-placeholder-image img {
    width: 100%;
}
.content-block-placeholder-image.placeholder-image--short {
    padding-top: 25%;
}
.content-block-image-controls {
    text-align: right;
    background-color: rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}
.content-block-image-controls .btn {
    color: #dd4b39;
    border: 0;
    border-radius: 0;
    background-color: transparent;
}
.content-block-image-controls .btn:hover {
    background-color: rgba(0, 0, 0, 0.075);
}
.content-block-image-controls:not(.hidden) ~ .content-block-placeholder-image {
    margin-top: -28px;
}
.content-block-placeholder-image .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    color: rgba(0, 0, 0, 0.2);
}
.content-block-placeholder-image.has-image {
    background-color: transparent;
    padding: 0;
    border: 0;
}
.content-block-image-filename {
    font-size: 1.2rem;
    text-align: center;
    padding: 3px 10px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.5rem;
    word-break: break-all;
}
.content-block-placeholder-image.has-file .placeholder-icon {
    color: #3c8dbc;
}
.content-block-placeholder-image.has-file .placeholder-icon .fa-file-pdf-o {
    color: #e84c4c;
}
.content-block-placeholder-image.has-image .placeholder-icon {
    display: none;
}
.content-block-placeholder-image .placeholder-progress-bar {
    position: absolute;
    left: 50%;
    bottom: 20%;
    transform: translate(-50%, -50%);
    width: 200px;
    max-width: 75%;
    z-index: 1;
}
.content-block-placeholder-image .placeholder-progress-bar .progress {
    margin: 0;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    height: 5px;
}
.content-block-placeholder-image .placeholder-progress-bar .progress-bar {
}
.content-block-placeholder-image.cb_image_dropzone.cb_content_image--in.cb_content_image--hover {
    background-color: rgba(0, 0, 0, 0.05);
    border: 2px dashed rgba(0, 0, 0, 0.2);
}
.content-block-placeholder-image.cb_image_dropzone.cb_content_image--uploading {
    filter: grayscale(0.9);
}
.content-block-placeholder-image.cb_image_dropzone.cb_content_image--uploading img {
    opacity: 0.25;
}
#content-page-builder .save-sort-order:disabled {
    display: none;
}
#content-block-edit-modal .modal-header,
#content-block-edit-modal .modal-footer {
    background-color: rgba(0, 0, 0, 0.025);
}

#content-page-builder.content-page-builder--disabled {
    position: relative;
}
#content-page-builder.content-page-builder--disabled .content-page-builder__snippets {
    opacity: 0.25;
    pointer-events: none;
}
#content-page-builder.content-page-builder--disabled .content-page-builder--loader {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    z-index: 2;
}

#content-page-builder .content-page-builder__snippets .snippet__title {
    font-weight: 300;
    font-size: 16px;
}

/*******************************************************
    MODAL
*******************************************************/
.cb-popover {
    max-width: 340px;
}
.cb-popover-body {
    overflow: auto;
    margin: -5px -10px;
}
.cb-popover__item {
    float: left;
    cursor: pointer;
    padding: 5px;
    margin: 5px;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.2s;
    width: 104px;
}
.cb-popover__item img {
    width: 100%;
}
.cb-popover__item:hover {
    opacity: 1;
    box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.2);
}

/*******************************************************
    SNIPPETS
*******************************************************/
.content-page-builder__snippets {
    margin-bottom: 1rem;
    background-color: rgba(29, 30, 35, 0.045);
    padding: 1rem 0;
}
.cpb__snippet {
    background-color: #ffffff;
    margin: 0.5rem 1.5rem;
    display: flex;
    transition: box-shadow 0.2s;
}
.cpb__snippet__handle {
    border-left: 4px solid #528fb3;
    padding: 0 15px;
    display: flex;
    align-items: center;
    color: #777777;
    cursor: pointer;
    cursor: -moz-grab;
    cursor: -webkit-grab;
    cursor: grab;
}
.cpb__snippet__heading {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
}
.cpb__snippet__content {
    display: flex;
    flex: 1 1 auto;
}
.cpb__snippet__content .cpb__snippet__handle:active {
    cursor: pointer;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
    cursor: grabbing;
}
.cpb__snippet__thumb {
    width: 75px;
    padding: 5px 0;
    padding-top: 10px;
    opacity: 0.8;
    flex-shrink: 0;
}
.cpb__snippet__thumb img {
    width: 100%;
}
.cpb__snippet__template-content {
    padding: 10px 15px;
    flex: 1 1 auto;
}
.cpb__snippet__template-content p {
    margin: 0;
}
.cpb__snippet__feature-list {
    margin: 0.5rem 0;
}
.cpb__snippet__feature-list li {
    display: inline-block;
    position: relative;
    padding-left: calc(5px + 4px);
}
.cpb__snippet__feature-list li::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    height: calc(100% - 2px);
    width: 5px;
    background-color: rgba(0, 0, 0, 0.15);
}
.cpb__snippet__feature-list li:not(:last-child) {
    margin-right: 15px;
}
.cpb__snippet__controls {
    height: 100%;
    font-size: 0px;
    display: flex;
}
.cpb__snippet__controls .btn {
    height: 100%;
    border: 0px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0);
}
.cpb__snippet__controls .btn:hover,
.cpb__snippet__controls .btn:active {
    color: #333333;
    background-color: rgba(0, 0, 0, 0.04);
}
.cpb__snippet__content .cpb__snippet__delete:hover,
.cpb__snippet__content .cpb__snippet__delete:active {
    color: #dd4b39;
}
.cpb__snippet__content .btn.cpb__snippet__toggle-status[data-status='0'] {
    color: #888888;
}
.cpb__snippet__content .btn.cpb__snippet__toggle-status[data-status='0']:hover,
.cpb__snippet__content .btn.cpb__snippet__toggle-status[data-status='0']:active {
    color: #333333;
}

/* when sorting */
.cpb__snippet.ui-sortable-placeholder {
    visibility: visible !important;
    background-color: rgba(0, 0, 0, 0.035);
    border-left: transparent;
}
.cpb__snippet.ui-sortable-helper {
    opacity: 0.9;
    box-shadow: 0 5px 35px -8px rgba(0, 0, 0, 0.2);
}

/* when unpublished */
.cpb__snippet:not(.ui-sortable-placeholder).cpb__snippet--unpublished {
    background-color: rgba(255, 255, 255, 0.65);
}
.cpb__snippet:not(.ui-sortable-placeholder).cpb__snippet--unpublished .cpb__snippet__handle {
    border-left-color: #e85e5e;
}
.cpb__snippet:not(.ui-sortable-placeholder).cpb__snippet--unpublished .cpb__snippet__thumb {
    opacity: 0.65;
}

/*******************************************************
    COMMON
*******************************************************/
.cb-bg-type-preview-box {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
}
.cb-bg-type-preview-box.text-white {
    color: white;
}
.cb-bg-type-preview-box.preview-box--green {
    background-color: #59695e;
}

/*******************************************************
    CONTENT BLOCK BACKGROUND TYPES
*******************************************************/

/*******************************************************
    NESTED ROW FIX
    The site grid adds padding-left/right on every .row
    and on every col-* column. When page-builder blocks
    nest a .row inside another .row the padding stacks,
    pushing content inward so edges don't align.
    Reset the inner .row padding and pull it back with
    negative margins to counteract the column gutter,
    the same technique Bootstrap uses for nested rows.

    On mobile (<40em), col-sm-* columns have no padding
    so we must not apply negative margins or content
    will overshoot the outer container edges.
*******************************************************/
@media only screen and (min-width: 40em) {
    .row .row {
        padding-left: 0;
        padding-right: 0;
        margin-left: -1.25rem;
        margin-right: -1.25rem;
    }
}

/* Default spacing between content blocks */
.cms-page__content__block {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Hero overlay image block doesn't need top/bottom padding on the outer wrapper */
.cms-page__content__block:has(.cms-hero-overlay) {
    padding-top: 0;
    padding-bottom: 0;
}

.cb-block.cms-hero-overlay .hero-overlay__body {
    padding-top: 2.5rem;
}

/* Spacing exclusion overrides - only affects outer wrapper spacing */
.cms-page__content__block:has(.no-padding-top) {
    padding-top: 0 !important;
}

.cms-page__content__block:has(.no-padding-bottom) {
    padding-bottom: 0 !important;
}

.cms-page__content__block:has(.no-padding) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.cb-bg-light-grey {
    background-color: #e9e8e8;
}

.cb-bg-dark-grey {
    background-color: #231f20;
    color: #ffffff;
}

.cb-bg-dark-grey h2,
.cb-bg-dark-grey h3,
.cb-bg-dark-grey h4,
.cb-bg-dark-grey p,
.cb-bg-dark-grey a {
    color: #ffffff;
}

.cb-bg-dark-grey .hero-overlay__subtitle--dark {
    color: #ffffff;
    opacity: 0.7;
}

.cb-bg-line {
    border-top: none;
}

.cb-line-separator {
    border-top: 1px solid #cccccc;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

@media (min-width: 40em) {
    .cb-line-separator {
        margin-top: -5rem;
    }
}

@media (min-width: 60em) {
    .cb-line-separator {
        margin-top: -6rem;
    }
}

@media (max-width: 39.99em) {
    .cb-line-separator {
        margin-top: -3rem;
    }
}

/*******************************************************
    HERO IMAGE WITH HEADING OVERLAY (front-end)
    Full-width image with dark gradient overlay on left,
    heading and subtitle positioned over the image.
*******************************************************/

.cms-hero-overlay {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cms-hero-overlay a.hero-overlay__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hero-overlay__wrapper {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.hero-overlay__image {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* Dark overlay covering the left 50% */
.hero-overlay__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Text content positioned over the image */
.hero-overlay__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    z-index: 1;
    pointer-events: none;
}

/* When using grid columns (boxed mode), reset padding so grid handles alignment */
.hero-overlay__content.row {
    padding: 0;
    margin: 0;
    padding-bottom: 2rem;
}

/* Below-image content area, vertical padding matches the overlay content */
.hero-overlay__body {
    padding: 2rem 0;
}

.hero-overlay__subtitle {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #ffffff;
    opacity: 0.9;
}

@media (min-width: 40em) {
    .hero-overlay__subtitle {
        margin-bottom: 1.5rem;
    }
}

.hero-overlay__subtitle--dark {
    color: #333333;
    opacity: 0.7;
}

@media (min-width: 40em) {
    .cb-columns-row {
        margin: 0 -2.25rem;
    }
}

.hero-overlay__body h2,
.hero-overlay__body h3,
.hero-overlay__body h4 {
    margin-top: 0rem;
}

.hero-overlay__heading {
    margin: 0;
    padding: 0;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    text-transform: none;
}

@media (min-width: 40em) {
    .hero-overlay__content:not(.row) {
        padding: 2.5rem 3rem;
    }

    .hero-overlay__content.row {
        padding-bottom: 2.5rem;
    }

    .hero-overlay__body {
        padding: 2.5rem 0;
    }

    .hero-overlay__subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        /* margin-bottom: 0.75rem; */
    }

    .hero-overlay__heading {
        font-size: 2.25rem;
    }
}

@media (min-width: 60em) {
    .hero-overlay__content:not(.row) {
        padding: 3rem 4rem;
    }

    .hero-overlay__content.row {
        padding-bottom: 3rem;
    }

    .hero-overlay__body {
        padding: 3rem 0;
    }

    .hero-overlay__subtitle {
        font-size: 0.8rem;
    }

    .hero-overlay__heading {
        font-size: 2.75rem;
    }
}

@media (min-width: 80em) {
    .hero-overlay__heading {
        font-size: 3rem;
    }
}

/* Small screens: full-width text with bottom gradient */
@media (max-width: 39.99em) {
    .hero-overlay__wrapper {
        min-height: 200px;
    }

    .hero-overlay__content:not(.row) {
        padding: 1.5rem;
    }

    .hero-overlay__content.row {
        padding-bottom: 1.5rem;
    }

    .hero-overlay__body {
        padding: 1.5rem 0;
    }

    .hero-overlay__gradient {
        width: 100%;
        background: rgba(0, 0, 0, 0.3);
    }

    .hero-overlay__heading {
        font-size: 1.5rem;
    }
}

/* Hero overlay - video play icon */
.hero-overlay__wrapper--video {
    cursor: pointer;
}

.hero-overlay__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    z-index: 2;
    opacity: 0.85;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    pointer-events: none;
}

.hero-overlay__play-icon svg {
    width: 100%;
    height: 100%;
}

.hero-overlay__wrapper--video:hover .hero-overlay__play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
}

/* Three column image wrapper for play icon positioning */
.three-col__image-wrap {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.three-col__image-wrap .hero-overlay__play-icon {
    width: 50px;
    height: 50px;
}

/* CTA link below columns */
.cb-cta {
    margin-top: 2rem;
}

.cb-cta__link {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.cb-cta__link:hover {
    text-decoration: underline;
}

.cb-cta__link .icon {
    margin-left: 0.25rem;
}

.cb-cta--flush {
    margin-top: 0;
}

/*******************************************************
    FILE LIST
*******************************************************/
.file-list {
    margin-top: 1rem;
}

.file-list__main-heading {
    margin-top: 0;
}

.file-list__item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e9e8e8;
}

.file-list__item:first-child {
    border-top: 1px solid #e9e8e8;
}

.file-list__item__icon {
    flex-shrink: 0;
    width: 2.5rem;
    font-size: 1.4rem;
    color: #999;
    padding-top: 0.15rem;
}

.file-list__item__icon .fa-file-pdf-o {
    color: #e84c4c;
}

.file-list__item__icon .fa-file-image-o {
    color: #3c8dbc;
}

.file-list__item__content {
    flex: 1;
    min-width: 0;
}

.file-list__item__heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-list__item__heading .item__heading__element {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.file-list__item__heading .item__heading__element a {
    text-decoration: none;
}

.file-list__item__heading .item__heading__element a:hover {
    text-decoration: underline;
}

.file-list__item__meta {
    font-size: 0.75rem;
    color: #999;
}

.file-list__item__meta span:not(:last-child)::after {
    content: '\00b7';
    margin: 0 0.3rem;
}

.file-list__item__description {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/*******************************************************
    BUTTONS
*******************************************************/
.cb-btn {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.cb-btn:hover {
    text-decoration: none;
}

/* Primary solid */
.cb-btn-primary {
    background-color: #231f20;
    border-color: #231f20;
    color: #ffffff;
}

.cb-btn-primary:hover {
    background-color: #3a3536;
    border-color: #3a3536;
    color: #ffffff;
}

/* Primary outline */
.cb-btn-primary-outline {
    background-color: transparent;
    border-color: #231f20;
    color: #231f20;
}

.cb-btn-primary-outline:hover {
    background-color: #231f20;
    color: #ffffff;
}

/* Secondary solid */
.cb-btn-secondary {
    background-color: #e9e8e8;
    border-color: #e9e8e8;
    color: #231f20;
}

.cb-btn-secondary:hover {
    background-color: #d4d3d3;
    border-color: #d4d3d3;
    color: #231f20;
}

/* Secondary outline */
.cb-btn-secondary-outline {
    background-color: transparent;
    border-color: #cccccc;
    color: #231f20;
}

.cb-btn-secondary-outline:hover {
    background-color: #e9e8e8;
    border-color: #e9e8e8;
    color: #231f20;
}

/* Dark background button overrides */
.cb-bg-dark-grey .cb-btn-primary-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.cb-bg-dark-grey .cb-btn-primary-outline:hover {
    background-color: #ffffff;
    color: #231f20;
}

.cb-bg-dark-grey .cb-btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: transparent;
    color: #ffffff;
}

.cb-bg-dark-grey .cb-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.cb-bg-dark-grey .cb-btn-secondary-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.cb-bg-dark-grey .cb-btn-secondary-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/*******************************************************
    TEXT + IMAGE FLEX LAYOUT
    Used by text-left-image-right and text-right-image-left
    blocks. Vertically centers text and image columns.
*******************************************************/
.cb-text-image-flex-wrapper {
    display: flex;
    flex-direction: column;
}

.cb-text-image-flex {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.cb-text-image-flex__text,
.cb-text-image-flex__image {
    min-width: 0;
}

.cb-text-image-flex__image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 39.99em) {
    .cb-text-image-flex {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cb-text-image-flex__text,
    .cb-text-image-flex__image {
        flex-basis: 100% !important;
        width: 100%;
    }
}

.margin-bottom-md {
    margin-bottom: 2rem;
}