/*
Theme Name: Astra Modern Medical
Template: astra
Author: Gastroscholar Design
Description: Modern editorial medical research hub child theme for Astra.
Version: 1.6.0
Updated: 2026-02-23 02:42:00
*/

:root {
    --gs-bg: #f3f7f8;
    --gs-bg-2: #edf4f5;
    --gs-surface: #ffffff;
    --gs-surface-soft: #f8fbfb;
    --gs-border: #dbe7e9;
    --gs-text: #24343c;
    --gs-text-soft: #53656f;
    --gs-heading: #13252f;
    --gs-brand: #0a8f99;
    --gs-brand-deep: #08727b;
    --gs-highlight: #f59e0b;
    --gs-radius: 16px;
    --gs-radius-sm: 10px;
    --gs-shadow: 0 14px 40px rgba(10, 45, 58, 0.08);
    --gs-shadow-soft: 0 8px 26px rgba(10, 45, 58, 0.06);
    --gs-container: 1220px;
}

html,
body {
    background: radial-gradient(1200px 500px at 8% -10%, #d8f0f3 0%, rgba(216, 240, 243, 0) 60%), radial-gradient(800px 420px at 92% 0%, #d9ecef 0%, rgba(217, 236, 239, 0) 65%), linear-gradient(180deg, var(--gs-bg) 0%, var(--gs-bg-2) 100%);
    color: var(--gs-text);
    font-family: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif !important;
    line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.site-title,
.ast-archive-title {
    color: var(--gs-heading);
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em;
}

a {
    color: var(--gs-brand);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gs-brand-deep);
}

.ast-container,
.site-content .ast-container {
    max-width: var(--gs-container);
}

#masthead {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(219, 231, 233, 0.9);
}

.main-header-menu a {
    color: #20414e !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.main-header-menu .current-menu-item > a,
.main-header-menu a:hover {
    color: var(--gs-brand) !important;
}

.site-header .ast-builder-layout-element[data-section="section-hb-button-1"] .ast-custom-button,
.ast-button,
button,
input[type="submit"] {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gs-brand) 0%, #0fb3be 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(10, 143, 153, 0.22);
}

.site-primary-header-wrap {
    min-height: 80px;
}

.site-content {
    padding-top: 1.4rem;
}

.ast-article-post,
.search .site-main article,
.blog .site-main article {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gs-surface) 0%, var(--gs-surface-soft) 100%);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-radius);
    box-shadow: var(--gs-shadow-soft);
    margin-bottom: 2rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home .wp-block-query {
    margin-top: 0.5rem;
}

.home .wp-block-post-template {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.home .wp-block-post {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gs-surface) 0%, var(--gs-surface-soft) 100%);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-radius);
    box-shadow: var(--gs-shadow-soft);
    padding: 1.15rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home .wp-block-post:hover {
    transform: translateY(-6px);
    box-shadow: var(--gs-shadow);
}

.home .wp-block-post-featured-image {
    margin: -1.15rem -1.15rem 0.95rem;
}

.home .wp-block-post-featured-image a,
.home .wp-block-post-featured-image img {
    display: block;
    width: 100%;
}

.home .wp-block-post-featured-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.home .wp-block-post-title {
    margin: 0.25rem 0 0.6rem;
    font-size: 1.18rem;
    line-height: 1.3;
}

.home .wp-block-post-title a {
    color: var(--gs-heading);
    text-decoration: none;
}

.home .wp-block-post-title a:hover {
    color: var(--gs-brand);
}

.home .wp-block-post-date {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--gs-text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home .wp-block-post-excerpt {
    margin: 0.35rem 0 0.8rem;
    color: #33505b;
    font-size: 0.96rem;
}

.home .wp-block-post-excerpt__more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.56rem 1rem;
    background: #e6f7f9;
    color: #0b7d86 !important;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.home .wp-block-query-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.8rem;
}

.home .wp-block-query-pagination a,
.home .wp-block-query-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #cfe4e8;
    background: #ffffff;
    color: #1f4652;
    font-weight: 700;
    text-decoration: none;
    padding: 0 0.7rem;
}

