/* ============================================================
   Blog — shared styles for index and show pages
   ============================================================ */

/* Override .contact-area flex centering used as the page wrapper */
.blog-page.contact-area {
    display: block;
    align-items: unset;
    justify-content: unset;
    min-height: unset;
}

/* Absolute header — floats over hero content */
.header-area--absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.menu-area--transparent {
    background: transparent !important;
    box-shadow: none !important;
}

.menu-area--transparent .btn.transparent {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.menu-area--transparent .btn.transparent:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Desktop only — mobile menu opens a white panel so links must stay dark */
@media (min-width: 992px) {
    .menu-area--transparent .main-menu nav ul li:not(.li-menu-button) a,
    .menu-area--transparent .main-menu nav ul li:not(.li-menu-button) a:hover {
        color: #fff;
    }
}

/* ----------------------------------------------------------
   Index page — featured hero
   ---------------------------------------------------------- */
.blog-featured-hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 250px;
    max-height: 500px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.blog-featured-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.65) 100%);
}

.blog-featured-hero .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 48px;
}

.blog-featured-hero__content {
    max-width: 640px;
}

.blog-featured-hero__date {
    font-size: 13px;
    color: rgba(255,255,255,0.70);
    margin-bottom: 12px;
}

.blog-featured-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

.blog-featured-hero__title a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: color 0.3s ease;
}

.blog-featured-hero__title a:hover {
    color: rgba(255, 255, 255, 0.70);
    text-decoration: none;
}

.blog-featured-hero__excerpt {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.blog-featured-hero__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    flex-shrink: 0;
    align-self: flex-end;
    transition: background 0.2s, border-color 0.2s;
}

.blog-featured-hero__arrow:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* ----------------------------------------------------------
   Index page — section heading + cards
   ---------------------------------------------------------- */
.blog-section-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    margin-top: 0;
}

/* ----------------------------------------------------------
   Index page (old, kept for compatibility)
   ---------------------------------------------------------- */.blog-card-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-card-title a {
    color: inherit;
}

.blog-card-excerpt {
    color: #666;
    font-size: 15px;
}

.blog-card-date {
    font-size: 13px;
    color: #aaa;
}

.blog-card-read-more {
    margin-top: 8px;
}

/* ----------------------------------------------------------
   Show page — parallax hero
   ---------------------------------------------------------- */
.blog-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 250px;
    max-height: 600px;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
}

.blog-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.blog-hero__title {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    max-width: 860px;
}

.blog-hero__excerpt {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0;
    max-width: 680px;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   Show page — breadcrumb / meta
   ---------------------------------------------------------- */
.blog-post-meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 10px;
}

/* ----------------------------------------------------------
   Show page — fallback header (no cover image)
   ---------------------------------------------------------- */
.blog-post-fallback-title {
    margin-bottom: 20px;
}

.blog-post-fallback-excerpt {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* ----------------------------------------------------------
   Show page — body content
   ---------------------------------------------------------- */
.blog-post-body {
    margin-top: 30px;
    font-size: 17px;
    line-height: 1.8;

    h1,h2 {
        margin: 30px 0 30px;
        letter-spacing: -2px;
        line-height: 1.1;
        color: #190a32;
    }
    p {
        font-size: 16px !important; 
        min-height: 10px;
    }
    ul, ol {
        padding-left: 1.6em;
        margin: 1em 0;
    }
    ul {
        list-style: none;
        padding-left: 1.8em;
    }
    ul li {
        position: relative;
        padding-left: 0.4em;
    }
    ul li::before {
        content: '';
        display: inline-block;
        position: absolute;
        left: -1.6em;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 16px;
        background-image: url('/site/img/arrows.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    ol {
        list-style-type: decimal;
    }
    li {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 6px;
    }
}

.blog-post-divider {
    margin: 50px 0;
}

.blog-post-cta p {
    font-size: 17px;
}

/* ----------------------------------------------------------
   Show page — related posts sidebar
   ---------------------------------------------------------- */
.blog-sidebar {
    padding-top: 10px;
}

.blog-sidebar__heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff3494;
    padding-bottom: 8px;
}

.blog-sidebar__item {
    margin-bottom: 24px;
}

.blog-sidebar__item-image {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-sidebar__item-title {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    line-height: 1.4;
    display: block;
}

.blog-sidebar__item-date {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

.blog-sidebar__empty {
    font-size: 14px;
    color: #aaa;
}
