body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: #222;
    background: #fff;
}

.container {
    max-width: 820px;
    margin: auto;
    padding: 24px;
}

.site-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    margin-bottom: 30px;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 24px;
}

.logo img {
    height: 72px;
    width: auto;
    display: block;
}

.site-search {
    display: flex;
    gap: 8px;
    flex: 0 1 320px;
}

.site-search input[type="search"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.site-search button {
    padding: 8px 14px;
    border: 1px solid #1a4ea0;
    background: #1a4ea0;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.site-search button:hover {
    background: #163f82;
}

.site-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    color: #777;
    font-size: 14px;
}

h1 {
    font-size: 42px;
    margin: 0 0 10px;
}

h2 {
    margin-top: 40px;
}

.subtitle {
    color: #666;
    font-size: 20px;
    margin-bottom: 30px;
}

.date {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

.article-list p {
    margin: 18px 0;
}

.article-list a {
    text-decoration: none;
    color: #1a4ea0;
    font-size: 20px;
    font-weight: 600;
}

.article-list a:hover {
    text-decoration: underline;
}

.more-link {
    margin-top: 40px;
    font-weight: bold;
}

.back-home {
    margin-top: 50px;
}

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

#search {
    margin-top: 20px;
}

/* =====================================================================
   HOMEPAGE v2 — styles below this line are used ONLY by the homepage
   (templates/home.html). Nothing above this line was changed, so every
   other page (articles, search, archives, 404) looks exactly as before.
   ===================================================================== */

/* --- Hero navigation ------------------------------------------------ */

.hero-nav {
    background: #f6f8fb;
    border-bottom: 1px solid #e5e5e5;
}

.hero-nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 22px;
    max-width: 820px;
    margin: 0 auto;
    padding: 14px 24px;
}

.hero-nav-list a {
    color: #1a4ea0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.hero-nav-list a:hover {
    text-decoration: underline;
}

/* --- Hero ------------------------------------------------------------ */

.hero {
    text-align: center;
    padding: 48px 0 40px;
}

.hero-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0 auto 24px;
    display: block;
}

.hero-headline {
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 14px;
}

.hero-headline-sub {
    color: #1a4ea0;
}

.hero-markets {
    color: #555;
    font-size: 17px;
    margin: 0 0 18px;
    font-weight: 600;
}

.hero-subheading {
    color: #555;
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* --- Buttons ----------------------------------------------------------
   Shared by the hero, the library actions, and (later, if reused) any
   other homepage section that needs a call-to-action button. */

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    min-width: 220px;
    text-align: center;
}

.btn-primary {
    background: #1a4ea0;
    color: #fff;
    border-color: #1a4ea0;
}

.btn-primary:hover {
    background: #163f82;
    border-color: #163f82;
}

.btn-secondary {
    background: #fff;
    color: #1a4ea0;
    border-color: #1a4ea0;
}

.btn-secondary:hover {
    background: #eef3fb;
}

.btn-accent {
    background: #0d8a4e;
    color: #fff;
    border-color: #0d8a4e;
}

.btn-accent:hover {
    background: #0a6f3e;
}

.btn-outline {
    background: #fff;
    color: #444;
    border-color: #ccc;
}

.btn-outline:hover {
    background: #f4f4f4;
}

/* --- Stats ------------------------------------------------------------ */

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 40px;
    padding: 32px 0;
    margin: 8px 0 8px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #1a4ea0;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

/* --- Explore WaveTimes cards ------------------------------------------ */

.offerings {
    padding: 40px 0 8px;
    text-align: center;
}

.offerings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
    text-align: left;
}

.offering-card {
    display: block;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.offering-card:hover {
    border-color: #1a4ea0;
    box-shadow: 0 2px 10px rgba(26, 78, 160, 0.12);
}

.offering-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a4ea0;
    margin-bottom: 6px;
}

.offering-description {
    display: block;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* --- Newsletter library section ---------------------------------------- */

.newsletter-library {
    padding-top: 24px;
}

.library-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

/* --- Homepage footer links (in addition to the site-wide footer) ------- */

.home-footer {
    margin-top: 56px;
    padding: 28px 24px 0;
    border-top: 1px solid #e5e5e5;
}

.home-footer-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
}

.home-footer-list a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.home-footer-list a:hover {
    text-decoration: underline;
    color: #1a4ea0;
}

.home-social-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    max-width: 820px;
    margin: 16px auto 0;
    padding: 0;
}

.home-social-list a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.home-social-list a:hover {
    text-decoration: underline;
    color: #1a4ea0;
}

.home-copyright {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 20px 0 4px;
}

/* --- Wider layout for tablets/desktops --------------------------------- */

@media (min-width: 700px) {

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        min-width: 0;
    }

    .offerings-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .library-actions {
        flex-direction: row;
        justify-content: center;
    }
}
