/*
Theme Name: GeoShake News
Theme URI: https://geoshake.org
Template: generatepress
Description: GeoShake News child theme — earthquake & volcano news, Google News optimized, mobile app promotion
Author: GeoShake
Author URI: https://geoshake.org
Version: 2.0.0
Text Domain: geoshake-news
*/

/* ===================================================================
   0. CSS VARIABLES
   =================================================================== */

:root {
    --color-bg: #FFFFFF;
    --color-surface: #F5F5F7;
    --color-text: #1D1D1F;
    --color-text-secondary: #6E6E73;
    --color-accent: #E94560;
    --color-accent-hover: #C73650;
    --color-border: #E8E8ED;
    --color-tag-bg: #F5F5F7;
    --color-tag-text: #1D1D1F;
    --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
    --max-width: 800px;
    --header-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
}

/* ===================================================================
   1. RESET & BASE
   =================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================================================
   2. HEADER — Sticky Frosted Glass
   =================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .inside-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-header .site-title,
.site-header .main-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

.site-header .site-title a {
    color: var(--color-text);
    text-decoration: none;
}

.site-header .site-title a:hover {
    color: var(--color-text);
}

/* Site description / tagline — hide */
.site-header .site-description {
    display: none;
}

/* Navigation */
.site-header .main-navigation,
.site-header .main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header .main-navigation a,
.main-nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header .main-navigation a:hover,
.main-nav ul li a:hover {
    color: var(--color-accent);
}

/* Navigation layout — menu + lang switcher side by side */
.inside-navigation.grid-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Language switcher — dropdown with inline JS toggle */
.gs-lang {
    position: relative;
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
    margin-left: auto;
    padding-right: 20px;
}

.gs-lang__trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.2s, background 0.2s;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.gs-lang:hover .gs-lang__trigger,
.gs-lang.is-open .gs-lang__trigger {
    border-color: var(--color-accent);
    background: var(--color-bg, #fff);
}

.gs-lang__icon {
    flex-shrink: 0;
    opacity: 0.6;
}

.gs-lang__chevron {
    flex-shrink: 0;
    opacity: 0.4;
    transition: transform 0.2s;
}

.gs-lang.is-open .gs-lang__chevron {
    transform: rotate(180deg);
}

/* Dropdown panel — hidden by default */
.gs-lang__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    padding: 4px 0;
    margin: 0;
    list-style: none;
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.gs-lang.is-open .gs-lang__dropdown {
    display: block;
    animation: gs-lang-fade 0.15s ease;
}

@keyframes gs-lang-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown items */
.gs-lang__item {
    padding: 0;
    margin: 0;
    border-bottom: none;
}

.gs-lang__item a,
.gs-lang__item span {
    display: block;
    padding: 8px 14px 8px 32px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none !important;
    transition: background 0.15s;
    position: relative;
    line-height: 1.4;
}

.gs-lang__item a:hover {
    background: var(--color-surface);
    color: var(--color-accent) !important;
}

/* Active language indicator */
.gs-lang__item--active span {
    font-weight: 600;
    color: var(--color-accent);
}

.gs-lang__item--active span::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* Get App button in nav */
a.gs-nav-app {
    display: inline-flex !important;
    align-items: center;
    padding: 8px 18px !important;
    background: var(--color-text) !important;
    color: #fff !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    margin-left: 8px;
    transition: opacity 0.2s;
    line-height: 1;
}

a.gs-nav-app:hover,
a.gs-nav-app:active {
    opacity: 0.8;
    color: #fff !important;
}

/* Mobile: hide Get App button — sticky banner handles app promotion */
@media (max-width: 768px) {
    a.gs-nav-app {
        display: none !important;
    }
}

/* Hide menu toggle on desktop — let GeneratePress show it on mobile */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* ===================================================================
   3. MAIN CONTENT CONTAINER
   =================================================================== */

.site-content,
.inside-article,
#primary {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Remove GeneratePress default sidebar */
.sidebar,
#secondary,
#right-sidebar,
#left-sidebar {
    display: none !important;
}

/* Full width content area */
.content-area,
#primary {
    width: 100%;
    float: none;
}

