/* ============================================================
   BREEZ AI BLOG STYLES
   ============================================================ */

/* ============ BLOG HERO ============ */
.blog-hero {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: var(--cream);
}

.blog-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.blog-label {
    display: inline-block;
    background: var(--aqua-200);
    color: var(--teal-700);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-hero h1 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h1-size);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: var(--h1-line-height);
}

/* Neutralize the generic .reveal fade on the container itself — each
   child (badge, h1, paragraph) reveals on its own, staggered below. */
.blog-hero-inner.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.blog-hero-inner .blog-label,
.blog-hero-inner h1,
.blog-hero-inner p {
    opacity: 0;
    transform: translateY(-14px);
    will-change: transform, opacity;
}

.blog-hero-inner.visible .blog-label {
    animation: short-slide-down 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.blog-hero-inner.visible h1 {
    animation: short-slide-down 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.15s;
}

.blog-hero-inner.visible p {
    animation: short-slide-down 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============ BLOG POSTS SECTION ============ */
.blog-posts-section {
    padding: 2rem 2rem 4rem;
    background: var(--cream);
}

.blog-posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============ CATEGORY SECTIONS ============ */
.blog-category-section {
    margin-bottom: 4rem;
}

.blog-category-section:last-child {
    margin-bottom: 0;
}

.blog-category-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h2-compact-size);
    font-weight: 600;
    line-height: var(--h2-compact-line-height);
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid rgba(16, 42, 80, 0.12);
}

/* ============ LOADING STATE ============ */
.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    gap: 1.5rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--aqua-200);
    border-top-color: var(--teal-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.blog-loading p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============ ERROR STATE ============ */
.blog-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    gap: 1rem;
}

.error-icon {
    color: var(--warm-gray);
    margin-bottom: 0.5rem;
}

.blog-error h3 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h3-lg-size);
    font-weight: 600;
    line-height: var(--h3-line-height);
    color: var(--text-primary);
}

.blog-error p {
    color: var(--text-secondary);
    max-width: 400px;
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--text-primary);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: var(--teal-700);
}

/* ============ EMPTY STATE ============ */
.blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    gap: 1rem;
}

.empty-icon {
    color: var(--warm-gray);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.blog-empty h3 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h3-lg-size);
    font-weight: 600;
    line-height: var(--h3-line-height);
    color: var(--text-primary);
}

.blog-empty p {
    color: var(--text-secondary);
}

/* ============ BLOG GRID ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1000px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ BLOG CARD ============ */
.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    box-shadow: 0 20px 50px rgba(16, 42, 80, 0.12);
    transform: translateY(-4px);
}

.blog-card.visible:hover {
    transform: translateY(-4px);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--white);
    color: var(--teal-700);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    display: block;
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h3-size);
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--h3-line-height);
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--teal-700);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 42, 80, 0.08);
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--aqua-200);
    color: var(--teal-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Press Release variant — inverted so the PR circle reads as the source
   of the post (Breez itself) rather than a personal byline. */
.author-avatar-placeholder--press-release {
    background: var(--teal-700);
    color: var(--white);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.8rem;
    color: var(--warm-gray);
}

/* Author links (for external articles) */
.author-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-link:hover {
    color: var(--teal-700);
    text-decoration: underline;
    text-decoration-color: var(--aqua-200);
    text-underline-offset: 2px;
}

.blog-card .author-link {
    position: relative;
    z-index: 2;
}

/* ============================================================
   FEATURED CARD — full rewrite, self-contained block layout
   ============================================================
   The featured card stacks an image on top of a content block.
   It must:
     • Span the full width of its parent grid track
     • Show the entire image (no cropping, no squeezing)
     • Cap image height so the whole card fits in one viewport
     • Center the image when it letterboxes against the cream bg
     • Have its image area AND content area both at full width

   Implementation choice: plain block layout. We deliberately do
   NOT use `display: grid` on the card or `display: contents` on
   the inner link. Those caused the inner divs to behave as grid
   items and pick up an inherited 16:10 aspect-ratio from the
   base `.blog-card-image` rule, shrinking the image area's
   width to maintain that ratio when max-height kicked in.
   Block layout sidesteps all of that — block children naturally
   fill 100% of their parent's content box.
   ============================================================ */

.blog-card-featured {
    /* Span the full row of the parent .blog-grid (3-col grid). */
    grid-column: 1 / -1;
    /* Plain block stacking. NOT grid. */
    display: block;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream-dark) 100%);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(16, 42, 80, 0.1);
    position: relative;
}

