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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    color: #222;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
}

/* HEADER */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    width: 100%;
}

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

.logo h1 {
    font-size: 28px;
    color: #e63946;
}

.logo p {
    font-size: 14px;
    color: #555;
}

.main-nav {
    margin-top: 0;
}

.menu-icon {
    display: none;
    font-size: 28px;
    color: #e63946;
    cursor: pointer;
    padding: 10px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    transition: max-height 0.3s ease;
}

.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.menu li a:hover,
.menu li a.active {
    background-color: #e63946;
    color: #fff;
}

#menu-toggle {
    display: none;
}

/* LAYOUT */
.content-area {
    display: flex;
    gap: 30px;
    width: 100%;
}

.main-column {
    flex: 3;
    width: 100%;
}

.sidebar {
    flex: 1;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    height: fit-content;
    max-width: 320px;
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #e63946;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #222;
    text-decoration: none;
}

.sidebar ul li a:hover {
    color: #e63946;
}

/* POSTS */
.post, .post-single {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    line-height: 1.7;
    word-wrap: break-word;
}

.post h2, .post-single h1 {
    margin-bottom: 15px;
    color: #222;
}

.post h2 a, .post-single h1 {
    text-decoration: none;
    color: inherit;
}

.post p, .post-single p {
    color: #555;
    margin-bottom: 14px;
    font-size: 17px;
}

.post-content {
    margin-top: 0;
    padding-top: 0;
}

.post-content p {
    margin-bottom: 18px;
    line-height: 1.7;
}

/* NEWS CARDS */
.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.news-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 16px;
    color: #222;
    line-height: 1.4;
}

.news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.news-card h3 a:hover {
    color: #e63946;
}

/* PAGINATION */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
}

.pagination a {
    background: #e63946;
    color: white;
    text-decoration: none;
}

.pagination a.active {
    background: #333;
}

.pagination span {
    background: #e0e0e0;
    color: #666;
}

.pagination a:hover {
    background: #c72f34;
}

/* ADS */
.ads-under-title, .ads-in-article, .ads-end-article {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin: 30px 0;
    padding: 20px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
}

.ads-end-article {
    background: #fff7f7;
    border-top: 2px solid #e63946;
}

/* TAGS & KEYWORDS */
.keywords-box, .tags-section {
    margin-top: 25px;
}

.keyword-chip, .tags-section a {
    display: inline-block;
    background: #f1f1f1;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    margin: 5px 5px 0 0;
    transition: background 0.2s ease-in-out;
}

.keyword-chip:hover, .tags-section a:hover {
    background: #e63946;
    color: #fff;
}

.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container.content-area {
        flex-direction: column;
    }

    .main-column, .sidebar {
        flex: 1 100%;
        max-width: 100%;
    }

    .post h2, .post-single h1 {
        font-size: 20px;
    }

    .post p, .post-single p {
        font-size: 15px;
    }

    .menu {
        flex-direction: column;
        background: #fff;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        border-top: 1px solid #ddd;
    }

    #menu-toggle:checked + .menu-icon + .menu {
        max-height: 500px;
        padding: 15px 0;
    }

    .menu-icon {
        display: block;
    }
}
