/*
Theme Name: CDR News
Template: twentytwentythree
Author: Global Legal Group (Andras Tokai)
Description: CDR News theme
Version: CDR_2.0_b20240306
Requires at least: 6.5
Tested up to: 6.6.0
Requires PHP: 8.1
*/

/* Apply Google Fonts to body and headings */
html, body {
    font-family: 'Jost', sans-serif!important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif!important;
}

.widegroup {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.main_cdr_nav li {
    height: 3rem;
    gap: 0px;
}

.main_cdr_nav li a {
    padding: 0;
}

.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container,
.wp-block-navigation__container .inverse {
    background: #2F2F2F;
    color: #fff;
    padding: 0 2rem;
}

.wp-block-navigation__container .inverse .wp-block-navigation-item__content {
    color: #fff!important;
}

.woocommerce h1 span {
    font-size: 1.1rem;
    font-weight: 600;
}

.woocommerce .woocommerce-breadcrumb,
.yoast-breadcrumbs {
    font-size: 0.6rem;
    color: #c3c3c3;
}

.sidebar {
    padding-left:var(--wp--preset--spacing--30);
    flex-basis:33.33%
}


.nopadding {
    padding: 0!important;
}

.nomargin {
    margin: 0!important;
}


.cdr_main_menu {
    gap: 1rem;
}

/*
.conference_list_item {
    font-size: 0.8rem;
}

.conference_list_item h3 {
    font-size: 1rem;
    font-weight: bold;
}
*/

.btn_addtocart_chapterpdf {
    background: url('../png/chapter.png') no-repeat center left;
}

.btn_addtocart_singlepdf {
    background: url('../svg/single.svg') no-repeat center left;
}

.btn_addtocart_multipdf {
    background: url('../svg/multi.svg') no-repeat center left;
}

.cart_btn {
    border-bottom:1px solid var(--wp--preset--color--primary); 
    color: #003D58; 
    width: 80%; 
    margin: 0 0 0.5rem 0; 
    font-size:0.75rem!important;
    font-style:normal;
    font-weight:600;
    text-transform:uppercase; 
    padding:0 0 0 0.5rem; 
    text-align: left;
}

.page-numbers {
    list-style: none;
}

.page-numbers li {
    display: inline;
}

.quick-events .event {
    height: 190px;
    border-radius: 19px;
    position: relative;
    padding-left: 115px;
    padding-top: 20px;
    margin-bottom: 20px;
    padding-right: 20px;
}

.quick-events .event .date {
    position: absolute;
    left: 0;
    border-top-left-radius: 19px;
    border-bottom-left-radius: 19px;
    top: 0;
    height: 160px;
    width: 93px;
    background: #6F8013;
    color: #fff;
    font-size: 26px;
    font-weight: 500;
    text-align: center;
    line-height: 28px;
    padding-top: 50px;
}



.quick-events .event.later{
    background:#f4f4f4;
    color:#000;
}

.quick-events .event .date {
    background: var(--wp--preset--color--primary)
}

.quick-events .event .date strong {
    display: block;
    line-height: 3rem;
}

.quick-events .event p {
    font-size: 1rem;
}


/**
List of Events
**/

.events-list .event-box {
    border: 0.5px solid #969AA3;
    border-radius: 19px;
    border-bottom: 0;
    padding: 35px;
    padding-bottom: 100px;
    border-top-left-radius: 0;
    position: relative;
    height: auto;
}

.events-list .event-box .date {
    position: absolute;
    left: -62px;
    height: 38px;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 38px;
    padding: 0 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transform: rotate(-90deg);
    top: 23px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
}

.events-list .event-box .cta {
    position: absolute;
    width: 100%;
    bottom: 0;
    height: 50px;
    background: var(--wp--preset--color--primary);
    line-height: 50px;
    font-size: 14px;
    border-bottom-left-radius: 19px;
    border-bottom-right-radius: 19px;
    transition: 0.3s ease all;
    right: 0;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 19px;
    border-bottom-left-radius: 19px;
    font-size: 14px;
    color: #FFFFFF;
    letter-spacing: 0;
    text-align: center;
    border: 0;
    margin-top: 40px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.boxnews {
    background: #F0F2F7;
    padding: 25px;
    margin-bottom: 50px;
    border-radius: 4px;
}

.wp-element-button {
    color: #fff;
}

.leaky-paywall-input-error {
    display: none!important;
}

#leaky_paywall_message {
    background: var(--wp--preset--color--primary);
    color: var(--wc-primary-text);
}

#leaky_paywall_message h3 {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--wc-primary-text);
}

#leaky_paywall_message h4 {
    padding: 0;
    margin: 1rem 0;
    font-size: 1.5rem;
}

