/**
 * article-category.css
 * Styles for the article category archive (taxonomy-article_category.php).
 * Enqueue via functions.php on is_tax('article_category') only.
 * Inherits: heroinnerpages, ibm-breadcrumb, article-tag colours from
 *           style.css and article-single.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;
}

/* Centre breadcrumbs under the title */
.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;
}

/* Description paragraph */
.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;
}

/* H2 heading above grid */
.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;
}

/* Blue underline — matches site heading style */
.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;
}

/* ==========================================================================
   ARTICLE CARDS — 3 col desktop / 2 tablet / 1 mobile
   ========================================================================== */

.ac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.ac-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.ac-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

/* Featured image */
.ac-card-img-link {
    display: block;
    overflow: hidden;
}

.ac-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ac-card:hover .ac-card-img {
    transform: scale(1.04);
}

/* Card body */
.ac-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title */
.ac-card-title {
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #0A0A0A !important;
    margin-bottom: 10px !important;
    border-left: none !important;
    padding-left: 0 !important;
    display: block !important;
    text-shadow: none !important;
}

.ac-card-title a {
    color: #0A0A0A !important;
    text-decoration: none;
}

.ac-card-title a:hover {
    color: #0023a7 !important;
}

/* Excerpt */
.ac-card-excerpt {
    font-size: 14px !important;
    color: #6B7179 !important;
    line-height: 1.65 !important;
    margin-bottom: 14px !important;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row — date + tags */
.ac-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.ac-card-date {
    font-size: 12px;
    color: #8a8a8a;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.ac-card-date i {
    color: #FCC50A;
    font-size: 11px;
}

.ac-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Tag pills inherit from article-single.css .article-tag + .tag-colour-* */
.ac-card-tags .article-tag {
    font-size: 10px !important;
    padding: 3px 10px !important;
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   NO POSTS
   ========================================================================== */

.ac-no-posts {
    text-align: center;
    padding: 60px 0;
}

.ac-no-posts p {
    font-size: 16px;
    color: #6B7179;
}

/* ==========================================================================
   TABLET  (768px – 991px)
   ========================================================================== */

@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  (< 768px)
   ========================================================================== */

@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;
    }

    .ac-card-img {
        height: 180px;
    }
}