/* BLOGS PAGE */

.section-tag,
.article-category {
    color: #C89A2B;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* HERO */

.blogs-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    padding: 60px 80px 70px;
    background: #FAFAF8;
}

.blogs-hero-copy {
    width: 48%;
}

.blogs-hero-copy h1 {
    margin: 15px 0 20px;
    color: #0D2342;
    font-family: 'Playfair Display', serif;
    font-size: 50px;
    font-weight: 600;
    line-height: 1.12;
}

.blogs-hero-copy p {
    max-width: 560px;
    color: #1A1A1A;
    font-size: 16px;
    line-height: 1.8;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 420px;
    margin-top: 28px;
    padding: 15px 18px;
    background: white;
    border: 1px solid #E7E7E7;
    border-radius: 10px;
}

.search-box i {
    color: #0D2342;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #1A1A1A;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.blogs-hero-image {
    position: relative;
    width: 50%;
    padding: 0 30px 30px 0;
}

.blogs-hero-image img {
    position: relative;
    display: block;
    width: 100%;
    z-index: 2;
}

.hero-image-bg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 90%;
    height: 90%;
    background: #0D2342;
}

.hero-image-dots {
    position: absolute;
    top: 0;
    right: -15px;
    width: 90px;
    height: 90px;
    background-image: radial-gradient(#C89A2B 1.5px, transparent 1.5px);
    background-size: 12px 12px;
}

/* FEATURED ARTICLE */

.articles-section {
    padding: 0 80px 60px;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    overflow: hidden;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.featured-article > img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
}

.featured-copy {
    display: flex;
    flex-direction: column;
    padding: 42px;
}

.featured-copy h2 {
    margin: 12px 0;
    color: #0D2342;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
}

.featured-copy p {
    color: #1A1A1A;
    font-size: 14px;
    line-height: 1.7;
}

.featured-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 30px;
    font-size: 13px;
}

.featured-bottom span {
    color: #1A1A1A;
}

.featured-bottom i {
    margin-right: 5px;
    color: #C89A2B;
}

.featured-bottom a,
.newsletter-form button {
    padding: 13px 22px;
    background: #0D2342;
    border-radius: 8px;
    color: white;
    text-decoration: none;
}

.featured-bottom a i {
    margin-left: 8px;
    color: white;
}

/* FILTERS */

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0;
}

.category-tab {
    flex: 1;
    min-width: 130px;
    padding: 11px 18px;
    background: transparent;
    border: 1px solid #E7E7E7;
    border-radius: 30px;
    color: #0D2342;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    transition: 0.3s;
}

.category-tab:hover,
.category-tab.active {
    background: #0D2342;
    border-color: #0D2342;
    color: white;
}

.latest-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 20px;
}

.latest-heading span {
    width: 28px;
    height: 2px;
    background: #C89A2B;
}

.latest-heading p {
    color: #C89A2B;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
}

/* ARTICLE GRID */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.article-card {
    overflow: hidden;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.article-card:hover {
    transform: translateY(-8px);
}

.article-card > img {
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.article-copy {
    padding: 18px;
}

.article-copy h2 {
    min-height: 58px;
    margin: 10px 0;
    color: #0D2342;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.article-meta {
    color: #1A1A1A;
    font-size: 11px;
}

.article-meta i {
    color: #C89A2B;
}

.article-meta b {
    padding: 0 5px;
    font-weight: 400;
}

.article-copy a {
    display: inline-block;
    margin-top: 15px;
    color: #0D2342;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.article-copy a i {
    margin-left: 8px;
}

.empty-message {
    padding: 25px 0;
    color: #1A1A1A;
    text-align: center;
}

.load-more-button {
    display: block;
    margin: 28px auto 0;
    padding: 12px 26px;
    background: transparent;
    border: 1px solid #C89A2B;
    border-radius: 6px;
    color: #C89A2B;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.load-more-button i {
    margin-left: 10px;
}

/* NEWSLETTER */

.newsletter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 0 80px 60px;
    padding: 30px 35px;
    overflow: hidden;
    background: #0D2342;
    border-radius: 18px;
    color: white;
}

.newsletter-copy {
    display: flex;
    align-items: center;
    gap: 20px;
}

.newsletter-copy > i {
    color: #C89A2B;
    font-size: 40px;
}

.newsletter h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 500;
}

.newsletter p {
    margin-top: 5px;
    color: #FAFAF8;
    font-size: 13px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    min-width: 240px;
    padding: 13px 16px;
    border: 0;
    border-radius: 8px 0 0 8px;
    outline: 0;
}

.newsletter-form button {
    border: 0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.newsletter-message {
    position: absolute;
    right: 35px;
    bottom: 5px;
}

.search-box {
    position: relative;
}

.search-popup {
    position: absolute;
    top: 58px;
    left: 0;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    background: white;
    border: 1px solid #E7E7E7;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 20;
}

.search-result {
    display: block;
    padding: 14px 16px;
    color: #0D2342;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    border-bottom: 1px solid #FAFAF8;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: #FAFAF8;
}

.search-result span {
    display: block;
    margin-bottom: 4px;
    color: #C89A2B;
    font-size: 11px;
    letter-spacing: 1px;
}

.search-no-result {
    padding: 14px 16px;
    color: #1A1A1A;
    font-size: 13px;
}

/* TABLET AND MOBILE BLOGS RESPONSIVE */

@media (max-width: 1050px) {
    .blogs-hero {
        gap: 45px;
        padding: 50px 40px;
    }

    .blogs-hero-copy h1 {
        font-size: 42px;
    }

    .articles-section {
        padding: 0 40px 55px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter {
        align-items: stretch;
        flex-direction: column;
        margin: 0 40px 55px;
    }
}

@media (max-width: 760px) {
    .blogs-hero {
        flex-direction: column;
        padding: 45px 30px;
        gap: 35px;
    }

    .blogs-hero-copy,
    .blogs-hero-image {
        width: 100%;
    }

    .blogs-hero-copy h1 {
        font-size: 36px;
    }

    .blogs-hero-copy p {
        font-size: 15px;
    }

    .search-box {
        max-width: 100%;
    }

    .hero-image-bg,
    .hero-image-dots {
        display: none;
    }

    .blogs-hero-image {
        padding: 0;
    }

    .blogs-hero-image img {
        border-radius: 8px;
    }

    .articles-section {
        padding: 0 30px 45px;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article > img {
        min-height: 220px;
    }

    .featured-copy {
        padding: 28px;
    }

    .featured-copy h2 {
        font-size: 30px;
    }

    .featured-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .category-tab {
        flex: none;
        min-width: auto;
    }

    .newsletter {
        margin: 0 30px 45px;
    }
}

@media (max-width: 520px) {
    .blogs-hero {
        padding: 35px 18px;
    }

    .blogs-hero-copy h1 {
        font-size: 31px;
    }

    .articles-section {
        padding: 0 18px 40px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-copy h2 {
        min-height: auto;
    }

    .newsletter {
        margin: 0 18px 40px;
        padding: 25px 20px;
    }

    .newsletter-copy {
        align-items: flex-start;
    }

    .newsletter-form {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        min-width: 0;
        border-radius: 8px;
    }
}