.paywall {
    font-size: 0.8rem;
    text-align: center;
}


.leaky_paywall_message_wrap {
    padding: 0;
}

#leaky_paywall_message a:visited,
#leaky_paywall_message a {
    background: var(--wc-primary-text);
    padding: 1rem;
    display: block;
    text-align: center;
    color: var(--wp--preset--color--primary);
    border: 1px solid var(--wp--preset--color--primary);
    text-decoration: none;
    margin: 1rem auto;
    max-width: 50%;
}

#leaky_paywall_message a:hover {
    color: var(--wc-primary-text);
    background: var(--wp--preset--color--primary);
    border: 1px solid var(--wc-primary-text);
}

/* General form styling */
.gf__form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 1rem auto;
}

/* Two-column layout for form controls */
.gf__control {
    width: calc(50% - 10px); /* Adjusts for two-column layout */
    display: flex;
    flex-direction: column;
}

/* Label styling */
.gf__control label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

/* Input field styling */
.gf__control input,
.gf__control select,
.gf__control textarea {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* Input focus effect */
.gf__control input:focus,
.gf__control select:focus,
.gf__control textarea:focus {
    border-color: #0073e6;
    outline: none;
}

/* Checkbox styling */
.gf__control input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    margin-right: 10px; /* Space between checkbox and label */
    vertical-align: middle; /* Align checkbox with label */
}

/* Checkbox when checked */
.gf__control input[type="checkbox"]:checked {
    background-color: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    position: relative;
}

/* Checkbox tick styling */
.gf__control input[type="checkbox"]:checked::before {
    content: '\2713'; /* Checkmark character */
    font-size: 18px;
    color: white;
    position: absolute;
    left: 3px;
    top: -2px;
}

/* Align checkboxes with labels */
.gf__control .checkbox-label {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}


.gf__control--Pref_CDR_WeeklyNewsletter--4245,
.gf__control--Pref_ALB_Newsletter--4245 {
    width: 100%;
}

.gf__submit {
    padding: 1rem;
    background-color: var(--wp--preset--color--primary);
    border: 2px solid var(--wp--preset--color--primary) !important;
    color: #fff;
}

/*
.wp-post-image {
    display: none;
}
*/

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .gf__control {
        width: 100%; /* Stacks in one column on smaller screens */
    }
}

.cm-header-1, .dark-skin .cm-header-1 {
    background-color: #26475b;
}

.wp-site-blocks {
    padding: 0!important;
}

.custom-logo-link {
    margin: 0!important;
}

.cm-header-col-1 {
    gap:0;
}

.mzb-slider .swiper .swiper-slide.style3 .mzb-post-content .mzb-post-categories a,
.mzb-featured-posts .mzb-post-categories a {
    display: inline-block;
    background-color: #26475b;
    padding: 5px 15px;
    border-radius: 0;
    text-decoration: none;
    color: #fff;
    font-weight: var(--mzb-font-weight--semibold);
    font-size: 13px;
    line-height: 1.2;
}

.mzb-read-more a {
    color: #003d58;
    font-size: 1.2rem;
}


.cm-header-1 .cm-row {
    padding: 4px 0;
}

.ace-news-middle-header {
    border-bottom: 1px solid #fff;
}


.ace-news-middle-header .ace-news-middle-header-wrapper .middle-header-newsadvert img {
    max-width: 728px;
    max-height: 90px;
}

.custom-logo-link img {
    max-height: 100px;
    height: 100px;
    max-width: 175px;
    width: 175px;
}

.ace-news-middle-header {
    padding: 1rem 0;
}

.ace-news-top-header {
    background-color: #fff!important;
}

.ace-news-top-header .ace-news-top-header-container .top-header-left .flash-news-section .flash-news-area .marquee .js-marquee-wrapper .js-marquee ul li a {
    color: #000 !important;
}

.blog-post-container.tile-layout .blog-post-inner .blog-post-detail .post-categories a,
.ace-news-middle-header,
.ace-news-navigation .ace-news-navigation-container {
    background: #003d58!important;
    color: #fff;
}

.blog-post-container.tile-layout .blog-post-inner .blog-post-detail .post-categories a {
    padding: 5px 10px!important;
}


.home_category_title {
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: var(--background-color);
    margin: 2rem 0 0.5rem 0;
}

.ace-news-navigation .ace-news-navigation-container .main-navigation li a:hover {
    background-color: #000!important;
    color: #fff!important;
}

.cdr-authors-section {
    margin-top: 20px;
    padding: 2rem;
    background: #003d58;
    color: #fff;
}

.cdr-author {
    margin-bottom: 20px;
}

