/*
Theme Name: Cafe2Sach Modern
Theme URI: https://cafe2sach.com/
Author: Nhung Nguyen
Author URI: https://cafe2sach.com/
Description: A warm modern WordPress theme for Cafe2Sách: coffee, books, AI, mindfulness and community content.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cafe2sach-modern
Tags: blog, education, coffee, books, responsive, custom-menu, featured-images
*/

:root {
  --coffee: #6b3f24;
  --cream: #fff7ec;
  --olive: #5c6f45;
  --dark: #2b2118;
  --paper: #fffaf3;
  --muted: #6f6257;
  --shadow: 0 10px 35px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  min-height: 74px;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.site-branding { display: flex; flex-direction: column; }
.site-title { font-size: 26px; font-weight: 800; color: var(--coffee); }
.site-title span { color: var(--olive); }
.site-description { font-size: 13px; color: var(--muted); }

.main-navigation ul { display: flex; gap: 26px; list-style: none; }
.main-navigation a { font-weight: 700; color: var(--dark); }
.main-navigation a:hover { color: var(--coffee); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 28px; cursor: pointer; }

.hero {
  min-height: 620px;
  padding: 8%;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(43,33,24,.60), rgba(43,33,24,.42)), var(--hero-image, url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1600&q=80')) center/cover;
  color: #fff;
}
.hero-content { max-width: 720px; }
.hero .tag { color: #ffdca8; margin-bottom: 16px; font-weight: 800; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.08; margin-bottom: 22px; }
.hero p { font-size: 18px; max-width: 650px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn, .wp-block-button__link {
  padding: 14px 24px;
  border-radius: 999px;
  display: inline-block;
  font-weight: 800;
}
.btn.primary { background: var(--coffee); color: #fff; }
.btn.secondary { background: #fff; color: var(--coffee); }
.btn:hover { transform: translateY(-1px); }

.search-box {
  width: min(1100px, 84%);
  margin: -38px auto 60px;
  background: #fff;
  padding: 22px;
  border-radius: 24px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
}
.search-box label { flex: 1; }
.search-box input {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 16px;
}
.search-box button {
  padding: 16px 28px;
  border: none;
  border-radius: 14px;
  background: var(--olive);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.section { padding: 60px 8%; }
.section h2, .page-title, .entry-title { font-size: clamp(30px, 4vw, 42px); margin-bottom: 28px; color: var(--coffee); line-height: 1.2; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card, .post-card, .content-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
.cat-card { padding: 28px; }
.cat-card .icon { font-size: 34px; }
.cat-card h3 { margin: 14px 0 8px; }
.cat-card p, .post-card p, .entry-summary { color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card .post-content { padding: 24px; }
.post-card .cat { color: var(--olive); font-weight: 800; font-size: 14px; }
.post-card h3 { margin: 10px 0; font-size: 22px; line-height: 1.25; }

.community { text-align: center; background: var(--coffee); color: #fff; }
.community h2 { color: #fff; }
.community p { max-width: 720px; margin: 0 auto 24px; }

.site-main { padding: 60px 8%; max-width: 1160px; margin: 0 auto; }
.posts-list { display: grid; gap: 24px; }
.content-card { padding: 28px; }
.entry-meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.entry-content { font-size: 18px; }
.entry-content p { margin-bottom: 18px; }
.wp-post-image { border-radius: 22px; margin-bottom: 24px; }

.site-footer { text-align: center; padding: 34px 8%; background: var(--dark); color: #fff; }
.site-footer p { margin: 4px 0; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-navigation { display: none; position: absolute; top: 74px; right: 8%; left: 8%; background: #fff; padding: 20px; border-radius: 18px; box-shadow: var(--shadow); }
  .main-navigation.active { display: block; }
  .main-navigation ul { display: block; }
  .main-navigation li { margin: 14px 0; }
  .search-box { flex-direction: column; }
  .grid, .post-grid { grid-template-columns: 1fr; }
  .hero { min-height: 540px; }
}


```css
.single-post{
    max-width:900px;
    margin:60px auto;
    background:#fff;
    border-radius:24px;
    padding:40px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.featured-image img{
    width:100%;
    border-radius:20px;
    margin-bottom:30px;
}

.post-category a{
    display:inline-block;
    padding:8px 15px;
    background:#5c6f45;
    color:#fff;
    border-radius:30px;
    text-decoration:none;
    margin-right:10px;
}

.entry-title{
    font-size:48px;
    line-height:1.2;
    margin:20px 0;
    color:#2b2118;
}

.entry-meta{
    color:#777;
    margin-bottom:30px;
}

.entry-content{
    font-size:18px;
    line-height:1.9;
}

.entry-content img{
    max-width:100%;
    height:auto;
    border-radius:15px;
}

.share-box{
    margin-top:50px;
    padding-top:30px;
    border-top:1px solid #eee;
}

.share-box a{
    display:inline-block;
    margin-right:15px;
    text-decoration:none;
    color:#6b3f24;
    font-weight:600;
}

.author-box{
    display:flex;
    gap:20px;
    margin-top:50px;
    padding:25px;
    background:#fffaf3;
    border-radius:20px;
}

.author-info h3{
    margin-bottom:10px;
}

.related-posts{
    max-width:1200px;
    margin:80px auto;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.related-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
}

.related-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.related-card h3{
    padding:20px;
    font-size:20px;
}

.related-card a{
    text-decoration:none;
    color:#2b2118;
}

@media(max-width:768px){

    .single-post{
        padding:20px;
        margin:20px;
    }

    .entry-title{
        font-size:32px;
    }

    .related-grid{
        grid-template-columns:1fr;
    }

    .author-box{
        flex-direction:column;
    }
}
```
