* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto+Serif:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #2eb872;
    --secondary-dark: #26a062;
    --accent-color: #f7c59f;
    --bg-cream: #fffef9;
    --bg-warm: #fdf8f3;
    --bg-white: #ffffff;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --text-light: #b2bec3;
    --border-warm: #f0e6d2;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.65;
    background-color: var(--bg-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Serif', serif;
    font-weight: 600;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--bg-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-warm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Roboto Serif', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-dark);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.05rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.category-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    cursor: pointer;
    border: 1px solid var(--border-warm);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .category-info {
    padding: 1.25rem;
    text-align: center;
    background: var(--bg-warm);
}

.category-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    cursor: pointer;
    border: 1px solid var(--border-warm);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card .article-info {
    padding: 1.5rem;
}

.article-card .category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(46, 184, 114, 0.1) 100%);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.875rem;
}

.article-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-weight: 600;
}

.article-card p {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.article-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.825rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-warm);
}

.article-detail {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 20px;
    background: var(--bg-white);
    border-radius: 24px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-warm);
}

.article-detail .article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-warm);
}

.article-detail .category-tag {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(46, 184, 114, 0.1) 100%);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 25px;
    margin-bottom: 1.5rem;
}

.article-detail h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.35;
    font-weight: 700;
}

.article-detail .meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.article-detail .featured-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.article-detail .content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.article-detail .content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2.25rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.article-detail .content h3 {
    font-size: 1.45rem;
    color: var(--text-dark);
    margin: 1.75rem 0 0.875rem;
}

.article-detail .content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-detail .content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.75rem 0;
    box-shadow: var(--shadow-md);
}

.affiliate-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin: 1rem 0;
    transition: all 0.3s ease;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.affiliate-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.affiliate-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(46, 184, 114, 0.05) 100%);
    border: 2px dashed var(--primary-color);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 16px;
    text-align: center;
}

.affiliate-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.affiliate-box p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.related-articles {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-warm);
}

.related-articles h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

footer h4 {
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    font-family: 'Roboto Serif', serif;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--primary-color);
}

footer .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

footer .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

footer .social-links a:hover {
    background: var(--primary-color);
    color: white;
}

footer .copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.breadcrumb {
    padding: 1.25rem 0;
    background: var(--bg-warm);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-warm);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 0.75rem;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    footer .container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 1.5rem 20px;
        gap: 0.75rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-warm);
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        color: var(--text-dark);
        font-size: 1rem;
        padding: 10px 0;
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card img {
        height: 150px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card img {
        height: 190px;
    }

    .article-detail {
        margin: 1rem;
        padding: 2rem 16px;
    }

    .article-detail h1 {
        font-size: 1.85rem;
    }

    .article-detail .featured-image {
        height: 260px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 3.5rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
}