.rsw-featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rsw-featured-post-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.2s;
}

.rsw-featured-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rsw-featured-post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.rsw-featured-post-title {
    margin: 10px 0;
    font-size: 1.25rem;
}

.rsw-featured-post-title a {
    text-decoration: none;
    color: #333;
}

.rsw-featured-post-excerpt {
    font-size: 0.9rem;
    color: #666;
}

/* Global Container Override for wider desktop layout */
@media (min-width: 1400px) {
    #new-insight-detail-section .container {
        max-width: 1320px !important;
    }
}

@media (min-width: 1600px) {
    #new-insight-detail-section .container {
        max-width: 1520px !important;
    }
}

#featured-post-section,
#new-insight-section {
    padding: 80px 120px;
}

#insight-filter-section .insight-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

#insight-filter-section .insight-filter-container .insight-filter-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#insight-filter-section .insight-filter-container .insight-filter-category button {
    padding: 7px 20px;
    border: 1px solid #2F6FED;
    border-radius: 50px;
    background: #ffffff;
    color: #2F6FED;
    transition: all 0.3s ease;
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 18px;
}

#insight-filter-section .insight-filter-container .insight-filter-category button:hover {
    background: #2F6FED;
    color: #ffffff;
}

#insight-filter-section .insight-filter-container .insight-filter-category button.active {
    background: #2F6FED;
    color: #ffffff;
}

#insight-filter-section .search-wrapper {
    position: relative;
    width: 300px;
}

#insight-filter-section .search-wrapper input[type="search"] {
    width: 100%;
    padding: 10px 50px 10px 20px;
    border: 1px solid #E2E8F0;
    border-radius: 50px;
    font-family: 'Montserrat';
    font-size: 16px;
    outline: none;
}

#insight-filter-section .search-wrapper input[type="search"]::placeholder {
    color: #94A3B8;
}

#insight-filter-section .search-wrapper .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #2F6FED;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    color: #ffffff;
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#insight-filter-section .search-wrapper .search-btn:hover {
    background: #1e5bc6;
}


#featured-post-section {
    background: #EAF2FF;
}

#featured-post-section h4 {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 28px;
    line-height: 140%;
    letter-spacing: 0%;
    color: #333333;
}

#featured-post-section .featured-article-image {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#featured-post-section .featured-article-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

#featured-post-section .featured-article-image .featured-article-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
}

#featured-post-section .featured-article-details span.category {
    font-family: 'source sans pro';
    font-weight: 400;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.57);
    color: #2F6FED;
    border: 1px solid #2F6FED;
    padding: 5px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

#featured-post-section .featured-article-details h4 {
    color: #ffffff;
    margin: 0;
}

#featured-post-section .featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#featured-post-section .featured-post-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    height: 100%;
    max-height: 500px;
    overflow-y: auto;
}

#featured-post-section .featured-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#featured-post-section .featured-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

#featured-post-section .featured-post-item .featured-post-image {
    width: 120px;
    height: 85px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#featured-post-section .featured-post-item .featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#featured-post-section .featured-post-item .featured-post-content {
    flex: 1;
}

#featured-post-section .featured-post-item .featured-post-content p {
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0%;
    color: #475569;
    margin: 0;
}

#new-insight-section {
    background: #F7F9FC;
}

#new-insight-section .row {
    row-gap: calc(var(--bs-gutter-x));
}

#new-insight-section .article-card {
    angle: 0 deg;
    opacity: 1;
    gap: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px 0px #0000001f;
    margin: 0;
    height: 100%;
}

#new-insight-section .article-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

#new-insight-section .article-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    margin: 0;
}

#new-insight-section .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

#new-insight-section .article-meta {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 18px;
    line-height: 25.6px;
    letter-spacing: 0%;
    text-transform: capitalize;
    margin: 0;
}

#new-insight-section .article-category {
    color: #2F6FED;
    font-weight: 400;
    text-decoration: none;
    margin: 0;
}

