p {
    line-height: 25px;
    color: #0E0E0E;
}

h1 {
    line-height: 48px;
    color: black;
    margin-top: 14px;
    margin-bottom: 8px;
}

h2 {
    line-height: 36px;
    color: black;
}

.wp-block-image img {
    border-radius: 10px;
}

a:hover {
    text-decoration: underline;
}

.post-thumbnail {
    margin-top: 24px;
}

.post-thumbnail img {
    border-radius: 10px;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    filter: blur(0.5px);
}

.e-mail-section {
    width: 90%;
    margin: 0 auto;
    max-width: 1253px;
    margin-top: 80px;
}

.entry-meta {
    font-size: 14px;
    color: #707070;
}

.entry-meta .byline {
    border-left: 1px solid #DFDFDF;
    padding-left: 12px;
}

.entry-meta .posted-on {
    padding-right: 14px;
}

.entry-meta a {
    color: #707070 !important;
}

.all-categories {
    margin-top: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.all-categories span {
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    min-width: 200px;
}

.all-categories ul {
    list-style: none;
    padding: 0;
    overflow-x: scroll; 
}

.all-categories ul::-webkit-scrollbar {
    display: none;
}

.all-categories li {
    border: 1px solid #D7D7D7;
    border-radius: 10px;
    text-align: center;
    padding: 4px 12px;
}

.all-categories a {
    color: black !important;
    font-size: 16px;
    white-space: nowrap;
}

.all-categories a:hover, .entry-meta a:hover {
    text-decoration: none;
}

.list-categories .owl-stage {
    padding-left: 0 !important; 
}

.blog-post-container {
    display: flex;
    gap: 32px;
}

.left-side {
    width: 25%;
    margin-top: 24px;
}

.blog-post-content {
    width: 75%;
}

.related-posts h2 {
    color: #F04F50;
    text-transform: uppercase;
    font-size: 16px;
}

.related-posts-list {
    padding: 0;
    gap: 24px;
    display: flex;
    flex-direction: column;
}

.related-posts .related-post-content a {
    color: #000000 !important;
    font-size: 14px;
    font-weight: 600 !important;
}

.related-posts .related-post-content a:hover {
    color: #F04F50 !important;
    text-decoration: none;
}

.related-post-item:not(:first-child) {
    border-top: 1px solid #D7D7D7; 
    padding-top: 24px;
}

.related-posts-list img {
    border-radius: 15px;
    height: 190px;
    object-fit: cover;
    object-position: center;
    filter: blur(0.5px);
}

#ez-toc-container {
    border-radius: 10px !important;
    padding: 16px !important;
    width: 100%;
}

.ez-toc-title-container {
    margin-bottom: 8px;
}

@media (min-width: 800px) {
    .related-post-date {
        display: none;
    }
}

@media (max-width: 800px) {
    .blog-post-content {
        width: 100%;
        order: 1;
        padding: 0 8px;
    }

    .left-side {
        width: 100%;
        order: 2;
    } 

    .blog-post-container {
        flex-direction: column;
    }

    h1 {
        font-size: 24px;
        line-height: 28px;
        margin-top: 10px;
        margin-bottom: 16px;
    }

    .entry-meta {
        font-size: 13px;
    }

    .entry-meta .posted-on {
        padding-right: 8px;
    }

    .entry-meta .byline {
        padding-left: 6px;
    }

    h2 {
        line-height: 28px;
        font-size: 21px;
    }

    #ez-toc-container {
        padding: 15px 20px !important;
    }

    .all-categories ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        position: relative;
    }

    .all-categories span {
        min-width: unset;
        margin: 0;
        font-size: 14px;
        background-color: #F04F50;
        border-radius: 10px;
        display: flex;
        align-items: center;
        padding: 4px 10px;
        color: white;
        font-weight: 500;
    }

    .all-categories span:before {
        font-family: 'Font Awesome 5 Free';
        content: '\f0c9';
        margin-right: 8px;
        font-weight: 600;
        padding-top: 2px;
    }

    .all-categories ul::after {
        content: '';
        z-index: 1;
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
        transition: opacity 0.3s;
    }

    .all-categories ul.no-gradient::after {
        display: none;
    }

    .all-categories {
        gap: 8px;
        margin-top: 16px;
        padding: 0 8px;
    }

    .post-thumbnail {
        margin-top: 16px;
    }

    .all-categories a {
        font-size: 14px;
    }

    .all-categories li {
        padding: 4px 10px;
    }

    .all-categories span.hide-text {
        width: 28px;
        padding-left: 8px;
    }

    .related-posts {
        padding: 0 8px;
    }

    .blog-post-container {
        gap: 0px;
    }

    .related-posts h2 {
        line-height: 25px;
        font-size: 20px;
        font-weight: 700;
    }

    .related-post-item:not(:first-child) {
        border-top: none;
        padding-top: 0px;
    }

    .related-post-item {
        display: flex;
    }

    .related-posts-list {
        gap: 16px;
    }

    .related-posts-list img {
        height: 128px;
        width: 128px;
        min-width: 128px;
        max-height: 128px;
        margin-right: 8px;
    }

    .e-mail-section {
        margin: 30px 0px;
        padding: 0 8px;
        width: 100%;
    }

    .related-posts .related-post-content a {
        font-size: 15px;
        font-weight: 700 !important;
        line-height: 20px;
    }

    .related-post-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .related-post-date {
        margin-bottom: 8px;
        color: #F04F50;
        font-size: 13px;
        font-family: 'Inter';
        font-weight: 500;
    }
}

