/*!
Theme Name: CBD
Theme URI: https://www.cbwebsitedesign.co.uk/
Author: Creative Brand Design
Author URI: https://www.cbwebsitedesign.co.uk/
Description: Creative Brand Design
Version: 6.0.2
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: cbd
*/

.text-blue-dark {
    color: #2D76A3;
}

.text-green-dark {
    color: #417A65;
}

p>a:not(.btn) {
    /*color: #19B9CA;*/
    color: #2D76A3;
}

.content li a {
    color: #2D76A3;
    font-weight: 700;
}

.content li a:hover {
    opacity: .6;
}

footer {
	position: relative;
	z-index: 2;
}

@media (min-width: 1025px) {
    footer iframe:first-of-type {
        right: 140px;
    }
    footer iframe {
        position: absolute;
        bottom: 0;
        right: 0;
    }
}

.single .article-content.s-margin {
    /*margin-top: 0;*/
}

/* Flip Content Image */
@media (min-width: 1025px) {
	.content-image.flipped > .container > .row {
		flex-direction: row !important;
	}
}
.content-image.flipped .cake:before {
	right: auto;
	left: 3rem;
	-webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
}
.content-image.flipped .cake .dots {
	left: auto;
	right: 0;
	-webkit-transform: translate(56%, 56%);
	transform: translate(56%, 56%);
}

/* Flip Colours */
body.archive:not(.scrolled):not(.author) header .logo {
    filter: brightness(0) invert(1);
}
body:not(.blog):not(.archive) header {
	color: #554D56;
}
body.author header {
    color: #554D56;
}
body.blog:not(.scrolled) header .logo {
	filter: brightness(0) invert(1);
}

.hero {
	background: #fff !important;
	color: #554D56 !important;
}
.hero .dots {
	filter: brightness(0.7);
	-webkit-transform: translate(-9%,-64%);
	transform: translate(-9%,-64%);
}
@media (min-width: 1025px) {
	.hero:before {
		background: #19B9CA;
	}
	.scroll {
		border-color: #fff;
	}
	.scroll svg {
		stroke: #fff;
	}
}

.title-bar.bg-blue:not(.img-bg) {
	background: #fff;
	color: #554D56;
}
.title-bar.bg-blue:not(.img-bg) .breadcrumbs {
	color: #554D56;
}
.title-bar.bg-blue:not(.img-bg) .disco:not(.\!h-20) {
	background: #19B9CA;
	color: #fff;
}

.title-bar-compact .image {
    aspect-ratio: unset;
    padding-bottom: 50%;
}

.title-bar-compact .image img {
    position: absolute;
    top: 0;
    left: 0;
}

.title-bar-compact .text-col {
    margin-bottom: 5rem;
}

@media (max-width: 540px) {
    .title-bar-compact {
        padding-top: 20vw;
    }
    .title-bar-compact .text-col {
        margin-bottom: 0;
    }
}

/* Useful Links Block */

.useful-links .inner:before {
    content: "";
    --tw-bg-opacity: 1;
    background-color: rgb(239 240 241 / var(--tw-bg-opacity));
    position: absolute;
    top: 0;
    left: -3rem;
    width: 100vw;
    height: 100%;
    z-index: -1;
}

@media (min-width: 768px) {
    .useful-links .inner:before {
        width: 75vw;
        left: calc(-4vw - 3rem);
    }
}

.useful-links .inner>.w {
    position: absolute;
    top: 0;
    left: calc(-4vw - 3rem);
    height: 100%;
    opacity: .6;
    z-index: 0;
}

.useful-links .inner>.w svg {
    height: 100%;
}

.useful-links .swiper-slide {
    height: auto;
}

.useful-links .swiper-slide .inner {
    height: 100%;
}

@media (max-width: 1024px) {
    .useful-links .backdrop:before {
        display: none;
    }
}

/* Misc */

.breadcrumbs .separator {
    font-size: 1.6rem;
    margin: 0 0.5rem;
}

.title-bar-text .breadcrumbs .separator {
    color: #19b9ca;
}

/* Hero */

.hero .image .fg img {
    -o-object-position: right bottom;
    object-position: right bottom;
}

.hero h1 {
    line-height: 1.2;
}

.hero .image:before {
    opacity: 0.2;
}

/* Team Grid */