#new-insight-section .article-date {
    color: rgba(82, 82, 82, 0.69);
    margin: 0;
}

#new-insight-section .meta-divider {
    color: rgba(82, 82, 82, 0.69);
    margin: 0;
    padding: 0 5px;
}

#new-insight-section .article-author {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 18px;
    line-height: 25.6px;
    letter-spacing: 0%;
    text-transform: capitalize;
    color: rgba(82, 82, 82, 0.69);
    margin: 0;
    padding-left: 10px;
}

#new-insight-section .article-title {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 22px;
    line-height: 140%;
    letter-spacing: 0%;
    color: #333333;
    margin: 0;
}

#new-insight-section .read-more {
    font-family: Montserrat;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-decoration: none;
    color: #2F6FED;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

#new-insight-section .read-more img {
    height: 22px;
    width: 22px;
}

#new-insight-section .load-more {
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-decoration: none;
    background-color: #2F6FED;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    border: none;
    outline: none;
    border-radius: 50px;
    padding: 15px 20px;
    margin: 20px auto 0 auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

#new-insight-section .load-more svg {
    transition: transform 0.3s ease;
}

#new-insight-section .load-more.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

#new-insight-section .load-more.loading svg {
    animation: rsw_spin 1s linear infinite;
}

@keyframes rsw_spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1200px) {

    #featured-post-section,
    #new-insight-section {
        padding: 50px;
    }

    #featured-post-section h4 {
        font-size: 24px;
    }

    #featured-post-section .featured-article-details span.category,
    #featured-post-section .featured-post-item .featured-post-content p,
    #new-insight-section .article-title {
        font-size: 20px;
    }

    #featured-post-section .featured-post-container {
        margin-top: 20px;
    }
}

@media (max-width: 1024px) {

    #featured-post-section,
    #new-insight-section {
        padding: 50px 15px;
    }

    #featured-post-section .featured-article-details span.category,
    #featured-post-section .featured-post-item .featured-post-content p,
    #new-insight-section .article-title {
        font-size: 18px;
    }

    #featured-post-section .featured-article-image {
        height: 400px;
    }
}

@media (max-width: 767px) {

    #featured-post-section,
    #new-insight-section {
        padding: 30px 15px;
    }

    #featured-post-section h4 {
        font-size: 20px;
    }

    #featured-post-section .featured-article-image {
        height: 300px;
    }

    #insight-filter-section .insight-filter-container .insight-filter-category button,
    #new-insight-section .article-meta,
    #new-insight-section .article-author,
    #featured-post-section .featured-article-details span.category,
    #featured-post-section .featured-post-item .featured-post-content p,
    #new-insight-section .article-title {
        font-size: 16px;
    }
}

/* Insight Detail Section Custom Styles */
#new-insight-detail-section {
    background: #F7F9FC;
}

#new-insight-detail-section .blog-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#new-insight-detail-section .blog-detail .highlight-text {
    color: #2F6FED;
}

#new-insight-detail-section .blog-detail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

#new-insight-detail-section .blog-detail h3 {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 36px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #0F172A;
    margin: 0;
}

#new-insight-detail-section .blog-detail h4 {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #0F172A;
    margin: 0;
}

#new-insight-detail-section .blog-detail p {
    font-family: 'source sans pro';
    font-weight: 400;
    font-size: 18px;
    /* Reduced from 22px to match design better */
    line-height: 140%;
    letter-spacing: 0%;
    color: #475569;
    margin: 0;
}

#new-insight-detail-section .blog-detail li {
    font-family: 'source sans pro';
    font-weight: 400;
    font-size: 18px;
    /* Reduced from 22px to match design better */
    line-height: 140%;
    letter-spacing: 0%;
    color: #475569;
    margin: 0;
    list-style: none;
    position: relative;
    padding-left: 30px;
}

