/*
Theme Name: The Wings
Theme URI: http://localhost/thewings/
Author: The Wings Dev Team
Description: Custom theme built from the existing The Wings header/footer and landing layout.
Version: 1.0.2
Text Domain: thewings
*/

/* Blog */
.blog-hero {
    min-height: 360px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 28, 23, 0.78), rgba(77, 92, 67, 0.36));
}

.blog-hero .container,
.blog-hero .row,
.blog-hero .col-md-12,
.blog-hero .breacumb-content {
    position: relative;
    z-index: 1;
}

.blog-hero .row {
    justify-content: center;
}

.blog-hero .col-md-12 {
    display: flex;
    justify-content: center;
}

.blog-hero .breacumb-content {
    width: 100%;
    max-width: 860px;
    text-align: center;
}

.blog-hero ul {
    justify-content: center;
}

.blog-hero .breadcum-title h1,
.blog-hero .breadcum-title h4 {
    color: #fff;
    margin-bottom: 14px;
}

.blog-hero .blog-hero__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #d6e3cb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: none;
}

.blog-hero .blog-hero__description {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.8;
}

.tw-blog-shell {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f8f3 0%, #ffffff 100%);
}

.tw-blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr);
    gap: 40px;
    align-items: start;
    overflow: visible;
}

.tw-blog-list {
    display: grid;
    gap: 32px;
}

.tw-blog-card,
.tw-blog-article,
.tw-blog-widget,
.tw-blog-empty {
    background: #fff;
    border: 1px solid #e6ebdf;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(24, 39, 28, 0.07);
}

.tw-blog-card__media,
.tw-blog-article__media {
    display: block;
    background: linear-gradient(135deg, #a6b593, #d5dec8);
}

.tw-blog-card__media img,
.tw-blog-article__media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tw-blog-card__placeholder,
.tw-blog-article__placeholder {
    min-height: 280px;
}

.tw-blog-card__content,
.tw-blog-article__content,
.tw-blog-empty {
    padding: 30px;
}

.tw-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 18px;
    color: #6b7668;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tw-blog-meta a {
    color: inherit;
}

.tw-blog-card__title,
.tw-blog-article__title {
    margin: 0 0 14px;
    color: #1e241d;
    line-height: 1.2;
}

.tw-blog-card__title {
    font-size: clamp(28px, 2.2vw, 36px);
}

.tw-blog-article__title {
    font-size: clamp(34px, 2.8vw, 46px);
}

.tw-blog-card__title a,
.tw-blog-readmore,
.tw-blog-postnav__link,
.tw-blog-taxonomy a,
.tw-blog-widget a,
.tw-blog-comment-link,
.tw-blog-backlink {
    color: #43573a;
    transition: color 0.2s ease;
}

.tw-blog-card__title a:hover,
.tw-blog-readmore:hover,
.tw-blog-postnav__link:hover,
.tw-blog-taxonomy a:hover,
.tw-blog-widget a:hover,
.tw-blog-comment-link:hover,
.tw-blog-backlink:hover {
    color: #8c6b3f;
}

.tw-blog-card__excerpt,
.tw-blog-article__content {
    color: #58625a;
    line-height: 1.85;
}

.tw-blog-article__content p {
    margin-bottom: 20px;
    font-size: 16.5px;
}

.tw-blog-article__content h2 {
    margin: 40px 0 16px;
    color: #283126;
    font-size: 26px;
    line-height: 1.3;
}

.tw-blog-figure {
    margin: 36px 0;
}

.tw-blog-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.tw-blog-figure figcaption {
    margin-top: 10px;
    color: #8a948a;
    font-size: 13.5px;
    font-style: italic;
    text-align: center;
}

.tw-blog-readmore,
.tw-blog-backlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tw-blog-pagination {
    margin-top: 10px;
}

.tw-blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tw-blog-pagination .page-numbers {
    min-width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #d8e0cf;
    background: #fff;
    color: #283126;
    font-weight: 700;
}

.tw-blog-pagination .page-numbers.current,
.tw-blog-pagination .page-numbers:hover {
    background: #43573a;
    border-color: #43573a;
    color: #fff;
}

.tw-blog-sidebar {
    display: grid;
    gap: 24px;
    align-self: start;
    height: fit-content;
    /* The follow-on-scroll movement is driven by JS (translateY) so it works
       reliably even when the main column is short. CSS sticky is kept as a
       progressive-enhancement fallback for when JS is unavailable. */
    position: sticky;
    top: 140px;
    will-change: transform;
}

/* When JS takes over, it adds this class to disable the CSS sticky so the two
   mechanisms never fight each other. */
.tw-blog-sidebar.is-js-follow {
    position: static;
    top: auto;
}

.tw-blog-widget {
    padding: 28px;
}

.tw-blog-widget__title {
    margin: 0 0 18px;
    color: #1e241d;
    font-size: 21px;
}

.tw-blog-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tw-blog-widget li + li {
    margin-top: 12px;
}

.tw-blog-widget .search-form {
    margin: 0;
}

.tw-blog-widget .search-form__inner {
    display: flex;
    gap: 10px;
}

.tw-blog-widget input[type="search"] {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    border: 1px solid #dce4d3;
    background: #f7f8f3;
    padding: 0 18px;
    color: #1e241d;
}

.tw-blog-widget button,
.comment-form .submit {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: #43573a;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tw-blog-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e8ede2;
}

.tw-blog-taxonomy span {
    color: #1e241d;
    font-weight: 700;
}

.tw-blog-postnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.tw-blog-postnav__item {
    padding: 22px 24px;
    border: 1px solid #e3e9dc;
    border-radius: 18px;
    background: #fbfcf8;
}

.tw-blog-postnav__label {
    display: block;
    margin-bottom: 8px;
    color: #7d857b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tw-blog-comments {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #e8ede2;
}

.tw-blog-comments .comment-list,
.tw-blog-comments .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tw-blog-comments .comment-body {
    padding: 22px 0;
    border-bottom: 1px solid #edf1e8;
}

.tw-blog-comments .comment-meta {
    margin-bottom: 10px;
}

.tw-blog-comments .comment-author {
    color: #1e241d;
    font-weight: 700;
}

.tw-blog-comments .comment-metadata,
.tw-blog-comments .comment-metadata a {
    color: #7a8477;
    font-size: 13px;
}

.tw-blog-comments .comment-content {
    color: #58625a;
    line-height: 1.8;
}

.comment-respond {
    margin-top: 28px;
}

.comment-form {
    display: grid;
    gap: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid #dce4d3;
    border-radius: 18px;
    background: #f7f8f3;
    padding: 16px 18px;
    color: #1e241d;
}

.comment-form textarea {
    min-height: 180px;
    resize: vertical;
}

@media (max-width: 991px) {
    .tw-blog-shell {
        padding: 80px 0;
    }

    .tw-blog-grid {
        grid-template-columns: 1fr;
    }

    .tw-blog-sidebar {
        position: static;
        transform: none !important;
    }

    .tw-blog-postnav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .tw-blog-card__content,
    .tw-blog-article__content,
    .tw-blog-widget,
    .tw-blog-empty {
        padding: 24px 20px;
    }

    .tw-blog-widget .search-form__inner {
        flex-direction: column;
    }
}
