section.first-banner {
    height: 100%;
    margin: 8px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.80) 100%), url(https://megaworld-bgc.com/wp-content/uploads/2025/08/Township-bg.png) lightgray 50% / cover no-repeat;
    background-size: cover;
    /* ✅ Fixes zooming and respects image ratio */
    background-repeat: no-repeat;
    background-position: center;
    padding: 200px 50px 100px 50px;
    border-radius: 24px;
}


section.first-banner p {
    padding-right: 16px;
    font-weight: 200 !important;
}

section.first-banner .row {
    --bs-gutter-x: 3.75rem;
}

section.articles-section .article-container,
section.other-blogs-section .article-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

section.articles-section .featured-article-cta,
section.other-blogs-section .featured-article-cta {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

section.articles-section .featured-article-content,
section.other-blogs-section .featured-article-content {
    display: flex;
    flex-direction: column;
    gap: 16px;

}


section.articles-section,
section.other-blogs-section {
    background-color: #fff;
}

section.articles-section .featured-article,
section.other-blogs-section .featured-article {
    height: 100%;
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 12px;
    border: 2px solid var(--Gold-2, #DFBD69);
}

section.other-blogs-section .featured-article {
    justify-content: space-between;
}

section.articles-section .featured-article-cta p,
section.other-blogs-section .featured-article-cta p {
    color: #59421C;
    text-align: center;
    font-family: "Roboto Condensed";
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
}

section.articles-section .featured-article img,
section.other-blogs-section .featured-article img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

section.articles-section .other-featured,
section.other-blogs-section .other-featured {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    gap: 24px;
}

section.articles-section .contact-card,
section.other-blogs-section .contact-card {
    padding: 24px;
    border-radius: 12px;
    border: 2px solid var(--Gold-2, #DFBD69);
    background: var(--Blck, #141311);
    gap: 24px;
}

section.articles-section .circle-link-avatar,
section.other-blogs-section .circle-link-avatar {
    z-index: 2;
    margin-left: -15px;
    display: flex;
    border-radius: 1367.647px;
    border: 1.368px solid var(--Gold-2, #DFBD69);
    background: linear-gradient(rgba(238, 238, 238, 0.5), rgba(238, 238, 238, 0.5)), #EEE;
}

section.articles-section .circle-link-number,
section.other-blogs-section .circle-link-number {
    z-index: 3;
    display: flex;
    width: 60px;
    padding: 19px;
    /* justify-content: center; */
    align-items: center;
    border-radius: 1367.647px;
    border: 1.368px solid var(--Gold-2, #DFBD69);
    background: var(--Gold-1, linear-gradient(90deg, #AE8625 0%, #F7EF8A 25%, #D2AC47 75%, #EDC967 100%));
}

.circle-link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

section.articles-section img,
section.other-blogs-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Other Blogs */

section.other-blogs-section {
    background: #FEFAED;
}

section.other-blogs-section .search-container {
    display: flex;
    justify-self: flex-end;
    position: relative;
    width: 100%;
    max-width: 456px;
    /* Optional: sets a max width */
}

section.other-blogs-section .search-box {
    width: 100%;
    padding: 11.5px 32px;
    border-radius: 8px;
    border: 1px solid var(--Gold-2, #DFBD69);
    background: #FEFAED;
    outline: none;
    /* 178.571% */
}

section.other-blogs-section .search-box::placeholder {
    color: var(--Text-Color, #64635D);
    font-family: "Roboto Condensed";
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: 25px;
}

section.other-blogs-section .search-box:focus {
    border-color: #a88a38;
    box-shadow: 0 0 5px rgba(201, 167, 77, 0.5);
}

section.other-blogs-section .search-container svg {
    position: absolute;
    top: 50%;
    right: 11.5px;
    transform: translateY(-50%);
    ;
}

section.other-blogs-section .row:first-of-type {
    --bs-gutter-y: 3.75rem;
}

section.other-blogs-section .pagination-container {
    display: flex;
    gap: 16px;
    justify-content: center;
}

section.other-blogs-section .featured-article img {
    height: 240px;
}

section.banner.articles-section .featured-article img {
    height: 524px;
}

section.banner.articles-section .featured-article.first-article {
    justify-content: space-between;
}

/* --- 1. The Main Link Container --- */
section.other-blogs-section .pagination-container a {
    /* CRITICAL FIX: This anchors the ::before and ::after elements */
    position: relative; 
    
    /* This creates a stacking context to keep text on top */
    isolation: isolate; 
    
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    color: #59421C;
    text-align: center;
    font-family: "Roboto Condensed";
    font-size: 14px;
    font-weight: 800;
    line-height: 25px;
    padding: 11.5px 32px;
    border-radius: 8px;
    outline: none;
}

section.other-blogs-section .pagination-container span:not(:last-of-type) {
    text-decoration: none;
    color: #59421C;
    text-align: center;
    font-family: "Roboto Condensed";
    font-size: 14px;
    font-weight: 800;
    line-height: 25px;
    padding: 11.5px 32px;
    border-radius: 8px;
    outline: none;
    border-radius: 8px;
    background: var(--Gold-1, linear-gradient(90deg, #AE8625 0%, #F7EF8A 25%, #D2AC47 75%, #EDC967 100%));
    -webkit-text-fill-color: inherit
}

section.other-blogs-section .pagination-container span:last-of-type {
    text-decoration: none;
    color: #64635D;
    text-align: center;
    font-family: "Roboto Condensed";
    font-size: 14px;
    font-weight: 800;
    line-height: 25px;
    padding: 11.5px 32px;
    border-radius: 8px;
    outline: none;
    border: 1px solid transparent;
    background: linear-gradient(#FEFAED 0 0) padding-box,
        linear-gradient(90deg, #DFBD69 0%, #E0AA3E 50%, #926F34 100%);
    -webkit-text-fill-color: inherit
}



section.other-blogs-section .pagination-container a::before,
section.other-blogs-section .pagination-container a::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%;
    height: 100%;
    border-radius: 8px;
    transition: opacity 0.4s ease-in-out;
}


section.other-blogs-section .pagination-container a::before {

    z-index: -1; 
    border: 1px solid transparent;
    background: linear-gradient(#FEFAED 0 0) padding-box,
                linear-gradient(90deg, #DFBD69 0%, #E0AA3E 50%, #926F34 100%);
    opacity: 1;
}

section.other-blogs-section .pagination-container a::after {
    /* CRITICAL FIX: Set z-index to be underneath the ::before element */
    z-index: -2; 
    
    background: var(--Gold-1, linear-gradient(90deg, #AE8625 0%, #F7EF8A 25%, #D2AC47 75%, #EDC967 100%));
    opacity: 0;
}


section.other-blogs-section .pagination-container a:hover::before {
    opacity: 0;
}
section.other-blogs-section .pagination-container a:hover::after {
    opacity: 1;
}

.mb-36 {
    margin-bottom: 36px;
}


/* End of other blogs */

@media screen and(max-width: 768px) {
    .row {
        --bs-gutter-y: 1.5rem;
    }

    .mb-36 {
        margin: 0;
    }
}

@media screen and (max-width: 575px) {

    section .featured-article-cta {
        display: flex;
        flex-direction: column !important;
    }

}