/*
Theme Name:     SanoVita
Theme URI:      http://sanovita.ro
Description:    SanoVita theme
Author:         maret.ro
Author URI:     http://maret.ro
Template:       Newspaper
Version:        9.0c
*/


/*  ----------------------------------------------------------------------------
    This file will load automatically when the child theme is active. You can use it
    for custom CSS.
*/

body .set-posts-to-middle .td_module_flex.layout-half-width, .set-posts-to-middle .td_module_flex.layout-half-width {
    display: block !important;
    margin: 0 auto !important;
}

.category.td-boxed-layout .vc_row {
    width: 100%;
}


body {
    visibility: visible !important;
}

.menu-contact-links a {
    color: #1E542A;
    font-weight: bold;
}

.container-iqitmegamenu, .iqit-megamenu-container,
#desktop-header-container.container {
    max-width: 1196px;
}

#footer div#footer-container-main .footer-content h5.block-title {
    border: unset;
}

#header .search-widget .form-search-control {
    height: 47px !important;
}

#footer div#footer-container-main .footer-content h5.block-title span {
    background: none;
    padding: 0;
}

#footer-copyrights .col.copyright-txt {
    text-align: center;
}


.backstretch {
    display: none;
}

.search-widget .search-btn img {
    height: 28px;
}

#desktop-header-container.container .col-header-right img {
    height: 28px;
}

.category .td-container-wrap {
    width: auto;
}



.the-category-header-menu {
    position: absolute;
    top: 40%;
    z-index: 999;
    width: 100%;
    color: #fff;
}

.tdb-single-title .tdb-title-text {
    font-size: 40px;
    font-weight: 100;
    max-width: 90%;
    margin: 0 auto;
    text-align: left;
    font-family: 'RocaOne', Sans-serif !important;
}

.the-category-header-menu .tdb-menu > li > a {
    line-height: 30px;
}

h3.the-section-title {
    font-size: 21px;
    font-family: 'RocaOne', Sans-serif;
    color: #00754a;
}

.prestashop-full-width {
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0 !important;
    border: none !important;
    min-height: 580px;
    background: none;
    border-radius: 8px;
    display: block;
}

