@import url('./layout.css');
@import url('./blog.css');
@import url('./form.css');

.post-wrapper {
    padding-block-start: 100px;
    padding-block-end: 50px;
    border-bottom: 2px solid var(--color-border);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

@media (min-width: 1000px) {
    .post-inner {
        padding-block-end: 3rem;
    }
}

@media (max-width: 1000px) {
    .post-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.contact-form {
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fafafa;
}

.last-articles {
    margin-block: 2rem;
    padding-block: 2rem;
    border-top: 3px solid var(--color-border);
}

.small-post-card {
    flex-direction: column;
    text-transform: capitalize;
    border-bottom: 1px solid var(--color-border);
    padding-block: 1rem;
    transition: transform 200ms ease;
}

.small-post-card:last-child {
    border-bottom: none;
}

.small-post-card:hover {
    transform: translateX(4px);
}

.small-post-card .content {
    display: flex;
    gap: 1rem;
}

.small-post-card .content h4 {
    overflow: hidden;
    flex: 3;
    height: 84px;
    max-height: 84px;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 18px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    transition: color 200ms ease;
}

.small-post-card:hover .content h4 {
    color: var(--color-pink);
}

.small-post-card .content .img {
    position: relative;
    flex: 1;
    align-self: stretch;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.small-post-card .content .img img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 300ms ease;
}

.small-post-card:hover .content .img img {
    transform: scale(1.05);
}

form button[type='submit'] {
    background-color: var(--color-pink);
    height: 40px;
    color: white;
    border-radius: 8px;
}

figure {
    width: 100%;
    text-align: center;
}

figure .img-wrapper {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-radius: 16px;
}

figure .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

figure figcaption {
    margin-block-start: 0.75rem;
    font-size: 14px;
    color: var(--color-grey-500);
    font-style: italic;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-dark);
    word-wrap: break-word;
}

.post-body p {
    margin-block-end: 1rem;
}

.post-body h1, .post-body h2, .post-body h3,
.post-body h4, .post-body h5, .post-body h6 {
    margin-block: 1.5rem 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
}

.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.3rem; }
.post-body h4 { font-size: 1.15rem; }
.post-body h5 { font-size: 1.05rem; }

.post-body ul, .post-body ol {
    padding-inline-start: 1.5rem;
    margin-block-end: 1rem;
}

.post-body li {
    margin-block-end: 0.5rem;
    line-height: 1.7;
}

.post-body a {
    color: var(--color-pink);
    text-decoration: underline;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-block: 1rem;
}

.post-body blockquote {
    border-inline-start: 4px solid var(--color-pink);
    padding-inline-start: 1.25rem;
    margin-inline: 0;
    margin-block: 1.5rem;
    color: var(--color-grey-500);
    font-style: italic;
}

.post-body strong, .post-body b {
    font-weight: 600;
    color: var(--color-dark);
}

.breadcrumb {
    padding-block-end: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb ul li {
    font-size: 14px;
}
