/* =========================================================
   Nicaragua Spanish Lessons — Blog Template CSS
   Cleaned version for Creanza Blog Demo Template
   - Transparent background to preserve yellow page background
   - Improved contrast and hover states
   - Sidebar, CTA, previous/next, related posts
========================================================= */

:root {
    --nsl-green: #1f7a4d;
    --nsl-green-dark: #145c39;
    --nsl-gold: #f4b942;
    --nsl-gold-dark: #d99b1e;
    --nsl-navy: #12324a;
    --nsl-text: #253447;
    --nsl-muted: #5d6b7d;
    --nsl-border: rgba(18, 50, 74, 0.14);
    --nsl-card: rgba(255, 255, 255, 0.58);
    --nsl-card-hover: rgba(255, 255, 255, 0.86);
    --nsl-radius: 18px;
    --nsl-shadow: 0 14px 34px rgba(18, 50, 74, 0.08);
}

/* -----------------------------------------
   Base / Background
----------------------------------------- */


.creanza-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.creanza-post-main {
    padding: 56px 0 62px;
}

/* -----------------------------------------
   Hero
----------------------------------------- */
.creanza-post-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.creanza-post-hero--no-image {
    background:
        linear-gradient(135deg, rgba(31, 122, 77, 0.96), rgba(18, 50, 74, 0.96)),
        radial-gradient(circle at top right, rgba(244, 185, 66, 0.28), transparent 32%);
}

.creanza-post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 50, 74, 0.78) 0%,
        rgba(18, 50, 74, 0.46) 48%,
        rgba(18, 50, 74, 0.14) 100%
    );
}

.creanza-post-hero__inner {
    position: relative;
    z-index: 2;
    padding: 54px 0;
    max-width: 900px;
}

.creanza-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
}

.creanza-breadcrumb a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
}

.creanza-breadcrumb a:hover,
.creanza-breadcrumb a:focus {
    color: var(--nsl-gold);
}

.creanza-category-pill {
    display: inline-flex;
    width: fit-content;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(244, 185, 66, 0.18);
    border: 1px solid rgba(244, 185, 66, 0.45);
    color: #ffe29a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 16px;
    transition: 0.22s ease;
}

.creanza-category-pill:hover,
.creanza-category-pill:focus {
    background: rgba(244, 185, 66, 0.32);
    color: #ffffff;
}

.creanza-post-title {
    max-width: 850px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.06;
    font-weight: 850;
    letter-spacing: -0.8px;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
}

.creanza-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.creanza-post-meta time {
    color: rgba(255, 255, 255, 0.86);
}

.creanza-post-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.creanza-post-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* -----------------------------------------
   Layout
----------------------------------------- */
.creanza-post-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 44px;
    align-items: start;
}

.creanza-post-content {
    min-width: 0;
}

/* -----------------------------------------
   Article Content
----------------------------------------- */
.creanza-entry {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.85;
    color: var(--nsl-text);
}

.creanza-entry > * {
    margin-top: 0;
    margin-bottom: 28px;
}

.creanza-entry p,
.creanza-entry li {
    color: var(--nsl-text);
}

.creanza-entry h2,
.creanza-entry h3,
.creanza-entry h4 {
    color: var(--nsl-navy);
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin-top: 46px;
    margin-bottom: 18px;
}

.creanza-entry h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.creanza-entry h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    border-radius: 999px;
    background: var(--nsl-green);
    margin-top: 12px;
}

.creanza-entry h3 {
    font-size: 24px;
}

.creanza-entry a {
    color: var(--nsl-green-dark);
    font-weight: 650;
    text-underline-offset: 4px;
}

.creanza-entry a:hover,
.creanza-entry a:focus {
    color: var(--nsl-gold-dark);
}

.creanza-entry ul,
.creanza-entry ol {
    padding-left: 24px;
}

.creanza-entry li {
    margin-bottom: 10px;
}

.creanza-entry img {
    max-width: 100%;
    height: auto;
    border-radius: var(--nsl-radius);
}

.creanza-entry blockquote {
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.52);
    border-left: 5px solid var(--nsl-green);
    border-radius: 0 var(--nsl-radius) var(--nsl-radius) 0;
    color: var(--nsl-navy);
    font-style: italic;
}

.creanza-entry blockquote p {
    color: var(--nsl-navy);
}

/* Gutenberg button + template button */
.creanza-entry .wp-block-button__link,
.creanza-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--nsl-green);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    border: none;
    box-shadow: 0 10px 24px rgba(31, 122, 77, 0.18);
    transition: 0.22s ease;
}

