/* === JMA Blog — Redesign Figma 2026 === */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --navy: #0d1b2e;
    --navy-deep: #070f1a;
    --champagne: #c9a96e;
    --champagne-light: #ddc49a;
    --champagne-pale: #f0e6d0;
    --cream: #faf8f4;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-border: #ebebeb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--navy);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========== HEADER ========== */
.header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 130px;
    width: auto;
    max-height: 130px;
    display: block;
    margin: -39px 0;
}
.header-nav { display: flex; gap: 2rem; }
.header-nav a {
    color: var(--champagne-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s;
}
.header-nav a:hover { color: var(--white); }

/* ========== HERO (Homepage) ========== */
.hero {
    background: var(--navy);
    text-align: center;
    padding: 1.8rem 2rem 1.5rem;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-line {
    width: 50px;
    height: 2px;
    background: var(--champagne);
    margin: 0 auto 1.2rem;
}
.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
}

/* ========== FILTERS ========== */
.filters {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
}
.filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-pill {
    background: transparent;
    color: var(--navy);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--gray-border);
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
}
.filter-pill:hover {
    border-color: var(--champagne);
    color: var(--champagne);
}
.filter-active {
    background: var(--champagne) !important;
    color: var(--white) !important;
    border-color: var(--champagne) !important;
}

/* ========== ARTICLE CARDS (Homepage) ========== */
.articles-section { padding: 2rem 0 4rem; }
.articles-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.article-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 12px;
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(13,27,46,0.07);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
    border-color: var(--champagne);
    box-shadow: 0 6px 24px rgba(13,27,46,0.12);
}
.card-thumb {
    width: 220px;
    min-height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-thumb-placeholder {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, var(--champagne) 100%);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}
.card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--champagne);
}
.card-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--champagne); }
.card-desc {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 400;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}
.pagination a {
    color: var(--champagne);
    text-decoration: none;
    font-weight: 400;
}
.pagination a:hover { text-decoration: underline; }
.empty-state {
    text-align: center;
    color: var(--gray);
    padding: 4rem;
    font-size: 1.05rem;
}

/* ========== ARTICLE HERO ========== */
.article-hero {
    background: var(--navy);
    padding: 2rem 2rem 2.5rem;
    text-align: center;
}
.article-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.breadcrumb {
    font-size: 0.8rem;
    color: var(--champagne-light);
    text-decoration: none;
}
.breadcrumb:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); margin: 0 0.3rem; }
.article-hero-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--champagne);
    margin-bottom: 1rem;
}
.article-hero-title {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.article-hero-meta {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

/* ========== ARTICLE LAYOUT (content + sidebar) ========== */
.article-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
}
.article-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 92px; }

/* Prose (article body) */
.prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--navy);
}
.prose p { margin-bottom: 1.3rem; }
.prose h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    margin: 2.5rem 0 0.8rem;
    color: var(--navy);
}
.prose h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.5rem;
}
.prose ul, .prose ol {
    margin: 1rem 0 1.3rem 1.5rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose blockquote {
    border-left: 3px solid var(--champagne);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    color: var(--gray);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
}
.prose strong { font-weight: 600; }
.prose a { color: var(--champagne); }

/* Share bar */
.share-bar {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.share-bar a, .btn-copy {
    color: var(--champagne);
    text-decoration: none;
    background: none;
    border: 1px solid var(--champagne);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    transition: all 0.2s;
}
.share-bar a:hover, .btn-copy:hover {
    background: var(--champagne);
    color: var(--white);
}

/* ========== SIDEBAR ========== */
.sidebar-cta {
    background: var(--navy);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.sidebar-cta-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 0.6rem;
}
.sidebar-cta-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}
.sidebar-cta-btn {
    display: inline-block;
    background: var(--champagne);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}
.sidebar-cta-btn:hover { opacity: 0.85; }

.sidebar-related h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.related-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    text-decoration: none;
    transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--champagne); }
.related-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.3rem;
    line-height: 1.35;
}
.related-link {
    font-size: 0.78rem;
    color: var(--champagne);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--navy);
    padding: 2.5rem 0;
    text-align: center;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.footer-logo {
    height: 100px;
    width: auto;
    max-height: 100px;
    display: inline-block;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}
.footer-info {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.25rem;
}
.footer-site {
    font-size: 0.75rem;
    color: var(--champagne);
    text-decoration: none;
}
.footer-site:hover { text-decoration: underline; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .header-inner { padding: 0 1rem; height: 60px; }
    .logo { font-size: 0.75rem; letter-spacing: 2px; }
    .header-nav { gap: 1rem; }
    .header-nav a { font-size: 0.78rem; }

    .hero { padding: 3rem 1.5rem 2.5rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.9rem; }

    .filters-inner { padding: 0.8rem 1rem; }

    .articles-inner { padding: 0 1rem; }
    .article-card { flex-direction: column; gap: 1rem; padding: 1.2rem; }
    .card-thumb { width: 100%; min-height: 180px; }
    .card-title { font-size: 1.25rem; }

    .article-hero { padding: 2rem 1.5rem 2.5rem; }
    .article-hero-title { font-size: 1.8rem; }

    .article-layout {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    .sidebar { width: 100%; position: static; }
}