.cdr-author .short-bio {
    font-size: 0.9rem;
}

.cdr-author img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
}

.cdr-author h3 {
    margin: 10px 0 5px;
    color: #fff;
    font-size: 1.4rem;
}

.cdr-author h4 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0px;
    padding: 0px;
}

.cdr-author p {
    margin: 5px 0;
    font-size: 0.8rem;
}

.cdr-short-bio {
    margin-top: 10px;
    font-size: 0.8rem;
}

:root {
    --primary-color: #003d58!important;
}


h2.gb-post-grid-section-title {
    display: block;
    color: var(--primary-color);
    font-size: 21px;
    font-weight: 500;
    line-height: 60px;
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 8px;
}

/**
Grid System 
**/

.custom-post-grid.columns-1 {
    display: grid;
    grid-template-columns: 1fr; /* One column */
    gap: 20px; /* Adjust the spacing between items */
}

.custom-post-grid.columns-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 20px; /* Adjust the spacing between items */
}

.custom-post-grid.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns */
    gap: 20px; /* Adjust the spacing between items */
}

.custom-post-grid.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four columns */
    gap: 20px; /* Adjust the spacing between items */
}

a.custom-post-url {
    color: #222328;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    display: inline;
    padding: 10px 0;
    text-decoration: none;
}

a.custom-post-url:hover {
    color: #26475b;
}

.custom-post-item-no-thumbnail {
    border-left: 2px solid var(--wp--preset--color--primary);
    padding: 0;
}


.custom-post-item {
    border: 1px solid #ddd;
    padding: 0 0 1rem 0;
    background: #fff;
    overflow: hidden;
}

.custom-post-thumbnail {
    height: 200px;
    max-height: 200px;
}

.custom-post-thumbnail img {
    width: auto;
    height: 200px;
    max-height: 200px;
}

.custom-post-content {
    margin: 0;
    padding: 0 0.8rem;
}

.custom-post-content h3 {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    margin: 0;
    padding: 8px 0px;
}

.custom-post-meta {
    font-size: 0.85rem;
    color: #666;
}

.custom-post-excerpt {
    font-size: 1rem;
}


.essential_intelligence_content h1 {
    font-size: 1.4rem;
}

.essential_intelligence_content h2 {
    font-size: 1.25rem;
}

.essential_intelligence_content h3 {
    font-size: 1.1rem;
}



.page-numbers {
    list-style: none;
}

.page-numbers li {
    display: inline;
}

.cdr_simple_book h2 {
    font-size: 24px;
}

.cdr_simple_book .wc-block-components-product-image {
    max-width: 175px;
}

.cdr_simple_book .wp-block-post-excerpt {
    font-size: 1rem;
}

.cdr_simple_book .wp-block-add-to-cart-form {
    display: none;
}

.cdr_simple_book .wp-block-woocommerce-product-meta {
    display: none;
}

.product-general ul {
    list-style-type: none; /* Remove the dots */
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 columns for desktop */
    gap: 20px; /* Gap between items */
}

.product-jurisdiction ul {
    list-style-type: none; /* Remove the dots */
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 20px; /* Gap between items */
}

h3.sectiontitle {
    font-size: 1.1rem;
    color: #003D58;
    font-weight: 500;
    line-height: 60px;
    border-bottom: 1px solid #003D58;
    margin-bottom: 8px;
}

.grouped-products ul li {
    border-bottom: 1px solid #ddd;
    color: var(--wp--preset--color--primary);
    padding: 15px 0 5px 0;
    align-items: left;
    justify-content: left;
    text-align: left;
    min-height: 65px; /* Ensures same height */
    transition: background-color 0.3s;
}

.grouped-products ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #000;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.grouped-products ul li:hover {
    background-color: #d3d3d3; /* Light grey on hover */
}

.wp-block-tag-cloud a {
    display: inline-block;
    margin-right: 5px;
    background: #F4F7F0;
    padding: 10px;
    color: var(--wp--preset--color--primary);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
}

.cdrboxshadow {
    box-shadow: 0 0 7px 4px rgba(213, 213, 213, 0.17);
}

.cdrboxmargin {
    margin: 2rem;
}

.cdrboxpadding {
    padding: 2rem;
}


.flag-icon-lg {
    width: 80px; /* Larger width */
    height: 60px; /* Larger height */
}

.chapter_meta {
    font-size: 0.85rem;
}

.latest_intelligence_listitem h3 {
    font-size: 1.2rem!important;
}

.entry-content h3 {
    /*font-size: 1.2rem;*/
    color: var(--wp--preset--color--primary);
}


