/*
 * Westway — lightweight news / blog styling.
 * Used on archive and single-post views (NOT the Elementor homepage).
 * Kept deliberately small and plugin-independent.
 */

:root {
    --ww-ink: #1a1a1a;
    --ww-muted: #6b6b6b;
    --ww-accent: #0b5d4e;
    --ww-line: #e6e6e6;
    --ww-bg: #ffffff;
    --ww-max: 1100px;
}

.westway-container {
    max-width: var(--ww-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / footer for blog views */
.westway-site-header {
    border-bottom: 1px solid var(--ww-line);
    padding: 18px 0;
    background: var(--ww-bg);
}
.westway-site-header .westway-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.westway-logo img { display: block; height: 48px; width: auto; }
.westway-nav-home {
    color: var(--ww-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.westway-nav-home:hover { text-decoration: underline; }

.westway-site-footer {
    border-top: 1px solid var(--ww-line);
    margin-top: 64px;
    padding: 28px 0;
    color: var(--ww-muted);
    font-size: 14px;
    text-align: center;
}

/* Archive listing */
.westway-news-page { padding: 48px 0; color: var(--ww-ink); }
.westway-news-page .page-title {
    font-size: 38px;
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}
.westway-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 36px 28px;
}
.westway-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ww-line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--ww-bg);
    transition: box-shadow .2s ease, transform .2s ease;
}
.westway-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transform: translateY(-3px);
}
.westway-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #f2f2f2; }
.westway-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.westway-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.westway-card__date { color: var(--ww-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.westway-card__title { font-size: 20px; line-height: 1.3; margin: 0; }
.westway-card__title a { color: var(--ww-ink); text-decoration: none; }
.westway-card__title a:hover { color: var(--ww-accent); }
.westway-card__excerpt { color: var(--ww-muted); font-size: 15px; line-height: 1.55; margin: 0; }
.westway-card__more { margin-top: auto; color: var(--ww-accent); font-weight: 600; text-decoration: none; font-size: 15px; }
.westway-card__more:hover { text-decoration: underline; }

/* Pagination */
.westway-pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.westway-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--ww-line);
    border-radius: 6px;
    text-decoration: none;
    color: var(--ww-ink);
}
.westway-pagination .page-numbers.current { background: var(--ww-accent); color: #fff; border-color: var(--ww-accent); }

/* Single post */
.westway-single { padding: 48px 0; color: var(--ww-ink); }
.westway-single__header { max-width: 800px; margin: 0 auto 28px; }
.westway-single__title { font-size: 40px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
.westway-single__meta { color: var(--ww-muted); font-size: 14px; }
.westway-single__hero { max-width: 1000px; margin: 0 auto 36px; border-radius: 12px; overflow: hidden; }
.westway-single__hero img { width: 100%; height: auto; display: block; }
.westway-single__content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
}
.westway-single__content p { margin: 0 0 1.2em; }
.westway-single__content img { max-width: 100%; height: auto; border-radius: 8px; }
.westway-single__content h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.westway-single__content h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.westway-single__content a { color: var(--ww-accent); }
.westway-back { display: inline-block; margin: 40px auto 0; color: var(--ww-accent); font-weight: 600; text-decoration: none; }
.westway-back:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .westway-news-page .page-title { font-size: 30px; }
    .westway-single__title { font-size: 30px; }
    .westway-single__content { font-size: 17px; }
}