/* ===================================================================
   4. HOMEPAGE — NEWS LIST
   =================================================================== */

/* Post listing */
.home .site-main article,
.archive .site-main article,
.blog .site-main article {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.home .site-main article:first-child,
.archive .site-main article:first-child,
.blog .site-main article:first-child {
    padding-top: 48px;
}

.home .site-main article:last-child,
.archive .site-main article:last-child,
.blog .site-main article:last-child {
    border-bottom: none;
}

/* Category + Date line */
.entry-meta,
.post-meta {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.entry-meta a {
    color: var(--color-text-secondary);
}

.entry-meta a:hover {
    color: var(--color-accent);
}

/* Title in listing */
.home .entry-title,
.archive .entry-title,
.blog .entry-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0 0 12px;
    padding: 0;
}

.home .entry-title a,
.archive .entry-title a,
.blog .entry-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.home .entry-title a:hover,
.archive .entry-title a:hover,
.blog .entry-title a:hover {
    color: var(--color-accent);
}

/* Excerpt in listing */
.home .entry-summary,
.archive .entry-summary,
.blog .entry-summary,
.home .entry-content p:first-child,
.archive .entry-content p:first-child {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0 0 16px;
}

/* Featured image in listing */
.home .post-image img,
.archive .post-image img,
.blog .post-image img {
    width: 100%;
    border-radius: var(--radius);
    margin-top: 16px;
    margin-bottom: 4px;
}

/* Hide read more button — whole card is clickable feel */
.home .read-more,
.archive .read-more,
.blog .read-more {
    display: none;
}

/* ===================================================================
   5. ARTICLE DETAIL PAGE
   =================================================================== */

.single .entry-header {
    text-align: center;
    padding-top: 48px;
    margin-bottom: 32px;
}

.single .entry-meta {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.single .entry-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin: 0 0 32px;
    padding: 0;
}

/* Featured image */
.single .post-image img,
.single .wp-post-image,
.single .entry-content > .wp-block-image:first-child img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 24px;
}

/* Article body */
.single .entry-content {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
}

.single .entry-content p {
    margin: 0 0 24px;
}

.single .entry-content h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 48px 0 16px;
    padding: 0;
}

.single .entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 32px 0 12px;
}

.single .entry-content ul,
.single .entry-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.single .entry-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.single .entry-content strong {
    font-weight: 600;
    color: var(--color-text);
}

.single .entry-content img {
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.single .entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single .entry-content a:hover {
    color: var(--color-accent-hover);
}

/* ===================================================================
   6. TAGS — Pill Style
   =================================================================== */

.tags-links,
.tag-links,
.entry-tags,
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.tags-links a,
.tag-links a,
.entry-tags a,
.post-tags a {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-tag-text);
    background: var(--color-tag-bg);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tags-links a:hover,
.tag-links a:hover,
.entry-tags a:hover,
.post-tags a:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ===================================================================
   7. CTA BLOCK — Dark Card
   =================================================================== */

.geoshake-cta {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-text);
    padding: 32px;
    margin: 48px 0;
    border-radius: var(--radius);
}

.geoshake-cta__title {
    margin: 0 0 8px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
}

.geoshake-cta__desc {
    margin: 0 0 20px !important;
    font-size: 15px !important;
    color: var(--color-text-secondary) !important;
}

a.geoshake-cta__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--color-text) !important;
    color: var(--color-text) !important;
    background: transparent !important;
    padding: 12px 24px !important;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}

a.geoshake-cta__btn:hover,
a.geoshake-cta__btn:focus,
a.geoshake-cta__btn:active {
    background: var(--color-text) !important;
    color: #fff !important;
}

/* ===================================================================
   8. STICKY APP BANNER (Mobile Only)
   =================================================================== */

#geoshake-sticky-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid var(--color-text);
    color: var(--color-text);
    padding: 10px 16px;
    align-items: center;
    font-family: var(--font-stack);
    font-size: 14px;
    gap: 10px;
}

.gsb__icon {
    flex-shrink: 0;
    opacity: 0.5;
    display: flex;
    align-items: center;
}

.gsb__text {
    flex: 1;
    font-size: 13px;
    line-height: 1.3;
}

