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

html {
scroll-behavior: smooth;
}

body {
font-family: Arial, Helvetica, sans-serif;
color: #222;
background: #ffffff;
line-height: 1.6;
}

a {
text-decoration: none;
color: inherit;
}

.container {
width: 90%;
max-width: 1100px;
margin: auto;
}

/* Header */

header {
background: #ffffff;
border-bottom: 1px solid #eeeeee;
position: sticky;
top: 0;
z-index: 1000;
}

.nav-container {
min-height: 70px;
display: flex;
align-items: center;
justify-content: space-between;
}

.logo {
font-size: 26px;
font-weight: bold;
color: #111827;
}

.logo span {
color: #6366f1;
}

nav {
display: flex;
gap: 30px;
}

nav a {
color: #444;
font-weight: 500;
transition: 0.3s;
}

nav a:hover {
color: #6366f1;
}

.menu-btn {
display: none;
border: none;
background: none;
font-size: 25px;
cursor: pointer;
}

/* Hero */

.hero {
background: linear-gradient(135deg, #eef2ff, #ffffff);
padding: 110px 0;
text-align: center;
}

.hero-content {
max-width: 800px;
}

.small-title {
color: #6366f1;
font-size: 13px;
font-weight: bold;
letter-spacing: 2px;
margin-bottom: 12px;
}

.hero h1 {
font-size: 56px;
line-height: 1.1;
margin-bottom: 25px;
color: #111827;
}

.hero h1 span {
color: #6366f1;
}

.hero-text {
max-width: 650px;
margin: 0 auto 30px;
color: #666;
font-size: 18px;
}

/* Buttons */

.btn {
display: inline-block;
background: #6366f1;
color: white;
border: none;
padding: 13px 25px;
border-radius: 7px;
font-size: 15px;
cursor: pointer;
transition: 0.3s;
}

.btn:hover {
background: #4f46e5;
transform: translateY(-2px);
}

/* Articles */

.articles {
padding: 90px 0;
}

.section-title {
text-align: center;
margin-bottom: 45px;
}

.section-title h2 {
font-size: 38px;
margin-bottom: 10px;
}

.section-title > p:last-child {
color: #777;
}

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

.card {
background: #fff;
border: 1px solid #e8e8e8;
border-radius: 12px;
overflow: hidden;
transition: 0.3s;
}

.card:hover {
transform: translateY(-6px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card-image {
height: 190px;
}

.placeholder {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 22px;
font-weight: bold;
background: linear-gradient(135deg, #4f46e5, #818cf8);
}

.placeholder.lifestyle {
background: linear-gradient(135deg, #db2777, #f472b6);
}

.placeholder.tutorial {
background: linear-gradient(135deg, #059669, #34d399);
}

.card-content {
padding: 25px;
}

.category {
color: #6366f1;
font-size: 13px;
font-weight: bold;
text-transform: uppercase;
}

.card h3 {
font-size: 22px;
line-height: 1.3;
margin: 10px 0 12px;
}

.card p {
color: #666;
margin-bottom: 20px;
}

.card-footer {
border-top: 1px solid #eeeeee;
padding-top: 15px;
display: flex;
justify-content: space-between;
gap: 10px;
font-size: 13px;
}

.card-footer span {
color: #888;
}

.card-footer a {
color: #6366f1;
font-weight: bold;
}

/* About */

.about {
background: #f8f9ff;
padding: 90px 0;
}

.about-content {
max-width: 800px;
text-align: center;
}

.about h2 {
font-size: 38px;
margin-bottom: 20px;
}

.about p:not(.small-title) {
color: #666;
margin-bottom: 15px;
}

/* Newsletter */

.newsletter {
padding: 90px 0;
text-align: center;
}

.newsletter h2 {
font-size: 36px;
margin-bottom: 10px;
}

.newsletter > .container > p:not(.small-title):not(#message) {
color: #777;
margin-bottom: 25px;
}

form {
display: flex;
justify-content: center;
max-width: 550px;
margin: auto;
gap: 10px;
}

input {
flex: 1;
padding: 14px;
border: 1px solid #ddd;
border-radius: 7px;
font-size: 15px;
outline: none;
}

input:focus {
border-color: #6366f1;
}

#message {
margin-top: 15px;
color: #6366f1;
font-weight: bold;
}

/* Footer */

footer {
background: #111827;
color: white;
}

.footer-content {
padding: 60px 0;
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 40px;
}

.footer-content .logo {
color: white;
display: inline-block;
margin-bottom: 10px;
}

.footer-content p {
color: #aeb4c0;
}

.footer-content h3 {
margin-bottom: 15px;
}

.footer-content a:not(.logo) {
display: block;
color: #aeb4c0;
margin-bottom: 8px;
}

.footer-content a:hover {
color: white;
}

.copyright {
border-top: 1px solid #293241;
text-align: center;
padding: 20px;
color: #9ca3af;
}

/* Mobile */

@media (max-width: 768px) {

nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

nav.active {
    display: flex;
}

.menu-btn {
    display: block;
}

.hero {
    padding: 80px 0;
}

.hero h1 {
    font-size: 40px;
}

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

.footer-content {
    grid-template-columns: 1fr;
}

form {
    flex-direction: column;
}

input,
form .btn {
    width: 100%;
}


}

/* Article Page */

.article-page {
    padding: 80px 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.article-header .category {
    display: inline-block;
    margin-bottom: 15px;
}

.article-header h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 15px;
    color: #111827;
}

.article-date {
    color: #888;
    font-size: 14px;
}

.article-body {
    font-size: 18px;
    color: #444;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body h2 {
    font-size: 28px;
    color: #111827;
    margin: 40px 0 12px;
}

.article-body ul {
    margin: 20px 0 30px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-back {
    margin-top: 45px;
}


/* Mobile Article */

@media (max-width: 768px) {

    .article-page {
        padding: 50px 0;
    }

    .article-content {
        width: 90%;
    }

    .article-header {
        margin-bottom: 35px;
    }

    .article-header h1 {
        font-size: 34px;
    }

    .article-body {
        font-size: 17px;
        line-height: 1.7;
    }

    .article-body h2 {
        font-size: 24px;
        margin-top: 32px;
    }
}

.article-cta {
    margin-top: 55px;
    padding: 35px;
    background: #f8f9ff;
    border-radius: 12px;
    text-align: center;
}

.article-cta h2 {
    margin-top: 0;
}

.article-cta p {
    margin-bottom: 22px;
}

.article-back {
    margin-top: 35px;
}

@media (max-width: 768px) {

    .article-cta {
        padding: 25px 20px;
    }

}
