/* =====================
   Single Post
   ===================== */

.single-post {
    padding-bottom: 8rem;
}

/* Hero Image */
.single-post__hero {
    width: 100%;
    max-height: 52rem;
    overflow: hidden;
}

.single-post__hero-img {
    width: 100%;
    height: 52rem;
    object-fit: cover;
    display: block;
}

/* Container */
.single-post__container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Meta top */
.single-post__meta-top {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.single-post__category {
    display: inline-block;
    background: #eef0fd;
    color: #1a56db;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.4rem 1.2rem;
    border-radius: 10rem;
    text-decoration: none;
    transition: background 0.2s;
}

.single-post__category:hover {
    background: #1a56db;
    color: #fff;
}

.single-post__date,
.single-post__author {
    color: #888;
}

.single-post__author {
    color: #555;
    font-weight: 500;
}

/* Title */
.single-post__title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
    margin: 0 0 2.4rem;
}

@media (min-width: 768px) {
    .single-post__title {
        font-size: 4.4rem;
    }
}

/* Excerpt */
.single-post__excerpt {
    font-size: 1.8rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 3.2rem;
    border-left: 4px solid #1a56db;
    padding-left: 1.6rem;
}

/* Content */
.single-post__content {
    font-size: 1.6rem;
    line-height: 1.75;
    color: #333;
}

.single-post__content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 4rem 0 1.6rem;
    color: #111;
}

.single-post__content h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 3.2rem 0 1.2rem;
    color: #111;
}

.single-post__content p {
    margin: 0 0 2rem;
}

.single-post__content ul,
.single-post__content ol {
    margin: 0 0 2rem 2.4rem;
    padding: 0;
}

.single-post__content li {
    margin-bottom: 0.8rem;
    list-style: disc;
}

.single-post__content ol li {
    list-style: decimal;
}

.single-post__content a {
    color: #1a56db;
    text-decoration: underline;
}

.single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    margin: 2rem 0;
}

.single-post__content blockquote {
    border-left: 4px solid #1a56db;
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    color: #555;
    font-size: 1.8rem;
}

/* Footer */
.single-post__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1.6rem;
}

.single-post__back {
    font-size: 1.4rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.single-post__back:hover {
    color: #1a56db;
}

.single-post__tag {
    display: inline-block;
    border: 1.5px solid #1a56db;
    color: #1a56db;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.5rem 1.6rem;
    border-radius: 10rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.single-post__tag:hover {
    background: #1a56db;
    color: #fff;
}

/* =====================
   Recent Posts
   ===================== */

.single-post__recent {
    max-width: 1200px;
    margin: 6rem auto 0;
    padding: 0 2rem;
}

.single-post__recent-title {
    font-size: 2.8rem;
    font-weight: 400;
    color: #111;
    margin: 0 0 3.2rem;
}

.single-post__recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 1024px) {
    .single-post__recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .single-post__recent-grid {
        grid-template-columns: 1fr;
    }
}