.creanza-entry .wp-block-button__link:hover,
.creanza-entry .wp-block-button__link:focus,
.creanza-btn:hover,
.creanza-btn:focus {
    background: var(--nsl-green-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

/* -----------------------------------------
   Share
----------------------------------------- */
.creanza-share {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 760px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--nsl-border);
    color: var(--nsl-muted);
    font-size: 14px;
}

.creanza-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nsl-green);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.22s ease;
}

.creanza-share a:hover,
.creanza-share a:focus {
    background: var(--nsl-gold);
    color: var(--nsl-navy);
    transform: translateY(-2px);
}

/* -----------------------------------------
   Sidebar
----------------------------------------- */
.creanza-sidebar {
    position: sticky;
    top: 96px;
}

.creanza-sidebar-card {
    background: var(--nsl-card);
    border: 1px solid var(--nsl-border);
    border-radius: var(--nsl-radius);
    padding: 24px;
    box-shadow: var(--nsl-shadow);
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    transition: 0.22s ease;
}


.creanza-sidebar-card h2 {
    color: var(--nsl-navy);
    font-size: 20px;
    margin: 0 0 14px;
}

.creanza-sidebar-card p {
    color: var(--nsl-muted);
    line-height: 1.65;
}

.creanza-sidebar-cta {
    background:
        radial-gradient(circle at top right, rgba(244, 185, 66, 0.28), transparent 36%),
        linear-gradient(135deg, rgba(31, 122, 77, 0.96), rgba(18, 50, 74, 0.96));
    color: #ffffff;
    border: none;
}

.creanza-sidebar-cta span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #ffe29a;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
}

.creanza-sidebar-cta h2,
.creanza-sidebar-cta p {
    color: #ffffff;
}

.creanza-sidebar-cta .creanza-btn {
    width: 100%;
    background: #ffffff;
    color: var(--nsl-green-dark);
    box-shadow: none;
    margin-top: 6px;
}

.creanza-sidebar-cta .creanza-btn:hover,
.creanza-sidebar-cta .creanza-btn:focus {
    background: var(--nsl-gold);
    color: var(--nsl-navy);
}

.creanza-link {
    display: block;
    color: #ffe29a;
    text-align: center;
    margin-top: 14px;
    font-weight: 700;
    text-decoration: none;
}

.creanza-link:hover,
.creanza-link:focus {
    color: #ffffff;
}

/* Sidebar categories */
.creanza-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.creanza-category-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--nsl-border);
}

.creanza-category-list li:last-child {
    border-bottom: none;
}

.creanza-category-list a {
    color: var(--nsl-text);
    text-decoration: none;
    font-weight: 650;
    transition: 0.22s ease;
}

.creanza-category-list a:hover,
.creanza-category-list a:focus {
    color: var(--nsl-gold-dark);
}

/* Latest posts */
.creanza-latest-post {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--nsl-border);
    transition: 0.22s ease;
}

.creanza-latest-post:last-child {
    border-bottom: none;
}

.creanza-latest-post:hover,
.creanza-latest-post:focus {
    background: rgba(255, 255, 255, 0.38);
    border-radius: 12px;
    padding-left: 8px;
    padding-right: 8px;
}

.creanza-latest-post img,
.creanza-latest-post__placeholder {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.42);
}

.creanza-latest-post strong {
    display: block;
    color: var(--nsl-navy);
    font-size: 14px;
    line-height: 1.35;
}

.creanza-latest-post:hover strong,
.creanza-latest-post:focus strong {
    color: var(--nsl-gold-dark);
}

.creanza-latest-post small {
    color: var(--nsl-muted);
    font-size: 12px;
}

