.seccion-hero-tag-date {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    position: relative;
    top: 50px;
}

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

.seccion-hero-tag-date .tag,
.seccion-hero-tag-date .date {
    display: flex;
    align-items: center;
}

.seccion-hero-tag-date .tag p,
.seccion-hero-tag-date .tag i,
.seccion-hero-tag-date .tag span,
.seccion-hero-tag-date .tag a,
.seccion-hero-tag-date .date p,
.seccion-hero-tag-date .date {
    color: #fff;
}

.seccion-hero-tag-date i {
    margin-right: 4px ;
}

.seccion-hero-tag-date .tag a {
    transition: all .3s;
}

.seccion-hero-tag-date .tag a:hover {
    color: var(--secondary) !important;
}

.content-blog .posts p,
.content-blog .posts ul, 
.content-blog .posts ul li,
.content-blog .posts ul li a,
.content-blog .posts ol, 
.content-blog .posts ol li,
.content-blog .posts ol li a,
.content-blog .posts span,
.content-blog .posts strong{
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    letter-spacing: 0px;
    color: var(--gray-500);
}

.content-blog .posts ul {
    list-style: disc;
}

.content-blog .posts ol {
    list-style: decimal;
}

.content-blog .posts ul,
.content-blog .posts ol {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 40px !important;
    padding-left: 0px !important;
    margin-left: 15px !important;
    text-align: justify;
}

.content-blog .posts ul li,
.content-blog .posts ol li {
    margin-bottom: 10px;
}

.content-blog .posts ul li ul,
.content-blog .posts ol li ul {
    margin-top: 10px;
}

p {
    color: var(--gray-500) !important;
}

.content-blog .posts h1,
.content-blog .posts h2,
.content-blog .posts h3,
.content-blog .posts h4,
.content-blog .posts h5,
.content-blog .posts h6 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0;
    display: block;
}

.content-blog .posts p {
    margin-bottom: 20px !important;
    text-align: justify;
}

.content-blog .posts h1,
.content-blog .posts h2 {
    font-size: 28px;
}

.content-blog .posts h3,
.content-blog .posts h4 {
    font-size: 20px;
}

.content-blog .posts h5 {
    font-size: 16px;
}

.content-blog .posts img {
    max-width: 460px;
    max-width: 460px;
    object-position: center;
}

.post-related-content {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 8rem !important;
}

.content-blog .posts strong {
    color: var(--gray-600);
    font-weight: bold;
}

.content-blog .posts li ul {
    margin-bottom: 0px !important;
}

.site-footer {
    margin-top: 0px !important;
}

.bg-hero-single{
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* blog css */

.content-blog {
    display: grid;
    grid-template-columns: 3fr 380px;
    grid-column-gap: 40px;
    padding-top: 4.25rem;
}

.site-content-blog {
    display: grid;
    grid-template-columns: 3fr 380px;
    grid-column-gap: 40px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.site-content-blog .contenido-blog {
    width: 100%;
}

.posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 20px;
}

.posts > div {
    width: 32% !important;
    margin-bottom: 50px;
}

aside.sidebar .wp-block-search__label,
aside.sidebar .wp-block-heading {
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    vertical-align: middle;
    color: var(--primary);
}

.wp-block-search__label {
    margin-bottom: 20px !important;
}

.wp-block-search__inside-wrapper {
    margin-top: 10px !important;
}

aside.sidebar .wp-block-heading{
    position: relative;
    margin-bottom: 20px;
}

aside.sidebar .wp-block-heading::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--gray-200);
    bottom: -10px;
    left: 0;
    right: 0;
}

aside.sidebar form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button.has-icon {
    width: 63px;
    border-radius: 0px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    padding: 0;
    display: flex;
    justify-content: center;
    border: 1px solid var(--secondary);
    align-items: center;
    transition: all .3s ease-in-out;
}

aside.sidebar .wp-block-search__input {
    box-shadow: none !important;
    height: auto !important;
    margin: 0;
    background-color: transparent !important;
}