/* Forțează extensia pe toată lățimea pe mobile */
@media (max-width: 768px) {
    .prestashop-full-width {
        margin: 30px -20px !important;
        border-radius: 0 !important;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .prestashop-full-width {
        margin: 20px -15px !important;
        min-height: 350px;
    }
}

/* Loading state */
.prestashop-full-width::before {
    content: "⏳ Se încarcă produsele...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    z-index: 1;
}

.the-category-header-menu .tdb-menu > li > a:after {
    height: 2px;
    background-color: #f3848d;
}

.home.td-boxed-layout .td-container-wrap, .category.td-boxed-layout .td-container-wrap, .single-post.td-boxed-layout .td-container-wrap {
    margin-top: -75px !important;
}

.the-article-header-container > .vc_column_container {
    padding: 0;
}


.the-header-floating-image {
    position: absolute !important;
    z-index: 9999;
    top: 15%;
    left: 15%;
}

.the-header-category-description {
    top: -170px;
    z-index: 9999999;
    position: absolute;
    width: 100%;
}

.the-header-category-description p {
    color: #fff;
    line-height: 13px;
    font-size: 18px;
    font-weight: 700;
}

h2.the-post-section-title,
.the-post-section-title h3 {
    color: #00754a !important;

}

.single-post .td-post-content a,
.single-post .td-post-content a:hover {
    color: #00754a;
}

.single-post .tdc-content-wrap p {
    font-size: 1rem;
    font-family: 'CocoGothicPro', Arial, Helvetica, sans-serif !important;
    margin-bottom: 12px;
}

.td-ps-rounded.td-ps-notext .td-social-network .td-social-but-icon {
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    border: 1px solid #808080;
    width: 40px;
    height: 40px;
    border-radius: 30px;
    padding: 0px 5px;
}

.td-social-but-text {
    margin-left: -6px;
    padding-left: 12px;
    padding-right: 17px;
    line-height: 40px;
    font-size: 1.25rem;
    text-transform: capitalize;
    font-family: 'CocoGothicPro', Arial, Helvetica, sans-serif;
}

.stretch_row_content .product-cards-container .product-card h3.product-title a,
.stretch_row_content .product-cards-container .product-card a.product-button {
    color: #fff;
}

.product-cards-container .product-card a.product-button:hover {
    background: #f3848d !important;
    border-color: #f3848d !important;
}

.single-post .the-post-section-title,
.single-post .the-post-section-title p,
.single-post .the-post-section-title h3,
.single-post .the-post-section-title h3 p {
    font-size: 21px !important;
    font-family: 'RocaOne', Sans-serif !important;
    font-weight: 700;
    margin-bottom: 10px;
    color: #00754a;
}

.the-share-buttons {
    border: none !important;
}

ul.the-main-article-nav li a, ul.the-main-article-nav li {
    font-size: 21px !important;
    font-family: 'RocaOne', Sans-serif !important;
    color: #00754a;
}

.the-extra-rec-bottom {
    /* content: '' !important; */
    /* width: 100% !important; */
    /* height: 100% !important; */
    /* position: absolute !important; */
    /* top: 0 !important; */
    /* left: 0 !important; */
    /* display: block !important; */
    /* z-index: 0 !important; */
    background-image: url(https://beta.sanovita.ro/blog/wp-content/uploads/2021/05/Asset-1@3x.png) !important;
    background-size: cover !important;
    background-position: center top !important;
}

.the-extra-rec-bottom .product-card {
    background: none;
    color: #fff;
}


.the-extra-rec-bottom .product-card {
    color: #fff;
}

.td_block_separator span {
    border-top: 1px solid #f3848d !important;
}


h2.the-post-section-title a {
    color: #00754a !important;
}

.home .the-header-floating-image {
    position: relative !important;
    z-index: 9999;
    top: auto;
    left: -15%;
}

.home .tdb_header_menu .tdb-menu > li > a:after {
    display: none;
}

/* Every 3rd post starting from the first (1, 4, 7...) goes full width */
.category .tdb_module_loop:nth-child(3n+1) {
    width: 100%;
}

.category .tdb_module_loop:nth-child(3n+1) .td-module-title a {
    font-size: 30px;
    font-family: 'RocaOne', sans-serif;
}

.td-read-more {
    margin: 0 auto;
    text-align: center;
}

.category .tdb_module_loop:nth-child(3n+1) .td-read-more,
body .td_module_flex.layout-full-width .td-read-more,
.td_module_flex.layout-full-width .td-read-more {
    display: block;
    margin: 15px 0;
}

.td-read-more {
    display: none;
}

body .td_module_flex.layout-full-width .td-excerpt,
.td_module_flex.layout-full-width .td-excerpt {
    min-height: auto;
}

body .td_module_flex.layout-full-width .td-excerpt,
.td_module_flex.layout-full-width .td-excerpt {
    min-height: auto;
}

.category .tdb_module_loop:nth-child(3n+1) .td-excerpt {
    min-height: auto;
}

.the-category-header-menu a .tdb-menu-item-text {
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 19px;
}

.container, .td-main-content-wrap {
    max-width: none;
    width: 100% !important;
    margin: 0 auto;
}

.menu-contact-links a img {
    margin-bottom: -5px;
    margin-right: 5px;
}

.the-menu-contact-info {
    margin-bottom: 33px;
    padding-top: 10px;
}

.articole-antreprenor .td_module_wrap .entry-title {
    margin: 15px 0;
}

.category .td_module_wrap .entry-title {
    width: 90%;
    margin: 0 auto;
}

.category .td_module_wrap .td-editor-date {
    width: 90%;
    margin: 0 auto;
    margin-bottom: 25px;
}

.articole-antreprenor .td-module-container {
    border-radius: 10px;
}

.the-homepage-category-blocks hr {
    border-top: 1px solid rgba(170,163,148,0.3) !important;
}

.menu-contact-links a.contact-link {
    margin-right: 15px;
}

.homepage-main-post-slide .td-module-thumb .entry-thumb {
    min-width: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    right: 0;
    top: 0;
    left: auto;
    width: 50%;
}

.td-post-date {
    top: 0;
}

.the-excerpt {
    order: 0;
    order: 1;
}

.td-post-content p {
    word-wrap: break-word;
    color: #4B4B48;
}

.td-post-content a,
.td-post-content a:hover {
    color: #a5cd39;
}

.tagdiv-type blockquote p {
    line-height: normal !important;
}

.menu-footer-mobile-container ul li a {
    color: #fff;
}

.homepage-main-post-slide .td-module-meta-info {
    top: 50%;
    max-width: 50%;
    margin: auto 0;
    padding: 5% 10%;
    background-color: #a5cd39;
    vertical-align: middle;
    height: 100%;
}

.archive.author .tdb-author-img {
    border-radius: 0;
}

.homepage-main-post-slide .td-next-prev-wrap {
    right: 55% !important;
    bottom: 95px !important;
}

.homepage-main-post-slide .td-module-meta-info span.td-post-author-name span {
    display: none;
}

.homepage-main-post-slide .td-module-meta-info span.td-post-date {
    display: block;
    font-weight: normal;
}

.homepage-main-post-slide .td-module-meta-info span.td-post-date .entry-date {
    font-weight: normal !important;
}

.homepage-main-post-slide .td-next-prev-wrap {
    position: absolute;
    right: 55%;
    bottom: 95px !important;
}

.homepage-main-post-slide .td-next-prev-wrap a {
    border: 1px solid #fff !important;
    border-radius: 32px;
    height: 50px;
    width: 50px;
    padding: 11px;
}

.homepage-main-post-slide .td-next-prev-wrap a i {
    font-size: 25px;
}

.homepage-main-post-slide .td_module_wrap {
    padding: 0 !important;
}

div#header-custom-content form > * {
    vertical-align: top;
}

div#header-custom-content .the-search-button {
    border: none;
    border-radius: 1px 6px 6px 1px;
    height: 55px;
    margin: 0;
    width: 55px;
    font-size: 20px;
    background: #A5CD39;
    margin-left: -4px;
    color: #fff;
}