/* -----------------------------------------
   Tags
----------------------------------------- */
.creanza-tags {
    max-width: 760px;
    padding-top: 24px;
    margin-top: 34px;
    border-top: 1px solid var(--nsl-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.creanza-tags strong {
    color: var(--nsl-navy);
}

.creanza-tags a {
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--nsl-border);
    color: var(--nsl-muted);
    text-decoration: none;
    font-size: 13px;
    transition: 0.22s ease;
}

.creanza-tags a:hover,
.creanza-tags a:focus {
    background: var(--nsl-green);
    border-color: var(--nsl-green);
    color: #ffffff;
}

/* -----------------------------------------
   Author box
----------------------------------------- */
.creanza-author {
    max-width: 760px;
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 44px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid var(--nsl-border);
    border-radius: var(--nsl-radius);
    backdrop-filter: blur(8px);
}

.creanza-author img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.creanza-author span {
    display: block;
    color: var(--nsl-green);
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 800;
    text-transform: uppercase;
}

.creanza-author strong {
    display: block;
    color: var(--nsl-navy);
    font-size: 18px;
}

.creanza-author p {
    margin: 5px 0 0;
    color: var(--nsl-muted);
}

/* -----------------------------------------
   Previous / Next
----------------------------------------- */
.creanza-post-nav {
    border-top: 1px solid var(--nsl-border);
    border-bottom: 1px solid var(--nsl-border);
    padding: 30px 0;
}

.creanza-post-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.creanza-post-nav__item {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--nsl-border);
    border-radius: var(--nsl-radius);
    padding: 22px;
    box-shadow: 0 8px 22px rgba(18, 50, 74, 0.05);
    transition: 0.22s ease;
}

.creanza-post-nav__item:hover,
.creanza-post-nav__item:focus {
    background: rgba(255, 255, 255, 0.86);
    transform: translateY(-2px);
}

.creanza-post-nav__item--next {
    text-align: right;
}

.creanza-post-nav__item span {
    display: block;
    color: var(--nsl-green);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.7px;
    font-size: 12px;
    margin-bottom: 7px;
}

.creanza-post-nav__item strong {
    color: var(--nsl-navy);
    line-height: 1.45;
}

.creanza-post-nav__item:hover strong,
.creanza-post-nav__item:focus strong {
    color: var(--nsl-gold-dark);
}

/* -----------------------------------------
   Related posts
----------------------------------------- */
.creanza-related {
    padding: 64px 0;
}

.creanza-related h2 {
    text-align: center;
    color: var(--nsl-navy);
    margin: 0 0 34px;
    font-size: 28px;
}

.creanza-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.creanza-related-card {
    border: 1px solid var(--nsl-border);
    border-radius: var(--nsl-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--nsl-shadow);
    backdrop-filter: blur(8px);
    transition: 0.22s ease;
}

.creanza-related-card:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-4px);
}

.creanza-related-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.42);
}

.creanza-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creanza-related-card__body {
    padding: 20px;
}

.creanza-related-card__body span {
    color: var(--nsl-muted);
    font-size: 13px;
}

.creanza-related-card__body h3 {
    margin: 8px 0 10px;
    font-size: 18px;
}

.creanza-related-card__body h3 a {
    color: var(--nsl-navy);
    text-decoration: none;
    transition: 0.22s ease;
}

.creanza-related-card__body h3 a:hover,
.creanza-related-card__body h3 a:focus {
    color: var(--nsl-green-dark);
}

