/* Articles Section Component Styles */

/* ===============================
   ARTICLES SECTION
   =============================== */
.articles-section-section {
    width: 100%;
    padding: 60px 0 20px 0;
    background: #ffffff;
}

.articles-section-container {
    width: 100%;
    max-width: 101.7rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.articles-section-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 40px 0;
    text-align: left;
}

/* Article Grid - 2 rows of 3 columns max */
.articles-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 40px;
}

/* Article Card Styles */
.article-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    height: 100%;
    border: none;
}

.article-card:hover {
    transform: none;
    box-shadow: none;
}

.article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: none;
}

.article-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    border-radius: 12px;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card-content {
    padding: 20px 0 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: none;
}

.article-card-title {
    font-size: 2rem;
    font-weight: 400;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.article-card-author {
    font-size: 1.4rem;
    color: #333333;
    margin: auto 0 0 0;
}

.article-card-default-bg {
    width: 100%;
    height: 220px;
    background: #0A2556;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    border-radius: 12px;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.article-card-default-bg::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: #ffffff;
    top: 23px;
    right: 30px;
}

.article-card-default-bg::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid #ffffff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    top: 18px;
    right: 20px;
}

.article-card-default-text {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    z-index: 1;
    margin: 0;
    position: absolute;
    top: 40px;
    right: 25%;
    width: auto;
}

/* ===============================
   ARTICLES SECTION PAGINATION
   =============================== */
.articles-section-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.articles-section-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Circular Pagination Buttons */
.articles-section-pagination-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #000000 !important;
    border: none;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.articles-section-pagination-circle:hover:not(.articles-section-pagination-disabled):not(.articles-section-pagination-current) {
    background: #d0d0d0;
    transform: scale(1.05);
}

/* Current Page (Dark Circle) */
.articles-section-pagination-circle.articles-section-pagination-current {
    background: #5a5a5a;
    color: #ffffff !important;
    cursor: default;
}

/* Disabled Buttons (Light Gray) */
.articles-section-pagination-circle.articles-section-pagination-disabled {
    background: #e8e8e8;
    color: #b0b0b0;
    cursor: not-allowed;
    opacity: 0.6;
}

.articles-section-pagination-circle svg {
    width: 24px;
    height: 24px;
}

/* Page Count Info */
.articles-section-pagination-info {
    font-size: 2rem;
    font-weight: 400;
    color: #333333 !important;
    text-align: center;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .articles-section-section {
        padding: 50px 2rem 50px 2rem;
    }

    .articles-section-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .articles-section-section {
        padding: 40px 2rem 40px 2rem;
    }

    .articles-section-title {
        font-size: 2.8rem;
        margin-bottom: 30px;
    }

    .articles-section-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .article-card-title {
        font-size: 1.8rem;
    }

    .article-card-author {
        font-size: 1.3rem;
    }

    .articles-section-pagination {
        margin-top: 40px;
        gap: 12px;
    }

    .articles-section-pagination-controls {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .articles-section-pagination-circle {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }

    .articles-section-pagination-circle svg {
        width: 18px;
        height: 18px;
    }

    .articles-section-pagination-info {
        font-size: 1.6rem;
    }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
    .articles-section-title {
        font-size: 2.4rem;
        margin-bottom: 30px;
    }

    .articles-section-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-card-title {
        font-size: 1.8rem;
    }

    .article-card-author {
        font-size: 1.3rem;
    }

    .articles-section-pagination-controls {
        gap: 4px;
    }

    .articles-section-pagination-circle {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .articles-section-pagination-circle svg {
        width: 16px;
        height: 16px;
    }

    .articles-section-pagination-info {
        font-size: 1.5rem;
    }
}

/* ===============================
   DARK MODE STYLES
   =============================== */
.dark .articles-section-section {
    background: #1C1C1E;
}

.dark .articles-section-title {
    color: #FEFEFE;
}

.dark .article-card-title {
    color: #FEFEFE;
}

.dark .article-card-author {
    color: #999999;
}

.dark .article-card-image {
    background: #2C2C2E;
}

.dark .articles-section-pagination-info {
    color: #FEFEFE !important;
}