.text-container .long-text {
    display: block;
    overflow: hidden;
    max-height: 6em; /* Adjust based on font size */
    line-height: 1.5em;
    position: relative;
    transition: max-height 0.3s ease;
}

.text-container.expanded .long-text {
    max-height: none;
}

.read-more-link {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    color:var(--wp--preset--color--primary);
}

.cdrsearch label {
    font-size: 13px;
    color:var(--primary-color);
    font-weight: bold;
    
}

.cdrsearch .full input, 
.cdrsearch .full select {
    font-size: 14px;
    margin: 1%;
    padding: 1%;
    width: 98%;
}

.cdrsearch .full {
    width: 100%;
    clear: both;
    padding: 1rem 0 0 0;
}

.cdrsearch .half input, 
.cdrsearch .half select {
    font-size: 14px;
    margin: 0 0 0 2%;
    padding: 1%;
    width: 98%;
}


.cdrsearch .half.left {
    width: 48%;
    float: left;
    margin: 1% 2% 1% 0;
}

.cdrsearch .half.right {
    width: 48%;
    float: right;
    margin: 1% 2% 1% 0;
}

/**
Cookie banner color overwrite
**/
#onetrust-consent-sdk #onetrust-banner-sdk a[href], 
#onetrust-consent-sdk #onetrust-banner-sdk a[href] font, 
#onetrust-consent-sdk #onetrust-banner-sdk .ot-link-btn {
    color:#003D58!important;
}

#onetrust-consent-sdk #onetrust-pc-btn-handler, 
#onetrust-consent-sdk #onetrust-pc-btn-handler.cookie-setting-link {
    border-color: #003D58!important;
    color:#003D58!important;
}

#onetrust-consent-sdk #onetrust-accept-btn-handler, 
#onetrust-banner-sdk #onetrust-reject-all-handler {
    background-color: #003D58!important;
    border-color: #003D58!important;
}

#onetrust-consent-sdk #onetrust-pc-sdk button:not(#clear-filters-handler):not(.ot-close-icon):not(#filter-btn-handler):not(.ot-remove-objection-handler):not(.ot-obj-leg-btn-handler):not([aria-expanded]):not(.ot-link-btn), 
#onetrust-consent-sdk #onetrust-pc-sdk .ot-leg-btn-container .ot-active-leg-btn {
    border-color: #003D58!important;
    color:#003D58!important;

}


/* Hide on mobile */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }

    .trigger_image {
        width: 42px;
        margin-top: 1.7rem;
    }

    .bod-block-title-closer {
        font-size: 3rem !important;
        padding: 0 0 0 1rem !important;
        color: #f9f9f9 !important;
    }

    .custom-post-grid.columns-1,
    .custom-post-grid.columns-2,
    .custom-post-grid.columns-3,
    .custom-post-grid.columns-4 {
        display: block;
    }

    .custom-post-item {
        border: 1px solid #ddd;
        padding: 0;
        background: #fff;
        margin-bottom: 1rem;
    }
    .grouped-products ul {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }



}

/* Hide on desktop */
@media (min-width: 768px) {
    .hide-on-desktop {
        display: none;
    }
}


/**
* Book customizations
**/

.single-product table {
    max-width: 100%;
    width: 100%;
    border: 1px solid #c6c6c6;
}

.single-product table tr td {
    border: 1px solid #c6c6c6;
}

.flag-icon-englandwales {
    background: url(../png/england-wales.png) no-repeat;
}




/* CDR 2025 */
.mainfeatured .custom-post-item {
    display: flex;
    background-color: #499b9a;
    color:#fff;
    width: 100%;
    padding: 0;
}

.mainfeatured .custom-post-item .custom-post-thumbnail {
    flex: 2;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
}

.mainfeatured .custom-post-item .custom-post-content {
    flex: 1;
}


.mainfeatured .custom-post-item .custom-post-content h3 a {
    font-size: 2.5rem!important;
    line-height: 3rem;
    color: #fff;
}

.mainfeatured .custom-post-item .custom-post-content .custom-post-meta {
    color: #fff;
}

.mainfeatured .custom-post-item .custom-post-thumbnail img {
    max-height: 999px;
    width: auto; /* Let the width adjust proportionally */
    height: 100%; /* Fill the height of the parent */
    display: block; /* Remove potential inline spacing */
}

.sidebarthumbnail .custom-post-item {
    display: flex;
    background: none;
    color:#fff;
    width: 100%;
    padding: 0;
}

.sidebarthumbnail .custom-post-item .custom-post-thumbnail {
    flex: 2;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
}

.sidebarthumbnail .custom-post-item .custom-post-content {
    flex: 3;
}

.custom-post-category {
    color:#ff6347;
    font-size: 0.8rem;
}


