:root {
    --primary-color: #e63946;
    --dark-bg: #1d3557;
    --light-bg: #f1faee;
    --text-color: #333;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    top: 0;
    z-index: 100;
}

.site-header {
    position: sticky;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-bg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
    margin: 10px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}


footer {
    background: var(--dark-bg);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Home page */


.hero {
    background: var(--dark-bg);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.blog-section {
    padding: 60px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.tag {
    display: inline-block;
    background: var(--light-bg);
    color: var(--dark-bg);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #d62828;
}

/* Article pages*/

.article-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
    line-height: 1.2;
}

.article-meta {
    color: #888;
    font-size: 0.9rem;
}

.article-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-content h2 {
    margin: 30px 0 15px 0;
    color: var(--dark-bg);
    font-size: 1.8rem;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-content a.shop-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

.article-content a.shop-link:hover {
    border-bottom: 2px solid var(--primary-color);
}
