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

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

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

.cbg-header {
    position: relative;
    overflow: visible;
    padding: 60px 0;
}

/* Remove background video positioning */
.cbg-video-wrap {
    position: relative;
    width: 100%;
    max-width: 350px; /* Limit width for portrait video */
    height: 500px; /* Fixed height instead of percentage */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.cbg-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

/* Content positioning */
.cbg-header .container {
    position: relative;
    z-index: 2;
}

.cbg-header .row {
    align-items: center;
}

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

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

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

.cbg-header .text-description {
    color: #304366;
    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: 100%;
    border-radius: 20px;
    background: #fff;
    padding: 40px 27px 40px 30px;
    color: #304366;
}

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

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

.black-block strong {
	color: #304366;
}

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

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

.cbg-header .button-left,
.cbg-header .button-right {
    flex: 0 0 auto;
}

.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 .content-container {
        padding-right: 15px;
        margin-bottom: 40px;
    }

    .cbg-header .half-width-block.black-block {
        max-width: 100%;
        background: #fff;
        padding: 30px 20px;
    }

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

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

    .cbg-header .wp-block-buttons a {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .cbg-header {
        padding: 40px 0 80px;
    }

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

    .cbg-header .half-width-block.black-block {
        padding: 25px 15px;
    }

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

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

    .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-video-wrap {
        margin-top: 30px;
        max-width: 280px; /* Smaller on mobile */
        height: 400px; /* Shorter on mobile */
    }
}

@media (max-width: 480px) {
    .cbg-header {
        padding: 30px 0;
    }
}