div#header-custom-content select#search-type-box {
    border: 1px solid #E3DED3;
    border-radius: 0;
    height: 55px;
    border-width: 1px 0px 1px 0px;
    margin: 0;
    padding: 10px 15px;
    color: #524A3A;
    padding: 1.1rem 1rem;
    background: url(/img/cms/icon/dropdown.png) no-repeat;
    background-position: right 29px center;
    -moz-appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-size: 12px;
    display: inline-block;
    width: auto;
    font-weight: bold;
    background-color: #fff;
    font-size: 16px;
    float: left;
}

div#header-custom-content input.the-search-string {
    width: 70%;
    max-width: 475px;
    border: 1px solid #E3DED3;
    border-radius: 6px 1px 1px 6px;
    height: 55px;
    margin: 0;
    float: left;
    padding: .8rem 1rem;
    font-size: 16px;
    font-weight: normal;
}

div#header-custom-content .custom-user-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

div#header-custom-content .custom-user-container ul li {
    display: inline-block;
    vertical-align: middle;
    padding-top: 7px;
}

div#header-custom-content select#search-type-box:focus-visible,
div#header-custom-content .the-search-button:focus-visible {
    outline: none;
}

div#header-custom-content .custom-user-container,
div#header-custom-content .custom-search-container {
    display: inline-block;
    width: 100%;
}

div#header-custom-content .custom-user-container li.block-account img {
    max-width: 18px;
}

div#header-custom-content .custom-user-container li.block-wishlist img {
    max-width: 22px;
}

div#header-custom-content .custom-user-container li.block-cart img {
    max-width: 23px;
}

div#header-custom-content .custom-user-container li.block-cart a {
    display: table;
}

div#header-custom-content .custom-user-container li.block-cart img,
div#header-custom-content .custom-user-container li.block-cart span {
    vertical-align: middle;
}

