/*!
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: 28.06.24
Text Domain: cbd
*/

/* Private Pages */
.post-password-form {
    height: 70vh;
    height: 70svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.post-password-form > p {
    width: 100%;
    text-align: center;
    font-size: 115%;
}

.post-password-form label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.post-password-form input[type=password] {
    padding: 0.75rem 1.5rem;
    background: none;
    border: 1px solid #fff;
    border-radius: 0.3rem;
}

.post-password-form input[type=submit] {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 0.3rem;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s opacity;
    margin-top: 1.5rem;
}

.post-password-form input[type=submit]:hover {
    opacity: 0.7;
}

/* Base */
.pt-20 {
    padding-top: 5rem;
}

.left-\[4\%\] {
    left: 4%;
}

.right-0 {
    right: 0;
}

.right-\[-11\%\] {
    right: -11%;
}

.opacity-\[12\%\] {
    opacity: 12%;
}

.opacity-30 {
    opacity: .3;
}

.h-\[90svh\] {
    height: 90svh;
}

.size-\[66rem\] {
    height: 66rem;
    width: 66rem;
}

.size-\[116rem\] {
    height: 116rem;
    width: 116rem;
}

.text-30, .text-36 {
    letter-spacing: -.04em;
    line-height: 1.2;
}

.text-30 {
    font-size: clamp(2.5rem, 1.56vw, 3rem);
    font-weight: 400;
}

.text-50 {
    font-size: clamp(3.1rem, 2.7vw, 5rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1.2;
}

.\!font-light {
    font-weight: 300 !important;
}

.font-bold {
    font-weight: 700;
}

.text-\[96\%\] {
    font-size: 96%;
}

.text-\[15\.6rem\] {
    font-size: 15.6rem;
}

.img-contain img, .img-contain svg {
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    width: 100%;
}

@media (min-width: 1025px) {
    .lg\:pt-32 {
        padding-top: 8rem;
    }
}

@media (min-width: 1281px) {
    .xl\:w-\[40rem\] {
        width: 40rem;
    }
}

@media (min-width: 1536px) {
    .\32xl\:w-\[48rem\] {
        width: 48rem;
    }
}

/* Admin Bar */
.admin-bar > header {
    top: 32px;
}

@media (max-width: 1025px) {
    .admin-bar .menu-overlay {
        top: 32px;
        height: calc(100vh - 32px);
    }

    .admin-bar .menu-overlay-bg figure {
        top: 32px;
        height: calc(100% - 32px);
    }
}

.admin-bar > main {
    margin-top: 32px;
}

@media (max-width: 782px) {
    .admin-bar > header {
        top: 46px;
    }

    .admin-bar .menu-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }

    .admin-bar .menu-overlay-bg figure {
        top: 46px;
        height: calc(100% - 46px);
    }

    .admin-bar > main {
        margin-top: 46px;
    }
}

@media (max-width: 600px) {
    #wpadminbar {
        position: fixed;
    }
}

/* Header */
@media (max-width: 1025px) {
    header .menu-overlay {
        padding-top: 10rem;
    }
}

@media (max-width: 1025px) {
    header .menu {
        padding-bottom: 5rem;
    }
}

/* Language */
.wpml-ls-legacy-dropdown {
    width: auto;
}

.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle {
    padding: 0 3.5rem 0 0;
    line-height: 1;
    background: transparent;
    border: none;
}

.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:after {
    content: "";
    border: none;
    position: absolute;
    right: 0;
    top: 50%;
    border-radius: 50%;
    height: 2.5rem;
    width: 2.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(30 68 147 / var(--tw-bg-opacity));
    padding: 6px;
    transform: translateY(-50%);
    background-image: url(img/icons/arrow-down.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 13px 14px;
}

.bg-blue-lightSemi .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:after {
    background-color: transparent;
}

.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover > a {
    color: inherit;
    background: inherit;
}

.wpml-ls-legacy-dropdown a {
    padding: 0;
    background-color: inherit;
    color: inherit;
    border: none;
    border-top: 1px solid;
}

.wpml-ls-legacy-dropdown a span {
    display: inline-block;
    padding: 1.25rem 0.5rem;
    text-transform: uppercase;
    font-size: 93%;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
    --tw-text-opacity: 1;
    color: rgb(17 39 85 / var(--tw-text-opacity));
    border-top: 1px solid;
    --tw-border-opacity: 1;
    border-color: rgb(5 5 5/var(--tw-border-opacity));
}

.bg-blue-lightSemi .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
    --tw-bg-opacity: 1;
    background-color: rgb(69 116 217 / var(--tw-bg-opacity));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    --tw-border-opacity: 1;
    border-color: rgb(255 255 255/var(--tw-border-opacity));
}

.wpml-ls-legacy-dropdown a:focus, 
.wpml-ls-legacy-dropdown a:hover {
    --tw-text-opacity: 1;
    color: rgb(219 30 60 / var(--tw-text-opacity));
}