.team-overlay .text-link[href=""] {
    opacity: 0;
    visibility: hidden;
}

/* Single Post */

.addtoany_no_icon {
	display: none !important;
}

/* Content Image */

.content-image .grad-overlay:not(:has(> img)) {
    aspect-ratio: 16 / 9;
}

.content-image .grad-overlay:not(:has(> img)):after {
    display: none;
}

/* Contact Block */

.contact-block .email-link:not(:first-child) {
	margin-top: 0.8em;
}

.contact-block-new figure {
    height: 100%;
    min-height: 300px;
}

.contact-block-new figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1025px) {
    .contact-block-new figure {
        width: calc((100vw/12*5) + 30px) !important;
    }
}

/* Post Carousel */

.post-carousel .swiper-slide {
    height: auto;
}

.post-carousel .swiper-slide .inner {
    height: 100%;
}

.post-carousel .image img {
    -webkit-transform: translate3d(0,0,0) scale(1);
	transform: translate3d(0,0,0) scale(1);
	transition: .4s all;
}

.post-carousel .image:hover img {
	-webkit-transform: translate3d(0,0,0) scale(1.08);
	transform: translate3d(0,0,0) scale(1.08);
}

/* Team */

.team-overlay .inner .content {
	text-align: justify;
}

/* Header */

.case-studies:not(.scrolled) header .burger span,
.blog:not(.scrolled) header .burger span,
.post-type-archive-download:not(.scrolled) header .burger span {
    background: #fff;
}

/* Footer */

footer .gform_before {
	padding: 0;
	margin: 0;
}

footer form input:not(.button) {
	padding: 0 !important;
	font-size: 1.4rem !important;
}

footer form input.button {
	font-size: 1.4rem;
}

footer .legal {
    font-size: 1.2rem;
}

@media (max-width: 998px) {
    footer .legal .menu {
        flex-wrap: wrap;
    }
    footer .legal .menu li {
        width: 33%;
    }
    footer .legal .menu li:first-child a {
        margin: 0.5rem;
        padding: 0.5rem;
    }
}

@media (max-width: 640px) {
    footer .legal .menu li {
        width: 50%;
    }
}

/* Pagination */

.pagination .nav-links {
	display: flex;
	align-items: center;
}

.pagination .nav-links a,
.pagination .nav-links > span {
	padding: 0.5rem;
	margin: 0.5rem;
	transition: 0.3s all;
}

.pagination .nav-links a:hover {
	opacity: 0.6;
}

.pagination .nav-links .current {
	font-weight: 600;
	text-decoration: underline;
}

.pagination .nav-links svg {
	fill: #CC7BAA;
	height: 1.3em;
}

/* Forms */

form input:not([type=submit]),
form textarea {
    font-size: 1.8rem !important;
    padding: 1rem .5rem 1rem 0 !important;
}

.gform_wrapper .gform_validation_errors,
.gform_wrapper .gfield_validation_message, .gform_wrapper .validation_message {
    background: #554d56 !important;
    color: #fff !important;
    padding: 4px 1.5rem !important;
    border: none !important;
}

.gform_wrapper .gform_validation_errors>h2 {
    color: #fff !important;
    display: flex;
    align-items: center;
}

.gform_wrapper .gform_validation_errors>h2 .gform-icon {
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

.gform_wrapper .gfield_error [aria-invalid=true] {
    border-color: #eff0f1 !important;
}

.gform_wrapper.gravity-theme .gfield--type-fileupload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    border-bottom: 1px solid #fff;
}

.gform_fileupload_rules {
    display: none !important;
}

.gform_wrapper.gravity-theme .gfield--type-fileupload input {
    border-bottom: none;
}

.gform_wrapper.gravity-theme .gfield--type-fileupload .gfield_label {
    font-size: 1.8rem;
    font-weight: 400;
    padding: 1rem .5rem 1rem 0;
    margin: 0;
}

/* Privacy Policy hyperlink colour */
.article-content .content p strong a {
	text-decoration: underline;
	color: rgb(220, 182, 38);
}

.article-content .content p strong a:hover {
	color: rgb(25 185 202);
}

/* Job Box tweak */
.role-box table tr {
    vertical-align: top;
}

.role-box table tr td:first-child {
    white-space: nowrap;
    padding-right: 10px;
}

