/* ********** */
/*    BLOG    */
/* ********** */

/* General styles for blog */
.blog-container {
    font-family: Arial, sans-serif;
}

.blog-container h1 {
    font-size: 2.5em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Styles for posts */
.posts {
    list-style: none;
    padding: 0;
}

.post {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: box-shadow 0.3s ease-in-out;
}

.post:hover {
    box-shadow: var(--post-shadow);
}

.post-title {
    font-size: 1.8em;
    color: var(--title-color);
    transition: color 0.1s ease-in-out;
    cursor: pointer;
}

.post-title a {
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    color: var(--title-color);
}

.post-title a:hover {
    transition: color 0.3s ease-in-out;
    color: var(--highlight-color);
}

.post-date {
    color: #a1a1a7;
    font-size: 0.77778rem;
    text-transform: uppercase;
}

.single-post-meta-item {
    color: #a1a1a7;
    font-size: 0.77778rem;
    letter-spacing: 2px;
    line-height: 1.5;
    margin-bottom: 1.42857em;
    text-transform: uppercase;
}

.post-content {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
}

/* Separator between posts */
hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

/* Separator between paragraphs */
p+p {
    margin-top: 20px;
}

/* Message for no posts */
.posts p {
    font-size: 1.2em;
    color: #666;
    text-align: center;
    margin-top: 20px;
}


/*  Single post page  */
.blog-post {
    margin: 2rem auto;
    max-width: 800px;
    padding: 1.5rem;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.breadcrumbs a:hover, .single-post-meta-item a:hover {
    color: var(--highlight-color);
}

.single-post-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.single-post-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.single-post-meta {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.single-post-tags {
    margin-top: 0;
}

.single-post-tag {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
}

.single-post-tag:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    padding: 0px 25px 0px 25px;
}

.single-post-content h1 {
    font-size: 2.22222rem;
    margin: 0.75em 0 0.375em;
}

.single-post-content h2 {
    font-size: 2rem;
    margin: 0.83333em 0 0.41667em;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

.single-post-content ul,
ol {
    margin: 0 0 1.66667em;
    padding: 0 0 0 1.66667em;
}

.single-post-footer {
    margin-top: 2rem;
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
}

.single-post-navigation {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.previous-post,
.next-post {
    color: var(--primary-color);
    text-decoration: none;
}

.previous-post:hover,
.next-post:hover {
    text-decoration: underline;
}

/* **************** */
/*    PAGINATION    */
/* **************** */

.pagination {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    list-style: none;
    gap: 0.5rem;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-link:hover {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    background-color: var(--background-color);
    color: #ccc;
    pointer-events: none;
    cursor: not-allowed;
}

/*  *****************  */
/*  CENTER BLOG IMAGE  */
/*  *****************  */
.single-post-content figure {
    display: block;
    margin: auto;
    unicode-bidi: isolate;
}

/* **************** */
/*       OTROS      */
/* **************** */
.single-post-content a:hover {
    background-size: 0 1px, 100% 1px;
}

.single-post-content a {
    color: inherit;
    text-decoration: none;
}

.single-post-content a {
    background:
        linear-gradient(to right,
            var(--primary-color),
            var(--primary-color)),
        linear-gradient(to right,
            var(--highlight-color),
            var(--highlight-color),
            var(--highlight-color));
    background-size: 100% 1px, 0 1px;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size 400ms;
}