/* =========================================================
   PHARMA TIPS ZONE
   ARTICLES LIST PAGE
========================================================= */


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

.articles-hero {
    position: relative;

    min-height: 285px;

    display: flex;
    align-items: center;

    background:
        url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1800&q=85")
        center / cover;
}

.articles-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(17, 17, 17, .84),
            rgba(17, 17, 17, .52)
        );
}

.articles-hero .container {
    position: relative;
    z-index: 2;
}

.articles-hero-content {
    max-width: 720px;

    padding: 50px 0;
}

.articles-hero-label {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.articles-hero-content h1 {
    margin: 0 0 11px;

    color: var(--white);

    font-size: 45px;
    line-height: 1.1;
    font-weight: 800;
}

.articles-hero-content h1 span {
    color: var(--primary);
}

.articles-hero-content p {
    max-width: 650px;

    margin: 0 0 18px;

    color: rgba(255, 255, 255, .86);

    font-size: 13px;
    line-height: 1.65;
}

.articles-breadcrumb {
    display: flex;
    align-items: center;

    gap: 8px;

    color: rgba(255, 255, 255, .65);

    font-size: 10px;
}

.articles-breadcrumb a {
    color: var(--white);
}

.articles-breadcrumb a:hover {
    color: var(--primary);
}


/* =========================================================
   MAIN SECTION
========================================================= */

.articles-page-section {
    padding: 55px 0;

    background: var(--white);
}


/* =========================================================
   HEADING
========================================================= */

.articles-page-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 35px;

    margin-bottom: 28px;
}

.articles-section-label {
    display: inline-block;

    margin-bottom: 6px;

    color: var(--primary);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.articles-page-heading h2 {
    margin: 0;

    color: var(--text);

    font-size: 29px;
    line-height: 1.2;
    font-weight: 800;
}

.articles-page-heading h2 span {
    color: var(--primary);
}

.articles-heading-line {
    width: 38px;
    height: 3px;

    display: block;

    margin-top: 10px;

    background: var(--primary);
}

.articles-page-heading > p {
    max-width: 400px;

    margin: 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   FILTER BAR
========================================================= */

.articles-filter-bar {
    display: grid;

    grid-template-columns: minmax(220px, 1fr) 190px 170px;

    gap: 10px;

    margin-bottom: 17px;

    padding: 12px;

    background: var(--light);

    border: 1px solid var(--border);

    border-radius: 5px;
}

.articles-search-box,
.articles-filter-select,
.articles-sort-select {
    position: relative;
}

.articles-search-box i {
    position: absolute;

    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: var(--muted);

    font-size: 11px;
}

.articles-search-box input,
.articles-filter-select select,
.articles-sort-select select {
    width: 100%;
    height: 40px;

    padding: 0 12px;

    border: 1px solid var(--border);

    border-radius: 4px;

    background: var(--white);

    color: var(--text);

    font-family: inherit;
    font-size: 11px;

    outline: none;
}

.articles-search-box input {
    padding-left: 34px;
}

.articles-search-box input:focus,
.articles-filter-select select:focus,
.articles-sort-select select:focus {
    border-color: var(--primary);
}


/* =========================================================
   RESULTS BAR
========================================================= */

.articles-results-bar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 17px;

    color: var(--muted);

    font-size: 10px;
}

.articles-results-bar strong {
    color: var(--text);
}


/* =========================================================
   ARTICLE CARD
========================================================= */

.articles-list-card {
    height: 100%;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 6px;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.articles-list-card:hover {
    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .08);
}

.articles-card-image {
    position: relative;

    display: block;

    height: 185px;

    overflow: hidden;

    background: var(--light);
}

.articles-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .3s ease;
}

.articles-list-card:hover .articles-card-image img {
    transform: scale(1.04);
}

.articles-card-category {
    position: absolute;

    left: 11px;
    top: 11px;

    padding: 5px 8px;

    background: var(--primary);

    color: var(--white);

    border-radius: 3px;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px;
}

.articles-card-body {
    display: flex;
    flex-direction: column;

    min-height: 235px;

    padding: 16px;
}

.articles-card-body h3 {
    display: -webkit-box;

    margin: 0 0 9px;

    overflow: hidden;

    color: var(--text);

    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.articles-card-excerpt {
    display: -webkit-box;

    margin: 0 0 12px;

    overflow: hidden;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.articles-card-author {
    margin-top: auto;

    padding-top: 10px;

    color: var(--text);

    font-size: 9px;
    font-weight: 700;
}

.articles-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 8px;
}

.articles-card-footer i {
    margin-right: 3px;

    color: var(--primary);
}


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

.articles-pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 38px;
}

.pagination-number,
.pagination-arrow,
.pagination-dots {
    min-width: 34px;
    height: 34px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 4px;

    background: var(--white);

    color: var(--text);

    font-size: 10px;
    font-weight: 700;
}

.pagination-number:hover,
.pagination-arrow:hover {
    border-color: var(--primary);

    background: var(--primary);

    color: var(--white);
}

.pagination-number.active {
    border-color: var(--primary);

    background: var(--primary);

    color: var(--white);
}

.pagination-arrow.disabled {
    opacity: .45;

    pointer-events: none;
}

.pagination-dots {
    border-color: transparent;

    background: transparent;

    color: var(--muted);
}


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

@media (max-width: 991px) {

    .articles-hero-content h1 {
        font-size: 39px;
    }

    .articles-page-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .articles-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .articles-search-box {
        grid-column: 1 / -1;
    }

    .articles-card-image {
        height: 190px;
    }
}


@media (max-width: 767px) {

    .articles-hero {
        min-height: 250px;
    }

    .articles-hero-content {
        padding: 42px 15px;
    }

    .articles-hero-content h1 {
        font-size: 33px;
    }

    .articles-hero-content p {
        font-size: 12px;
    }

    .articles-page-section {
        padding: 42px 0;
    }

    .articles-page-heading h2 {
        font-size: 25px;
    }

    .articles-filter-bar {
        grid-template-columns: 1fr;
    }

    .articles-search-box {
        grid-column: auto;
    }

    .articles-results-bar {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }

    .articles-card-image {
        height: 205px;
    }
}


@media (max-width: 575px) {

    .articles-hero {
        min-height: 225px;
    }

    .articles-hero-content {
        padding: 35px 12px;
    }

    .articles-hero-content h1 {
        font-size: 29px;
    }

    .articles-hero-content p {
        font-size: 11px;
    }

    .articles-page-section {
        padding: 35px 0;
    }

    .articles-card-image {
        height: 200px;
    }

    .articles-card-body {
        min-height: 220px;

        padding: 14px;
    }

    .articles-pagination {
        gap: 4px;
    }

    .pagination-number,
    .pagination-arrow {
        min-width: 31px;
        height: 31px;
    }
}