body {
    margin: 0;
    font-family: 'DM Sans', Arial, sans-serif;
    background: #f7f8fb;
    color: #111827;
}

a {
    color: inherit;
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.site-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
}

.site-nav a,
.drawer-menu a {
    text-decoration: none;
}

.mobile-menu-button,
.drawer-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
}

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 40;
}

.drawer-overlay.active {
    display: block;
}

.drawer-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    background: #ffffff;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform .2s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drawer-menu.active {
    transform: translateX(0);
}

.featured-post,
.post-card,
.post-article,
.related-posts,
.popular-posts,
.page-header {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
}

.featured-post a,
.post-card {
    text-decoration: none;
}

.featured-post img,
.post-card img,
.post-article-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.featured-post img {
   /* max-height: 420px; */
}

.page-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-content h1 {
    margin-bottom: 20px;
}

.page-content h2 {
    margin-top: 30px;
    margin-bottom: 12px;
}

.page-content p,
.page-content li {
    line-height: 1.8;
}

.page-content ul {
    margin: 15px 0 20px 20px;
}


.contact-form {
    max-width: 700px;
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: #28a9e0;
    color: #fff;
    border: 0;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.btn-submit:hover {
    opacity: .9;
}

.error-page {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.error-content h1 {
    font-size: 120px;
    line-height: 1;
    margin: 0;
    color: #28a9e0;
    font-weight: 700;
}

.error-content h2 {
    margin: 15px 0 20px;
    font-size: 36px;
}

.error-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.error-actions {
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background: #28a9e0;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-primary:hover {
    opacity: .9;
}

.error-search form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.error-search input {
    width: 320px;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.error-search button {
    background: #28a9e0;
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.featured-content,
.post-card-body,
.post-article,
.related-posts,
.popular-posts,
.page-header {
    padding: 24px;
    margin-bottom: 26px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.post-card img {
   height: 190px;
}

.category-label {
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 13px;
}

.post-meta {
    color: #6b7280;
    font-size: 14px;
}

.section-title {
    margin: 34px 0 18px;
}

.popular-posts {
    margin-top: 26px;
}

.popular-posts .section-title {
    margin: 0px 0 18px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.search-form {
    display: flex;
    gap: 10px;
    margin: 22px 0;
}

.search-form input {
    flex: 1;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

.search-form button {
    padding: 13px 18px;
    border: 0;
    background: #111827;
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
}

.popular-list {
    display: grid;
    gap: 12px;
}

.popular-list a {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.popular-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #111827;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
}

.pagination-wrapper {
    margin: 26px 0;
}

footer {
    text-align: center;
    padding: 32px 16px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-block;
    }

    .header-inner {
        justify-content: center;
        position: relative;
    }

    .mobile-menu-button {
        position: absolute;
        left: 0;
    }

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

.category-section {
    margin-top: 34px;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 34px 0 18px;
}

.section-heading-row .section-title {
    margin: 0;
}

.section-heading-row a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.newsletter-box {
    background: #111827;
    color: #ffffff;
    border-radius: 18px;
    padding: 28px;
    margin: 34px 0;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items: center;
}

.newsletter-box h2 {
    margin: 0 0 8px;
}

.newsletter-box p {
    margin: 0;
    color: #d1d5db;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 13px 14px;
    border: 0;
    border-radius: 10px;
}

.newsletter-form button {
    padding: 13px 16px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.social-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 20px 0 24px;
}

.social-share span {
    color: #6b7280;
    font-weight: 700;
}

.social-share a,
.social-share button {
    width: 42px;
    height: 42px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-share a:hover,
.social-share button:hover {
    background: #111827;
    color: #ffffff;
    transform: translateY(-2px);
}

.ad-slot {
    min-height: 90px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (max-width: 768px) {
    .newsletter-box {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.post-card img {
    height: auto;
}
