/* =========================================================
   Nestue Blog Listing + Single Post
   Clean version: no duplicate override blocks
   ========================================================= */

.nestue-blog-page,
.nestue-single-page {
    width: 100%;
    max-width: none !important;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #1C1F2C;
    background: #ffffff;
}

.nestue-blog-page *,
.nestue-single-page * {
    box-sizing: border-box;
}

.nestue-blog-page .container,
.nestue-single-page .container,
.nestue-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   Hero
   ========================================================= */

.nestue-blog-hero,
.nestue-single-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 90px;
    padding: 78px 0 86px;
    background: #e2edf4;
    text-align: center;
}

.nestue-breadcrumb {
    display: none;
}

.nestue-blog-hero h1,
.nestue-single-title {
    max-width: 980px;
    margin: 0 auto;
    color: #1C1F2C;
    font-size: 62px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.2px;
    text-align: center;
}

.nestue-single-date {
    margin-top: 18px;
    color: #6d7280;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   Blog listing intro
   ========================================================= */

.nestue-blog-main {
    padding: 78px 0 94px;
    background: #ffffff;
}

.nestue-section-head {
    max-width: 980px;
    margin: 0 auto 52px;
    text-align: center;
}

.nestue-section-head span {
    display: inline-block;
    margin-bottom: 24px;
    color: #0499a4;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.nestue-section-head h2 {
    max-width: 940px;
    margin: 0 auto 20px;
    color: #1C1F2C;
    font-size: 44px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.nestue-section-head p {
    margin: 0;
    color: #1C1F2C;
    font-size: 16px;
    line-height: 1.7;
}

/* =========================================================
   Filters
   ========================================================= */

.nestue-filter-row {
    display: grid;
    grid-template-columns: minmax(280px, 500px) minmax(320px, 560px);
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 56px;
    padding: 34px 0;
    border-top: 1px solid #dce7ee;
    border-bottom: 1px solid #dce7ee;
}

.nestue-category-filter {
    width: 100%;
}

.nestue-category-filter label {
    display: block;
    margin: 0 0 14px;
    color: #1C1F2C;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
}

.nestue-category-select {
    width: 100%;
    min-width: 100%;
    height: 58px;
    padding: 0 52px 0 22px;
    border: 1px solid #d7e3eb;
    border-radius: 9px;
    background-color: #ffffff;
    color: #1C1F2C;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 58px;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%231C1F2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 22px center;
    background-size: 14px 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nestue-category-select:focus {
    border-color: #0499a4;
    box-shadow: 0 0 0 3px rgba(4, 153, 164, 0.10);
}

.nestue-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0;
    border: 1px solid #d7e3eb;
    border-radius: 9px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nestue-search-form:focus-within {
    border-color: #0499a4;
    box-shadow: 0 0 0 3px rgba(4, 153, 164, 0.10);
}

.nestue-search-form input {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 24px;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    color: #1C1F2C;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    box-shadow: none !important;
}

.nestue-search-form input::placeholder {
    color: #8d929c;
    opacity: 1;
}

.nestue-search-form button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-width: 58px;
    height: 58px;
    margin: -1px -1px -1px 0;
    padding: 0;
    border: 0;
    border-radius: 0 9px 9px 0;
    background: #0499a4;
    color: #ffffff;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
    outline: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.nestue-search-form button::before {
    content: "";
    width: 19px;
    height: 19px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 19px 19px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='6.5' stroke='white' stroke-width='2'/%3E%3Cpath d='M14 14L18 18' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.nestue-search-form button:hover,
.nestue-search-form button:focus {
    background: #038892;
    color: #ffffff;
}

/* =========================================================
   Featured post
   ========================================================= */

.nestue-featured-post {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    align-items: center;
    gap: 64px;
    margin-bottom: 60px;
}

.nestue-featured-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #0499a4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nestue-featured-content h3 {
    margin: 0 0 12px;
    color: #1C1F2C;
    font-size: 30px;
    line-height: 1.32;
    font-weight: 800;
}

.nestue-featured-content h3 a,
.nestue-card-content h3 a {
    color: #1C1F2C;
    text-decoration: none;
}

.nestue-featured-content h3 a:hover,
.nestue-card-content h3 a:hover {
    color: #0499a4;
}

.nestue-post-date {
    margin-bottom: 16px;
    color: #6d7280;
    font-size: 14px;
    font-weight: 400;
}

.nestue-featured-content p {
    margin: 0 0 24px;
    color: #1C1F2C;
    font-size: 16px;
    line-height: 1.75;
}

.nestue-read-more,
.nestue-read-more:visited,
.nestue-read-more:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 32px;
    border: 0;
    border-radius: 12px;
    background: #0499a4;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.nestue-read-more:hover {
    background: #038892;
    color: #ffffff !important;
    text-decoration: none;
}

.nestue-featured-image img {
    display: block;
    width: 100%;
    height: 380px;
    border-radius: 14px;
    /*object-fit: cover;*/
}

/* =========================================================
   Blog grid
   ========================================================= */

.nestue-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.nestue-blog-card {
    overflow: hidden;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(28, 31, 44, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nestue-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(28, 31, 44, 0.09);
}

.nestue-card-image img,
.nestue-image-placeholder {
    display: block;
    width: 100%;
    height: 240px;
    /*object-fit: cover;*/
}

.nestue-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2edf4;
    color: #1C1F2C;
    font-weight: 600;
}

.nestue-featured-image .nestue-image-placeholder {
    height: 380px;
    border-radius: 14px;
}

.nestue-card-content {
    padding: 28px 28px 34px;
}

.nestue-card-content h3 {
    margin: 0 0 14px;
    color: #1C1F2C;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.nestue-card-content p {
    margin: 0;
    color: #1C1F2C;
    font-size: 15px;
    line-height: 1.75;
}

/* =========================================================
   Pagination / states
   ========================================================= */

#nestue-results-wrap {
    position: relative;
    min-height: 200px;
}

#nestue-results-wrap.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.nestue-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 52px;
    flex-wrap: wrap;
}