/* Blog main */

.main-blog-posts {
    margin-top: 24px;
}

a.blog-post-preview {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-blog-posts {
    display: flex;
    gap: 24px;
    align-items: center;
}

.blog-preview-first {
    width: 55%;
    position: relative;
}

.blog-preview-second {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-preview-first img {
    width: 100%;
    border-radius: 15px;
    max-height: 416px;
    object-fit: cover;
    filter: blur(0.5px);
}

.blog-post-preview img {
    height: 128px;
    width: 128px;
    min-width: 128px;
    max-height: 128px;
    object-fit: cover;
    filter: blur(0.5px);
    border-radius: 15px;
}

.main-blog-posts a {
    text-decoration: none;
}

.blog-preview h3 {
    color: #000000;
    font-weight: 700;
    font-size: 16px;
    line-height: 21.79px;
    margin: 0;
}

.blog-preview p {
    color: #000000;
    font-weight: 400;
    font-size: 15px;
    line-height: 21.79px;
    margin: 16px 0 0 0;
}

.information-field {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.information-field h2 {
    font-size: 18px;
    line-height: 24.51px;
    font-weight: 700;
    margin: 8px 0;
}

.information-field p {
    font-size: 16px;
    line-height: 21.79px;
    font-weight: 400;
    margin: 0;
}

.information-field .blog-main-content {
    width: 65%;
}

.blog-preview-first h3 {
    position: absolute;
    bottom: 32px;
    color: white;
    margin: 0;
    left: 32px;
    font-size: 22px;
    z-index: 3;
}

.blog-preview-first::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0px -100px 50px 0px rgba(0, 0, 0, 0.6);
    pointer-events: none; /* Ensures it doesn't block clicks */
    z-index: 2;
    border-radius: 15px;
}

.blog-preview-first a {
    display: flex;
}

.blog-preview-second a:hover h3 {
    color: #F04F50;
}

.latest-articles {
    position: relative;
}

.latest-articles .elements-title h2 {
    padding-right: 32px;
    white-space: nowrap;
    font-size: 25px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
    gap: 26px; /* Space between posts */
}

.blog-posts-grid .blog-post {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-posts-grid .blog-post .read-more-link {
    font-size: 14px;
    font-weight: 700;
}

.blog-posts-grid .blog-post .post-date {
    font-size: 14px;
    font-weight: 500;
    color: #F04F50;
}

.blog-posts-grid .blog-post .blog-post-read-more-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-posts-grid a img {
    height: 240px;
    border-radius: 15px;
    object-fit: cover;
    filter: blur(0.5px);
}

.blog-posts-grid a h3 {
    color: #000000;
    font-size: 18px;
    min-height: 54px;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2; /* Limits text to 3 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}

.blog-posts-grid a p {
    color: #000000;
    font-size: 16px;
    margin-top: 0px;
    margin-bottom: 16px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3; /* Limits text to 3 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}

.blog-posts-grid a:hover h3 {
    color: #F04F50;
}

.blog-posts-grid a:hover {
    text-decoration: none;
}

.latest-articles .pagination, .category-blog-pagination {
    justify-content: end;
    display: flex;
    gap: 5px;
    margin-top: 56px;
}

.latest-articles .pagination span, .latest-articles .pagination a, .category-blog-pagination span, .category-blog-pagination a {
    border: 1px solid #F04F50;
    border-radius: 5px;
    width: 32px;
    height: 32px;
    align-items: center;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.latest-articles .pagination span, .category-blog-pagination span {
    color: white;
    background-color: #F04F50;
}

.latest-articles .pagination a.next, .latest-articles .pagination a.prev, .category-blog-pagination a.next, .category-blog-pagination a.prev {
    width: 72px;
    background-color: #F04F500D;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

@media (max-width: 800px) {
    .main-blog-posts {
        flex-direction: column;
        margin: 0 8px;
        margin-top: 24px;
    }

    .blog-preview-first, .blog-preview-second {
        width: 100%;
    }

    .blog-preview-first h3 {
        font-size: 19px;
        left: 16px;
        bottom: 12px;
    }

    .blog-preview-first::before {
        box-shadow: inset 0px -120px 50px 0px rgba(0, 0, 0, 0.6);
    }

    .blog-preview p {
        display: none;
    }

    .blog-post-text-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    a.blog-post-preview {
        align-items: unset;
    }

    .information-field, .latest-articles .line {
        display: none;
    }

    .latest-articles {
        margin: 0 8px;
    }

    .latest-articles .elements-title h2 {
        font-size: 17px;
        margin-bottom: 22px;
        border-bottom: 3px solid #F04F50;
    }

    .latest-articles .elements-title {
        display: block;
    }

    .blog-posts-grid {
        display: block;
    }

    .blog-posts-grid a img {
        height: 192px;
    }

    .blog-posts-grid a p {
        display: none;
    }

    .blog-posts-grid a h3 {
        min-height: unset;
        font-size: 16px;
        line-height: 20px;
        margin-top: 8px;
        display: unset;
    }

    article.blog-post:not(:first-child) {
        border-top: 1px solid #00000026; 
        padding-top: 14px;
    }

    .latest-articles .blog-post, .category-blog .blog-post {
        padding-bottom: 14px;
    }

    .latest-articles .pagination, .category-blog-pagination {
        margin-top: 12px;
        justify-content: center;
    }
}

/* Category page */

.list-categories li {
    width: 100%;
}

.archive .owl-carousel .owl-stage-outer::after, .archive .owl-carousel .owl-stage-outer::before {
    display: none;
}

.category-blog {
    margin-bottom: 32px;
    margin-top: 16px;
}

.category-blog-pagination {
    margin-bottom: 28px;
}

h1.category-blog-title {
    font-size: 28px !important;
}

.all-categories span.show-mobile, ul.list-categories.show-mobile {
    display: none;
}

@media (max-width: 800px) {
    .all-categories span.show-mobile, ul.list-categories.show-mobile {
        display: flex;
    }

    .all-categories span.show-desktop, ul.list-categories.show-desktop, .desktop-toc-container {
        display: none;
    }

    .category-blog {
        margin: 0 8px;
    }

    .category-blog-pagination {
        margin-bottom: 20px;
    }

    h1.category-blog-title {
        margin-left: 8px;
        margin-bottom: 10px !important;
        font-size: 22px !important;
    }
}

/* blog search */
.blog-search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
} 

.blog-search-input-wrapper input {
    border-radius: 10px;
    width: 100%;
    font-size: 16px;
    line-height: 100%;
    padding: 10px 40px 10px 15px;
    position: relative;
    transition: all 0.5s ease;
    border: 1px solid #ddd;
    height: 40px;
    margin: 0;
    background: #fff;
}

.blog-search-input-wrapper input:focus, .blog-search-input-wrapper input:active {
    outline: 0;
    box-shadow: 0 0 9px 1px rgba(0, 0, 0, .06);
}

.blog-search-input-wrapper .search-icon {
    position: absolute;
    top: 51%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none; /* Ensures the icon doesn't interfere with input clicks */
    background: transparent;
    border: 0;
    padding: 0;
}

.blog-search-input-wrapper .search-icon svg {
    width: 20px;
    height: auto;
}

.blog-search-input-wrapper input.showResults {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.loading-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.blog-ajax-search-results {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 0px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.blog-ajax-search-results .ajax-result-item {
    padding: 10px 25px 5px 25px;
    border-bottom: 1px solid #BBB;
}

.blog-ajax-search-results .ajax-result-item a, .blog-ajax-search-results .ajax-result-item a:active, .blog-ajax-search-results .ajax-result-item a:visited,
.blog-ajax-search-results .ajax-result-item a:hover {
    display: flex;
    width: 100%;
    color: #1C1C1C;
    gap: 15px;
    align-items: center;
}

.blog-ajax-search-results .ajax-result-item a div.thumb-holder {
    width: 90px;
    height: 90px;
}

.blog-ajax-search-results .ajax-result-item a div.thumb-holder img {
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.blog-ajax-search-results .ajax-result-item a p {
    margin: 8px 0 12px 0;
}


.blog-ajax-search-results .ajax-show-all {
    text-align: center;
    padding: 5px 25px 8px 25px;
}

.blog-ajax-search-results .ajax-no-results, .blog-ajax-search-results .ajax-error {
    text-align: center;
    padding: 5px 25px 8px 25px;
}

.blog-ajax-search-results .ajax-show-all a, .blog-ajax-search-results .ajax-show-all a:visited, 
.blog-ajax-search-results .ajax-show-all a:active, .blog-ajax-search-results .ajax-show-all a:hover {
    color: #7E8287;
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 1px dashed #7E8287;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.post-template-default.single-post figcaption {
    display: none;
}

@media (max-width: 800px) {
    div.fav-div, div.profile-div, div.line-div, div.cart-area {
        display: none;
    }

    .site-branding .logo-div {
        height: 35px;
        margin: 0 auto 0 calc(50% - 129px);
        width: 182px;
    }

    .site-branding .logo-div a, .site-branding .logo-div a picture {
        height: 100%;
    }

    .site-branding .logo-div img {
        height: 100%;
        max-width: none;
        width: auto;
    }

    .site-branding .search-bar {
        display: block;
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    .blog-search-input-wrapper {
        margin: 8px 0;
    }

    .blog-search-input-wrapper input {
        height: 33px;
        font-size: 16px;
        padding: 8px 30px 8px 10px;
    }
}