/* =========================================
   BLOG PAGE — blog.css  (mobile-first)
   ========================================= */

/* ---- Hero ---- */
.blog-hero {
    padding: 9rem 0 3rem;          /* top clears the fixed header on mobile */
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-hero {
        padding: 10rem 0 4.5rem;
    }
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(50, 164, 189, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid rgba(50, 164, 189, 0.25);
    border-radius: 999px;
    background: rgba(50, 164, 189, 0.06);
}

.blog-hero-title {
    font-size: clamp(1.875rem, 6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.blog-hero-title .accent {
    background: linear-gradient(135deg, #32A4BD 0%, #5dd6f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.blog-hero-lead {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .blog-hero-lead {
        font-size: 1.0625rem;
        padding: 0;
    }
}

/* ---- Filter Tabs ---- */
.blog-filters {
    padding: 2rem 0 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2.5rem;
}

.blog-filter-inner {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;                   /* horizontal scroll on mobile */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
    justify-content: flex-start;
}

.blog-filter-inner::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .blog-filter-inner {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        padding-bottom: 1rem;
    }
}

.filter-tab {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab:hover {
    color: var(--color-primary);
    border-color: var(--color-border);
}

.filter-tab.active {
    color: var(--color-accent);
    border-color: rgba(50, 164, 189, 0.35);
    background: rgba(50, 164, 189, 0.08);
}

/* ---- Featured Post ---- */
.blog-featured {
    padding: 0 0 3rem;
}

@media (min-width: 768px) {
    .blog-featured {
        padding: 0 0 4rem;
    }
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;                             /* no gap — image top, body bottom */
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.featured-card:hover {
    border-color: rgba(50, 164, 189, 0.3);
}

@media (min-width: 768px) {
    .featured-card {
        grid-template-columns: 1.1fr 1fr;
        border-radius: 20px;
    }
}

.featured-card-image {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .featured-card-image {
        min-height: 320px;
    }
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #1a2535 0%, #0f1c2d 50%, #0d1520 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .featured-image-placeholder {
        min-height: 320px;
    }
}

.featured-image-placeholder::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 164, 189, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.placeholder-icon {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    opacity: 0.6;
}

@media (min-width: 768px) {
    .placeholder-icon {
        font-size: 4rem;
    }
}

.featured-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .featured-card-body {
        padding: 2.5rem 2.5rem 2.5rem 2rem;
    }
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background: rgba(50, 164, 189, 0.1);
    border: 1px solid rgba(50, 164, 189, 0.2);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.post-date {
    font-size: 0.8rem;
    color: var(--color-text-faint);
}

.post-read-time {
    font-size: 0.8rem;
    color: var(--color-text-faint);
}

.post-read-time::before {
    content: '·';
    margin-right: 0.4rem;
}

.featured-title {
    font-size: clamp(1.2rem, 3vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: 0.875rem;
    transition: color 0.2s ease;
}

.featured-card:hover .featured-title {
    color: var(--color-accent);
}

.featured-excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(50, 164, 189, 0.25);
    background: var(--color-secondary);
    flex-shrink: 0;
}

.author-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #32A4BD, #1a7a96);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

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

.author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

.author-role {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.read-more-link:hover {
    gap: 0.75rem;
}

.read-more-link svg {
    transition: transform 0.2s ease;
}

.read-more-link:hover svg {
    transform: translateX(3px);
}

/* ---- Section label ---- */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-faint);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* ---- Blog Grid ---- */
.blog-section {
    padding: 0 0 4rem;
}

@media (min-width: 768px) {
    .blog-section {
        padding: 0 0 6rem;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 540px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

.blog-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 768px) {
    .blog-card {
        border-radius: 16px;
    }
}

.blog-card:hover {
    border-color: rgba(50, 164, 189, 0.3);
    transform: translateY(-4px);
}

.blog-card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-card-image {
        height: 180px;
    }
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
}

.card-image-placeholder.bg-1 { background: linear-gradient(135deg, #0f2235, #132a40); }
.card-image-placeholder.bg-2 { background: linear-gradient(135deg, #1a1f0f, #1e2a0f); }
.card-image-placeholder.bg-3 { background: linear-gradient(135deg, #1f0f2a, #2a1035); }
.card-image-placeholder.bg-4 { background: linear-gradient(135deg, #0f1f2a, #0f2820); }
.card-image-placeholder.bg-5 { background: linear-gradient(135deg, #2a1a0f, #351f00); }
.card-image-placeholder.bg-6 { background: linear-gradient(135deg, #0d1a2a, #102030); }

.blog-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 768px) {
    .blog-card-body {
        padding: 1.5rem;
    }
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.35;
    color: var(--color-primary);
    margin-bottom: 0.625rem;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .blog-card-title {
        font-size: 1.0625rem;
    }
}

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

.blog-card-excerpt {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

@media (min-width: 768px) {
    .blog-card-excerpt {
        font-size: 0.875rem;
    }
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 0.875rem;
    margin-top: auto;
    gap: 0.5rem;
}

.blog-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.card-author-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-date {
    font-size: 0.7rem;
    color: var(--color-text-faint);
}

.card-read-time {
    font-size: 0.7rem;
    color: var(--color-text-faint);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---- Newsletter CTA ---- */
.blog-newsletter {
    padding: 3rem 0 4rem;
    position: relative;
}

@media (min-width: 768px) {
    .blog-newsletter {
        padding: 5rem 0;
    }
}

.newsletter-card {
    background: linear-gradient(135deg, rgba(50, 164, 189, 0.08) 0%, rgba(50, 164, 189, 0.03) 100%);
    border: 1px solid rgba(50, 164, 189, 0.2);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .newsletter-card {
        border-radius: 20px;
        padding: 3.5rem 2.5rem;
    }
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(50, 164, 189, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 0.875rem;
}

.newsletter-title {
    font-size: clamp(1.375rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.newsletter-desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .newsletter-form {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(50, 164, 189, 0.25);
    border-radius: 10px;
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .newsletter-input {
        flex: 1;
        min-width: 0;
        width: auto;
    }
}

.newsletter-input::placeholder {
    color: var(--color-text-faint);
}

.newsletter-input:focus {
    border-color: rgba(50, 164, 189, 0.6);
}

.newsletter-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .newsletter-btn {
        width: auto;
    }
}

.newsletter-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.newsletter-note {
    font-size: 0.75rem;
    color: var(--color-text-faint);
    margin-top: 1rem;
}

/* ---- Coming Soon badge ---- */
.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    background: rgba(13, 13, 15, 0.88);
    border: 1px solid rgba(50, 164, 189, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    backdrop-filter: blur(4px);
}
