/* ============================================================
   Blog Shared — hero, article cards, sidebar
   Uses --lh-* variables defined in learning-home.css
   ============================================================ */

/* ── Hero parallax ─────────────────────────────────────────── */
.blog-hero-parallax,
.article-hero-parallax {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.blog-hero-bg-parallax,
.article-hero-bg-parallax {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.04);
    transition: transform 0.4s ease;
}

.blog-hero-overlay,
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(21, 66, 101, 0.72) 0%,
        rgba(21, 66, 101, 0.88) 100%);
}

.blog-hero-content,
.article-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 1rem;
    color: #fff;
}

.blog-hero-title,
.article-hero-title {
    font-family: "Handlee", cursive;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.blog-hero-description,
.article-hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.article-hero-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.article-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
}

/* ── Article card (used in blog index grid) ─────────────────── */
.blog-article-card {
    border-radius: var(--lh-radius-lg);
    overflow: hidden;
    background: var(--lh-white);
    box-shadow: var(--lh-shadow);
    border: 1px solid var(--lh-border);
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 32px 72px rgba(21, 66, 101, 0.18);
}

.blog-article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-article-card-image {
    flex: 0 0 220px;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--lh-soft-blue);
}

.blog-article-card-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-article-category {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(147, 200, 66, 0.14);
    color: #4a6a10;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-right: 0.3rem;
    margin-bottom: 0.25rem;
}

.blog-article-title {
    font-family: "Handlee", cursive;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lh-navy);
    margin: 0;
    line-height: 1.3;
}

.blog-article-description {
    font-size: 0.93rem;
    color: var(--lh-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.blog-article-meta {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--lh-border);
}

.blog-article-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--lh-muted);
    font-size: 0.85rem;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: var(--lh-white);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--lh-shadow);
}

.sidebar-section-title {
    font-family: "Handlee", cursive;
    font-size: 1.1rem;
    color: var(--lh-navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-info-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.blog-info-icon {
    color: var(--lh-blue);
    margin-top: 2px;
    flex-shrink: 0;
}

.blog-info-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lh-muted);
}

.blog-info-value {
    font-size: 0.93rem;
    color: var(--lh-ink);
}

/* ── Latest articles widget ─────────────────────────────────── */
.latest-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-article-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}

.latest-article-item:hover {
    opacity: 0.8;
}

.latest-article-thumbnail {
    grid-row: 1 / 3;
    width: 72px;
    height: 72px;
    border-radius: var(--lh-radius-md);
    background-size: cover;
    background-position: center;
    background-color: var(--lh-soft-blue);
    flex-shrink: 0;
}

.latest-article-title {
    font-family: "Handlee", cursive;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--lh-navy);
    margin: 0;
    line-height: 1.3;
    align-self: end;
}

.latest-article-date {
    font-size: 0.78rem;
    color: var(--lh-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    align-self: start;
}

/* ── Articles count pill ────────────────────────────────────── */
.articles-count {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--lh-navy);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}
