.theme-page main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.theme-hero {
    position: relative;
    border-radius: 28px;
    padding: clamp(2.6rem, 4vw, 3.4rem);
    background: linear-gradient(135deg, rgba(225, 231, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(103, 94, 255, 0.25);
    box-shadow: 0 30px 70px rgba(16, 12, 40, 0.12);
    overflow: hidden;  
    width: 100%;
    max-width: 88%;
    margin: 0 auto;
}

.theme-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--theme-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: saturate(1.1) contrast(1.05);
}

.theme-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.65), transparent 55%);
    pointer-events: none;
}

.theme-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.theme-breadcrumb {
    margin-top: -12px;
}

.theme-notification {
    margin-bottom: -18px;
}

.theme-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #5b5df2;
}

.theme-hero h1 {
    margin: 0.65rem 0 0.75rem;
    font-size: clamp(2rem, 3vw, 3rem);
    color: #111428;
    line-height: 1.2;
}

#theme-lead {
    margin: 0;
    font-size: 1.05rem;
    color: #2f3355;
    line-height: 1.7;
}

.theme-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.theme-highlight {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(102, 111, 236, 0.15);
    color: #3b3fd6;
    font-weight: 600;
    font-size: 0.85rem;
}

.theme-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theme-articles__header,
.theme-articles-grid,
.theme-seo {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

.theme-articles__header h2 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    color: var(--text);
}

.theme-articles__intro {
    margin: 0;
    color: var(--text-light);
}

.theme-seo {
    display: grid;
    gap: 0.6rem;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.7;
}

.theme-seo p {
    margin: 0;
}

.theme-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.theme-article-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(103, 94, 255, 0.15);
    box-shadow: 0 20px 45px rgba(15, 12, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.theme-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(15, 12, 42, 0.18);
}

.theme-article-media {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
}

.theme-article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-article-time {
    position: absolute;
    bottom: 14px;
    right: 14px;
    padding: 0.3rem 0.7rem;
    background: rgba(10, 12, 26, 0.85);
    color: #fff;
    font-size: 0.8rem;
    border-radius: 999px;
}

.theme-article-body {
    padding: 1.3rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theme-article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6a7194;
}

.theme-article-tag {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #5b5df2;
}

.theme-article-title {
    margin: 0;
    font-size: 1.1rem;
    color: #1a1d35;
    overflow-wrap: anywhere;
}

.theme-article-title a {
    color: inherit;
    text-decoration: none;
}

.theme-article-excerpt {
    margin: 0;
    color: #4b5270;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.theme-article-cta {
    align-self: flex-start;
    margin-top: 0.3rem;
    color: #5b5df2;
    font-weight: 600;
    text-decoration: none;
}

.theme-article-cta:hover {
    text-decoration: underline;
}

.theme-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0 0.2rem;
    text-align: center;
}

.theme-empty {
    margin: 0;
    font-style: italic;
    color: var(--text-light);
    max-width: 520px;
}

.theme-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #5b5df2, #7c5cff);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(91, 93, 242, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(91, 93, 242, 0.38);
}

[data-theme="dark"] .theme-empty-cta {
    background: linear-gradient(120deg, #7988ff, #5668ff);
    box-shadow: 0 14px 32px rgba(40, 50, 120, 0.5);
}

.blog-load-more-btn[hidden],
.blog-scroll-top-btn[hidden] {
    display: none !important;
}

[data-theme="dark"] .theme-hero {
    background: linear-gradient(145deg, rgba(16, 19, 36, 0.95), rgba(9, 11, 24, 0.95));
    border-color: rgba(140, 150, 255, 0.2);
    box-shadow: 0 30px 70px rgba(4, 6, 18, 0.6);
}

[data-theme="dark"] .theme-hero::before {
    opacity: 0.22;
}

[data-theme="dark"] .theme-eyebrow {
    color: #aab4ff;
}

[data-theme="dark"] .theme-hero h1 {
    color: #f2f4ff;
}

[data-theme="dark"] #theme-lead {
    color: #c5cde6;
}

[data-theme="dark"] .theme-highlight {
    background: rgba(102, 111, 236, 0.22);
    color: #ccd4ff;
}

[data-theme="dark"] .theme-article-card {
    background: linear-gradient(160deg, rgba(18, 21, 40, 0.98), rgba(10, 12, 26, 0.99));
    border-color: rgba(140, 150, 255, 0.22);
    box-shadow: 0 20px 50px rgba(4, 6, 18, 0.6);
}

[data-theme="dark"] .theme-article-title,
[data-theme="dark"] .theme-article-excerpt {
    color: #e1e6ff;
}

[data-theme="dark"] .theme-article-meta {
    color: #a9b2d2;
}

[data-theme="dark"] .theme-article-cta,
[data-theme="dark"] .theme-article-tag {
    color: #b7c3ff;
}

@media (max-width: 720px) {
    .theme-page main {
        padding: 2.2rem 18px 70px;
    }

    .theme-hero {
        border-radius: 22px;
        padding: 2rem 1.8rem;
    }
}