aside.sidebar .wp-block-search__inside-wrapper {
    border: 1px solid var(--gray-200);
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    height: 38px;
    margin-bottom: 20px;
    background-color: transparent !important;
    border-top-left-radius: 3px !important;
    border-bottom-left-radius: 3px !important;

}

aside.sidebar .wp-block-search__button:hover {
    background-color: transparent !important;
}

aside.sidebar .wp-block-search__button:hover svg {
    fill: var(--secondary);
}

input[type="search"]:focus {
    border-width: 0px !important;
    border-color: none !important;
    box-shadow: none;
    outline: none;
}

.wp-block-categories-list.wp-block-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

.wp-block-categories-list.wp-block-categories a{
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--gray-500);
    transition: all .3s ease-in-out;
}

.wp-block-categories-list.wp-block-categories a:hover {
    cursor: pointer;
    color: var(--secondary);
}

.wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.wp-block-tag-cloud a:nth-child(even) {
    font-weight: 400;
    font-size: 28px !important;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--gray-500);
    align-items: end;    
}

.wp-block-tag-cloud a:nth-child(odd) {
    font-weight: 400;
    font-size: 16px !important;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--gray-500);
    display: inline-flex;
    align-items: flex-end; 
    text-decoration: none;
}

@media (max-width: 1440px) {
    .posts > div {
        width: 30% !important;
    }
}

@media (max-width: 1024px) {
    .posts > div {
        width: 48% !important;
    }
}

@media (max-width: 425px) {
    .date_card_noticies {
        width: auto;
    }

    .posts > div {
        width: 100% !important;
        max-height: 450px !important;
    }
}

.breadcrumbs_text {
    top: -100px;
}

.ingenius_title_hero {
    position: relative;
    top: -20px;
}

.posts .ingenius-pagination {
    width: 100% !important;
}

