/* Archive Page Styles */
.articles-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.articles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
}

/* Article Card Styles */
.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 35px;
    position: relative;
}

.banner-section .content-box {
    padding: 100px 0;
    color: #fff;
    text-align: center;
}
.banner-section .sub-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}
.banner-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}
.banner-section p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}
.banner-section .bg-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.banner-section .bg-layer:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.banner-section .content-box {
    position: relative;
    z-index: 2;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.article-card:hover::before {
    opacity: 1;
}

.article-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-card:hover .article-img img {
    transform: scale(1.1) rotate(2deg);
}

.article-overlay {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 2;
}

.article-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
    transition: all 0.3s ease;
}

.article-card:hover .article-category {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.4);
}

.article-content {
    padding: 30px;
    background: #fff;
    position: relative;
}

.article-title {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.article-title a {
    color: #2c3e50;
    transition: color 0.3s ease;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.article-meta i {
    color: var(--primary-color);
    font-size: 16px;
}

.article-text {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 15px;
}

.article-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.article-link i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.article-link:hover i {
    transform: translateX(5px);
}

/* Sidebar Styles */
.sidebar-widget {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.widget-title {
    margin-bottom: 30px;
}

.widget-title h3 {
    font-size: 24px;
    position: relative;
    padding-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.widget-title h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Search Widget */
.search-widget .form-group {
    position: relative;
}

.search-widget input {
    width: 100%;
    height: 55px;
    padding: 15px 25px;
    border: 2px solid #eee;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 15px;
    background: #f8f9fa;
}

.search-widget input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.1);
}

.search-widget button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.search-widget button:hover {
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.categories-list li:hover {
    padding-left: 10px;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.categories-list a:hover {
    color: var(--primary-color);
}

.categories-list span {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.categories-list li:hover span {
    background: var(--primary-color);
    color: #fff;
}

/* Recent Posts Widget */
.recent-posts .post {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.recent-posts .post:hover {
    transform: translateX(10px);
}

.recent-posts .post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-thumb {
    flex: 0 0 90px;
    border-radius: 10px;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-posts .post:hover .post-thumb img {
    transform: scale(1.1);
}

.post-info h6 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
}

.post-info h6 a {
    color: #2c3e50;
    transition: color 0.3s ease;
    text-decoration: none;
}

.post-info h6 a:hover {
    color: var(--primary-color);
}

.post-date {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Tags Widget */
.tags-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tags-list li a {
    display: inline-block;
    padding: 8px 20px;
    background: #f8f9fa;
    color: #2c3e50;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tags-list li a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Pagination Styles */
.pagination-box {
    margin-top: 70px;
    position: relative;
}

.pagination-box::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.styled-pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.styled-pagination li {
    position: relative;
}

.styled-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.styled-pagination li a::before {
    content: none;
}

.styled-pagination li a span {
    position: static;
    z-index: auto;
}

.styled-pagination li a:hover,
.styled-pagination li a.active {
    background-color: #f0f0f0;
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.styled-pagination li.prev a,
.styled-pagination li.next a {
    width: 50px;
    padding: 0;
    border-radius: 50%;
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
}

.styled-pagination li.prev a i,
.styled-pagination li.next a i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.styled-pagination li.prev a:hover i {
    transform: translateX(-3px);
}

.styled-pagination li.next a:hover i {
    transform: translateX(3px);
}

.styled-pagination li.dots {
    display: flex;
    align-items: center;
    color: #666;
    font-weight: 600;
    padding: 0 5px;
}

/* Responsive Pagination */
@media (max-width: 767px) {
    .pagination-box {
        margin-top: 50px;
    }

    .styled-pagination li a {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .styled-pagination {
        gap: 5px;
    }

    .styled-pagination li a {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .articles-section {
        padding: 80px 0;
    }

    .article-img {
        height: 240px;
    }

    .sidebar-widget {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    .articles-section {
        padding: 60px 0;
    }

    .article-card {
        flex-direction: column !important;
    }

    .article-img {
        height: 200px;
        width: 100% !important;
    }

    .article-content {
        padding: 25px;
        width: 100% !important;
    }

    .article-title {
        font-size: 20px;
    }

    .article-meta {
        flex-direction: column;
        gap: 12px;
    }

    .sidebar-widget {
        padding: 25px;
    }

    .widget-title h3 {
        font-size: 22px;
    }
}