#new-insight-detail-section .blog-detail li::before {
    content: '';
    position: absolute;
    left: 0px;
    height: 18px;
    width: 18px;
    background-image: url('https://redealdesk.com/wp-content/uploads/2026/02/Symbol.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 50%;
    transform: translateY(-50%);
}

#new-insight-detail-section .blog-detail .highlight-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border-left: 6px solid #2F6FED;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#new-insight-detail-section .sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#new-insight-detail-section .sidebar h4 {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 24px;
    /* Reduced from 28px */
    line-height: 140%;
    letter-spacing: 0%;
    color: #475569;
    margin: 0;
    margin-bottom: 16px;
}

#new-insight-detail-section .sidebar .category-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

#new-insight-detail-section .sidebar .category-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

#new-insight-detail-section .sidebar .category-list-item {
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 14px;
    /* Reduced from 18px */
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: capitalize;
    color: #475569;
    margin: 0;
    border: 1px solid #2F6FED;
    /* Reduced border width */
    background: #ffffff;
    color: #2F6FED;
    width: max-content;
    padding: 8px 20px;
    /* Reduced padding */
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#new-insight-detail-section .sidebar .category-list-item:hover,
#new-insight-detail-section .sidebar .category-list-item.active {
    background: #2F6FED;
    color: #ffffff;
}

#new-insight-detail-section .sidebar .featured-post-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

#new-insight-detail-section .sidebar .featured-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#new-insight-detail-section .sidebar .featured-post-item {
    display: flex !important;
    align-items: flex-start;
    /* Changed from center to top align text */
    gap: 12px;
    text-decoration: none;
}

#new-insight-detail-section .sidebar .featured-post-item .featured-post-image {
    width: 100px;
    /* Reduced from 120px */
    height: 70px;
    /* Reduced from 85px */
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    /* Prevent shrinking */
}

#new-insight-detail-section .sidebar .featured-post-item .featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#new-insight-detail-section .sidebar .featured-post-item .featured-post-content {
    flex: 1;
}

#new-insight-detail-section .sidebar .featured-post-item .featured-post-content p {
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 16px;
    /* Reduced from 22px */
    line-height: 140%;
    letter-spacing: 0%;
    color: #475569;
    margin: 0;
}

#new-insight-detail-section .sidebar .share-post-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

#new-insight-detail-section .sidebar .share-post-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#new-insight-detail-section .sidebar .share-post-list a {
    width: 40px;
    /* Reduced from 50px */
    height: 40px;
    /* Reduced from 50px */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#new-insight-detail-section .sidebar .share-post-list a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1200px) {
    #new-insight-detail-section .blog-detail h3 {
        font-size: 30px;
    }

    #new-insight-detail-section .blog-detail h4,
    #new-insight-detail-section .sidebar h4 {
        font-size: 22px;
    }

    #new-insight-detail-section .blog-detail p,
    #new-insight-detail-section .blog-detail li,
    #new-insight-detail-section .sidebar .featured-post-item .featured-post-content p {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    #new-insight-detail-section .blog-detail h3 {
        font-size: 28px;
    }

    #new-insight-detail-section .blog-detail h4,
    #new-insight-detail-section .sidebar h4 {
        font-size: 20px;
    }

    #new-insight-detail-section .sidebar {
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    #new-insight-detail-section .blog-detail h3 {
        font-size: 24px;
    }

    #new-insight-detail-section .blog-detail h4,
    #new-insight-detail-section .sidebar h4 {
        font-size: 18px;
    }

    #new-insight-detail-section .blog-detail p,
    #new-insight-detail-section .blog-detail li,
    #new-insight-detail-section .sidebar .featured-post-item .featured-post-content p,
    #new-insight-detail-section .sidebar .category-list-item {
        font-size: 14px;
    }

    #new-insight-detail-section .sidebar .share-post-list a {
        height: 35px;
        width: 35px;
    }

    #new-insight-detail-section .sidebar .featured-post-item .featured-post-image {
        width: 80px;
        height: 60px;
    }
}