﻿/* ==========================================================================
   Kuzo Packing Blog - Unified Stylesheet
   Covers: blog listing (index.html) + all article pages
   Brand: navy #1A365D / gold #C5A258
   ========================================================================== */

:root {
    --primary: #1A365D;
    --primary-light: #2D4A7C;
    --primary-dark: #0F2440;
    --accent: #C5A258;
    --accent-dark: #A8873E;
    --bg: #f5f7fa;
    --text: #333333;
    --text-muted: #666666;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 16px rgba(15, 36, 64, 0.08);
    --shadow-hover: 0 10px 30px rgba(15, 36, 64, 0.14);
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); }

/* -------------------- Header -------------------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(15, 36, 64, 0.08);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem; font-weight: 800;
}
.logo-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem; font-weight: 700;
    color: var(--primary); white-space: nowrap;
}
.logo-text span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.92rem; font-weight: 500;
    padding: 9px 14px; border-radius: 8px;
    transition: var(--transition);
}
.nav a:hover { color: var(--primary); background: rgba(26, 54, 93, 0.06); }
.nav a.active { color: var(--accent-dark); background: rgba(197, 162, 88, 0.14); font-weight: 600; }

/* -------------------- Page hero (listing + article) -------------------- */
.page-header, .article-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--primary-light));
    color: #fff;
    padding: 56px 0 48px;
    text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 10px; letter-spacing: 0.3px; }
.page-header p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); max-width: 780px; margin: 0 auto; }