div#header-custom-content .custom-user-container li.block-cart {
    background: #E25B2A;
    padding: 11px 20px;
    border-radius: 5px;
    height: 50px;
}

div#header-custom-content .custom-user-container {
    text-align: right;
}

div#header-custom-content .custom-user-container li.block-cart span {
    margin-left: 10px;
    color: #fff;
}

div#header-custom-content .custom-search-container form {
    display: flex;
    width: 100%;
}

.home .td_module_wrap .td-module-container {
    border-radius: 10px !important;
    overflow: hidden;
}

.td_module_wrap .td-post-author-name span {
    display: none;
}

.td_module_wrap .td-post-author-name a {
    font-size: 14px;
    font-weight: normal;
}

.home .td_module_wrap span.td-post-date {
    vertical-align: inherit;
}

.td-author-date {
    color: #00754a;
}

.td-module-meta-info .td-post-category {
    display: inline-block;
    margin-right: 0;
    padding: 0px;
    font-size: 14px;
}

.td-post-category {
    color: #f3848d !important;
}

#menu-zi-de-zi-mai-bine li a {
    color: #ffffff;
}

.td-post-category:hover {
    background: none;
}

.the-featured-posts-home .td-post-category {
    margin: 0 10px;
        padding: 0 10px;
        border-width: 0 1px 0 1px;
        border-style: solid;
        border-color: #000;
        background-color: rgba(243, 132, 141, 0);
        color: #f3848d;
        border-color: #00754a;
}

.the-homepage-title h4.td-block-title {
    color: #00754a;
    font-family: 'RocaOne', sans-serif;
    font-size: 42px;
}

.the-homepage-title {
    color: #00754a;
}

.td-excerpt {
    text-align: center;
}

.the-article-title {
    display: block !important;
    float: none !important;
}

.home .td_module_wrap .td-module-container .td-module-meta-info {
    width: 90%;
    margin: 0 auto;
    padding: 0 !important;
    margin-bottom: 25px;
}

.td-post-author-name {
    top: 0;
    vertical-align: bottom;
}

.td-post-category {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 100;
    font-size: 13px;
}

.td_module_wrap .entry-title {
    font-size: 24px;
    line-height: 25px;
    min-height: 64px;
    font-family: 'RocaOne';
}

.td_module_wrap:hover .entry-title a {
    color: #00754a;
}

.td-excerpt {
    color: #4b4b48;
    margin: 20px 25px 15px 0;
    column-count: 1;
    column-gap: 48px;
    min-height: 65px;
}

.td-author-photo {
    float: left;
    margin-right: 10px;
}

.td-post-author-name {
    padding-top: 0;
}

.td-footer-wrap ul li a {
    color: #fff;
}

.tds-newsletter button.tdn-submit-btn {
    font-size: 0px !important;
    background-image: url(https://sanovita.ro/img/cms/icon/subscribe.png);
    background-repeat: no-repeat;
    background-size: 23px;
    background-position: center;
    width: 40px;
}

.tdn_block_newsletter_subscribe .tdn-btn-wrap {
    min-width: auto;
}


.mobile-cart-icon a i {
    vertical-align: middle;
    padding: 10px 1px;
}

div#the-social-container {
    background-color: #fdf7ed;
    background-image: linear-gradient(
180deg
, #fdf7ed 50%, #ffffff 50%);
    margin-top: 0px;
    margin-bottom: 0px;
}

div#the-social-container .row.social-media-container {
    max-width: 1400px;
    margin: 0 auto;
}

div#the-social-container h4.td-block-title {
    text-align: center;
}


div#the-social-container .single-social-item {
    width: 33%;
    display: inline-block;
    vertical-align: top;
}

div#the-social-container .single-social-item:nth-child(2) {
    padding: 0 25px;
}

div#the-social-container .social-media-img-container {
    position: relative;
    min-height: 165px;
    border-radius: 7px 7px 0 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    transition: 1s linear;
    font-size: 13px;
    line-height: 30px;
    height: 0px;
    list-style-type: none;
    padding: 0px;
    -webkit-transition: height 0.5s ease;
    -moz-transition: height 0.5s ease;
    -o-transition: height 0.5s ease;
    -ms-transition: height 0.5s ease;
    transition: height 0.5s ease;
}

