/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

#header [data-transparent-row=yes]  #mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item > a.mega-menu-link{
	color:#fff;
}

/* Odd children */
#mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item.mega-menu-item-type-post_type:nth-child(odd) > a.mega-menu-link:hover {
    background-color: #0EBEDD !important;
}

/* Even children */
#mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item.mega-menu-item-type-post_type:nth-child(even) > a.mega-menu-link:hover {
    background-color: #727473 !important;
}

/* First child */
#mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item.mega-menu-item-type-post_type:first-child > a.mega-menu-link:hover {
    background-color: #25AD99 !important;
}

/* Last child */
#mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item.mega-menu-item-type-post_type:last-child > a.mega-menu-link:hover {
    background-color: #25AD99 !important;
}

#mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item.mega-menu-item-type-custom.mega-menu-item-object-custom:nth-child(odd) > a.mega-menu-link:hover {
	background-color: #FFAF01 !important;
}

#mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item.mega-menu-item-type-custom.mega-menu-item-object-custom:nth-child(odd) > a.mega-menu-link:hover {
	background-color: #D6196B !important;
}

#mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item > a.mega-menu-link:hover, #mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item > a.mega-menu-link:focus {
    background: #ffac00;
}

#mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-menu-item:nth-child(odd) > a.mega-menu-link:hover{
	background: #D6196B;
}


article>.entry-content>*:where(:not(.alignfull):not(.alignleft):not(.alignright)) {
    width: var(--theme-default-editor, var(--theme-block-width));
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.hero-section[data-type=type-2] .ct-title-label {
    display: none !important;
}

body.blog .entry-excerpt.entry-content p:not(:first-child):not(:nth-child(2)),
body.archive.category .entry-excerpt.entry-content p:not(:first-child):not(:nth-child(2)),
body.archive.date .entry-excerpt.entry-content p:not(:first-child):not(:nth-child(2)),
body.search.search-results .entry-excerpt.entry-content p:not(:first-child):not(:nth-child(2)),
body.archive.author .entry-excerpt.entry-content p:not(:first-child):not(:nth-child(2)) {
    display: none;
}

body.blog .entry-excerpt.entry-content p:nth-child(2),
body.archive.category .entry-excerpt.entry-content p:nth-child(2),
body.archive.date .entry-excerpt.entry-content p:nth-child(2),
body.search.search-results .entry-excerpt.entry-content p:nth-child(2),
body.archive.author .entry-excerpt.entry-content p:nth-child(2) {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit to three lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    /* Add ellipsis at the end */
}

span.second-head {
    color: #FFAF01 !important;
    font-family: "poppins", roboto, sans-serif;
}

h6.site-title {
    font-family: "Playfair Display", sans-serif;
    color: #295aa0;
}

h6.site-title:hover {
    color: #61CE70;
}

#menu-main-menu .sub-menu {
    background-color: #000000;
    box-shadow: 4px 4px 7px black;
    margin-top: unset;
}

.ct-sticky-container .ct-container {
    display: flex !important;
    justify-content: space-between;
}

ul.mega-sub-menu {
    overflow-y: auto !important;
    max-height: 338px !important;
}

/* header active menu bg color */

#header nav#header-menu-1 li.menu-item.menu-item-type-post_type.menu-item-object-page.current-menu-item.page_item.current_page_item.current_page_parent a {
    background: #50bda1;
}

/* page titles => about, blog, contact */

body.blog header.entry-header.ct-container-narrow {
    align-items: center;
}

body.blog h2.page-title:first-child {
    max-width: 35%;
    border-bottom: 4px solid #fff;
    width: 250px !important;
    min-height: 110px;
}

.search span.ct-label.ct-hidden-sm {
    color: #4f4f4f;
}

.archive span.ct-label.ct-hidden-sm {
    color: black;
}

[data-archive=default] .entry-card .entry-title {
    --theme-link-initial-color: initial;
    font-size: 20px;
}

.owl-carousel .owl-item {
    /* 	margin:0px 10px; */
    overflow: hidden;
}

.sa_hover_container {
    overflow: hidden;
    padding: 0px !important;
    display: flex;
    border-radius: 15px;
    align-items: flex-end;
    justify-content: center;
    width: inherit;
}

.clone-title {
    position: relative;
    backdrop-filter: brightness(0.5);
    min-height: inherit;
    width: inherit;
    color: white;
    font-size: 25px;
    font-weight: 800;
    font-family: 'Playfair Display';
}

.clone-title p {
    bottom: 0;
    position: absolute;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
}