.home .wp-block-query-pagination .current,
.home .wp-block-query-pagination a:hover {
    background: linear-gradient(135deg, var(--gs-brand) 0%, #0fb3be 100%);
    color: #fff;
    border-color: transparent;
}

.ast-article-post::before,
.search .site-main article::before,
.blog .site-main article::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 179, 190, 0.11), rgba(245, 158, 11, 0.08));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.ast-article-post:hover,
.search .site-main article:hover,
.blog .site-main article:hover {
    transform: translateY(-6px);
    box-shadow: var(--gs-shadow);
}

.ast-article-post:hover::before,
.search .site-main article:hover::before,
.blog .site-main article:hover::before {
    opacity: 1;
}

.ast-article-inner {
    padding: 2rem !important;
}

.entry-title,
.entry-title a {
    color: var(--gs-heading) !important;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--gs-brand) !important;
}

.entry-meta,
.entry-meta * {
    color: var(--gs-text-soft) !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-content p {
    color: #304752;
}

.read-more,
.more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    border-radius: 999px;
    padding: 0.62rem 1.2rem;
    background: #e6f7f9;
    color: #0b7d86 !important;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.read-more:hover,
.more-link:hover {
    background: #cff0f4;
}

.widget,
.sidebar-main .widget {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-radius-sm);
    box-shadow: 0 4px 12px rgba(8, 65, 78, 0.05);
    padding: 1.1rem;
}

.widget-title {
    font-size: 1.04rem;
    margin-bottom: 0.8rem;
}

.search-form input[type="search"],
input[type="text"],
input[type="email"],
textarea {
    border: 1px solid #c9dde1;
    border-radius: 10px;
    background: #ffffff;
}

.single .entry-header,
.single .entry-content {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.single .entry-header {
    text-align: center;
    padding-top: 0.4rem;
}

.single .entry-title {
    font-size: clamp(2rem, 4.3vw, 3.2rem);
    line-height: 1.1;
}

.single .entry-content p,
.single .entry-content li {
    font-size: 1.12rem;
    line-height: 1.88;
}

.single .entry-content h2,
.single .entry-content h3 {
    margin-top: 2rem;
}

.gs-single-enhancements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem auto 2rem;
    max-width: 840px;
}

.gs-key-takeaways,
.gs-toc {
    border: 1px solid #cfe2e6;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 250, 251, 0.96) 100%);
    box-shadow: 0 8px 22px rgba(9, 62, 73, 0.08);
    padding: 1rem 1.1rem;
}

.gs-key-takeaways h3,
.gs-toc h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a6770;
}

.gs-key-takeaways ul,
.gs-toc ol {
    margin: 0;
    padding-left: 1.1rem;
}

.gs-key-takeaways li,
.gs-toc li {
    margin-bottom: 0.5rem;
    line-height: 1.45;
    color: #2c4a56;
    font-size: 0.95rem;
}

.gs-toc .gs-toc-h3 {
    margin-left: 0.8rem;
    list-style-type: circle;
}

.gs-toc .gs-toc-h4 {
    margin-left: 1.1rem;
    list-style-type: circle;
}

.gs-toc a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.gs-toc a:hover {
    border-bottom-color: currentColor;
}

.single .entry-content blockquote,
.single .wp-block-quote {
    margin: 1.9rem 0;
    border-left: 4px solid #3caab4;
    background: #f1fbfc;
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.1rem;
    color: #1f3b47;
}

.single .entry-content blockquote p,
.single .wp-block-quote p {
    font-size: 1.02rem;
    line-height: 1.75;
}

.single .entry-content cite,
.single .entry-content .wp-block-quote cite {
    display: block;
    margin-top: 0.55rem;
    color: #47626f;
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.single .entry-content sup {
    font-size: 0.72em;
    line-height: 0;
    vertical-align: super;
    color: #0a7f89;
    font-weight: 700;
}

.single .entry-content .gs-citation-list,
.single .entry-content .wp-block-footnotes {
    margin-top: 2rem;
    padding: 1rem 1.1rem;
    border: 1px solid #d7e8eb;
    border-radius: 12px;
    background: #fbfeff;
}

.single .entry-content .gs-citation-list li,
.single .entry-content .wp-block-footnotes li {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #3b5562;
}

.gs-eeat-author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #cde4e7;
    border-radius: var(--gs-radius-sm);
    background: linear-gradient(165deg, #ffffff 0%, #f3fbfc 100%);
    box-shadow: 0 12px 32px rgba(8, 57, 67, 0.08);
    padding: 1.35rem;
    margin: 2.3rem 0;
}

.gs-eeat-author-avatar img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5f6f8;
}