div#the-social-container .social-media-feed-container {
    padding: 10px 25px;
    padding-top: 65px;
    border-bottom: 1px solid #EDE8E2;
}

div#the-social-container .social-media-cta-container {
    text-align: center;
    text-transform: uppercase;
    padding: 25px;
}

div#the-social-container p.social-media-feed-description {
    min-height: 150px;
    margin: 0;
}

div#the-social-container .social-media-img-container .img-container {
    position: absolute;
    bottom: -47px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    left: 0;
}

div#the-social-container .img-container img.social-feed-icon {
    border-radius: 200px;
    transition: transform .3s ease-in-out;
}

div#the-social-container .social-media-container .social-media-item {
    outline: none 1px rgba(161, 161, 161, 0.25);
    box-shadow: 0px 7px 12px 0px rgb(0 0 0 / 8%);
    border-radius: 7px;
    background: #fff;
}

div#the-social-container .social-media-cta-container a {
    color: #99CA3C;
    font-size: 16px;
    font-weight: bold;
}

.single-author-box .tdm-image-meta {
    left: 50%;
    -webkit-transform: translateY(200%);
    transform: translateY(200%);
}


.single-author-box .tdm-image-meta {
    left: 50%;
    -webkit-transform: translateY(200%);
    transform: translateY(200%);
}

.single-author-box .tdm-title-md {
    -webkit-transform: translateY(250px);
    transform: translateY(250px);
    transition: all 0.3s;
}

.single-author-box:hover .tdm-title-md {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
}

.bx-wrapper .bx-next {
    background: url(/blog/wp-content/themes/sanovita/img/button-next.png);
}

.bx-wrapper .bx-prev {
    background: url(/blog/wp-content/themes/sanovita/img/button-prev.png);
}

.bx-controls .bx-controls-direction a {
    background-color: #1E542A;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 30px;
    height: 40px !important;
    width: 40px !important;
    top: 38% !important;
}

.bx-controls .bx-controls-direction .bx-next {
    right: -15px;
}

.bx-controls .bx-controls-direction .bx-prev {
    left: -15px;
}

.bx-wrapper {
    box-shadow: none;
    border: none;
}

.bx-wrapper .bx-viewport {
    overflow: visible !important;
}

.bx-wrapper .bx-next:focus, .bx-wrapper .bx-next:hover {
    background-position: center !important;
}

.block-homepage-antrenori .tds-button.td-fix-index {
    display: none;
}
.homepage-main-post-slide {
    display: none;
}
.the-homepage-banner .tdm-btn {
    display: none;
}

.retete-subcateg .single-cat-container a span {
    display: inline-block;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    color: #A5CD39;
    padding: 11px;
    width: 85%;
    border-right: 1px solid rgba(170,163,148,0.2);
}

.single-cat-container a {
    display: block;
    background: #FDF7ED;
    padding: 0;
    margin: 5px;
    border-radius: 10px;
}

.single-cat-container a span {
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    color: #A5CD39;
    padding: 20px;
    width: 85%;
    border-right: 1px solid rgba(170,163,148,0.2);
}

.single-cat-container a i {
    display: inline-block;
    text-align: center;
    width: auto;
    color: #135340;
    min-width: 12%;
    font-size: 20px;
    vertical-align: middle;
}

#antrenoridebine .tdm-image-meta {
    transform: none !important;
}

#antrenoridebine .tdm-image-meta p {
    display: none !important;
}

#antrenoridebine .tds-button.td-fix-index {
    transform: none !important;
    position: relative !important;
    left: auto !important;
}

.the-author-logo-img .tdb-author-photo img {
    margin-bottom: -43px;
    border: 5px solid #fff;
}

.the-read-time-block img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.the-read-time-block span.read-time-val {
    color: #AAA394;
}

