/* Page layout */

.post-article {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 50px auto;
    color: #374151;
    font-family: Arial, sans-serif;
    line-height: 1.8;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.post-main {
    min-width: 0;
}


/* Title */

.post-article__header {
    margin-bottom: 25px;
}

.post-article__header h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.25;
}


/* Featured image */

.post-article__featured-image {
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f4f6;
}

.post-article__featured-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* Post details */

.post-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

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


/* Article content */

.post-article__content {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.post-article__content p {
    margin-bottom: 22px;
}

.post-article__content h2 {
    margin: 35px 0 15px;
    color: #111827;
    font-size: 29px;
    line-height: 1.4;
}

.post-article__content h3 {
    margin: 28px 0 12px;
    color: #1f2937;
    font-size: 23px;
}

.post-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-article__content a {
    color: #2563eb;
}

.post-article__content ul,
.post-article__content ol {
    padding-left: 25px;
    margin-bottom: 24px;
}

.post-article__content li {
    margin-bottom: 8px;
}


/* Course section */

.english-course {
    margin: 35px 0;
    padding: 25px;
    border: 1px solid #dbeafe;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    background: #f8fbff;
}

.english-course .course-title {
    margin: 0 0 10px;
    color: #1d4ed8;
    font-size: 24px;
}

.english-course .course-description {
    margin: 0;
    color: #4b5563;
}


/* Tags */

.post-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.post-article .btn {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    text-decoration: none;
}

.post-article .btn:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}


/* Post navigation */

.post-article__footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.post-nav-link {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.post-nav-link:hover {
    color: #1d4ed8;
}


/* Sidebar */

.post-sidebar {
    position: sticky;
    top: 25px;
}

.sidebar-widget {
    margin-bottom: 25px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.sidebar-widget h3 {
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 19px;
}

.sidebar-widget p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}


/* Sidebar categories */

.sidebar-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-category-list li {
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-category-list li:last-child {
    border-bottom: 0;
}

.sidebar-category-list a {
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
}

.sidebar-category-list a:hover {
    color: #2563eb;
}


/* Sidebar tags */

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tags a {
    padding: 5px 10px;
    border-radius: 5px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    text-decoration: none;
}

.sidebar-tags a:hover {
    background: #2563eb;
    color: #fff;
}


/* Tablet */

@media (max-width: 900px) {
    .post-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 25px;
    }
    .sidebar-widget {
        padding: 18px;
    }
}


/* Mobile */

@media (max-width: 700px) {
    .post-article {
        width: calc(100% - 30px);
        margin: 30px auto;
    }
    .post-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .post-sidebar {
        position: static;
    }
    .post-article__header h1 {
        font-size: 32px;
    }
    .post-article__content {
        font-size: 16px;
    }
    .post-article__content h2 {
        font-size: 25px;
    }
    .post-article__footer {
        flex-wrap: wrap;
    }
}