/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #2d2d2d;
    background-color: #fafafa;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button, input {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #1a5d1a;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #444;
}

blockquote {
    background: #f0f8f0;
    border-left: 5px solid #1a5d1a;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #1a5d1a;
    color: white;
    font-weight: 600;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: #1a5d1a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    color: #e8f5e8;
}

.nav ul {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: #ffd700;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    max-width: 250px;
}

.search-box input {
    padding: 0.6rem 1rem;
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
}

.search-box button {
    background: #ffd700;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    color: #1a5d1a;
    font-size: 1.1rem;
    transition: 0.3s;
}

.search-box button:hover {
    background: #ffed4e;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 5rem 0;
    background: linear-gradient(rgba(26, 93, 26, 0.85), rgba(26, 93, 26, 0.85)), url('https://via.placeholder.com/1600x900?text=Hero+Jamu+Tradisional') center/cover no-repeat;
    color: white;
    text-align: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #e8f5e8;
}

.btn-primary {
    display: inline-block;
    background: #ffd700;
    color: #1a5d1a;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.hero img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ARTICLE GRID & CARD
   ======================================== */
.featured,
.categories {
    padding: 4rem 0;
    background: white;
}

.featured h2,
.categories h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.3rem;
    color: #1a5d1a;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.article-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.article-card:hover img {
    transform: scale(1.05);
}

.cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a5d1a;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.article-card h3 {
    padding: 1rem 1.2rem 0.5rem;
    font-size: 1.3rem;
    color: #1a5d1a;
    flex-grow: 1;
}

.article-card p {
    padding: 0 1.2rem;
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
}

.read-more {
    padding: 0.8rem 1.2rem;
    color: #1a5d1a;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    text-align: right;
}

.read-more::after {
    content: ' →';
}

/* ========================================
   CATEGORIES GRID
   ======================================== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
}

.cat-card {
    background: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.cat-card i {
    font-size: 2.5rem;
    color: #1a5d1a;
    margin-bottom: 1rem;
}

.cat-card h3 {
    font-size: 1.3rem;
    color: #1a5d1a;
}

.cat-card:hover {
    background: #f0f8f0;
    transform: translateY(-5px);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    background: #f5f5f5;
    padding: 1rem 0;
    font-size: 0.95rem;
    color: #666;
}

.breadcrumb a {
    color: #1a5d1a;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   ARTICLE DETAIL
   ======================================== */
.article-detail {
    padding: 3rem 0 5rem;
    background: white;
}

.article-detail .container {
    max-width: 800px;
}

.article-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a5d1a;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta i {
    color: #1a5d1a;
}

.article-img {
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content ul, .content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content ul li {
    list-style: disc;
}

.content ol li {
    list-style: decimal;
}

.share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #1a5d1a;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.share a:hover {
    background: #ffd700;
    color: #1a5d1a;
    transform: translateY(-3px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1a1a1a;
    color: #ddd;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer h3,
.footer h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer a {
    color: #aaa;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffd700;
}

.social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social a {
    font-size: 1.4rem;
    color: #aaa;
}

.social a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom a {
    color: #ffd700;
}

/* ========================================
   BUTTONS & UTILITIES
   ======================================== */
.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #1a5d1a;
    border: 2px solid #1a5d1a;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1a5d1a;
    color: white;
}

.text-center { text-align: center; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .nav ul {
        justify-content: center;
        gap: 1rem;
    }
    .search-box {
        max-width: 100%;
        width: 100%;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .meta {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* ========================================
   PRINT & ACCESSIBILITY
   ======================================== */
@media print {
    .header, .footer, .search-box, .share {
        display: none;
    }
    body { font-size: 12pt; }
}