/*
Theme Name: CB4U
Version: 2.1.7
Author: WP_D_E_V
Text Domain: casinobonusesforu
*/

/* Header shadow like Figma */
.cbfu-header {
    padding: 10px 0;

    background: #fff;
    box-shadow: 0 4px 4px 0 rgba(22, 22, 22, 0.1);
}

/* Keep header row aligned */
.cbfu-header__row {
    width: 100%;
}

/* Space below header */
main.wp-block-group {
    margin-top: 20px;
}

@media (min-width: 1024px) {
    main.wp-block-group {
        margin-top: 40px;
    }
}

/* Load more spacing */
.wp-block-buttons {
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .wp-block-buttons {
        margin-top: 20px;
    }
}

/* =========================================
   LOGO WIDTH
========================================= */

.cbfu-logo img {
    width: 220px;
    max-width: 220px;
    height: auto;
    display: block;
}

.cbfu-logo {
    flex: 0 0 auto; /* prevent flex shrink */
}

/* Desktop: center the nav, keep logo left + search right */
@media (min-width: 1024px) {
    .cbfu-header__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    /* let nav take the middle space */
    .cbfu-nav {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }

    /* keep logo from shrinking */
    .wp-block-site-logo {
        flex: 0 0 auto;
    }

    /* keep search on right */
    .cbfu-search {
        flex: 0 0 360px; /* adjust if needed */
        max-width: 360px;
    }
}

/* Mobile: hide search (Figma shows only logo + burger) */
@media (max-width: 1023px) {
    .cbfu-search {
        display: none !important;
    }
}

/* Search pill styling like Figma */
.cbfu-search .wp-block-search__inside-wrapper {
    position: relative;
}

/* Search pill */
.cbfu-search .wp-block-search {
    position: relative;
    width: 100%;
}

/* Input */
.cbfu-search .wp-block-search__input {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #BDBDBD; /* adjust if needed */
    padding: 0 52px 0 18px; /* reserve space for icon */
    background: #fff;
    box-sizing: border-box;
}

/* Icon button INSIDE input */
.cbfu-search .wp-block-search__button {
    position: absolute;
    right: 16px; /* inset like Figma */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Icon size */
.cbfu-search .wp-block-search__button svg {
    width: 18px;
    height: 18px;
    fill: #ED7A20;
}

/* Remove default focus ring on button (keep input focus accessible) */
.cbfu-search .wp-block-search__button:focus {
    outline: none;
}

/* Default: mobile first */
.wp-block-post-template {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.wp-block-post-terms a,
.cb4u-post-card-meta a {
    background: linear-gradient(
            180deg,
            #F19329 0%,
            #E33304 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Mobile content padding 20px */
main.wp-block-group {
    padding-inline: 20px;
}

@media (min-width: 1024px) {
    main.wp-block-group {
        padding-inline: 0;
    }
}

/* =========================================
   HEADER MENU
========================================= */

/* =========================================
   BURGER BUTTON
========================================= */

.cbfu-menu-toggle {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;

    position: relative;
    z-index: 10000;
}

/* =========================================
   SVG BURGER → CLOSE ANIMATION
========================================= */

.cbfu-burger path {
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-box: fill-box;
    transform-origin: center;
}

/* Hide long bottom line in default state */
.cbfu-burger .line3-long {
    opacity: 0;
}

/* ==============================
   OPEN STATE
============================== */

body.cbfu-menu-open .line1 {
    transform: translateY(9.5px) rotate(45deg);
}

body.cbfu-menu-open .line2 {
    opacity: 0;
}

body.cbfu-menu-open .line3-short {
    opacity: 0;
}

body.cbfu-menu-open .line3-long {
    opacity: 1;
    transform: translateY(-9.5px) rotate(-45deg);
}

/* =========================================
   HEADER MENU RESET
========================================= */

.cbfu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cbfu-nav li {
    margin: 0;
    padding: 0;
}

.cbfu-nav a {
    text-decoration: none;
}

/* =========================================
   MOBILE FIRST MENU
========================================= */

.cbfu-nav {
    display: none;
    flex-direction: column;
    margin-top: 20px;
}

.cbfu-nav.is-open {
    display: flex;
}

.cbfu-nav ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Desktop */
@media (min-width: 1024px) {

    .cbfu-menu-toggle {
        display: none;
    }

    .cbfu-nav {
        display: flex !important;
        justify-content: center;
        margin-top: 0;
    }

    .cbfu-nav ul {
        flex-direction: row;
        gap: 24px;
    }
}

/* =========================================
   MOBILE MENU OVERLAY
========================================= */

@media (max-width: 1023px) {

    #cbfu-menu {
        display: none;
    }

    body.cbfu-menu-open #cbfu-menu {
        display: flex;
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: 9999;

        /* CENTER CONTENT */
        align-items: center;
        justify-content: start;
        padding-top: 8rem;
    }

    /* Vertical stack */
    #cbfu-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center; /* horizontal center */
        gap: 28px;

        list-style: none;
        margin: 0;
        padding: 0;
    }

    #cbfu-menu a {
        font-size: 24px;
        font-weight: 600;
        color: #161616;
        text-decoration: none;
    }

    body.cbfu-menu-open {
        overflow: hidden;
    }
}