a.gsb__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    border: 1.5px solid var(--color-text) !important;
    color: var(--color-text) !important;
    background: transparent !important;
    padding: 8px 14px !important;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

a.gsb__btn:hover,
a.gsb__btn:active {
    background: var(--color-text) !important;
    color: #fff !important;
}

.gsb__close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    color: var(--color-text-secondary) !important;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

.gsb__close:hover {
    color: var(--color-text) !important;
}

/* ===================================================================
   9. FOOTER
   =================================================================== */

.site-footer,
footer.site-info {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: 64px;
}

.site-footer .inside-site-info,
.site-footer .footer-widgets-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px;
    text-align: center;
}

.site-footer .site-info,
.site-footer .copyright-bar {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.site-footer a {
    color: var(--color-text-secondary);
}

.site-footer a:hover {
    color: var(--color-accent);
}

/* ===================================================================
   10. NEWSLETTER FORM
   =================================================================== */

.gs-newsletter {
    max-width: var(--max-width);
    margin: 48px auto;
    padding: 32px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
}

.gs-newsletter__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}

.gs-newsletter__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0 0 20px;
}

.gs-newsletter__form {
    display: flex;
    gap: 8px;
    justify-content: center;
    max-width: 440px;
    margin: 0 auto 12px;
}

.gs-newsletter__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.gs-newsletter__input:focus {
    border-color: var(--color-accent);
}

.gs-newsletter__btn {
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.gs-newsletter__btn:hover {
    background: var(--color-accent-hover);
}

.gs-newsletter__msg {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 8px 0 0;
    min-height: 20px;
}

.gs-newsletter__msg--success { color: #34C759; }
.gs-newsletter__msg--error { color: var(--color-accent); }
.gs-newsletter__msg--warn { color: #F5A623; }

.gs-newsletter .h-captcha {
    display: flex;
    justify-content: center;
    margin: 12px 0 0;
}

@media (max-width: 480px) {
    .gs-newsletter__form {
        flex-direction: column;
    }
    .gs-newsletter__btn {
        width: 100%;
    }
}

/* ===================================================================
   11. PAGINATION
   =================================================================== */

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 48px 0;
}

.pagination a,
.nav-links a,
.pagination span,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a,
.nav-links a {
    color: var(--color-text);
    background: var(--color-surface);
}

.pagination a:hover,
.nav-links a:hover {
    background: var(--color-accent);
    color: #fff;
}

.pagination .current,
.nav-links .current {
    background: var(--color-accent);
    color: #fff;
}

/* ===================================================================
   11. MOBILE RESPONSIVE
   =================================================================== */

@media (max-width: 768px) {
    /* Container padding */
    .site-content,
    .inside-article,
    #primary {
        padding: 0 16px;
    }

    /* Header */
    .site-header .inside-header {
        padding: 0 16px;
    }

    /* Mobile nav — white background when toggled open */
    #site-navigation.toggled .inside-navigation {
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 16px;
    }

    /* Homepage titles */
    .home .entry-title,
    .archive .entry-title,
    .blog .entry-title {
        font-size: 22px;
    }

    /* Article title */
    .single .entry-title {
        font-size: 28px;
    }

    /* Article body */
    .single .entry-content {
        font-size: 17px;
    }

    /* Featured image */
    .single .post-image img,
    .single .wp-post-image {
        border-radius: var(--radius-sm);
    }

    /* Tags */
    .tags-links a,
    .tag-links a {
        font-size: 12px;
    }

    /* Footer */
    .site-footer .inside-site-info,
    .site-footer .footer-widgets-container {
        padding: 48px 16px;
    }

    /* Sticky banner visible */
    #geoshake-sticky-banner {
        display: flex !important;
    }

    #geoshake-sticky-banner.gsb--hidden {
        display: none !important;
    }

    body {
        padding-bottom: 60px;
    }

    body.gsb--dismissed {
        padding-bottom: 0;
    }

    /* Language switcher inside mobile menu — hidden until toggle */
    .main-nav .gs-lang {
        display: none;
        margin: 12px 0 0;
        padding-right: 0;
    }

    #site-navigation.toggled .main-nav .gs-lang {
        display: block;
    }

    .main-nav .gs-lang__trigger {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 14px;
    }

    .main-nav .gs-lang__dropdown {
        position: static;
        border: none;
        box-shadow: none;
        background: var(--color-surface);
        border-radius: var(--radius-sm);
        margin-top: 6px;
    }

    /* Listing spacing */
    .home .site-main article,
    .archive .site-main article,
    .blog .site-main article {
        padding: 32px 0;
    }
}