/* -------------------- Blog listing -------------------- */
.blog-container { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding: 40px 0 64px; align-items: start; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chip {
    cursor: pointer; border: 1px solid var(--border); background: #fff;
    color: var(--text-muted); padding: 8px 16px; border-radius: 24px;
    font-size: 0.85rem; font-weight: 500; transition: var(--transition);
    font-family: inherit;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-image { height: 190px; background-size: cover; background-position: center; }
.post-content { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-category {
    align-self: flex-start;
    background: rgba(197, 162, 88, 0.15); color: var(--accent-dark);
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 12px;
}
.post-title {
    font-size: 1.12rem; line-height: 1.45; color: var(--primary);
    text-decoration: none; margin-bottom: 10px; font-weight: 700;
}
.post-title:hover { color: var(--accent-dark); }
.post-excerpt { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; flex: 1; }
.post-meta {
    display: flex; justify-content: space-between; align-items: center;
    color: #999; font-size: 0.85rem;
    border-top: 1px solid var(--border); padding-top: 12px;
}
.read-more { color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.read-more:hover { text-decoration: underline; }

/* -------------------- Sidebar -------------------- */
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; align-items: stretch; align-self: start; }
.sidebar-section { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.sidebar-section h3 {
    font-size: 1rem; color: var(--primary); margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 2px solid rgba(197, 162, 88, 0.35);
}
.category-list { list-style: none; }
.category-list li { margin-bottom: 6px; }
.category-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 10px; border-radius: 8px;
    color: var(--text); text-decoration: none; font-size: 0.9rem;
    transition: var(--transition);
}
.category-list a:hover { background: rgba(26, 54, 93, 0.05); color: var(--accent-dark); }
.category-count { background: var(--bg); padding: 2px 10px; border-radius: 12px; font-size: 0.78rem; color: var(--text-muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: var(--bg); color: var(--primary);
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.82rem; text-decoration: none;
    transition: var(--transition); border: 1px solid transparent;
}
.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.sidebar-cta { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.sidebar-cta h3 { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.sidebar-cta p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 14px; }
.btn {
    display: inline-block; background: var(--accent); color: var(--primary-dark);
    padding: 10px 20px; border-radius: 8px;
    text-decoration: none; font-weight: 700; font-size: 0.88rem;
    transition: var(--transition); text-align: center;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

/* -------------------- Article page -------------------- */
.article-header { text-align: center; }
.article-meta {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 8px 18px;
    color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; margin-bottom: 16px;
}
.category-badge {
    background: var(--accent); color: var(--primary-dark);
    padding: 4px 14px; border-radius: 20px;
    font-size: 0.82rem; font-weight: 600;
}
.article-title { font-size: 2rem; line-height: 1.3; color: #fff; font-weight: 800; max-width: 850px; margin: 0 auto; }
.article-layout { padding: 32px 0 64px; }
.article-card, .article-content {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 36px 44px;
}
.article-image {
    width: 100%; max-height: 420px; object-fit: cover;
    border-radius: 10px; margin-bottom: 28px;
}
.article-content h2 {
    color: var(--primary); font-size: 1.4rem;
    margin: 2.2rem 0 1rem; padding-left: 14px;
    border-left: 4px solid var(--accent); line-height: 1.4;
}
.article-content h3 { color: var(--primary-light); font-size: 1.15rem; margin: 1.6rem 0 0.8rem; }
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.4rem 1.6rem; }
.article-content li { margin-bottom: 0.6rem; }
.article-content strong { color: var(--primary); }
.article-content blockquote {
    border-left: 4px solid var(--accent); background: #faf7f0;
    padding: 1.1rem 1.5rem; margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    color: #555; font-style: italic;
}
.article-content table {
    width: 100%; border-collapse: collapse; margin: 1.5rem 0;
    font-size: 0.92rem; border-radius: 10px; overflow: hidden;
    box-shadow: 0 0 0 1px var(--border);
}
.article-content th { background: var(--primary); color: #fff; padding: 11px 14px; text-align: left; }
.article-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-content tr:nth-child(even) td { background: var(--bg); }
.article-content a { color: var(--accent-dark); font-weight: 600; }
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
    color: #fff; padding: 32px; border-radius: var(--radius);
    margin: 2.4rem 0; text-align: center;
}
.cta-box h3 { color: var(--accent); margin-bottom: 10px; font-size: 1.25rem; }
.cta-box p { opacity: 0.92; max-width: 640px; margin: 0 auto 16px; }
.cta-box a {
    display: inline-block; background: var(--accent); color: var(--primary-dark);
    padding: 12px 30px; border-radius: 8px;
    text-decoration: none; font-weight: 700; margin-top: 4px;
    transition: var(--transition);
}
.cta-box a:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.author-box {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--bg); border-radius: var(--radius);
    padding: 20px 22px; margin-top: 28px;
}
.author-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.author-info h4 { color: var(--primary); margin-bottom: 6px; }
.author-info p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.article-tags a {
    background: var(--bg); color: var(--primary);
    padding: 5px 14px; border-radius: 20px;
    font-size: 0.8rem; text-decoration: none;
    transition: var(--transition);
}
.article-tags a:hover { background: var(--accent); color: #fff; }

/* -------------------- Related posts -------------------- */
.related-posts { margin-top: 36px; }
.related-posts h3 {
    color: var(--primary); font-size: 1.3rem; margin-bottom: 18px;
    padding-bottom: 10px; border-bottom: 2px solid rgba(197, 162, 88, 0.35);
}
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    display: flex; flex-direction: column;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.related-image { height: 140px; background-size: cover; background-position: center; }
.related-content { padding: 14px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.related-title {
    color: var(--primary); font-size: 0.95rem; text-decoration: none;
    font-weight: 700; line-height: 1.45; margin-bottom: 8px;
}
.related-title:hover { color: var(--accent-dark); }
.related-content p { color: var(--text-muted); font-size: 0.82rem; margin: 0; margin-top: auto; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--primary-dark); color: #fff; padding: 56px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 32px; padding-bottom: 40px;
}
.site-footer h4 {
    color: var(--accent); font-size: 0.9rem; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.site-footer a:hover { color: var(--accent); }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; line-height: 1.7; }
.footer-contact p { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; margin-bottom: 9px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0; margin-top: 0;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.55); font-size: 0.82rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: rgba(255, 255, 255, 0.55); font-size: 0.82rem; }
.footer-bottom-links a:hover { color: var(--accent); }

/* -------------------- WhatsApp float -------------------- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
.whatsapp-float a {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; background: #25D366; border-radius: 50%;
    color: #fff; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s;
}
.whatsapp-float a:hover { transform: scale(1.1); }

/* -------------------- Responsive -------------------- */
@media (max-width: 960px) {
    .blog-container { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .site-header .container { height: auto; padding: 12px 16px; flex-direction: column; gap: 8px; }
    .nav { justify-content: center; }
    .nav a { padding: 7px 10px; font-size: 0.85rem; }
    .page-header, .article-header { padding: 36px 0 32px; }
    .page-header h1 { font-size: 1.7rem; }
    .article-title { font-size: 1.5rem; }
    .article-card, .article-content { padding: 24px 20px; }
    .blog-posts { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .article-meta { gap: 6px 14px; }
}

/* blog index main column */
.blog-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