/* Desktop: show normal menu */
/* =========================================
   DESKTOP MENU (FIGMA EXACT)
========================================= */

@media (min-width: 1024px) {

    #cbfu-menu {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #cbfu-menu ul {
        display: flex;
        align-items: center;
        gap: 32px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #cbfu-menu li {
        margin: 0;
        padding: 0;
    }

    #cbfu-menu a {
        color: #161616;
        text-decoration: none;

        font-weight: 500;
        font-size: 14px;
        line-height: 150%;
        letter-spacing: 0;

        display: inline-block;
        padding: 6px 0;
        transition: color 0.2s ease;
    }

    #cbfu-menu a:hover {
        color: #E33304;
    }

    #cbfu-menu .current-menu-item > a,
    #cbfu-menu .current-menu-ancestor > a {
        color: #E33304;
    }
}

/* =========================================
   ARCHIVE TITLE SPACING
========================================= */

.archive .wp-block-query-title {
    margin-bottom: 40px;
}

/* =========================================
   HOME SPACING
========================================= */

.igp-sticky-carousel + .igp-sticky-dots {
    margin-bottom: 40px;
}

/* Desktop */
@media (min-width: 1024px) {

    /* Sticky section 3 columns */
    /*.cbfu-sticky .wp-block-post-template {*/
    /*    grid-template-columns: repeat(3, 1fr);*/
    /*}*/
    /* Main grid 2 columns */
    .cbfu-main .wp-block-post-template,
    .archive .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }

    .wp-block-post-title {
        font-size: 22px;
    }

    /* Desktop search width */
    .cbfu-search {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .cbfu-search .wp-block-search {
        width: 100%;
    }

    .cbfu-search .wp-block-search__input {
        width: 100%;
    }
}

/* ===== Post Card ===== */

.cb4u-post-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Image */
.cb4u-post-card-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    display: block;
    /*transition: transform .3s ease;*/
}

/*.cb4u-post-card:hover .cb4u-post-card-image img {*/
/*    transform: scale(1.03);*/
/*}*/

/* Title */
.cb4u-post-card-title {
    margin: 10px 0 0;
    line-height: 1.25;
    font-size: 1.125rem;
}

.cb4u-post-card-title a {
    text-decoration: none;
    color: inherit;
}

.cb4u-post-card-title a:hover {
    text-decoration: underline;
}

/* Meta (date) */
.cb4u-post-card-meta {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.7;
}

/* Pagination */
.wp-block-query-pagination {
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

@media (max-width: 767px) {
    .cbfu-header,
    .cbfu-footer {
        padding-inline: 20px;
    }
}

/* Footer minimal */
.cbfu-footer {
    padding-top: 40px;
    padding-bottom: 80px;
    margin-top: 40px;

    background: #111;
    color: #fff;
}

.cbfu-footer-logo {
    flex: 0 0 auto;
}

/* Footer logo width */
.cbfu-footer-logo img {
    width: 220px;
    max-width: 220px;
    height: auto;
}

.cbfu-footer a {
    color: rgba(255, 255, 255, .8);
}

.cbfu-footer a:hover {
    color: #fff;
}

.cbfu-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1024px) {
    .cbfu-footer__menu {
        flex-direction: row;
        gap: 24px;
    }
}

/* Bottom row */
.cbfu-footer__bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.cbfu-footer__legal .wp-block-navigation-item {
    margin-left: 20px;
}

/* Footer bottom row text color */
.cbfu-footer__bottom,
.cbfu-footer__bottom p,
.cbfu-footer__bottom a {
    color: rgba(255, 255, 248, 0.5);
}

/* Hover state stays white */
.cbfu-footer__bottom a:hover {
    color: #FFFFFF;
}

.wp-block-heading {
    font-weight: 400;
    font-size: 16px;
    line-height: 32px;
    letter-spacing: 0;
}

.cbfu-related .wp-block-heading {
    font-weight: 700;
    font-size: 22px;
    line-height: 40px;
    letter-spacing: 0;
}