/* ===================================================================
   12. UTILITY — HIDE GENERATEPRESS DEFAULTS
   =================================================================== */

/* Hide GeneratePress elements we don't need */
.entry-header .cat-links,
.entry-header .comments-link,
.post-navigation,
.comments-area,
.entry-footer .cat-links {
    display: none;
}

/* Remove GeneratePress content container max-width conflicts */
.container.grid-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Remove any box shadows from GeneratePress */
article,
.inside-article {
    box-shadow: none !important;
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===================================================================
   13. HOMEPAGE — BBC-STYLE (gs-homepage)
   Overrides section 4 for pages using home.php.
   Max-width widens to 1200px for homepage only.
   =================================================================== */

.gs-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* Section heading — BBC red-bar style */
.gs-section {
    margin-top: 48px;
}

.gs-section__heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    border-left: 4px solid var(--color-accent);
    padding-left: 12px;
    margin: 0 0 24px;
    line-height: 1;
}

/* Meta row: category badge · date */
.gs-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.gs-badge {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gs-meta__sep {
    color: var(--color-border);
}

/* ---- HERO ---- */
.gs-hero {
    margin-bottom: 8px;
}

.gs-hero__link {
    display: grid;
    grid-template-columns: 60% 1fr;
    gap: 40px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.gs-hero__image {
    order: 2;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-surface);
}

.gs-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gs-hero__link:hover .gs-hero__image img {
    transform: scale(1.03);
}

.gs-hero__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
}

.gs-hero__content {
    order: 1;
}

.gs-hero__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0 0 16px;
    padding: 0;
    transition: color 0.2s ease;
}

.gs-hero__link:hover .gs-hero__title {
    color: var(--color-accent);
}

.gs-hero__excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- GRID (2x2) ---- */
.gs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gs-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gs-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    margin-bottom: 14px;
}

.gs-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gs-card__link:hover .gs-card__image img {
    transform: scale(1.03);
}

.gs-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
}

.gs-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.gs-card__link:hover .gs-card__title {
    color: var(--color-accent);
}

/* ---- MORE STORIES LIST ---- */
.gs-list {
    border-top: 1px solid var(--color-border);
}

.gs-list-item {
    border-bottom: 1px solid var(--color-border);
}

.gs-list-item__link {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    text-decoration: none;
    color: inherit;
}

.gs-list-item__image {
    width: 100%;
    height: 60px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--color-surface);
}

.gs-list-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gs-list-item__link:hover .gs-list-item__image img {
    transform: scale(1.05);
}

.gs-list-item__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
}

.gs-list-item__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.gs-list-item__link:hover .gs-list-item__title {
    color: var(--color-accent);
}

.gs-list-item__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .gs-homepage {
        padding: 24px 16px 48px;
    }

    /* Hero: image on top, text below */
    .gs-hero__link {
        grid-template-columns: 1fr;
    }

    .gs-hero__image {
        order: 1;
    }

    .gs-hero__content {
        order: 2;
    }

    .gs-hero__title {
        font-size: 26px;
    }

    .gs-hero__excerpt {
        font-size: 16px;
    }

    /* Grid: single column on mobile */
    .gs-grid {
        grid-template-columns: 1fr;
    }

    /* List: thumbnail + title stacked, meta below title */
    .gs-list-item__link {
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    .gs-list-item__meta {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

/* ===================================================================
   RELATED ARTICLES
   =================================================================== */

.gs-related {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.gs-related h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.gs-related ul {
    list-style: none;
    padding: 0;
}
.gs-related li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}
.gs-related li:last-child {
    border-bottom: none;
}
.gs-related a {
    color: var(--color-text);
    text-decoration: none;
}
.gs-related a:hover {
    color: var(--color-accent);
}
