.shell {
    min-height: 100vh;
    background: radial-gradient(circle, white, rgba(116, 173, 247, 0.1), white);
    color: #13253b;
    /* background: white; */
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(247, 251, 255, 0.82);
    border-bottom: 1px solid rgba(21, 55, 88, 0.08);
}

.topbarInner,
.content {
    width: min(90%, var(--max-content-width));
    margin: 0 auto;
}

.topbarInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #13253b;
    font-family: var(--secondary-font);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand img {
    height: 38px;
    width: auto;
    display: block;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navLink {
    color: rgba(19, 37, 59, 0.75);
    font-family: var(--secondary-font);
    font-size: 15px;
}

.navLink:hover,
.brand:hover {
    color: var(--primary);
}

.content {
    padding: 34px 0 70px;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero {
    text-align: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.hero h1,
.articleHeader h1 {
    font-family: var(--primary-font);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.03;
    margin-bottom: 30px;
}

.heroText {
    font-size: 17px;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
    color: rgba(19, 37, 59, 0.78);
}

.searchBar {
    margin: 22px auto 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    max-width: 760px;
    width: min(100%, 760px);
}

.searchInput {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(21, 55, 88, 0.12);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    color: #13253b;
    outline: none;
    box-shadow: 0 8px 24px rgba(19, 37, 59, 0.05);
}

.searchInput:focus {
    border-color: rgba(116, 173, 247, 0.7);
    box-shadow: 0 0 0 4px rgba(116, 173, 247, 0.12);
}

.searchButton {
    border: none;
    border-radius: 16px;
    padding: 0 18px;
    min-width: 120px;
    background: linear-gradient(135deg, var(--primary), #245d98);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.searchInfo {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    color: rgba(19, 37, 59, 0.68);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feed {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 80px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(21, 55, 88, 0.08);
    border-radius: 24px;
    padding: 24px;
    color: inherit;
    box-shadow: 0 12px 30px rgba(19, 37, 59, 0.06);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(116, 173, 247, 0.45);
    box-shadow: 0 18px 40px rgba(19, 37, 59, 0.11);
}

.cardMeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: rgba(19, 37, 59, 0.65);
}

.metaPill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(21, 55, 88, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.card h2 {
    font-family: var(--secondary-font);
    font-size: 19px;
    line-height: 1.2;
}

.card p {
    line-height: 1.4;
    color: rgba(19, 37, 59, 0.78);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.6em * 4);
    font-size: 15px;
}

.readMore,
.backLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-family: var(--secondary-font);
}

.emptyState {
    text-align: center;
}

.loadError,
.feedEnd {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: rgba(19, 37, 59, 0.72);
}

.loadError {
    color: #b42318;
}

.feedSentinel {
    width: 100%;
    height: 1px;
}

.loadMoreStatus {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(21, 55, 88, 0.12);
    box-shadow: 0 16px 36px rgba(19, 37, 59, 0.14);
    color: var(--primary);
    font-weight: 700;
}

.loadSpinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(36, 93, 152, 0.2);
    border-top-color: var(--primary);
    animation: blogSpin 0.8s linear infinite;
}

.emptyState h2,
.emptyState h3 {
    margin-bottom: 10px;
    font-family: var(--secondary-font);
}

.article {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.articleHeader p {
    max-width: 760px;
}

.articleBody {
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.articleBody p {
    font-size: 17px;
    line-height: 1.5;
    color: rgba(19, 37, 59, 0.82);
}

.keywordSection {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
    padding: 18px 0;
    border-top: 1px solid rgba(21, 55, 88, 0.1);
    border-bottom: 1px solid rgba(21, 55, 88, 0.1);
}

.keywordLabel {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(19, 37, 59, 0.62);
}

.keywordList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keywordChip,
.keywordLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 7px 12px;
    background: rgba(21, 55, 88, 0.08);
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}

.keywordLink {
    padding: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    text-underline-offset: 3px;
}

.keywordChip:hover {
    background: rgba(21, 55, 88, 0.14);
}

.keywordLink:hover {
    color: #245d98;
}

.articleAdBanner {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(21, 55, 88, 0.08);
    box-shadow: 0 14px 34px rgba(19, 37, 59, 0.08);
    background: rgba(255, 255, 255, 0.84);
}

.articleAdBanner img,
.articleSideBanner {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.articleContentShell {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) minmax(
            120px,
            180px
        );
    gap: 18px;
    align-items: start;
}

.articleSideBanner {
    border-radius: 18px;
    border: 1px solid rgba(21, 55, 88, 0.08);
    box-shadow: 0 14px 34px rgba(19, 37, 59, 0.08);
    background: rgba(255, 255, 255, 0.84);
}

@keyframes blogSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1240px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .searchBar {
        flex-direction: column;
    }

    .searchButton {
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .topbarInner {
        flex-direction: column;
        align-items: flex-start;
    }
    .kicker {
        font-size: 10px;
    }
    .hero,
    .articleHeader,
    .articleBody,
    .emptyState {
        border-radius: 22px;
    }

    .articleBody p {
        font-size: 15px;
    }

    .keywordChip {
        font-size: 12px;
    }

    .card {
        padding: 20px;
    }

    .articleContentShell {
        grid-template-columns: 1fr;
    }
    .articleAdBanner {
        border-radius: 10px;
    }
    .articleSideBanner {
        max-width: 280px;
        margin: 0 auto;
        display: none;
    }
    .hero h1 {
        margin-bottom: 10px;
    }
}