.gs-eeat-author-name {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    color: var(--gs-heading);
}

.gs-eeat-author-bio {
    margin: 0 0 0.8rem;
    color: #43606c;
    font-size: 0.96rem;
}

.gs-eeat-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.gs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.36rem 0.68rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    font-weight: 800;
    color: #0d7e88;
    background: #e8fbfd;
}

.site-footer {
    background: linear-gradient(180deg, #11303a 0%, #0d2730 100%);
    color: rgba(255, 255, 255, 0.86);
}

.site-footer a {
    color: #93dfe5;
}

.site-footer a:hover {
    color: #d2f4f7;
}

@keyframes gs-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ast-article-post {
    opacity: 0;
    animation: gs-rise 0.65s ease forwards;
}

.ast-article-post:nth-child(1) {
    animation-delay: 0.04s;
}

.ast-article-post:nth-child(2) {
    animation-delay: 0.11s;
}

.ast-article-post:nth-child(3) {
    animation-delay: 0.18s;
}

.ast-article-post:nth-child(4) {
    animation-delay: 0.25s;
}

@media (max-width: 920px) {
    .home .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ast-article-inner {
        padding: 1.4rem !important;
    }

    .single .entry-title {
        font-size: clamp(1.8rem, 6.3vw, 2.5rem);
    }

    .single .entry-content p,
    .single .entry-content li {
        font-size: 1.04rem;
    }
}

@media (max-width: 640px) {
    .home .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .main-header-menu a {
        font-size: 0.9rem;
    }

    .gs-eeat-author-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .gs-eeat-author-avatar img {
        width: 72px;
        height: 72px;
    }

    .gs-single-enhancements {
        grid-template-columns: 1fr;
    }
}

/* Magazine Homepage Redesign */
.home .gs-mag-shell {
    max-width: 1240px;
    margin: 0 auto;
}

.home .gs-mag-intro {
    border: 1px solid #cfe3e7;
    border-radius: 18px;
    background: linear-gradient(130deg, rgba(8, 126, 138, 0.09) 0%, rgba(255, 255, 255, 0.92) 56%, rgba(245, 158, 11, 0.08) 100%);
    box-shadow: 0 14px 36px rgba(11, 56, 67, 0.09);
    margin-bottom: 1.35rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.home .gs-mag-kicker {
    margin: 0 0 0.35rem;
    color: #0b7283;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.home .gs-mag-title {
    margin: 0;
    font-size: clamp(2.2rem, 5.6vw, 3.9rem);
    line-height: 1.04;
}

.home .gs-mag-sub {
    margin: 0.8rem 0 1rem;
    max-width: 700px;
    color: #36535f;
    font-size: 1.04rem;
}

.home .gs-mag-intro::after {
    content: '';
    display: block;
    width: 140px;
    height: 3px;
    margin-top: 1.1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d9aa4 0%, #f59e0b 100%);
}

.home .gs-editors-picks {
    margin: 1.2rem 0 1.4rem;
    border: 1px solid #d0e5e9;
    border-radius: 16px;
    background: linear-gradient(155deg, #ffffff 0%, #f7fbfc 100%);
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(10, 57, 68, 0.08);
}

.home .gs-editors-head h2 {
    margin: 0 0 0.8rem;
    font-size: 1.04rem;
    font-family: 'Manrope', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f5e6b;
    font-weight: 800 !important;
}

.home .gs-editors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.home .gs-editors-card {
    border: 1px solid #d7e9ec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.home .gs-editors-thumb {
    display: block;
    background: #e9f6f8;
}

.home .gs-editors-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.home .gs-editors-noimg {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #36616d;
}

.home .gs-editors-date,
.home .gs-editors-title,
.home .gs-editors-excerpt {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.home .gs-editors-card .gs-post-cat,
.home .gs-editors-card .gs-post-meta {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.home .gs-editors-date {
    margin: 0.65rem 0 0.2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #5b7a86;
}

.home .gs-editors-title {
    margin: 0.15rem 0 0.35rem;
    font-size: 1rem;
    line-height: 1.35;
    font-family: 'Manrope', sans-serif !important;
}

.home .gs-editors-title a {
    color: #153541;
    text-decoration: none;
}

.home .gs-editors-title a:hover {
    color: #0c8792;
}

.home .gs-editors-excerpt {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: #46626e;
}

.home .gs-mag-search {
    max-width: 720px;
}

.home .gs-mag-lead-layout {
    margin-top: 0.2rem;
    margin-bottom: 1.45rem;
}

.home .gs-query-lead .wp-block-post-template,
.home .gs-query-side .wp-block-post-template {
    display: block;
}

.home .gs-query-lead .wp-block-post {
    border: 1px solid #d3e5e9;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(8, 56, 66, 0.09);
    padding: 1rem;
}

.home .gs-query-lead .wp-block-post-featured-image {
    margin: -1rem -1rem 1rem;
}

.home .gs-query-lead .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home .gs-query-lead .wp-block-post-date {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 800;
    color: #4a6571;
}

.home .gs-query-lead .wp-block-post-title {
    margin: 0.45rem 0 0.55rem;
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    line-height: 1.14;
}

.home .gs-query-lead .wp-block-post-title a {
    color: #102934;
    text-decoration: none;
}

.home .gs-query-lead .wp-block-post-title a:hover {
    color: #0a8590;
}

.home .gs-query-lead .wp-block-post-excerpt {
    color: #35525f;
    font-size: 1rem;
}

.home .gs-query-lead .wp-block-post-excerpt__more-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e7f8fa;
    color: #0b7b85 !important;
    padding: 0.56rem 1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    font-weight: 800;
}

.home .gs-side-panel {
    border: 1px solid #d5e8eb;
    border-radius: 16px;
    background: #fbfeff;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(10, 63, 75, 0.08);
}

.home .gs-side-heading {
    margin: 0 0 0.8rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid #dbeef1;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800 !important;
    color: #0f4f5e;
}

.home .gs-side-story {
    border-bottom: 1px solid #e2eff2;
    padding: 0.6rem 0;
}

.home .gs-side-story:last-child {
    border-bottom: 0;
}

.home .gs-side-story .wp-block-post-date {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #62808d;
}

.home .gs-side-story .wp-block-post-title {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    line-height: 1.35;
    font-family: 'Manrope', sans-serif !important;
}

.home .gs-side-story .wp-block-post-title a {
    color: #183946;
    text-decoration: none;
}

.home .gs-side-story .wp-block-post-title a:hover {
    color: #0a8590;
}

.home .gs-mag-section {
    margin-top: 1rem;
    margin-bottom: 1.35rem;
}

.home .gs-mag-section-title {
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d8eaee;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.home .gs-mag-trending .gs-mag-section-title {
    border-bottom-color: #c6e8ec;
    position: relative;
}

.home .gs-mag-trending .gs-mag-section-title::before {
    content: 'Trending';
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    background: #e6f8fa;
    color: #0f7f8c;
    font-size: 0.63rem;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home .gs-mag-archive .gs-mag-section-title {
    border-bottom-color: #e5e6d0;
}

.home .gs-mag-archive .gs-mag-section-title::before {
    content: 'Archive';
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    background: #fff8e8;
    color: #9a6a09;
    font-size: 0.63rem;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home .gs-query-trending .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home .gs-query-trending .wp-block-post {
    border: 1px solid #d5e7ea;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(9, 58, 70, 0.07);
}

.home .gs-query-trending .wp-block-post-featured-image {
    margin: 0;
}

.home .gs-query-trending .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home .gs-query-trending .wp-block-post-date,
.home .gs-query-trending .wp-block-post-title {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.home .gs-query-trending .wp-block-post-date {
    margin-top: 0.65rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.home .gs-query-trending .wp-block-post-title {
    margin: 0.25rem 0 0.8rem;
    font-size: 1rem;
    line-height: 1.35;
    font-family: 'Manrope', sans-serif !important;
}

.home .gs-query-archive .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.home .gs-query-archive .wp-block-post {
    border: 1px solid #d4e7ea;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(9, 58, 70, 0.08);
    padding-bottom: 0.7rem;
}

.home .gs-query-archive .wp-block-post-featured-image {
    margin: 0;
}

.home .gs-query-archive .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.home .gs-query-archive .wp-block-post-date,
.home .gs-query-archive .wp-block-post-title,
.home .gs-query-archive .wp-block-post-excerpt {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.home .gs-query-archive .wp-block-post-date {
    margin-top: 0.78rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.home .gs-query-archive .wp-block-post-title {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.18rem;
    line-height: 1.3;
}

.home .gs-query-archive .wp-block-post-title a {
    text-decoration: none;
}

.home .gs-query-archive .wp-block-post-excerpt {
    margin-top: 0;
    color: #3a5662;
    font-size: 0.94rem;
}

.home .gs-query-archive .wp-block-post-excerpt__more-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e7f8fa;
    color: #0b7b85 !important;
    padding: 0.52rem 0.92rem;
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    font-weight: 800;
}

.home .gs-mag-pagination,
.home .gs-mag-pagination.wp-block-query-pagination {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.4rem;
}

.home .gs-mag-pagination a,
.home .gs-mag-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #d3e5e9;
    background: #ffffff;
    color: #20434f;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0 0.72rem;
}

.home .gs-mag-pagination a:hover,
.home .gs-mag-pagination .current {
    background: linear-gradient(135deg, var(--gs-brand) 0%, #0fb3be 100%);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 980px) {
    .home .gs-editors-grid,
    .home .gs-query-trending .wp-block-post-template,
    .home .gs-query-archive .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home .gs-mag-lead-layout {
        display: block;
    }
}

@media (max-width: 640px) {
    .home .gs-editors-grid,
    .home .gs-query-trending .wp-block-post-template,
    .home .gs-query-archive .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .home .gs-mag-intro {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .home .gs-mag-title {
        line-height: 1.08;
    }
}

/* Homepage newsroom meta and ticker */
.home .wp-block-post-date,
.home .gs-editors-date {
    display: none !important;
}

.home .gs-news-ticker {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: center;
    border: 1px solid #d5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.5rem 0.7rem;
    margin: 0.2rem 0 1.25rem;
}

.home .gs-news-ticker-label {
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0e95a0 0%, #0a7f88 100%);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.32rem 0.58rem;
}

.home .gs-news-ticker-query .wp-block-post-template {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0;
    padding: 0;
}

.home .gs-news-ticker-query .wp-block-post {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.home .gs-news-ticker-query .wp-block-post-title {
    margin: 0;
    font-size: 0.82rem;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700;
}

.home .gs-news-ticker-query .wp-block-post-title::after {
    content: '•';
    margin-left: 0.75rem;
    color: #8ea6ae;
}

.home .gs-news-ticker-query .wp-block-post:last-child .wp-block-post-title::after {
    content: '';
}

.home .gs-post-cat {
    margin: 0.65rem 0 0.35rem;
    line-height: 1;
}

.home .gs-post-cat a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ecf9fa;
    color: #0c7f89;
    border: 1px solid #cde9ec;
    padding: 0.22rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    margin-right: 0.35rem;
    margin-bottom: 0.25rem;
}

.home .gs-post-meta {
    gap: 0.45rem;
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    color: #587681;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home .gs-post-author,
.home .gs-post-meta .wp-block-shortcode,
.home .gs-read-time {
    margin: 0;
}

.home .gs-post-meta .wp-block-shortcode {
    display: inline-flex;
    align-items: center;
}

.home .gs-post-meta .wp-block-shortcode::before,
.home .gs-read-time::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8ba2aa;
    margin-right: 0.45rem;
}

@media (max-width: 760px) {
    .home .gs-news-ticker {
        grid-template-columns: 1fr;
    }
}