.blog-card-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(23, 143, 174, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* The link is a plain block wrapper around image + content.
   NOT display:contents — that exposed inner divs to the
   article's display context, which made them grid items. */
.blog-card-featured .blog-card-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* IMAGE AREA
   ------------------------------------------------------------
   A block element that fills the card's width. Capped height
   keeps the whole card on-screen. Flex centering positions
   the <img> in the middle when it doesn't fill the box. */
.blog-card-featured .blog-card-image {
    /* Override the base .blog-card-image's aspect-ratio: 16/10. */
    aspect-ratio: auto;
    width: 100%;
    max-height: 55vh;
    background: var(--cream-dark);
    border-radius: 32px 32px 0 0;
    /* Flex so the <img> centers when letterboxed */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Containing block for the absolute children below */
    position: relative;
    overflow: hidden;
}

.blog-card-featured .blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 42, 80, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* The <img> itself.
   width:auto + height:auto with max-* lets the image scale
   down to fit both axes proportionally — no crop, no squish. */
.blog-card-featured .blog-card-image img {
    display: block;
    max-width: 100%;
    max-height: 55vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Category badge sits over the image */
.blog-card-featured .blog-card-category {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(16, 97, 118, 0.3);
    z-index: 2;
}

/* CONTENT AREA — full width below the image */
.blog-card-featured .blog-card-content {
    width: 100%;
    box-sizing: border-box;
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 2;
}

.blog-card-featured .blog-card-content::before {
    content: '★ FEATURED';
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--teal-700);
    background: var(--aqua-200);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.blog-card-featured .blog-card-date {
    font-size: 0.9rem;
    color: var(--warm-gray);
    margin-bottom: 0.75rem;
}

.blog-card-featured .blog-card-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-card-featured:hover .blog-card-title {
    color: var(--teal-700);
}

.blog-card-featured .blog-card-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.blog-card-featured .blog-card-author {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(16, 42, 80, 0.1);
    margin-top: 1.5rem;
}

.blog-card-featured .author-avatar,
.blog-card-featured .author-avatar-placeholder {
    width: 44px;
    height: 44px;
}

.blog-card-featured .author-name {
    font-size: 1rem;
    font-weight: 600;
}

.blog-card-featured .author-role {
    font-size: 0.85rem;
}

/* Hover state */
.blog-card-featured:hover {
    box-shadow: 0 16px 60px rgba(16, 42, 80, 0.15);
    transform: translateY(-4px);
}

.blog-card-featured:hover .blog-card-image img {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 900px) {
    .blog-card-featured .blog-card-content {
        padding: 2rem;
    }
    
    .blog-card-featured .blog-card-title {
        font-size: 1.5rem;
    }
    
    .blog-card-featured .blog-card-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .blog-card-featured {
        border-radius: 24px;
    }

    .blog-card-featured .blog-card-image {
        max-height: 45vh;
        border-radius: 24px 24px 0 0;
    }

    .blog-card-featured .blog-card-image img {
        max-height: 45vh;
    }
    
    .blog-card-featured .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-card-featured .blog-card-content::before {
        font-size: 0.65rem;
        padding: 0.35rem 0.75rem;
    }
}

/* ============ NEWSLETTER SECTION ============ */
.newsletter-section {
    padding: 0 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.newsletter-card {
    background: var(--white);
    border-radius: 32px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.newsletter-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.newsletter-label {
    display: inline-block;
    background: var(--gold-50);
    color: var(--gold-500);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.newsletter-card h2 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h2-compact-size);
    font-weight: 600;
    line-height: var(--h2-compact-line-height);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.newsletter-card > p,
.newsletter-content > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.newsletter-form .form-row {
    display: flex;
    gap: 0.75rem;
}

.newsletter-form .form-input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: 1.5px solid rgba(16, 42, 80, 0.15);
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: var(--cream);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form .form-input:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(23, 143, 174, 0.15);
}

.newsletter-form .form-input::placeholder {
    color: var(--warm-gray);
}

.newsletter-form .form-btn {
    padding: 0.9rem 1.5rem;
    background: var(--gold-500);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form .form-btn:hover {
    background: var(--gold-600);
}

.form-note {
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-top: 0.75rem;
}

/* Newsletter Success State */
.newsletter-success {
    display: none;
    text-align: center;
    padding: 1rem 0;
}

.newsletter-success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--teal-300) 0%, var(--teal-500) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.newsletter-success-icon svg {
    color: var(--white);
}

.newsletter-success h3 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h3-size);
    font-weight: 600;
    line-height: var(--h3-line-height);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.newsletter-success p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/* Newsletter Error State */
.newsletter-error {
    display: none;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

.newsletter-error p {
    font-size: 0.9rem;
    color: #b91c1c;
    margin: 0;
}

/* Button loading state */
.newsletter-form .form-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-decoration {
    width: 180px;
    height: 180px;
    color: var(--gold-500);
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .newsletter-card {
        flex-direction: column;
        padding: 2.5rem 2rem;
        text-align: center;
    }
    
    .newsletter-content > p {
        max-width: none;
    }
    
    .newsletter-form .form-row {
        flex-direction: column;
    }
    
    .newsletter-decoration {
        display: none;
    }
}

/* ============ PAGE HEADER VISIBILITY ============ */
.page-header {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   INDIVIDUAL ARTICLE PAGE STYLES
   ============================================================ */

/* ============ ARTICLE LOADING ============ */
.article-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1.5rem;
}

.article-loading p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============ ARTICLE ERROR ============ */
.article-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.error-content {
    text-align: center;
    max-width: 400px;
}

.article-error .error-icon {
    color: var(--warm-gray);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.article-error h2 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h2-compact-size);
    font-weight: 600;
    line-height: var(--h2-compact-line-height);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.article-error p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--text-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--teal-700);
}

/* ============ ARTICLE CONTAINER ============ */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.article-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ BREADCRUMB ============ */
.article-breadcrumb {
    margin-bottom: 2rem;
}

.article-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: var(--teal-700);
}