.the-single-author-item {
    border-radius: 10px;
    overflow: hidden;
}

.the-single-author-item .tdm-member-title {
    margin: 15px 0px;
}

.the-single-author-item .tdm-member-info {
    padding: 0 15px;
}

.the-popular-posts .td_module_wrap .entry-title {
    margin: 0px 25px 0px 30px;
}

.the-popular-posts .td-module-container {
    border-radius: 10px;
}

.the-antrenoridebine-block .td_mod_wrap p {
    color: #fff;
}

.category .tdb_loop .tdb-author-photo,
.search .tdb_loop .tdb-author-photo {
    vertical-align: middle;
    display: inline-block;
    vertical-align: middle;
    float: left;
}

.single-post .articole-antreprenor span.td-post-author-name {
    display: block;
}

.single-post .articole-antreprenor span.td-post-date {
    display: block;
}

#footer div#footer-container-main .footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

#footer .social-links>li {
    display: inline-block;
    padding: 0 .2em 0 0;
    margin: 0 !important;
}

.header-top .form-search-control {
    height: auto;
}

#header .cbp-hrmenu > ul > li {
    margin-left: 0;
}

#header .search-widget .form-search-control {
    font-size: initial;
    width: 55%;
    height: auto;
}

#header .search-widget {
    max-width: 85%;
    margin: 0 auto;
}

div#the-main-social-container {
    background-color: #fdf7ed;
    background-image: linear-gradient( 
180deg
 , #fdf7ed 50%, #ffffff 50%);
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 80px;
    padding-bottom: 40px;
}

div#the-main-social-container .the-actual-social-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

div#the-main-social-container .the-actual-social-container h2,
div#the-main-social-container .the-actual-social-container p {
    text-align: center;
    display: block;
    width: 100%;
}

div#the-main-social-container .the-actual-social-container h2.the-social-heading {
    font-size: 30px;
    color: #1E542A;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

div#the-main-social-container .the-actual-social-container p.the-social-desc {
    margin-top: 27px;
    margin-bottom: 40px;
    font-size: 20px;
    color: #4B4B48;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.ps-emailsubscription-block .newsletter-input-group .input-subscription {
    width: 100%;
    height: 50px;
    background: #fff;
    display: inline-block;
    border: 1px solid #FFFFFF;
    border-radius: 3px;
    -webkit-box-shadow: 0 7px 7px rgb(19 83 64 / 20%);
    -moz-box-shadow: 0 7px 7px rgba(19, 83, 64, 0.2);
    box-shadow: 0 7px 7px rgb(19 83 64 / 20%);
}

.ps-emailsubscription-block .btn-subscribe {
    color: #135340;
    float: none;
    display: inline-block;
    width: auto;
    height: 50px;
    margin-left: 10px;
    border-radius: 3px;
    background: none;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 14px;
    border: none;
    z-index: 9;
    outline: none;
}

.ps-emailsubscription-block .btn-subscribe:hover {
    background: none;
}

.ps-emailsubscription-block .btn-primary:not(:disabled):not(.disabled):active,
.ps-emailsubscription-block .btn-primary :active {
    background: none;
}

.single-author-box:hover .tdm-image-box:before {
    background: linear-gradient(to bottom, rgba(93,74,43,0.1), rgba(36,34,31,0.9));
}

.the-homepage-category-blocks .td-element-style {
    border-radius: 10px !important;
}

.single-author-box .td-block-width .tdm-image-wrap {
    border-radius: 10px;
}

.single-author-box .td-block-width .tdm-image-wrap a.tdm-image-box {
    background-position: top;
}

.the-single-author-item .tdm-team-member-wrap .tdm-member-image {
    background-position: top;
}




/* =====================================================
   ALTERNATING BLOG LAYOUT SYSTEM
   1 full-width post → 2 posts per line → 1 full-width post → 2 posts per line
   ===================================================== */