.sa_owl_theme .owl-item .sa_hover_container .sa_hover_buttons {
    top: 0 !important;
    left: 0% !important;
    margin-top: 0px !important;
    margin-left: 0px !important;
    width: inherit !important;
    min-height: inherit;
}

.sa_hover_buttons .sa_slide_link_icon {
    width: inherit !important;
    height: unset !important;
    min-height: inherit !important;
}

.category-carousel .white .sa_owl_theme .owl-item .sa_hover_container:hover .sa_hover_buttons .sa_slide_link_icon:hover {
    background-color: unset !important;
}

.category-carousel .white .sa_owl_theme .owl-item .sa_hover_container:hover .sa_hover_buttons .sa_slide_link_icon {
    background: unset !important;
}

.relpost-block-single-text {
    font-size: 11px !important;
    padding: 0px 10px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    -webkit-line-clamp: 2 !important;
    white-space: pre-wrap !important;
    -webkit-box-orient: vertical !important;
    display: -webkit-box !important;
    overflow: hidden !important;
}

.rel-post-heading {
    margin-top: 100px;
    margin-bottom: 25px;
    text-align: center;
}

.relpost-block-single {
    border: 1px solid #00000029;
    border-radius: 14px;
    margin-right: -1px;
    box-shadow: 1px 2px 3px #00000052;
}

.sidebar .relpost-block-container {
    flex-wrap: wrap;
    display: flex;
    gap: 15px;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sidebar a.relpost-block-single {
    width: -webkit-fill-available;
    padding-bottom: 15px;
    border: none !important;
    box-shadow: unset !important;
    border-radius: 0px !important;
}

.sidebar a.relpost-block-single:not(:last-child) {
    border-bottom: 1px solid rgba(44, 62, 80, 0.2) !important;
}

.sidebar .relpost-custom-block-single {
    display: flex;
    width: -webkit-fill-available !important;
    height: unset !important;
    align-items: center;
}

.sidebar .relpost-block-single-image {
    display: flex;
    max-width: 80px !important;
    width: 100%!important;
    height: 80px !important;
}

.sidebar h4 {
    text-align: left;
    margin-bottom: 10px;
}

.sidebar .relpost-block-single-text {
    font-size: 15px !important;
	text-align:left;
}

.ct-hidden-sm.ct-hidden-md .ct-sidebar{
	padding:0px 35px!important;
}

.ct-sidebar .ct-widget.widget_block.widget_search{
	margin-bottom:10px!important;
}

.elementor-social-icons-wrapper.elementor-grid {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

input#wpforms-429-field_0 {
    color: #BDBDBD;
}

input#wpforms-429-field_1 {
    color: #BDBDBD;
}

input#wpforms-429-field_3 {
    color: #BDBDBD;
}

.wpforms-container textarea.wpforms-field-medium {
    height: 120px;
    color: #BDBDBD;
}

.ct-panel-actions {
    backdrop-filter: brightness(0.4);
}

.ct-panel-content {
    backdrop-filter: brightness(0.4);
}

input.modal-field {
    border: 3px solid #48bca2 !important;
}

.elementor-widget-social-icons .elementor-grid {
    grid-column-gap: var(--grid-column-gap, 5px);
    grid-row-gap: var(--grid-row-gap, 5px);
    grid-template-columns: var(--grid-template-columns);
    justify-content: var(--justify-content, left) !important;
    justify-items: var(--justify-content, center);
}

.modal-window__content-main form input[type=text] {
    border-radius: 5px;
    max-height: 40px;
    color: white;
    background: #0000004f;
    padding: 0 10px;
}


.relpost-block-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

#block-27.ct-widget.widget_block .wp-block-heading{
	font-family:'Playfair Display'!important;
}

@media screen and (min-width: 500px) and (max-width: 1024px) {
    .relpost-block-container {
        display: flex;
        gap: 3px;
        width: -webkit-fill-available;
    }

    .sidebar .relpost-block-single-text {
        font-size: 11px !important;
        padding-top: unset !important;
        margin-left: 10px;
    }

    .relpost-block-single-text {
        font-size: 11px !important;
        width: 135px;
        padding: 0px !important;
        padding-top: 20px !important;
        text-align: left;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        -webkit-line-clamp: 2 !important;
        white-space: pre-wrap !important;
        -webkit-box-orient: vertical !important;
        display: -webkit-box !important;
        overflow: hidden !important;
    }
}

