/* =========================
   Layout
========================= */

.content-container {
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    padding-top: 130px;
    padding-bottom: 46px;
}

/* =========================
   Header Wrapper
========================= */

.cbg-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(82deg,#14284B 28.06%,rgba(20,40,75,.50) 100%);
	min-height: 800px;

}

/* Video background */
.cbg-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wave-clip {
	z-index: 99;
	position: absolute;
	bottom: -1px;
}

/* Desktop – cinematic cover */
.cbg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

/* Mobile – force vertical fill */
@media (max-width: 768px) {
    .cbg-video {
        width: 160vw;
        height: 160vh;
    }
}

/* Very tall phones */
@media (max-width: 480px) {
    .cbg-video {
        width: 190vw;
        height: 190vh;
    }
}


/* Dark overlay over video */
.cbg-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(82deg,#14284B 28.06%,rgba(20,40,75,.30) 100%);
    z-index: 1;
}

/* Content above video + overlay */
.cbg-header .container {
    position: relative;
    z-index: 2;
}

/* =========================
   Typography
========================= */

.cbg-header h1 p {
    margin-bottom: 0;
}

.cbg-header h1 {
    margin-bottom: 20px;
}

.cbg-header .text-description {
    color: #000;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 20px;
}

.cbg-header  h4 {
	color: #304366;
	font-weight: normal;
	line-height: 1.2;
}

/* =========================
   Content Block
========================= */

.cbg-header .half-width-block.black-block {
    max-width: 649px;
    border-radius: 20px;
    background: #fff;
    padding: 40px 27px 40px 30px;
    color: var(--color-two);
}

.text-accent-dark {
	color: #304366;
}

/* =========================
   Buttons
========================= */

.cbg-header .wp-block-buttons {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wp-block-buttons a {
    color: var(--Willfix-Cyan, #65C8D0);
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 12.5px 15px;
    border-radius: 4px;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--wp--preset--color--custom-1, #2C9EA7);
}

.wp-block-buttons .button-left a {
    background-color: var(--wp--preset--color--custom-1, #2C9EA7);
    color: #fff;
}

.wp-block-buttons .button-right a {
    color: var(--wp--preset--color--custom-1) !important;
    background: none;
    border: 2px solid var(--wp--preset--color--custom-1, #2C9EA7);
}

.wp-block-buttons a:hover {
    color: var(--wp--preset--color--custom-1);
    background-color: var(--color-two);
    border-color: var(--color-two);
}

/* =========================
   Mobile
========================= */

@media (max-width: 992px) {

    .cbg-header .half-width-block.black-block {
        max-width: 100%;
        background: none;
        padding: 0;
    }

    .cbg-header .text-description {
        font-size: 14px;
    }

    .cbg-header h1 {
        margin-bottom: 20px;
    }

    .cbg-header .half-width-block,
    .cbg-header .half-width-block p,
    .cbg-header .half-width-block ul li,
    .cbg-header h1 p span,
    .cbg-header h1 p {
        color: #fff !important;
    }

    .cbg-header .wp-block-buttons a {
        padding: 8.5px 4px;
        font-size: 12px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cbg-header .wp-block-buttons :where(.button-left, .button-right) {
        width: calc(50% - 6.5px);
    }

    .cbg-header .content-container {
        padding-bottom: 30px;
    }

    .cbg-header .wp-block-buttons {
        justify-content: flex-start;
        gap: 13px;
        margin-top: 20px;
    }

    .wp-block-buttons .button-right a {
        background: #fff;
        border-color: #fff;
    }

    .cbg-header .half-width-block ul li {
        background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2365C8D0'/%3E%3Cpath d='M4.36328 8.36364L6.5451 10.9091L11.9996 5.09091' stroke='%23161616' stroke-width='1.45455' stroke-linecap='round'/%3E%3C/svg%3E");
    }
}

/* Fix mobile video cropping */
@media (max-width: 768px) {
    .cbg-header {
        min-height: 70vh;
    }

    .cbg-video {
        width: 100%;
        height: 100%;
        min-width: auto;
        min-height: auto;
        transform: none;
        top: 0;
        left: 0;
        object-fit: cover;
    }

    .cbg-video-wrap {
        overflow: hidden;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .cbg-header {
        min-height: 60vh;
    }
}