/* IMPORTANT: Override theme's clear rules that break our layout */
.tdi_84 .td_module_wrap:nth-child(2n+1),
.td_module_wrap:nth-child(2n+1),
.td_module_flex.layout-half-width,
.td_module_flex.layout-full-width,
/* Target any possible td-composer generated classes */
[class*="tdi_"] .td_module_wrap:nth-child(2n+1),
[class*="tdi_"] .td_module_flex:nth-child(2n+1),
.td_block_wrap .td_module_wrap:nth-child(2n+1),
.td_block_wrap .td_module_flex:nth-child(2n+1) {
    clear: none !important;
}

/* Override any float rules that might interfere */
.td_module_flex.layout-half-width,
.td_module_flex.layout-full-width,
[class*="tdi_"] .td_module_flex,
.td_block_wrap .td_module_flex {
    float: none !important;
}

/* CSS LOADING TEST - Add class "debug-css-loading" to body to test CSS loading */
body.debug-css-loading {
    border: 2px solid red !important;
}

/* High specificity layout CSS - overrides theme defaults */


/* Ensure container children don't have interfering properties */
.td_block_wrap .td_module_flex,
.td-big-grid-flex .td_module_flex {
    clear: none !important;
    float: none !important;
}

/* Alternative container targeting (removed :has() for compatibility) */

/* Full width posts take full container width */
body .td_module_flex.layout-full-width,
.td_module_flex.layout-full-width {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: block !important;
}


body .td_module_flex.layout-full-width .entry-title, .td_module_flex.layout-full-width .entry-title {
    font-size: 30px !important;
    font-family: 'RocaOne' !important;
    margin-bottom: 15px;
}


/* Half width posts take approximately half width */
body .td_module_flex.layout-half-width,
.td_module_flex.layout-half-width {
    width: calc(49% - 15px) !important;
    flex: 0 0 calc(50% - 15px) !important;
    max-width: calc(49% - 15px) !important;
    display: inline-block !important;
}

/* Ensure proper spacing for half-width posts */
.td_module_flex.layout-half-first {
    margin-right: 15px !important;
}

.td_module_flex.layout-half-second {
    margin-left: 15px !important;
}

/* Container styling - minimal styling for layout only */
.layout-full-width .td-module-container,
.layout-half-width .td-module-container {
    display: block;
    position: relative;
}

/* Layout-specific title sizing */
.layout-full-width .td-post-title h1,
.layout-full-width .td-post-title h2,
.layout-full-width .td-post-title h3 {
    font-size: 24px !important;
    line-height: 1.2 !important;
}

.layout-half-width .td-post-title h1,
.layout-half-width .td-post-title h2,
.layout-half-width .td-post-title h3 {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

/* No additional decorative styling - using theme defaults */


body .the-featured-posts-home .td-cpt-post {
    width: 50% !important;
    display: inline-block !important;
    clear: none !important;
    flex: auto !important;
    margin: 0 !important;
}


/* CSS Grid Fallback - Alternative layout method */
.use-grid-layout,
.td_block_wrap.use-grid-layout,
[class*="tdi_"].use-grid-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    width: 100% !important;
    /* Override any existing properties */
    flex-direction: initial !important;
    flex-wrap: initial !important;
}

.use-grid-layout .td_module_flex.layout-full-width,
.td_block_wrap.use-grid-layout .td_module_flex.layout-full-width,
[class*="tdi_"].use-grid-layout .td_module_flex.layout-full-width {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    clear: none !important;
    float: none !important;
}