.bg-blue-lightSemi .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:focus, 
.bg-blue-lightSemi .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a:hover {
    --tw-text-opacity: 1;
    color: rgb(219 30 60 / var(--tw-text-opacity));
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    right: auto;
    border: none;
    max-height: 0;
    -webkit-transform: perspective(600px) rotateX(-90deg);
    -webkit-transform-origin: 50% 0;
    transition: .25s;
}

.wpml-ls-legacy-dropdown .wpml-ls-current-language:focus .wpml-ls-sub-menu, 
.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover .wpml-ls-sub-menu {
    max-height: 100%;
    -webkit-transform: perspective(600px) rotate3d(0, 0, 0, 0);
    visibility: visible;
}

/* Pagination */
.pagination-block .pagination {
    align-items: center;
    display: flex;
    font-size: 90%;
    font-weight: 400;
    gap: 1.25rem;
    justify-content: center;
    --tw-text-opacity: 1;
    color: rgb(5 5 5 / var(--tw-text-opacity));
}

.pagination-block .pagination .page-numbers:not(.dots) {
    align-items: center;
    border-radius: 9999px;
    border-width: 1px;
    display: flex;
    height: 3.6rem;
    justify-content: center;
    width: 3.6rem;
    --tw-border-opacity: 1;
    border-color: rgb(69 116 217 / var(--tw-border-opacity));
    padding: .5rem;
}

.pagination-block .pagination a.page-numbers:hover,
.pagination-block .pagination .current.page-numbers {
    --tw-border-opacity: 1;
    border-color: rgb(219 30 60 / var(--tw-border-opacity));
}

.pagination-block .pagination .arrow {
    align-items: center;
    border-radius: 9999px;
    border-width: 1px;
    display: flex;
    height: 3.6rem;
    justify-content: center;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    width: 3.6rem;
    --tw-border-opacity: 1;
    border-color: rgb(5 5 5 / var(--tw-border-opacity));
    padding: 1rem;
    transition: all .3s;
}

.pagination-block .pagination .prev.page-numbers {
    margin-right: 1.25rem;
}

.pagination-block .pagination .next.page-numbers {
    margin-left: 1.25rem;
}

.pagination-block .pagination .arrow:hover {
    --tw-text-opacity: 1;
    color: rgb(219 30 60 / var(--tw-text-opacity));
}

.pagination-block .pagination .arrow svg {
    height: 2rem;
    width: 3.4rem;
    fill: #050505;
    transition: all .3s;
}

.pagination-block .pagination .arrow:hover svg {
    fill: #db1e3c;
}

/* Button */
.btn.btn-back span:before {
    background: 50% / contain no-repeat url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15.478' height='14.937'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='1.4'%3E%3Cpath d='M.7 7.468h13.783M8.011.99l6.478 6.478-6.478 6.478'/%3E%3C/g%3E%3C/svg%3E");
    content: "";
    display: inline-block;
    height: 1em;
    margin-right: 1rem;
    position: relative;
    transition: all .5s;
    width: 1em;
    transform: rotate(180deg);
}

.btn.btn-back span:after {
    content: none;
}

/* Select */
select.form-control option {
    color: inherit;
}

/* Posts */
.card-with-image .title {
    line-height: 1.4;
}

/* Ajax Loading */
.ajax_loading {
    position: relative;
}

.ajax_loading > * {
    opacity: 0.3;
    pointer-events: none;
}

