/* ── Base post layout ─────────────────────────────────────── */
.post {
    display: flex;
    flex-direction: row;
    padding: 40px;
    border-radius: 20px;
    gap: 40px;
    margin-top: 50px;
    max-width: 1400px;
}

/* ── Article inner ────────────────────────────────────────── */
.post .inside-article {
    padding: 10px 20px;
    flex: 1;
}

/* ── Title ────────────────────────────────────────────────── */
.post .entry-title {
    font-size: 32px;
    font-weight: 800;
    color: #dd3f3f;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.post .entry-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(#dd3f3f, #dd3f3f);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.post .entry-title a:hover {
    background-size: 100% 2px;
}

/* ── Header ───────────────────────────────────────────────── */
.post .entry-header {
    text-align: start;
    margin: 0 0 24px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9f5ee;
}

/* ── Date ─────────────────────────────────────────────────── */
.post .entry-date.published {
    font-size: 13px;
    color: #dd3f3f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ── Taxonomy links ───────────────────────────────────────── */
.cat-links,
.tags-links,
.nav-previous,
.nav-next,
.next {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dd3f3f;
    font-size: 13px;
    font-weight: 600;
    flex-wrap: wrap;
}

.cat-links a,
.tags-links a {
    display: inline-block;
    background: #e9f5ee;
    color: #dd3f3f;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cat-links a:hover,
.tags-links a:hover {
    background: #dd3f3f;
    color: #ffffff;
}

/* ── Entry meta ───────────────────────────────────────────── */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: #dd3f3f;
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9f5ee;
}

.entry-meta > a {
    font-weight: 700;
    text-decoration: none;
    color: #dd3f3f;
    transition: color 0.2s;
}

.entry-meta > a:hover {
    color: #1b4332;
}

/* ── Headings inside post ─────────────────────────────────── */
.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
    color: #9c2d2d !important;
    line-height: 1.35;
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}

/* ── Featured image ───────────────────────────────────────── */
.post-thumb > img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.12);
}

.post-thumb > img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(27, 67, 50, 0.18);
}

/* ── Sidebar / widget area ────────────────────────────────── */
.widget-area {
    width: 100%;
    max-width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget-area > * {
    background: linear-gradient(145deg, #f6fbf8, #edf7f1);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #d8eddE;
    box-shadow: 0 2px 12px rgba(27, 67, 50, 0.06);
}

.widget-area .wp-block-heading {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1b4332;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.widget-area .wp-block-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #dd3f3f, #dd3f3f);
    border-radius: 4px;
}

.widget-area li {
    padding: 9px 0;
    font-size: 14px;
    color: #dd3f3f;
    border-bottom: 1px solid #e0f0e7;
    list-style: none;
    transition: color 0.2s, padding-left 0.2s;
    cursor: pointer;
}

.widget-area li:last-child {
    border-bottom: none;
}

.widget-area li:hover {
    color: #1b4332;
    padding-left: 6px;
}

/* ── Search block ─────────────────────────────────────────── */
.widget-area .wp-block-search {
    margin: 0;
}

.widget-area .wp-block-search__label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 13px;
    color: #1b4332;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-area .wp-block-search__inside-wrapper {
    display: flex;
    gap: 8px;
}

.widget-area .wp-block-search__input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #c4e0cf;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: #1b4332;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.widget-area .wp-block-search__input::placeholder {
    color: #a8d5b8;
}

.widget-area .wp-block-search__input:focus {
    outline: none;
    border-color: #dd3f3f;
    box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.12);
}

.widget-area .wp-block-search__button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #dd3f3f, #dd3f3f);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.widget-area .wp-block-search__button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.widget-area .wp-block-search__button:active {
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .post {
        flex-direction: column;
        padding: 24px;
        gap: 28px;
    }

    .widget-area {
        max-width: 100%;
    }

    .post .entry-title {
        font-size: 26px;
    }

    .post-thumb > img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .post {
        padding: 16px;
        border-radius: 14px;
    }

    .post .entry-title {
        font-size: 22px;
    }
}