/* Dots on mobile tweaks */
@media (max-width: 768px) {
	.contact .contact-block .form-inner {
		z-index: 10;
	}
}

/* Link to author page */
a.author-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

/* Work template reduce heading */
.work-template-default .s-padding-bottom {
    padding-bottom: 0;
}

.work-template-default .article-content {
    margin-top: 0;
}

/* Reduce margin right on header */
@media(min-width: 1536px) {
    .\32xl\:mr-24 {
        margin-right: 3rem;
    }
}

.contact header {
    background-color: rgb(239, 240, 241);
}

/* Hero Block Changes */
.hero .image {
    opacity: 0;
}

.hero .image.fadeIn {
    animation: fadeInAnimation ease 1.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Article Content change */
.hide-sidebar .sidebar {
    display: none;
}

.hide-sidebar .lg\:w-5\/6 {
    width: 100%;
}

/* Contact Links Block */

.contact-links .box {
    width: 50%;
    display: flex;
}

.contact-links .box::before {
    content: '';
    height: 100%;
    width: 2rem;
    background: currentColor;
}

.contact-links .box .title {
    font-size: 150%;
    line-height: 1.4;
}

.contact-links .box .inner {
    flex: 1;
    transition: 0.3s background-color;
}

.contact-links .box .inner:hover {
    background-color: #dcdade;
}

.contact-links .box .bottom .icon svg {
    height: 5.5rem;
    fill: currentColor;
}

@media (min-width: 600px) {
    .contact-links .box {
        width: calc(100% / 3);
    }
    .contact-links .box .inner {
        padding-left: 3rem;
    }
}

.contact-links > svg {
    height: 100%;
    position: absolute;
    top: 2rem;
    right: -2rem;
    z-index: 0;
    opacity: .4;
    -webkit-animation: animate-svg-stroke-1 4s cubic-bezier(.445,.05,.55,.95) .4s both;
    animation: animate-svg-stroke-1 4s cubic-bezier(.445,.05,.55,.95) .4s both;
}

.dark-bg {
    background-color: rgb(85, 77, 86);
    padding: 20px;
}

.contact-block .side-header>:not(.icon):before {
    background-color: rgb(85, 77, 86);
}

.contact .contact-links .side-header>:not(.icon):before {
    background-color: rgb(85, 77, 86);
}

.text-dark-blue {
    color: rgb(7, 118, 130);
}

.text-dark-green {
    color: rgb(94, 126, 0);
}
/* 10/09/24 */
.gap-6 {
    gap: 3rem;
}
@media (max-width: 1025px) {
    header .button:first-child {
        bottom: 12rem;
    }
}
.wp-block-table {
    width: 100%;
    padding: 0;
    margin-top: 4rem;
    margin-bottom: 4rem;
    border: 1px solid rgb(150 150 150);
    border-radius: 5px;
}
.wp-block-table.w-3\/4 {
    width: 75%;
}
.wp-block-table table th {
    white-space: nowrap;
    color: rgb(85, 77, 86);
    border:none;
}
.wp-block-table table thead {
    border-bottom: 1px solid;
    color: rgb(200 200 200);
    /*--tw-bg-opacity: 1;*/
    /*background-color: rgb(200 200 200 / var(--tw-bg-opacity));*/
}
.wp-block-table table td {
    border: none;
}
/*.wp-block-table table tr:not(:last-child) td {*/
/*    border-bottom: 1px solid rgb(150 150 150);*/
/*}*/
/*.wp-block-table table tr td:not(:last-child),*/
/*.wp-block-table table tr th:not(:last-child) {*/
/*    border-right: 1px solid rgb(150 150 150);*/
/*}*/
.wp-block-table {
    border: none;
}
.wp-block-table table tr th {
    border-right: none;
    border-bottom: 1px solid rgb(25 185 202);
}
.wp-block-table table tr td {
    border-right: none;
    border-bottom: 1px solid rgb(150 150 150);
}
.wp-block-table tfoot {
    border-color: rgb(150 150 150);
}
.wp-block-table tfoot tr td {
    border-bottom: none;
}

/* Stripe Styling */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #f0f0f0;
}
.wp-block-table.is-style-stripes-even tbody tr:nth-child(even) {
    background-color: #f0f0f0;
}
.wp-block-table.first-col-stripe tr th:first-child,
.wp-block-table.first-col-stripe tr td:first-child {
    background-color: #f0f0f0;
}
.wp-block-table.last-col-stripe tr th:last-child,
.wp-block-table.last-col-stripe tr td:last-child {
    background-color: #f0f0f0;
}
.wp-block-table.col-stripes-odd tr th:nth-child(odd),
.wp-block-table.col-stripes-odd tr td:nth-child(odd) {
    background-color: #f0f0f0;
}
.wp-block-table.col-stripes-even tr th:nth-child(even),
.wp-block-table.col-stripes-even tr td:nth-child(even) {
    background-color: #f0f0f0;
}
.wp-block-table.cell-top-left tbody tr:first-child td:first-child {
    background-color: #f0f0f0;
}
.wp-block-table.cell-top-right tbody  tr:first-child td:last-child {
    background-color: #f0f0f0;
}
.wp-block-table.cell-bottom-left tbody tr:last-child td:first-child {
    background-color: #f0f0f0;
}
.wp-block-table.cell-bottom-right tbody tr:last-child td:last-child {
    background-color: #f0f0f0;
}
@media(min-width: 1025px) {
    header {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}
.article-content .button {
    margin: 1.5rem 0;
}

.btn.btn-yellow {
    margin: 0;
    color: rgb(85 77 86 / var(--tw-text-opacity));
    font-weight: 600;
}

/* Content image stylised boxed */
.content-image.boxed {
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgb(85 77 86);
}
.content-image.boxed .cake .dots img {
    display: none;
}
.content-image.boxed .cake:before,
.content-image.boxed .grad-overlay:after {
    content: none;
}
.content-image.boxed.s-margin {
    margin: max(10px, 2vw) 0;
}
.content-image.boxed h2 {
    margin-top: 0;
    font-size: 3rem;
}
@media (min-width: 1025px) {
    .content-image.boxed .lg\:w-1\/2 {
        width: 75%;        
    }
   .content-image.boxed .lg\:w-5\/12 {
        width: 20%;
   }
   .content-image.boxed .container {
       width: calc(100% - 1.5rem);
       max-width: none;
   }
}
body.archive:not(.author) header a.logo,
body.blog:not(.author) header a.logo {
    filter: brightness(1) invert(0) !important;
}
header {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
@media (min-width: 1025px) {
    header {
        padding-top: 1rem;
        padding-bottom: 1rem;
        --tw-text-opacity: 1;
        color: rgb(85 77 86 / var(--tw-text-opacity));
    }
}
header {
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .03);
}
.filters input[type="text"] {
    width: 100%;
    border-bottom: solid 1px #DCB626;
}
.filters input[type="text"]::placeholder {
    color: rgb(85, 77, 86);
}

.filters button.absolute {
    top: 0;
    right: 0;
}

.filters button.absolute svg {
    width: 1.6rem;
    fill: #DCB626;
}
.filters .select2 {
    width: 100% !important;
    padding-right: 1rem;
    
}
.filters .category {
    margin-top: 1rem;
    gap: 1rem;
    justify-content: flex-end;
    align-items: end;
}
.form-group {
    margin: auto 0;
    width: 100%;
}
.filters .btn {
    height: fit-content;
}
@media(min-width: 1024px){
    .filters .category {
        margin-top: 0;
    }
}
.posts-wrapper {
    position: relative;
}
.posts-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 100;
}

.posts-wrapper.loading::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    opacity: 1;
    pointer-events: all;
    z-index: 100;
}

.post-password-form {
    min-height: calc(100vh - 600px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.post-password-form p:has(label) {
    display: flex;
    background-color: rgb(85, 77, 86);
    color: #fff;
    padding: 2rem;
    align-items: flex-end;
    gap: 2rem;
}
.post-password-form p label {
    display: flex;
    flex-direction: column;
}
.post-password-form input:not([type=submit]) {
    display: inline-block;
    height: 40px;
    padding: 9px 10px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 22px;
    color: #33475b;
    border: 1px solid #cbd6e2;
    box-sizing: border-box;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    border-radius: 3px;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
    box-sizing: border-box;
    padding: 0 15px;
    min-height: 27px;
    background-color: #f5f8fa;
    border-color: #c87872;
}

.wp-block-table.small-table table {
    width: 60%;
    min-width: 500px;
}
.wp-block-table.small-table table tr th {
    border-bottom: 3px solid rgb(25 185 202);
}
