/*
Theme Name: Comparsa Infantil
Theme URI: https://cantera.es/
Description: Tema personalizado para la comparsa infantil de Cádiz. Alegre, responsive y limpio.
Author: Ramiro Petre Diaz
Author URI: https://web.rapd.es
Version: 1.0.1
Text Domain: comparsa-infantil
*/

:root {
    --primary-color: #e63946;
    /* Festive Red */
    --secondary-color: #f1faee;
    /* Off White */
    --accent-color: #a8dadc;
    /* Light Blue */
    --highlight-color: #457b9d;
    /* Medium Blue */
    --dark-color: #1d3557;
    /* Dark Blue */
    --text-color: #333;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --header-height: 80px;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    padding-top: var(--header-height);
    /* Space for sticky header */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-branding h1 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin: 0;
}

.site-branding a {
    text-decoration: none;
}

/* Custom Logo */
.custom-logo-link {
    display: block;
    padding: 5px 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    gap: 20px;
    margin: 0;
}

.main-navigation a {
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle (Hidden by default on desktop) */
.menu-toggle {
    display: none;
}

/* Carousel */
.main-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #ddd;
    max-height: 500px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 4rem;
    padding: 0 20px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s, transform 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

/* Carousel Dots */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: #fff;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--highlight-color), var(--dark-color));
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    background-color: #d62828;
    transform: translateY(-2px);
    color: #fff;
}

/* Main Content Layout */
.site-content {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* News 2/3, Ads 1/3 */
    gap: 40px;
}

/* News Section */
.news-section h2,
.sidebar-section h2 {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    color: var(--highlight-color);
    font-weight: 600;
}

/* Sidebar / Ads */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns of ads in sidebar */
    gap: 15px;
}

.partner-item img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .site-content {
        grid-template-columns: 1fr;
    }

    /* Stack columns */
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    /* More ads per row on mobile if needed, or keep 2 */
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .site-header {
        height: auto;
        padding: 10px 0;
        position: relative;
    }

    /* Unstick on mobile if too tall, or adjust */
    body {
        padding-top: 0;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Comments Section */
.comment-respond {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: block;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: var(--highlight-color);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit .submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.2);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    color: var(--highlight-color);
    font-weight: 600;
}

/* Sidebar / Ads */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns of ads in sidebar */
    gap: 15px;
}

.partner-item img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .site-content {
        grid-template-columns: 1fr;
    }

    /* Stack columns */
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    /* More ads per row on mobile if needed, or keep 2 */
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .site-header {
        height: auto;
        padding: 10px 0;
        position: relative;
    }

    /* Unstick on mobile if too tall, or adjust */
    body {
        padding-top: 0;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Comments Section */
.comment-respond {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: block;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: var(--highlight-color);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit .submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.2);
}

.form-submit .submit:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}

.comment-notes,
.logged-in-as {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 250px;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

/* Hover Effect - Sliding Color Bar */
.nav-previous a::before,
.nav-next a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
    z-index: 0;
    transform: translateX(-101%);
    /* Start off-screen */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-previous a:hover::before,
.nav-next a:hover::before {
    transform: translateX(0);
    /* Slide in */
}

/* Content styling to stay on top of the background */
.nav-subtitle,
.nav-title {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Change text color on hover */
.nav-previous a:hover .nav-subtitle,
.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-subtitle,
.nav-next a:hover .nav-title {
    color: #fff;
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Arrow icons (optional, using pseudo-elements for simple arrows) */
.nav-previous a .nav-title::before {
    content: '← ';
    margin-right: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.nav-next a .nav-title::after {
    content: ' →';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}





/* Comments Section */
.comment-respond {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: block;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: var(--highlight-color);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit .submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.2);
}

.form-submit .submit:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}

.comment-notes,
.logged-in-as {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 250px;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

/* Hover Effect - Sliding Color Bar */
.nav-previous a::before,
.nav-next a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
    z-index: 0;
    transform: translateX(-101%);
    /* Start off-screen */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-previous a:hover::before,
.nav-next a:hover::before {
    transform: translateX(0);
    /* Slide in */
}

/* Content styling to stay on top of the background */
.nav-subtitle,
.nav-title {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Change text color on hover */
.nav-previous a:hover .nav-subtitle,
.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-subtitle,
.nav-next a:hover .nav-title {
    color: #fff;
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Arrow icons (optional, using pseudo-elements for simple arrows) */
.nav-previous a .nav-title::before {
    content: '← ';
    margin-right: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.nav-next a .nav-title::after {
    content: ' →';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.nav-previous a:hover .nav-title::before {
    transform: translateX(-5px);
}

.nav-next a:hover .nav-title::after {
    transform: translateX(5px);
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    color: var(--dark-color);
}

.sidebar-pages ul {
    padding: 0;
    margin: 0;
}

.sidebar-pages li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-pages li:last-child {
    border-bottom: none;
}

.sidebar-pages a {
    display: block;
    padding: 10px 5px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: var(--highlight-color);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit .submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.2);
}

.form-submit .submit:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}

.comment-notes,
.logged-in-as {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 250px;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

/* Hover Effect - Sliding Color Bar */
.nav-previous a::before,
.nav-next a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
    z-index: 0;
    transform: translateX(-101%);
    /* Start off-screen */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-previous a:hover::before,
.nav-next a:hover::before {
    transform: translateX(0);
    /* Slide in */
}

/* Content styling to stay on top of the background */
.nav-subtitle,
.nav-title {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Change text color on hover */
.nav-previous a:hover .nav-subtitle,
.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-subtitle,
.nav-next a:hover .nav-title {
    color: #fff;
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Arrow icons (optional, using pseudo-elements for simple arrows) */
.nav-previous a .nav-title::before {
    content: '← ';
    margin-right: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.nav-next a .nav-title::after {
    content: ' →';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.nav-previous a:hover .nav-title::before {
    transform: translateX(-5px);
}

.nav-next a:hover .nav-title::after {
    transform: translateX(5px);
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    color: var(--dark-color);
}

.sidebar-pages ul {
    padding: 0;
    margin: 0;
}

.sidebar-pages li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-pages li:last-child {
    border-bottom: none;
}

.sidebar-pages a {
    display: block;
    padding: 10px 5px;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-pages a:hover {
    color: var(--primary-color);
    padding-left: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Sidebar Links (Explicit) */
.sidebar-links {
    list-style: none !important;
    /* Force remove bullets */
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    display: block;
    /*padding: 10px 0;*/
    color: var(--dark-color);
    font-weight: 500;
    transition: padding-left 0.3s, color 0.3s;
}

.sidebar-links a:hover {
    padding-left: 10px;
    color: var(--primary-color);
    font-weight: bold;
    /*background-color: #f9f9f9;*/
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.related-posts h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-item a {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.related-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-item h4 {
    padding: 15px;
    font-size: 1rem;
    color: var(--dark-color);
    margin: 0;
}