/* Blog list-specific styles live here. Shared layout styles are in base.css. */

/* Keep panels consistent with the global theme; avoid overriding `.panel` background here. */

.blog-list-page .blog-hero-panel {
    position: relative;
    padding: clamp(30px, 3.8vw, 54px);
    min-height: clamp(280px, 34vw, 360px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    overflow: hidden;
}

.blog-list-page .blog-hero-panel::before {
    content: "";
    position: absolute;
    inset: 18px 18px auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--accent) 38%, transparent),
        color-mix(in srgb, var(--accent-2) 26%, transparent),
        transparent
    );
    pointer-events: none;
}

.blog-list-page .blog-hero-panel::after {
    inset: auto -10% -35% auto;
    width: clamp(260px, 30vw, 420px);
    height: clamp(260px, 30vw, 420px);
    opacity: 0.78;
}

.blog-list-page .static-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    background: linear-gradient(
        135deg,
        var(--ink),
        color-mix(in srgb, var(--accent) 45%, var(--ink)),
        var(--accent-2)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.035em;
    font-size: clamp(2.5rem, 3.35vw, 4.25rem);
    line-height: 0.98;
    max-width: none;
    text-decoration-thickness: 2.5px;
    text-underline-offset: 0.12em;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .blog-list-page .static-hero h1 {
        color: var(--ink);
    }
}

.blog-list-page .static-hero > p {
    position: relative;
    z-index: 1;
    max-width: min(64ch, 100%);
    font-size: clamp(1.02rem, 1.24vw, 1.2rem);
    line-height: 1.72;
}

.blog-list-page .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-list-page .blog-list-panel {
    padding: clamp(20px, 2vw, 28px);
}

.blog-list-page .blog-hero-actions {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-list-page .blog-hero-actions a {
    text-decoration: none;
}

.blog-list-page .blog-hero-actions .cta,
.blog-list-page .blog-hero-actions .btn.ghost {
    min-height: 48px;
    padding-inline: 18px;
    border-radius: 16px;
}

.blog-list-page .blog-heading {
    text-align: left;
    margin-bottom: 16px;
}

.blog-list-page .blog-heading h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--surface);
    box-shadow: var(--glow);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-list-page .blog-heading h3::before,
.blog-list-page .blog-heading h3::after {
    display: none;
}

.blog-list-page .blog-heading p {
    margin: 0;
    color: var(--text-muted-7);
    max-width: 70ch;
}

.blog-list-page .blog-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.blog-list-page .blog-count,
.blog-list-page .blog-page-indicator {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent) 10%, #ffffff 90%),
        color-mix(in srgb, var(--accent-2) 12%, #ffffff 88%)
    );
    color: var(--text-muted-8);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-list-page .blog-page-copy {
    margin-bottom: 18px;
}

.blog-list-page .blog-list-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent-2) 16%, transparent);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        color-mix(in srgb, var(--accent) 8%, #ffffff)
    );
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-list-page .blog-list-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.blog-list-page .blog-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.16);
}

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

.blog-list-page .blog-card-image {
    height: 220px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-3) 18%, transparent), color-mix(in srgb, var(--accent-2) 16%, transparent));
    border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.blog-list-page .blog-card-image .blog-media-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-3) 16%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent));
}

.blog-list-page .blog-card-image .blog-media-fallback span {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 30%, transparent);
}

.blog-list-page .blog-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-list-page .blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-list-page .blog-meta-chip {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted-7);
}

.blog-list-page .blog-meta-dot {
    color: color-mix(in srgb, var(--accent) 65%, #64748b 35%);
    font-size: 0.75rem;
}

.blog-list-page .blog-card-body h3 {
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.blog-list-page .blog-title-link {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-list-page .blog-title-link:hover {
    color: var(--accent);
}

.blog-list-page .blog-card-body p {
    margin: 0;
    color: var(--text-muted-9);
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.blog-list-page .blog-card-actions {
    margin-top: auto;
}

.blog-list-page .blog-card-body .btn.primary {
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--btn-ghost-bg);
    color: var(--btn-ghost-text);
    border: var(--btn-ghost-border);
    box-shadow: var(--btn-ghost-shadow);
}

.blog-list-page .blog-card-body .btn.primary:hover {
    background: var(--btn-ghost-hover-bg);
    border: var(--btn-ghost-hover-border);
    box-shadow: var(--btn-ghost-hover-shadow);
}

.blog-list-page .blog-card-media-link:focus-visible,
.blog-list-page .blog-title-link:focus-visible,
.blog-list-page .blog-card-body .btn.primary:focus-visible,
.blog-list-page .blog-hero-actions a:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
    outline-offset: 2px;
    border-radius: 10px;
}

.blog-list-page .results-pagination {
    margin-top: 18px;
}

.blog-list-page .static-inquiry h3 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

@media (max-width: 1100px) {
    .blog-list-page .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .blog-list-page .static-hero h1 {
        white-space: nowrap;
    }
}

@media (max-width: 720px) {
    .blog-list-page .blog-list-panel {
        padding: 18px;
    }
    .blog-list-page .blog-list-toolbar {
        margin-bottom: 12px;
    }
    .blog-list-page .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-list-page .blog-hero-panel {
        min-height: auto;
        padding: 24px 20px;
    }

    .blog-list-page .static-hero h1 {
        white-space: normal;
        line-height: 1.04;
    }
}