.wp-block-search__button {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.wp-block-search__button svg {
    fill: #fff;
}

.wp-block-search__input {
    border: none !important;
    box-shadow: none !important;
}

.post-meta > * {
    color: #fff !important;
    fill: #fff !important;
}

.post-meta {
    display: flex !important;
    gap: 30px !important;
}

.post-meta .post-date, .post-meta .post-tags {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.post-related-content {
    margin-top: 2rem !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    /* Content blog layout - single.php */
    .content-blog {
        grid-template-columns: 1fr;
        grid-column-gap: 0;
        padding-top: 2.5rem;
    }

    /* Site content blog layout - index.php */
    .site-content-blog {
        grid-template-columns: 1fr;
        grid-column-gap: 0;
        display: grid;
    }

    .site-content-blog .contenido-blog {
        width: 100%;
    }

    .site-content-blog .sidebar {
        width: 100%;
        margin-top: 2rem;
    }

    /* Hero section adjustments */
    .section-hero-home .cubaemprende_max_content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-hero-home h1.display-bold-3 {
        font-size: 40px;
        line-height: 50px !important;
    }

    .section-hero-home .h3-medium {
        font-size: 20px;
        line-height: 28px !important;
    }

    /* Post meta adjustments */
    .post-meta {
        flex-direction: column;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    /* Post related content */
    .post-related-content {
        gap: 15px;
        margin-bottom: 4rem !important;
    }
}

/* Mobile landscape and below (768px) */
@media (max-width: 768px) {
    /* Hero section */
    .section-hero-home {
        min-height: 70vh !important;
    }

    .section-hero-home h1.display-bold-3 {
        font-size: 32px;
        line-height: 42px !important;
        margin-bottom: 1.5rem;
    }

    .section-hero-home .h3-medium {
        font-size: 18px;
        line-height: 26px !important;
        margin-bottom: 1.5rem;
    }

    /* Content blog spacing */
    .content-blog {
        padding-top: 2rem;
    }

    .content-blog .posts {
        gap: 15px;
    }

    /* Posts grid adjustments - index.php */
    .contenido-blog .posts {
        gap: 15px;
    }

    /* Sidebar adjustments */
    aside.sidebar {
        margin-top: 0;
    }

    /* Pagination */
    .pagination-wrapper {
        margin-top: 2rem;
    }

    /* Post related content */
    .post-related-content {
        margin-top: 1.5rem !important;
        margin-bottom: 3rem !important;
    }

    /* Images in posts */
    .content-blog .posts img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    /* Typography adjustments */
    .content-blog .posts h1,
    .content-blog .posts h2 {
        font-size: 24px;
    }

    .content-blog .posts h3,
    .content-blog .posts h4 {
        font-size: 18px;
    }

    .content-blog .posts p,
    .content-blog .posts ul,
    .content-blog .posts ol {
        font-size: 15px;
    }
}

/* Mobile portrait (425px and below) */
@media (max-width: 425px) {
    /* Hero section */
    .section-hero-home {
        min-height: 60vh !important;
    }

    .section-hero-home .cubaemprende_max_content {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 2rem;
    }

    .section-hero-home h1.display-bold-3 {
        font-size: 28px;
        line-height: 36px !important;
        margin-bottom: 1rem;
    }

    .section-hero-home .h3-medium {
        font-size: 16px;
        line-height: 24px !important;
        margin-bottom: 1rem;
    }

    /* Content blog */
    .content-blog {
        padding-top: 1.5rem;
    }

    .content-blog .posts {
        gap: 10px;
    }

    /* Index page posts */
    .contenido-blog .posts {
        gap: 10px;
    }

    /* Typography in posts */
    .content-blog .posts h1,
    .content-blog .posts h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .content-blog .posts h3,
    .content-blog .posts h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .content-blog .posts h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .content-blog .posts p {
        margin-bottom: 15px !important;
        font-size: 14px;
    }

    .content-blog .posts ul,
    .content-blog .posts ol {
        margin-bottom: 25px !important;
        font-size: 14px;
    }

    /* Post meta */
    .post-meta {
        gap: 10px !important;
    }

    .post-meta .post-date,
    .post-meta .post-tags {
        font-size: 14px;
    }

    /* Post related content */
    .post-related-content {
        gap: 10px;
        margin-bottom: 2rem !important;
    }

    /* Sidebar */
    aside.sidebar {
        padding: 0;
    }

    aside.sidebar .wp-block-heading {
        font-size: 18px;
    }

    /* Search form */
    aside.sidebar .wp-block-search__inside-wrapper {
        height: 36px;
    }

    /* Categories and tags */
    .wp-block-categories-list.wp-block-categories a {
        font-size: 14px;
    }

    .wp-block-tag-cloud a:nth-child(even) {
        font-size: 24px !important;
    }

    .wp-block-tag-cloud a:nth-child(odd) {
        font-size: 14px !important;
    }

    /* Pagination */
    .pagination-wrapper {
        margin-top: 1.5rem;
    }

    .pagination-wrapper ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }

    .pagination-wrapper li {
        margin: 0 !important;
    }

    /* Breadcrumbs and hero title adjustments */
    .breadcrumbs_text {
        top: -80px;
    }

    .ingenius_title_hero {
        top: -15px;
    }

    .card-blog {
        width: 100% !important;
    }

    .contenido-blog, aside.sidebar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 1080px) {
    .card-blog {
        width: 45% !important;
    }
}

/* Small mobile devices (375px and below) */
@media (max-width: 375px) {
    .section-hero-home h1.display-bold-3 {
        font-size: 24px;
        line-height: 32px !important;
    }

    .section-hero-home .h3-medium {
        font-size: 14px;
        line-height: 22px !important;
    }

    .content-blog .posts h1,
    .content-blog .posts h2 {
        font-size: 20px;
    }

    .content-blog .posts h3,
    .content-blog .posts h4 {
        font-size: 16px;
    }
}

.search .ast-above-header-wrap, body.category .ast-above-header-wrap, body.tag .ast-above-header-wrap {
    background: var(--primary) !important;
}