@media screen and (max-width:500px) {
    body.blog h2.page-title:first-child {
        min-height: 80px;
        font-size: 45px;
    }

    .entries {
        display: flex !important;
        flex-direction: column !important;
    }

    .rel-post-heading {
        margin-top: 80px;
        margin-bottom: 40px;
        text-align: center;
    }

    .relpost-block-single-text {
        font-size: 14px !important;
        text-align: center;
        width: 240px;
        padding: 0px !important;
        margin-top: 12px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        -webkit-line-clamp: 2 !important;
        white-space: pre-wrap !important;
        -webkit-box-orient: vertical !important;
        display: -webkit-box !important;
        overflow: hidden !important;
    }

    .relpost-block-single-image {
        width: 245px !important;
        height: 216px !important;
        max-width: 160% !important;
    }

    .relpost-block-single {
        width: 260px;
        height: 300px;
    }
}

/* social widget */

div#block-26 li>a>svg {
    fill: #fff;
}

div#block-26 li>a.wp-block-social-link-anchor {
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

div#block-26 li.wp-social-link-facebook {
    background: #3B5998;
    border-radius: 10px;

}

div#block-26 li.wp-social-link-instagram {
    background: #B83F88;
    border-radius: 10px;
}

div#block-26 li.wp-social-link-youtube {
    background: #CD201F;
    border-radius: 10px;
}

div#block-26 li.wp-social-link-mail {
    background: #48BCA2;
    border-radius: 10px;
}

ul.wp-block-social-links.is-layout-flex.wp-block-social-links-is-layout-flex {
    gap: 10px;
}

/* search modal */

#search-modal input {
    border: 1px solid #50bda1;
    padding: 0 20px;
    border-radius: 10px;
}

#search-modal input::placeholder {
    font-size: 28px;
}

#search-modal form .ct-search-form-controls button {
    right: 20px !important;
}

.modal-window__wrapper.is-clickable.has-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/wp-content/uploads/2024/06/top-view-old-french-newspaper-pieces_23-2149318857.avif');
}

.modal-window__content {
    position: relative;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-height: unset;
    background-color: transparent;
    backdrop-filter: brightness(0.5);
}

.modal-window__content-main {
    justify-content: center;
    display: flex;
    max-height: calc(100vh - var(--mw-inset-top) - var(--mw-padding)*2);
}

.modal-window__content-main form input {
    border: 3px solid #48bca2 !important
}

.modal-window__content-wrapper {
    justify-content: center;
    max-height: unset;
}

::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: white;
}

:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: white;
    opacity: 1;
}

::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: white;
    opacity: 1;
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: white;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: white;
}

::placeholder {
    /* Most modern browsers support this now. */
    color: white;
}

.modal-window__content-main form {
    display: flex;
    gap: 10px;
    min-width: 300px;
    max-width: 550px;
    width: -webkit-fill-available;
    align-items: center;
}

.modal-window__content {
    width: -webkit-fill-available;
    --mw-width: unset !important;
}

.modal-window__content-main form input {
    max-height: 40px;
}

/**Sidebar**/
.ct-widget.widget_nav_menu {
    margin-bottom: 0px!important;
}

.entry-excerpt.entry-content li {
    display: none !important;
}

/** Carousel **/
.carousel .owce-carousel .owl-content {
    position: relative;
    top: -60px;
    text-align: center;
    padding: 0px 10px;
    font-size: 25px;
    color: white;
    font-family: 'Playfair Display', Sans-Serif;
}

/* Navigation */
.nav-links {
    text-align: center;
}

.page-numbers {
    min-width: 41px;
    margin: 5px;
    display: inline-flex;
    width: max-content;
    color: #4f4f4f;
    min-height: 40px;
    justify-content: center;
    align-items: center;
}

.page-numbers.current {
    background-color: #25ad99;
    color: white;
    border-radius: 4px;
}

.navigation.pagination {
    margin-top: 40px;
}

.content {
    color: #fff;
    font-size: 24px;
    line-height: 100px;
    /* centering text just for view */
    text-align: center;
    background-color: grey;
    margin: 5px;
    border: 1px solid lightgrey;
    display: none;
}

.Load {
    text-align: center;
    margin-top: 10px;
}

#loadMore {
    color: #fff;
    border: 1px solid transparent;
    background-color: #25ad99;
    transition: .3s;
}

#loadMore:hover {
    color: #25ad99;
    background-color: #fff;
    border: 1px solid #25ad99;
    text-decoration: none;
}

.noContent {
    color: #000 !important;
    background-color: transparent !important;
    pointer-events: none;
}


@media (max-width:1070px) {
    a.mega-menu-link {
        padding: 0px 15px !important;
    }
}

@media screen and (min-width:1024px) {
    #block-27 .is-layout-flex {
        align-items: start;
    }

    #footer #menu-footer-3,
    #footer #menu-footer-5 {
        margin-top: 40px;
    }
}

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

    #search-modal input::placeholder {
        font-size: 18px;
    }
}