/* button default colour changes for section pages */ 
.DCBcustomButton1 a {background-color:#233E68;}
.DCBcustomButton1 a:hover {background-color:#E4A729;}
.DCBcustomButton2 a {background-color:#E4A729;}
.DCBcustomButton2 a:hover {background-color:#14548F;}


/* =============================
   RESPONSIVE SECTION OVERRIDES
   ============================= */

/* Ensure section rows contain their content */
.section-page-row,
.section-page-content {
    box-sizing: border-box;
    min-width: 0;
}

.section-page-row::after {
    content: "";
    display: block;
    clear: both;
}

/* Prevent images and videos exceeding their containers */
.section-page-row img,
.section-page-row video,
.section-page-row iframe {
    max-width: 100%;
}

.section-page-row img {
    height: auto;
}

.section-page-row video {
    display: block;
    width: 100%;
    height: auto;
}

.section-page-row iframe {
    width: 100%;
    max-width: 100%;
}

.mobileTabletOnly {display:none;}
.mobileTabletbackgroundImage {display: block;margin-bottom:15px;}


/* =====================================================
   TABLET: 768px - 1024px
   ===================================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    .section-page-content {
        width: 100%;
        max-width: 100%;
    }

    .section-page-row {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-page-row-noborders {
        padding-left:0;
        padding-right:0;
    }

    /* Row type 1: text and image */
    .sectionType1textLeft,
    .sectionType1textRight,
    .sectionType1imageLeft,
    .sectionType1imageRight {
        box-sizing: border-box;
        min-width: 0;
    }

    .sectionType1Image {
        display: block;
        max-width: 100%;
        height: auto;
    }

    /* Row type 2: text and bullet columns */
    .sectionType2Text,
    .sectionType2Bullets {
        box-sizing: border-box;
        min-width: 0;
    }

    /* Row type 3: content boxes */
    .sectionBoxDiv {
        box-sizing: border-box;
        min-width: 0;
    }

    .sectionBoxBoxImage {
        background-position: center;
        background-size: cover;
        max-width: 100%;
    }

    .sectionBoxTitle,
    .sectionBoxSubhead,
    .sectionBoxText {
        overflow-wrap: anywhere;
    }

    /* Row type 7: two text columns */
    .sectionTextCol1,
    .sectionTextCol2 {
        box-sizing: border-box;
        min-width: 0;
    }

    /* Text-only sections */
    .sectionTextOnlyHeading,
    .sectionTextOnlySubHead,
    .sectionTextOnlyBody {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Video background section */
    .video-section {
        position: relative;
        max-width: 100%;
        overflow: hidden;
    }

    .background-video {
        max-width: 100%;
    }

    .video-overlay {
        max-width: 100%;
        box-sizing: border-box;
        padding: 25px;
    }

.sectionBoxes2,
.sectionBoxes3,
.sectionBoxes4 {
    width: 45% !important;
    box-sizing: border-box;
}

/* fix to stop clear after every third box */
    .sectionBoxDiv {
        clear: none !important;
        width: 45% !important;
        float: left !important;
        box-sizing: border-box;
        margin-right: 2%;
    }

    .sectionBoxDiv.clearBoth {
        clear: none !important;
    }

} /* end tablet */


/* =====================================================
   MOBILE: 767px and below
   ===================================================== */

@media screen and (max-width: 767px) {

    /* remove background images and display them in the content (as foreground item) */
    .section-page-row {background-image: none!important;}

    .mobileTabletOnly {display:block;}
    .textAlignRight {text-align: left;}


    /* Avoid horizontal overflow */
    #content,
    .page-sections,
    .section-page-content,
    .section-page-row {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .section-page-row {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Row type 1: stack text and image.
       !important overrides the inline widths from PHP. */
    .sectionType1textLeft,
    .sectionType1textRight,
    .sectionType1imageLeft,
    .sectionType1imageRight {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .sectionType1Image {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Row type 2: stack text and bullet columns */
    .sectionType2Text,
    .sectionType2Bullets {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .section-bullet-list {
        max-width: 100%;
        padding-left: 25px;
    }

    .section-bullet-list li {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .sectionBullets1 {
        margin-top:25px;
        float:left;
    }

    /* Row type 3: content boxes */
    .sectionBoxDiv {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 20px;
        box-sizing: border-box;
        clear: both;
    }

    .sectionBoxBoxImage {
        width: 100%;
        max-width: 100%;
        height: 240px !important;
        background-position: center;
        background-size: cover;
    }

    .sectionBoxTitle,
    .sectionBoxSubhead,
    .sectionBoxText {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Row type 7: stack the two text columns */
    .sectionTextCol1,
    .sectionTextCol2 {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .sectionTextCol2 {
        margin-top: 20px;
    }

    /* Row type 8: text-only content */
    .sectionTextOnlyHeading,
    .sectionTextOnlySubHead,
    .sectionTextOnlyBody {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    /* Row type 10: full-width images */
    .section-page-row > div > img {
        max-width: 100%;
        height: auto;
    }

    /* Row type 11: lists */
    .sectionListDiv,
    .sectionListBulletsDiv {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sectionListItem,
    .sectionListBulletItem,
    .sectionListHeader,
    .sectionListFooter {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .sectionListSeparator img {
        max-width: 100%;
        height: auto;
    }

    /* Remove equalised bullet heights on mobile.
       Text wraps differently on narrow screens. */
    [class*="sectionBulletRow"] {
        height: auto !important;
        min-height: 0;
    }

    /* Row type 5: accordion */
    #accordion {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #accordion h3 {
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.4;
    }

    #accordion > div {
        overflow-wrap: anywhere;
    }

    /* Row types 12 and 13: video */
    .section-page-row video {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .video-section {
        position: relative;
        width: 100%;
        max-width: 100%;
        min-height: 300px;
        overflow: hidden;
    }

    .background-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

    .video-overlay {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 25px 15px;
        overflow-wrap: anywhere;
    }

    .video-overlay h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
    }

    .video-overlay p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .video-button {
        display: inline-block;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Responsive typography */
    .sectionTitle {
/*        font-size: clamp(1.25rem, 5vw, 1.7rem); */
    text-align: center;
    font-weight: bold;
        line-height: 1.3;
    }

    .section-page-row p {
        overflow-wrap: anywhere;
    }

    /* Keep buttons within the viewport */
    .sectionBoxButtonDiv {
        max-width: 100%;
        box-sizing: border-box;
    }

    .sectionBoxButtonDiv a {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .sectionTextOnlyHeading { text-align: center; font-size:28px;line-height:34px; }


} /* end size */


/* =====================================================
   SMALL MOBILE: 480px and below
   ===================================================== */

@media screen and (max-width: 480px) {

    .section-page-row {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sectionBoxBoxImage {
        height: 320px !important;
    }

    .sectionTextOnlyHeading {
/*        font-size: clamp(1.4rem, 6vw, 1.8rem); */
        line-height: 1.25;
    }

    .sectionTextOnlySubHead {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .sectionTextOnlyBody {
        line-height: 1.55;
    }

    .video-section {
        min-height: 260px;
    }

    .video-overlay {
        padding: 20px 12px;
    }

}