.creanza-related-card__body p {
    color: var(--nsl-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* -----------------------------------------
   Accessibility
----------------------------------------- */
.creanza-breadcrumb a:focus,
.creanza-category-pill:focus,
.creanza-entry a:focus,
.creanza-share a:focus,
.creanza-btn:focus,
.creanza-link:focus,
.creanza-category-list a:focus,
.creanza-latest-post:focus,
.creanza-tags a:focus,
.creanza-post-nav__item:focus,
.creanza-related-card__body h3 a:focus {
    outline: 2px solid var(--nsl-gold);
    outline-offset: 3px;
}

/* -----------------------------------------
   Responsive
----------------------------------------- */
@media (max-width: 980px) {
    .creanza-post-grid {
        grid-template-columns: 1fr;
    }

    .creanza-sidebar {
        position: static;
    }

    .creanza-entry,
    .creanza-share,
    .creanza-tags,
    .creanza-author {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .creanza-container {
        width: min(100% - 32px, 1120px);
    }

    .creanza-post-hero {
        min-height: 360px;
    }

    .creanza-post-title {
        font-size: 34px;
    }

    .creanza-post-grid,
    .creanza-post-nav__inner,
    .creanza-related-grid {
        grid-template-columns: 1fr;
    }

    .creanza-post-nav__item--next {
        text-align: left;
    }

    .creanza-author {
        flex-direction: column;
        align-items: flex-start;
    }

    .creanza-sidebar-card,
    .creanza-author,
    .creanza-related-card,
    .creanza-post-nav__item {
        backdrop-filter: none;
    }
}

@media (max-width: 480px) {
    .creanza-post-main {
        padding: 42px 0 50px;
    }

    .creanza-post-hero__inner {
        padding: 42px 0;
    }

    .creanza-entry {
        font-size: 17px;
        line-height: 1.78;
    }

    .creanza-post-title {
        font-size: 31px;
    }

    .creanza-sidebar-card,
    .creanza-author,
    .creanza-post-nav__item {
        padding: 20px;
    }
}

/* =========================================================
   FINAL FIXES — Hero, transparent background, sidebar hover
========================================================= */

/* Si el tema mete cajas blancas */
body.single-post .site-main,
body.single-post .content-area,
body.single-post .site-content {
    box-shadow: none !important;
    border: none !important;
}

/* 2) HERO FULL WIDTH + MEJOR IMAGEN */
.creanza-post-hero {
    position: relative;
    width: 100%;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

/* Overlay más elegante */
.creanza-post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 50, 74, 0.72) 0%,
        rgba(18, 50, 74, 0.40) 45%,
        rgba(18, 50, 74, 0.12) 100%
    ) !important;
}

/* 3) TÍTULO MÁS PEQUEÑO Y SIEMPRE BLANCO */
.creanza-post-title,
.creanza-post-hero .creanza-post-title,
.creanza-post-hero h1,
.creanza-post-hero h1.creanza-post-title {
    color: #ffffff !important;
    font-size: clamp(34px, 4.2vw, 64px) !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -0.6px !important;
    max-width: 900px;
    margin: 0 0 18px !important;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
}

/* Asegura que ningún link del tema lo pinte azul */
.creanza-post-hero h1 a,
.creanza-post-hero .creanza-post-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Meta y breadcrumb en blanco */
.creanza-post-meta,
.creanza-post-meta *,
.creanza-breadcrumb,
.creanza-breadcrumb a {
    color: rgba(255,255,255,.88) !important;
}

.creanza-breadcrumb a:hover {
    color: var(--nsl-gold, #f4b942) !important;
}

/* Categoría */
.creanza-category-pill {
    color: #ffe29a !important;
}

/* 4) CONTENIDO PRINCIPAL SIN CAJA BLANCA */
.creanza-post-main {
    background: transparent !important;
    padding: 56px 0 62px;
}

.creanza-post-content,
.creanza-entry {
    background: transparent !important;
}


/* No queremos hover raro en el CTA principal */
.creanza-sidebar-cta:hover {
    background:
        radial-gradient(circle at top right, rgba(244,185,66,.28), transparent 36%),
        linear-gradient(135deg, rgba(31,122,77,.96), rgba(18,50,74,.96)) !important;
    transform: none !important;
}

/* CTA con texto siempre visible */
.creanza-sidebar-cta,
.creanza-sidebar-cta h2,
.creanza-sidebar-cta p,
.creanza-sidebar-cta span {
    color: #ffffff !important;
}

.creanza-sidebar-cta .creanza-btn {
    background: #ffffff !important;
    color: #145c39 !important;
}

.creanza-sidebar-cta .creanza-btn:hover {
    background: #f4b942 !important;
    color: #12324a !important;
}

.creanza-sidebar-cta .creanza-link {
    color: #ffe29a !important;
}

.creanza-sidebar-cta .creanza-link:hover {
    color: #ffffff !important;
}

/* 6) PREVIOUS / NEXT Y RELATED TRANSPARENTES */
.creanza-post-nav {
    background: transparent !important;
}

.creanza-post-nav__item,
.creanza-related-card,
.creanza-author {
    background: rgba(255,255,255,.58) !important;
    border: 1px solid rgba(18, 50, 74, 0.14) !important;
    backdrop-filter: blur(8px);
}

.creanza-post-nav__item:hover,
.creanza-related-card:hover {
    background: rgba(255,255,255,.82) !important;
}

/* 7) TEXTO GENERAL */
.creanza-entry p,
.creanza-entry li {
    color: #253447 !important;
}

.creanza-entry h2,
.creanza-entry h3,
.creanza-entry h4 {
    color: #12324a !important;
}

.creanza-entry a {
    color: #145c39 !important;
}

.creanza-entry a:hover {
    color: #d99b1e !important;
}

/* 8) RESPONSIVE */
@media (max-width: 980px) {
    .creanza-post-hero {
        min-height: 400px;
    }
}

@media (max-width: 720px) {
    .creanza-post-hero {
        min-height: 340px;
    }

    .creanza-post-title,
    .creanza-post-hero h1,
    .creanza-post-hero .creanza-post-title {
        font-size: clamp(28px, 8vw, 42px) !important;
        line-height: 1.12 !important;
    }

    .creanza-sidebar-card,
    .creanza-author,
    .creanza-related-card,
    .creanza-post-nav__item {
        backdrop-filter: none;
    }
}