/* ============ ARTICLE HEADER ============ */
.article-header {
    margin-bottom: 2.5rem;
}

.article-category {
    display: inline-block;
    background: var(--aqua-200);
    color: var(--teal-700);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.article-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h1-size);
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--h1-line-height);
    margin-bottom: 1rem;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(16, 42, 80, 0.1);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-wrapper .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-wrapper .author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--aqua-200);
    color: var(--teal-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details .author-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.author-details .author-role {
    font-size: 0.9rem;
    color: var(--warm-gray);
}

.author-details .author-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-details .author-link:hover {
    color: var(--teal-700);
    text-decoration: underline;
    text-decoration-color: var(--aqua-200);
    text-underline-offset: 2px;
}

.article-date-share {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.article-date {
    font-size: 0.95rem;
    color: var(--warm-gray);
}

.article-share {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 42, 80, 0.12);
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-btn:hover {
    border-color: var(--teal-500);
    color: var(--teal-700);
    background: var(--aqua-200);
}

/* ============ FEATURED IMAGE ============ */
.article-featured-image {
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

/* ============ ARTICLE BODY ============ */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    /* styles.css sets text-wrap: balance on <html>. Browsers balance short
       blocks (up to ~6 lines), which makes article paragraphs wrap early.
       Body copy should fill each line, so use plain greedy wrapping here. */
    text-wrap: wrap;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h2-compact-size);
    font-weight: 600;
    line-height: var(--h2-compact-line-height);
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.article-body h3 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h3-lg-size);
    font-weight: 600;
    line-height: var(--h3-line-height);
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.article-body a {
    color: var(--teal-700);
    text-decoration: underline;
    text-decoration-color: var(--aqua-200);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.article-body a:hover {
    text-decoration-color: var(--teal-700);
}

.article-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--cream-dark);
    border-left: 4px solid var(--teal-500);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* ============ ARTICLE FOOTER ============ */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(16, 42, 80, 0.1);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.article-tag {
    padding: 0.4rem 1rem;
    background: var(--cream-dark);
    color: var(--text-secondary);
    border-radius: 100px;
    font-size: 0.85rem;
}

.article-cta {
    background: var(--teal-50);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
}

.article-cta h3 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h3-lg-size);
    font-weight: 600;
    line-height: var(--h3-line-height);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============ RELATED POSTS ============ */
.related-posts-section {
    background: var(--cream-dark);
    padding: 4rem 2rem;
}

.related-posts-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.related-posts-section h2 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h2-compact-size);
    font-weight: 600;
    line-height: var(--h2-compact-line-height);
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 800px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    box-shadow: 0 12px 30px rgba(16, 42, 80, 0.1);
    transform: translateY(-3px);
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

.related-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-content {
    padding: 1.25rem;
    text-align: left;
}

.related-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--teal-700);
    margin-bottom: 0.5rem;
}

.related-card h3 {
    font-family: 'IBM Plex Serif', serif;
    font-size: var(--h3-size);
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--h3-line-height);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.related-card:hover h3 {
    color: var(--teal-700);
}

.related-card time {
    font-size: 0.85rem;
    color: var(--warm-gray);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--white);
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--text-primary);
    color: var(--white);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
    .article-container {
        padding: 7rem 1.5rem 3rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-date-share {
        width: 100%;
        justify-content: space-between;
    }
    
    .article-cta {
        padding: 2rem 1.5rem;
    }
}

/* ============ COMING SOON SECTION (PRESERVED) ============ */
.coming-soon-section {
    padding: 4rem 2rem 8rem;
    max-width: 900px;
    margin: 0 auto;
}

.coming-soon-card {
    background: var(--white);
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(244, 182, 66, 0.15) 0%, transparent 46%),
        radial-gradient(circle at 82% 70%, rgba(60, 120, 255, 0.10) 0%, transparent 46%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 60%);
    pointer-events: none;
}

.coming-soon-content {
    position: relative;
    z-index: 1;
}

.coming-soon-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--aqua-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-gentle 3s ease-in-out infinite;
}

.coming-soon-icon svg {
    width: 48px;
    height: 48px;
    color: var(--teal-700);
}

@keyframes pulse-gentle {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(23, 143, 174, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(23, 143, 174, 0);
    }
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 100%);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.coming-soon-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.coming-soon-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.coming-soon-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.decoration {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.decoration-1 {
    top: 20px;
    right: 40px;
    width: 80px;
    height: 80px;
}

.decoration-2 {
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
}

.decoration svg {
    width: 100%;
    height: 100%;
    color: var(--teal-500);
}