.use-grid-layout .td_module_flex.layout-half-width,
.td_block_wrap.use-grid-layout .td_module_flex.layout-half-width,
[class*="tdi_"].use-grid-layout .td_module_flex.layout-half-width {
    grid-column: span 1 !important;
    width: 100% !important;
    clear: none !important;
    float: none !important;
    margin: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Stack posts vertically on mobile */
    .td-big-grid-flex,
    .td_block_wrap,
    .td-big-grid-wrapper {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .td_module_flex.layout-full-width,
    .td_module_flex.layout-half-width {
        width: 100% !important;
        flex: 0 0 100% !important;
        margin: 0 !important;
    }
    
    .layout-full-width .td-post-title h1,
    .layout-full-width .td-post-title h2,
    .layout-full-width .td-post-title h3,
    .layout-half-width .td-post-title h1,
    .layout-half-width .td-post-title h2,
    .layout-half-width .td-post-title h3 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
}

/* Float Fallback - For older browsers */
@supports not (display: flex) {
    .td_module_flex.layout-full-width {
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    .td_module_flex.layout-half-width {
        width: 48% !important;
        float: left !important;
        margin-right: 4% !important;
    }

    .td_module_flex.layout-half-second {
        margin-right: 0 !important;
    }

    /* Clear floats after every full-width post */
    .td_module_flex.layout-full-width::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
}

/* DEBUG STYLES - Remove or comment out in production */
.debug-layout .layout-full-width::before {
    content: "FULL WIDTH - Post";
    position: absolute;
    top: -25px;
    left: 0;
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 100;
}

.debug-layout .layout-half-width::before {
    content: "HALF WIDTH - Post";
    position: absolute;
    top: -25px;
    left: 0;
    background: #44ff44;
    color: black;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 100;
}

.debug-layout .layout-half-first::before {
    content: "HALF-1";
    background: #4444ff;
    color: white;
}

.debug-layout .layout-half-second::before {
    content: "HALF-2";
    background: #ff44ff;
    color: white;
}





@media only screen and (max-width: 768px) {
  /* For mobile phones: */

    .home.td-boxed-layout .td-container-wrap,
    .category.td-boxed-layout .td-container-wrap,
    .single-post.td-boxed-layout .td-container-wrap {
        margin-top: 0;
    }

    #mobile-header .col-mobile-btn-search img, #mobile-header .col-mobile-btn-menu img {
        max-width: 26px;
    }

    .tdc-row.td-stretch-content, .tdc-row-composer.td-stretch-content {
        padding-left: 0;
        padding-right: 0;
    }

    ul#menu-zi-de-zi-mai-bine li {
        width: auto;
        text-align: center;
    }

    .the-category-header-menu a .tdb-menu-item-text {
        font-size: 12px;
    }

    #menu-zi-de-zi-mai-bine li a {
        font-size: 12px !important;
        padding: 0 6px;
    }

    .single-post .the-article-header-container .tdb-featured-image-bg {
        padding-bottom: 300px;
    }

    .home.td-boxed-layout ul#menu-zi-de-zi-mai-bine {
        margin-top: 90px !important;
    }

  .tdb_loop .td-post-author-name, .tdb_loop .td-post-date, .tdb_loop .td-module-comments {
        vertical-align: unset !important;
    }

    body .the-featured-posts-home .td-cpt-post {
        width: 100% !important;
        display: block !important;
    }

    body .td_module_flex.layout-half-width, .td_module_flex.layout-half-width {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

  .the-header-floating-image {
      display: none;
  }

  .the-header-category-description {
      top: auto;
      z-index: 9999999;
      position: relative;
      width: 100%;
  }

  .the-header-category-description p {
      color: #00754a;
      line-height: 18px;
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 3px;
  }

.homepage-main-post-slide .td-module-thumb .entry-thumb {
    min-width: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    right: 0;
    top: 0;
    left: auto;
    width: 100%;
}

.the-category-header-menu {
    position: absolute;
    top: 40%;
    z-index: 999;
    width: 100%;
    color: #fff;
    left: 10px;
}

.homepage-main-post-slide .td-module-meta-info {
    top: 50%;
    max-width: 100%;
    margin: auto 0;
    padding: 5% 10%;
    background-color: #a5cd39;
    vertical-align: middle;
    height: auto;
    position: relative;
}

body .homepage-main-post-slide .td-next-prev-wrap {
    height: auto !important;
    width: 90% !important;
    z-index: 99999999999;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    top: 15% !important;
}

body .homepage-main-post-slide .td-next-prev-wrap .td-ajax-next-page {
    float: right;
}

div#footer-container-main .tdm-social-wrapper .tdm-social-item {
    background-color: #fff;
    border: 1px solid #135340 !important;
}

div#the-main-social-container {
    display: none;
}

}