/* Clean Corporate Articles Section Styles */
#articles {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
    overflow: hidden;
    margin-top: 80px;
}

/* Decorative Background Elements */
#articles::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.04) 0%, transparent 100%);
    border-radius: 50%;
    z-index: 0;
}

#articles::after {
    content: '';
    position: absolute;
    bottom: -90px;
    left: -90px;
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.03) 0%, rgba(27, 58, 107, 0.01) 100%);
    border-radius: 50%;
    z-index: 0;
}




/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 58, 107, 0.1);
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B3A6B 0%, #2c5282 100%);
    border-radius: 16px 16px 0 0;
}

.sidebar-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(27, 58, 107, 0.12);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #1B3A6B;
    margin-bottom: 20px;
}

/* Search Widget */
.search-widget input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(27, 58, 107, 0.2);
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-widget input:focus {
    outline: none;
    border-color: #1B3A6B;
    box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.1);
}

/* Categories Widget */
.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li {
    margin-bottom: 12px;
}

.categories-widget a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.03) 0%, rgba(27, 58, 107, 0.05) 100%);
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.categories-widget a:hover {
    background: linear-gradient(135deg, #1B3A6B 0%, #2c5282 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.2);
}

.categories-widget a:hover span {
    color: white !important;
}

.categories-widget a.active {
    background: linear-gradient(135deg, #1B3A6B 0%, #2c5282 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.25);
}

.categories-widget a.active span {
    color: white !important;
}

/* Recent Posts Widget */
.recent-posts-widget .post-item {
    padding: 15px;
    margin: 0 -15px;
    border-bottom: 1px solid rgba(27, 58, 107, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recent-posts-widget .post-item:last-child {
    border-bottom: none;
    padding-bottom: 15px;
}

.recent-posts-widget .post-item:hover {
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.03) 0%, rgba(27, 58, 107, 0.05) 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.1);
}

.recent-posts-widget table {
    width: 100%;
}

.recent-posts-widget img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recent-posts-widget .post-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.2);
}

.recent-posts-widget h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.recent-posts-widget h4 a {
    color: #1B3A6B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts-widget h4 a:hover {
    color: #2c5282;
}

.recent-posts-widget time {
    font-size: 13px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.recent-posts-widget .post-item:hover time {
    color: #495057;
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(27, 58, 107, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B3A6B 0%, #2c5282 100%);
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(27, 58, 107, 0.15);
}

/* Blog Image Container */
.blog-img-container {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-img-container img {
    transform: scale(1.08);
}

/* Date Badge */
.blog-date-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #1B3A6B;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Blog Content */
.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category Badge */
.blog-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.08) 0%, rgba(27, 58, 107, 0.12) 100%);
    border: 1px solid rgba(27, 58, 107, 0.15);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #1B3A6B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    width: fit-content;
    transition: all 0.3s ease;
}

.blog-category-badge i {
    font-size: 14px;
}

.blog-card:hover .blog-category-badge {
    background: linear-gradient(135deg, #1B3A6B 0%, #2c5282 100%);
    color: white;
    border-color: #1B3A6B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 58, 107, 0.2);
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: #1B3A6B;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(27, 58, 107, 0.2) 50%, transparent 100%);
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1B3A6B;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #2c5282;
    gap: 12px;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(4px);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* No Data */
.no-data-container {
    text-align: center;
    padding: 60px 20px;
}

.no-data-container p {
    color: #6c757d;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .articles-title {
        font-size: 32px;
    }

    #articles {
        padding: 60px 0;
    }

    .sidebar-widget {
        margin-top: 40px;
    }

    .blog-content {
        padding: 25px;
    }

    .blog-img-container {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .articles-title {
        font-size: 28px;
    }

    .articles-badge {
        font-size: 12px;
        padding: 6px 18px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-img-container {
        height: 180px;
    }
}