.hero-section {
    padding: 80px 20px;
    background: linear-gradient(90deg, #CCDEE9 0%, #B3D3E3 100%);
    margin-bottom: 40px;
}

.hero-section.has-background {
    padding: 150px 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* max-height: 380px; */
    position: relative;
}

.hero-title {
    font-size: clamp(2rem, 1.2813rem + 2.3958vw, 3.4375rem);
    line-height: 1.1;
    font-weight: bold;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
    color: var(--accent);
}

.hero-description {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
}

.breadcrumbs {
    font-size: 16px;
    font-weight: 400;
    color: var(--accent);
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--accent);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    font-weight: 700;
}

/* .hero-section.has-background:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(67deg, #0c77b5 0%, #0c77b5 50%, transparent 60%, transparent 0%);
    z-index: 0;
    opacity: .7;
} */

.hero-section.has-background .hero-title,
.hero-section.has-background .hero-description,
.hero-section.has-background .breadcrumbs,
.hero-section.has-background .breadcrumbs a {
    color: #ffffff;
    position: relative;
    z-index: 10;
}

.category-posts-section {
    padding: 40px 20px 80px;
}

.category-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.category-posts-heading {
    flex: 1 1 auto;
}

.category-posts-title {
    font-size: 45px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
    padding-top: 30px;
    color: var(--primary-color);
    position: relative;
}

.category-posts-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--yellow);
}

.category-posts-header-action {
    flex-shrink: 0;
}

.category-posts-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    border-radius: 999px;
    background-color: #2563a9;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease,
        box-shadow 0.2s ease;
}

.category-posts-view-btn:hover {
    background-color: #1c4e85;
    transform: translateY(-1px);
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.category-post-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 3px 2px 5px 3px rgba(115, 176, 207, 0.1);
    cursor: pointer;
}

.category-post-card:hover {
    box-shadow: 3px 2px 5px 3px rgba(115, 176, 207, 0.5);
}

.category-post-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    height: 100%;
}

.category-post-image {
    margin-bottom: 40px;
    height: 217px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(90deg, #CCDEE9 0%, #B3D3E3 100%);
}

.category-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-post-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-post-date {
    font-size: 14px;
    font-weight: 400;
    color: #7c7c7c;
    letter-spacing: -0.01em;
    margin-bottom: 7px;
}

.category-post-title {
    font-size: 18px;
    font-weight: 500;
    color: #1e5c9f;
    letter-spacing: -0.01em;
    margin: 0 0 23px;
}

.category-post-divider {
    width: 100%;
    height: 0;
    background-color: #e0e0e0;
    margin: 16px 0 0 0;
}

.category-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--accent);
    margin: auto 0 0 0;
    margin: auto 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.category-post-excerpt {
    font-size: 16px;
    font-weight: 400;
    color: #04375F;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

.pagination-wrapper {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-wrapper ul.page-numbers {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pagination-wrapper ul.page-numbers li a,
.pagination-wrapper ul.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #1E5C9F;
    font-size: 14px;
    text-decoration: none;
    color: #1E5C9F;
}

.pagination-wrapper .page-numbers.current {
    background-color: #1E5C9F;
    color: #ffffff;
}

.pagination-wrapper .page-numbers:hover:not(.current) {
    background-color: rgba(37, 99, 169, 0.06);
}

@media (max-width: 1024px) {
    .category-posts-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (min-width: 768px) {
    .hero-section-heading {
        /* max-width: 580px; */
        width: 100%;
    }
}

@media (max-width: 768px) {
    .category-posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .category-posts-title {
        font-size: 30px;
    }

    .category-post-thumb {
        height: 220px;
    }

    .category-posts-header-action {
        width: 100%;
    }

    .category-posts-view-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-section.has-background:after {
        background: linear-gradient(to top, #0c77b5 0%, #0c77b5 70%, transparent 80%, transparent 0%);
    }
}