.nestue-pagination button,
.nestue-pagination span {
    min-width: 42px;
    height: 42px;
    border: 1px solid #d9dfe7;
    border-radius: 6px;
    background: #ffffff;
    color: #1C1F2C;
    font-size: 14px;
    font-weight: 600;
}

.nestue-pagination button {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nestue-pagination button:hover,
.nestue-pagination button.active {
    border-color: #0499a4;
    background: #0499a4;
    color: #ffffff;
}

.nestue-no-posts {
    padding: 40px;
    border-radius: 10px;
    background: #e2edf4;
    color: #1C1F2C;
    text-align: center;
    font-weight: 600;
}

/* =========================================================
   Single post detail
   ========================================================= */

.nestue-single-container {
    padding: 70px 0 90px;
}

.nestue-single-thumbnail {
    max-width: 1080px;
    margin: 0 auto;
}

.nestue-single-thumbnail img {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 14px;
    object-fit: cover;
}

.nestue-single-content {
    max-width: 900px;
    margin: 42px auto 0;
    color: #1C1F2C;
    font-size: 17px;
    line-height: 1.85;
}

.nestue-single-content p {
    margin-bottom: 24px;
}

.nestue-single-content h2,
.nestue-single-content h3,
.nestue-single-content h4 {
    color: #1C1F2C;
    line-height: 1.3;
}

.nestue-single-content a {
    color: #0499a4;
}

/* =========================================================
   Contact Form 7 on single post
   ========================================================= */

.nestue-single-form-wrap {
    width: 60%;
    max-width: 760px;
    min-width: 520px;
    margin: 54px auto 0;
}

.nestue-single-form-wrap .wpcf7,
.nestue-single-form-wrap .wpcf7 form {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.nestue-single-form-wrap .wpcf7 p {
    margin: 0 0 18px;
}

.nestue-single-form-wrap .wpcf7 label {
    display: block;
    margin-bottom: 8px;
    color: #1C1F2C;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.nestue-single-form-wrap .wpcf7 .two-w {
    width: 100% !important;
}
.nestue-single-form-wrap .wpcf7 input[type="text"],
.nestue-single-form-wrap .wpcf7 input[type="email"],
.nestue-single-form-wrap .wpcf7 input[type="tel"],
.nestue-single-form-wrap .wpcf7 input[type="url"],
.nestue-single-form-wrap .wpcf7 input[type="number"],
.nestue-single-form-wrap .wpcf7 select,
.nestue-single-form-wrap .wpcf7 textarea {
    width: 100% !important;
    max-width: 100% !important;
    height: 54px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #d7e3eb;
    border-radius: 9px;
    background: #ffffff;
    color: #1C1F2C;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    box-shadow: none;
    display:inline-block;
}

.nestue-single-form-wrap .wpcf7 textarea {
    height: 190px;
    padding: 16px 18px;
    resize: vertical;
}

.nestue-single-form-wrap .wpcf7 input::placeholder,
.nestue-single-form-wrap .wpcf7 textarea::placeholder {
    color: #9096a1;
    opacity: 1;
}

.nestue-single-form-wrap .wpcf7 input:focus,
.nestue-single-form-wrap .wpcf7 select:focus,
.nestue-single-form-wrap .wpcf7 textarea:focus {
    border-color: #0499a4;
    box-shadow: 0 0 0 3px rgba(4, 153, 164, 0.10);
}

.nestue-single-form-wrap .wpcf7 input[type="submit"],
.nestue-single-form-wrap .wpcf7 button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 54px;
    margin-top: 8px;
    padding: 0 28px;
    border: 0;
    border-radius: 9px;
    background: #0499a4;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.nestue-single-form-wrap .wpcf7 input[type="submit"]:hover,
.nestue-single-form-wrap .wpcf7 button[type="submit"]:hover {
    background: #038892;
    color: #ffffff !important;
}

.nestue-single-form-wrap .wpcf7 form .wpcf7-response-output {
    margin: 22px 0 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
}

/* =========================================================
   Popup close button used by theme forms
   ========================================================= */

.nestue-popup-close {
    position: absolute;
    top: 30px;
    right: 15px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nestue-popup-close img {
    width: 15px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px) {
    .nestue-blog-hero,
    .nestue-single-hero {
        padding: 58px 0 68px;
    }

    .nestue-blog-hero h1,
    .nestue-single-title {
        font-size: 46px;
    }

    .nestue-blog-main {
        padding-top: 62px;
    }

    .nestue-section-head h2 {
        font-size: 34px;
    }

    .nestue-featured-post {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nestue-filter-row {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: stretch;
    }

    .nestue-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nestue-single-content {
        max-width: 100%;
    }

    .nestue-single-form-wrap {
        width: 80%;
        max-width: 720px;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .nestue-blog-page .container,
    .nestue-single-page .container,
    .nestue-container {
        padding: 0 16px;
    }

    .nestue-blog-hero,
    .nestue-single-hero {
        padding: 48px 0 56px;
    }

    .nestue-blog-hero h1,
    .nestue-single-title {
        font-size: 38px;
    }

    .nestue-blog-main {
        padding: 52px 0 64px;
    }

    .nestue-section-head {
        margin-bottom: 38px;
    }

    .nestue-section-head span {
        letter-spacing: 5px;
    }

    .nestue-section-head h2 {
        font-size: 28px;
    }

    .nestue-filter-row {
        gap: 20px;
        padding: 24px 0;
        margin-bottom: 36px;
    }

    .nestue-category-select,
    .nestue-search-form,
    .nestue-search-form button {
        height: 54px;
    }

    .nestue-search-form button {
        width: 54px;
        min-width: 54px;
    }

    .nestue-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nestue-featured-image img,
    .nestue-featured-image .nestue-image-placeholder {
        height: 240px;
    }

    .nestue-card-image img,
    .nestue-image-placeholder {
        height: 220px;
    }

    .nestue-single-container {
        padding: 45px 0 65px;
    }

    .nestue-single-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .nestue-single-form-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 40px;
    }

    .nestue-single-form-wrap .wpcf7 textarea {
        height: 170px;
    }
}
