/**
 * article-category.css
 * Layout-only CSS for article category archive.
 * Card design is now global in: /ibm-blog/article-card.css
 */

/* ==========================================================================
   HERO
   ========================================================================== */

.ac-hero {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    padding-bottom: 60px;
    text-align: center;
}

.ac-hero h1 {
    margin-bottom: 16px;
}

.ac-breadcrumbs {
    margin-bottom: 24px;
}

.ac-hero .ibm-breadcrumb {
    justify-content: center;
}

.ac-hero .ibm-breadcrumb li a {
    text-decoration: none;
    transition: color 0.2s;
}

.ac-hero .ibm-breadcrumb li a:hover {
    opacity: 0.8;
}

.ac-hero .ibm-breadcrumb li {
    color: rgba(255, 255, 255, 0.85);
}

.ac-hero-desc p {
    color: rgba(255,255,255,0.88) !important;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   GRID SECTION
   ========================================================================== */

.ac-grid-section {
    background: #F2F8FF;
    padding: 56px 0 72px;
}

.ac-grid-heading {
    text-align: center;
    margin-bottom: 40px;
}

.ac-grid-heading h2 {
    color: #0A0A0A !important;
    text-shadow: none !important;
    font-size: 36px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.ac-grid-heading h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #0023a7, #0066ff);
    border-radius: 4px;
}

.ac-grid-heading h2 span {
    color: #FCC50A;
}

/* ==========================================================================
   GRID LAYOUT (cards themselves are global)
   ========================================================================== */

.ac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.ac-pagination {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.ac-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.ac-pagination .page-numbers li a,
.ac-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dde3ef;
    background: #fff;
    color: #0023a7;
    transition: background 0.2s, color 0.2s;
}

.ac-pagination .page-numbers li a:hover {
    background: #0023a7;
    color: #fff;
    border-color: #0023a7;
}

.ac-pagination .page-numbers li span.current {
    background: #FCC50A;
    color: #0A0A0A;
    border-color: #FCC50A;
    font-weight: 700;
}

.ac-pagination .page-numbers li .prev,
.ac-pagination .page-numbers li .next {
    font-weight: 700;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.ac-empty-state {
    text-align: center;
    padding: 70px 20px;
    max-width: 620px;
    margin: 0 auto;
}

.ac-empty-message {
    font-size: 17px;
    color: #0A0A0A;
    font-weight: 600;
    margin-bottom: 14px;
}

.ac-empty-subtext {
    font-size: 14px;
    color: #6B7179;
    margin-bottom: 18px;
}

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

.ac-empty-links li a {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 30px;
    background: #FFFFFF;
    border: 1px solid #dde3ef;
    color: #053A81;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 8, 20, 0.08);
    transition: background 0.2s, color 0.2s;
}

.ac-empty-links li a:hover {
    background: #053A81;
    color: #ffffff;
}

/* ==========================================================================
   TABLET
   ========================================================================== */

@media (min-width: 768px) and (max-width: 991px) {
    .ac-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ac-grid-heading h2 {
        font-size: 28px;
    }
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {
    .ac-hero {
        padding-bottom: 40px;
    }

    .ac-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ac-grid-section {
        padding: 36px 0 52px;
    }

    .ac-grid-heading h2 {
        font-size: 24px;
    }
}