.ajax_loading:after {
    content: '';
    width: 100%;
    height: 100%;
    margin: auto;
    background: url(img/loading.gif) center/10rem no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.content a {
    --tw-text-opacity: 1;
    color: rgb(219 30 60 / var(--tw-text-opacity));
    text-decoration-line: underline;
}
.sidebar-content .content ul li {
    font-size: 14px;
    font-weight: 400;
}

.content ol {
    margin: 1.25rem 0;
    padding: 0 1.5em;
}

.content ol.wp-block-list {
    list-style: auto;
}

.s-article .content ul li {
    font-size: 14px;
}
@media (min-width: 1025px) {
    .sidebar-content .content ul li {
        font-size: 18px;
    }
    .s-article .content ul li {
        font-size: 16px;
    }
}
.wp-block-quote {
    position:relative;
    padding: 0 2rem;
}
.wp-block-quote::before,
.wp-block-quote::after {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 216C0 149.7 53.7 96 120 96l8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-8 0c-30.9 0-56 25.1-56 56l0 8 64 0c35.3 0 64 28.7 64 64l0 64c0 35.3-28.7 64-64 64l-64 0c-35.3 0-64-28.7-64-64l0-32 0-32 0-72zm256 0c0-66.3 53.7-120 120-120l8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-8 0c-30.9 0-56 25.1-56 56l0 8 64 0c35.3 0 64 28.7 64 64l0 64c0 35.3-28.7 64-64 64l-64 0c-35.3 0-64-28.7-64-64l0-32 0-32 0-72z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    position: absolute;
}
.wp-block-quote::before {
    top: 0;
    left: 0;
}
.wp-block-quote::after {
    right: 0;
    bottom: 0;
    transform: rotate(180deg);
}
.wp-block-quote p {
    font-weight: 700;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.h3, .h4, h3, h4 {
    font-weight: 500;
}
@media (min-width: 1025px) {
    .lg\:grid-cols-\[minmax\(0\2c 1fr\)_minmax\(0\2c 1fr\)\] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
.featured-event {
    display: flex;
    flex-wrap: wrap;
}
.featured-event figure {
    height: 20rem;
}
@media(min-width: 1025px){
    .featured-event figure {
        height: 100%;
    }
}
.featured-event .event-content {
    flex-grow: 1;
}
.featured-event .event-content > div {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (min-width: 1025px) {
    .article-hero .title {
        width: 80%;
    }
}
@media (max-width: 1025px) {
    header .menu {
        align-items: flex-start;
    }
}
header .menu .current-menu-item {
    --tw-text-opacity: 1;
    color: rgb(5 5 5 / var(--tw-text-opacity));
}
header .menu .current-menu-item > a {
    --tw-text-opacity: 1;
    color: rgb(219 30 60 / var(--tw-text-opacity));
}

.menu-item-has-children .sub-menu > li {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
}
.menu-item-has-children .sub-menu > li:first-child {
    padding-top: 1.5rem;
}
.menu-item-has-children .sub-menu > li:last-child {
    padding-bottom: 1.5rem;
}

li.menu-item-has-children > a:after {
    content: "";
    display: block;
    position: relative;
    width: 1rem;
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 1rem;
    margin-bottom: .5rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    vertical-align: middle;
}
header .menu>li>.sub-menu a {
    position: relative;
}
header .menu>li>.sub-menu a:before {
    bottom: 0;
    content: "";
    height: 100%;
    height: 1px;
    left: 0;
    position: absolute;
    top: 0;
    top: auto;
    width: 100%;
    width: 0;
    --tw-bg-opacity: 1;
    background-color: rgb(219 30 60 / var(--tw-bg-opacity));
    transition: all .5s;
}
header .menu>li>.sub-menu a:hover:before {
    width: 100%;
}

@media (min-width: 1024px) {
    .menu-item-has-children > .sub-menu {
        display: none;
    }
    .menu-item-has-children > .sub-menu {
        background-color: rgb(255 255 255/var(--tw-bg-opacity));
        border-radius: 20px;
        box-shadow: 0 3px 6px rgba(0,0,0,.16);
        transition: all .5s;
        white-space: nowrap;
    }
    .menu-item-has-children:hover > .sub-menu {
        position: absolute;
        display: block;
    }
    /*.menu-item-has-children:hover > .sub-menu .menu-item-has-children > .sub-menu {*/
    /*    position: relative;*/
    /*    display: block;*/
    /*    white-space: nowrap;*/
    /*    box-shadow: none;*/
    /*}*/
    .menu-item-has-children:hover > .sub-menu .menu-item-has-children > .sub-menu {
        position: absolute;
        top: 0;
        left: 100%;
    }
}
@media (max-width: 1024px) {
    header .menu>li>a {
        justify-content: space-between;
    }
    header .menu>li {
        width: 100%;
    }
    .menu-item-has-children > .sub-menu {
        height: 0;
        pointer-events: none;
        opacity: 0;
        transition: all .3s;
    }
    .active.menu-item-has-children > .sub-menu {
        height: auto;
        pointer-events: all;
        opacity: 1;
    }
    li.menu-item-has-children > a:after {
        margin-left: 2rem;
    }
    header .menu>li>a:before {
        content: none;
    }
}

.wp-block-embed__wrapper iframe {
    aspect-ratio: 19 / 12;
    width: 100% !important;
    height: auto !important;
    margin: 0 15px !important;
}
@media(min-width: 1024px){
    .wp-block-embed__wrapper iframe {
        width: 66% !important;
        margin: auto !important;
    }
}
.wp-block-buttons .wp-block-button__link {
    color: #fff;
    text-decoration: none;
    border: 1px solid;
}
.wp-block-buttons .wp-block-button__link:hover {
    border-color: rgb(219,30,60);
    background-color: #fff !important;
    color: rgb(219,30,60);
}
/* Nested bullet lists: indent, hanging text and a hollow red bullet so
   sub-points read as children of the item above (CWS-10620, 18 Sep 2026) */
.content ul ul { margin: .5em 0 0; padding: 0 0 0 1.75em; }
.content ul ul li { padding-left: 1.4em; margin-top: .5em; margin-bottom: .5em; }
.content ul ul li::before { position: absolute; left: 0; top: .6em; margin: 0; background: transparent; border: 2px solid rgb(219 30 60); width: .45em; height: .45em; box-sizing: border-box; }

/* Numbered lists: undo the Tailwind preflight reset so numbers show (CWS-10620, 21 Sep 2026) */
.content ol { margin: 1.25rem 0; padding: 0 0 0 1.5em; list-style: decimal; }
.content ol li { display: list-item; margin: .5em 0; }
.content ol ol { list-style: lower-alpha; margin: .5em 0; }
.content ul ol li::before { content: none; }