@media (min-width: 1024px) {
    .cbfu-footer {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .wp-block-heading,
    .cbfu-related .wp-block-heading {
        font-weight: 700;
        font-size: 28px;
        line-height: 40px;
    }
}

/* Mobile stacking */
@media (max-width: 767px) {
    .cbfu-footer__bottom {
        flex-direction: column;
        gap: 12px;
    }
}


/* =========================================
   BREADCRUMBS ACTIVE (Gradient Text)
========================================= */

.cbfu-breadcrumbs .breadcrumb_last,
.cbfu-breadcrumbs .wpseo_breadcrumb_last {
    background: linear-gradient(
            180deg,
            #F19329 0%,
            #E33304 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    font-weight: 500;
}

/* =========================================
   SINGLE H1
========================================= */

.single h1.wp-block-post-title {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;

    font-weight: 700;
    font-size: 24px;
    line-height: 140%;
    letter-spacing: 0;
    text-align: center;
}

/*.single :where(:not(.wp-block-post)) .wp-block-post-terms {*/
/*    margin: 20px 0;*/

/*    font-weight: 500;*/
/*    font-size: 14px;*/
/*    line-height: 24px;*/
/*    letter-spacing: 0;*/
/*    text-align: center;*/
/*}*/

.single .wp-block-post-terms,
.single .wp-block-post-featured-image {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cpfu-single-meta-data {
    padding-block: 20px;

    text-align: center;
}

/* =========================================
   SINGLE CONTENT TYPOGRAPHY
========================================= */

.single .wp-block-post-content {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0;

    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single .wp-block-post-content p {
    margin-bottom: 16px;
}

.single .wp-block-post-content a {
    background: linear-gradient(
            180deg,
            #F19329 0%,
            #E33304 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* =========================================
   SINGLE CONTENT H2
========================================= */

.single .wp-block-post-content h2.wp-block-heading,
.single .wp-block-post-content h3.wp-block-heading {
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0;
    margin-top: 28px;
    margin-bottom: 16px;
}

.single .wp-block-post-content h3.wp-block-heading {
    font-size: 16px;
}

@media (min-width: 1024px) {
    .single .wp-block-post-content h2.wp-block-heading {
        font-size: 20px;
    }

    .single .wp-block-post-content h3.wp-block-heading {
        font-size: 18px;
    }
}

/* =========================================
   RELATED POSTS GRID
========================================= */

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .cbfu-related .wp-block-post-template {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   TABLE OF COMTENT
========================================= */
.single #ez-toc-container {
    box-shadow: none;
    border-radius: 12px;
    border: 1px solid rgba(22, 22, 22, 0.25);
    box-sizing: border-box;
}

div#ez-toc-container p.ez-toc-title {
    font-weight: 700;
    font-size: 22px;
    line-height: 40px;
    letter-spacing: 0;
    color: var(--wp--preset--color--primary);
}

/* wrapper */
.cb4u-loadmore__actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* button (mobile base) */
.cb4u-loadmore__btn {

    background: linear-gradient(180deg, #F19329 0%, #E33304 100%);
    color: #fff;
    border: none;

    font-size: 18px;
    font-weight: 500;

    padding: 18px 28px;

    border-radius: 32px;

    cursor: pointer;

    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

/* hover */
.cb4u-loadmore__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.cb4u-loadmore__btn:active {
    transform: translateY(0);
    opacity: .9;
}

@media (min-width: 1200px) {
    .single-post .single-post--vertical-pc-ads-banners{
        display: block;
    }
    .single-post .single-post--vertical-pc-ads-banner {
        content: '';
        display: block;
        height: 400px;
        width: 200px;
        position: absolute;
        top: 184px;
    }

    .single-post .single-post--vertical-pc-ads-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .single-post .single-post--vertical-pc-ads-banner.left {
        left: var(--offset-left);
    }

    .single-post .single-post--vertical-pc-ads-banner.right {
        right: var(--offset-right);
    }
}

.single-post--vertical-pc-ads-banners{
    display: none;
}

p:has(.horizontal_ads_banner) {
    padding: 0;
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.horizontal_ads_banner {
    display: flex;
    width: 100%;
    justify-content: center;
}

.horizontal_ads_banner img {
    max-width: 1040px;
    width: 100%;
    object-fit: cover;
	height: auto;
}

blockquote {
    border-left: 1px solid gray;
    font-style: italic;
    padding-left: 20px;
    color: gray;
}

@media (min-width: 768px) {

    .cb4u-loadmore__btn {
        font-size: 20px;
        padding: 20px 48px;
        border-radius: 34px;
    }

}

@media (min-width: 1024px) {

    .cb4u-loadmore__btn {
        font-size: 22px;
        padding: 22px 70px;
        border-radius: 36px;
    }

}