/* =========================================
   EDRANT PHARMACEUTICALS - BLOG PAGE
   Brand colours:
   Plum  : #050F2C
   Green : #00865a
========================================= */

.aneesmith-blog-page {
    --blog-plum: #050F2C;
    --blog-green: #00865a;
    --blog-text: #443b43;
    --blog-muted: #777078;
    --blog-border: #eee6eb;
    --blog-light: #faf8f9;

    color: var(--blog-text);
    background: #fff;
    font-size: 15px;
    line-height: 1.7;
}

.aneesmith-blog-page *,
.aneesmith-blog-page *::before,
.aneesmith-blog-page *::after {
    box-sizing: border-box;
}

.aneesmith-blog-page [hidden] {
    display: none !important;
}

.blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 22px;
    padding-left: 22px;
}

/* Hero */

.blog-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        115deg,
        #050F2C 0%,
        #050F2C 58%,
        #5c7b68 100%
    );
    color: #fff;
}

.blog-hero-inner {
    min-height: 355px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
    align-items: center;
    gap: 30px;
    padding-top: 45px;
    padding-bottom: 45px;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
}

.blog-eyebrow,
.blog-section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.blog-eyebrow {
    color: #c7e8d8;
}

.blog-hero-content h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: -.8px;
}

.blog-hero-content h1 span {
    display: block;
    color: #bde6d1;
}

.blog-hero-content > p {
    max-width: 590px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.9;
}

.blog-primary-btn {
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 22px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #fff;
    color: var(--blog-plum);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: .2s ease;
}

.blog-primary-btn:hover {
    border-color: #bde6d1;
    background: #bde6d1;
    color: var(--blog-plum);
}

/* Hero illustration */

.blog-hero-visual {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-circle {
    position: absolute;
    width: 235px;
    height: 235px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    box-shadow:
        0 0 0 25px rgba(255, 255, 255, .035),
        0 0 0 50px rgba(255, 255, 255, .025);
}

.blog-hero-symbol {
    position: relative;
    z-index: 1;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: rotate(-24deg);
}

.blog-capsule {
    width: 43px;
    height: 110px;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 30px;
    background: linear-gradient(
        to bottom,
        #c5e8d5 0%,
        #c5e8d5 49%,
        #fff 50%,
        #fff 100%
    );
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.blog-capsule-two {
    height: 135px;
    transform: translateY(-13px) rotate(24deg);
}

.blog-capsule-three {
    height: 90px;
    transform: translateY(14px) rotate(45deg);
}

.blog-hero-note {
    position: absolute;
    right: 0;
    bottom: 3px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 12px;
    font-weight: 650;
}

.blog-note-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bde6d1;
}

/* Section headings */

.blog-featured-section {
    padding-top: 58px;
}

.blog-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.blog-section-kicker {
    margin-bottom: 4px;
    color: var(--blog-green);
}

.blog-section-heading h2 {
    margin: 0;
    color: var(--blog-plum);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 750;
    line-height: 1.3;
}

.blog-latest-heading {
    margin-bottom: 24px;
}

.blog-latest-heading p {
    margin: 8px 0 0;
    color: var(--blog-muted);
    font-size: 14px;
}

/* Featured article */

.blog-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(70, 48, 62, .055);
}

.blog-featured-image,
.blog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f2ebf0;
    text-decoration: none;
}

.blog-featured-image {
    min-height: 320px;
}

.blog-featured-image img,
.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-featured-image:hover img,
.blog-card-image:hover img {
    transform: scale(1.04);
}

.blog-image-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    background: linear-gradient(140deg, #f5edf2, #e9f5ef);
    color: var(--blog-plum);
    text-align: center;
}

.blog-image-placeholder span {
    color: var(--blog-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
}

.blog-image-placeholder strong {
    font-size: 21px;
}

.blog-image-label {
    position: absolute;
    top: 17px;
    left: 17px;
    padding: 7px 12px;
    border-radius: 4px;
    background: var(--blog-green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.blog-featured-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 35px;
}

.blog-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px 11px;
    border-radius: 30px;
    background: #eaf5ef;
    color: var(--blog-green);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.5;
}

.blog-featured-content h3 {
    margin: 0 0 15px;
    color: var(--blog-plum);
    font-size: clamp(22px, 2.5vw, 29px);
    font-weight: 750;
    line-height: 1.4;
}

.blog-featured-content h3 a,
.blog-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-featured-content h3 a:hover,
.blog-card-content h3 a:hover {
    color: var(--blog-green);
}

.blog-featured-content > p,
.blog-card-content > p {
    margin: 0 0 18px;
    color: var(--blog-muted);
    font-size: 14px;
    line-height: 1.85;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--blog-muted);
    font-size: 12px;
}

.blog-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blog-green);
}

.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
    color: var(--blog-green);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.blog-read-link span {
    transition: transform .2s ease;
}

.blog-read-link:hover {
    color: var(--blog-plum);
}

.blog-read-link:hover span {
    transform: translateX(4px);
}

/* Latest articles */

.blog-latest-section {
    padding-top: 65px;
    padding-bottom: 60px;
}

.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.blog-search {
    display: flex;
    width: min(100%, 430px);
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #e7dfe4;
    border-radius: 7px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.blog-search:focus-within {
    border-color: var(--blog-green);
    box-shadow: 0 0 0 3px rgba(0, 134, 90, .08);
}

.blog-search > span {
    color: var(--blog-green);
    font-size: 25px;
    line-height: 1;
}

.blog-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--blog-text);
    font: inherit;
    font-size: 14px;
}

.blog-search input::placeholder {
    color: #9a9298;
}

.blog-search button {
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--blog-green);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.blog-results-count {
    color: var(--blog-muted);
    font-size: 13px;
    white-space: nowrap;
}

.blog-results-count span {
    color: var(--blog-plum);
    font-weight: 800;
}

/* Category filter buttons */

.blog-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
}

.blog-filter-btn {
    min-height: 39px;
    padding: 8px 15px;
    border: 1px solid #e7dfe4;
    border-radius: 30px;
    background: #fff;
    color: var(--blog-plum);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: .2s ease;
}

.blog-filter-btn:hover {
    border-color: var(--blog-green);
    color: var(--blog-green);
}

.blog-filter-btn.is-active {
    border-color: var(--blog-plum);
    background: var(--blog-plum);
    color: #fff;
}

/* Blog grid and cards */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.blog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(70, 48, 62, .035);
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(70, 48, 62, .09);
}

.blog-card-image {
    height: 205px;
    flex-shrink: 0;
}

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
}

.blog-card-content .blog-category {
    margin-bottom: 12px;
}

.blog-card-content h3 {
    margin: 0 0 12px;
    color: var(--blog-plum);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.5;
}

.blog-card-content > p {
    flex: 1;
    margin-bottom: 18px;
    font-size: 13px;
}

.blog-card-content .blog-read-link {
    margin-top: 20px;
}

/* Empty search state */

.blog-no-results {
    padding: 55px 20px;
    border: 1px dashed #d9cbd3;
    border-radius: 10px;
    background: var(--blog-light);
    text-align: center;
}

.blog-no-results-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf5ef;
    color: var(--blog-green);
    font-size: 28px;
}

.blog-no-results h3 {
    margin: 14px 0 6px;
    color: var(--blog-plum);
    font-size: 22px;
}

.blog-no-results p {
    margin: 0 0 18px;
    color: var(--blog-muted);
    font-size: 14px;
}

.blog-no-results button {
    padding: 10px 18px;
    border: 0;
    border-radius: 5px;
    background: var(--blog-green);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.blog-no-results button:hover {
    background: var(--blog-plum);
}

/* Business CTA */

.blog-business-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 65px;
    padding: 35px 38px;
    border-radius: 12px;
    background: linear-gradient(110deg, #050F2C, #596f60);
    color: #fff;
}

.blog-cta-content > span {
    display: inline-block;
    margin-bottom: 8px;
    color: #c6e7d5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.blog-cta-content h2 {
    margin: 0 0 9px;
    color: #fff;
    font-size: clamp(22px, 2.7vw, 29px);
    font-weight: 750;
    line-height: 1.4;
}

.blog-cta-content p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
}

.blog-cta-btn {
    display: inline-flex;
    min-height: 46px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 19px;
    border-radius: 6px;
    background: #fff;
    color: var(--blog-plum);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: .2s ease;
}

.blog-cta-btn:hover {
    background: #c6e7d5;
    color: var(--blog-plum);
}

/* Responsive */

@media (max-width: 1000px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-featured-content {
        padding: 25px;
    }

    .blog-hero-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(200px, .8fr);
    }
}

@media (max-width: 700px) {
    .blog-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .blog-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 55px;
        padding-bottom: 35px;
    }

    .blog-hero-content h1 {
        font-size: 36px;
    }

    .blog-hero-visual {
        min-height: 185px;
    }

    .blog-hero-circle {
        width: 155px;
        height: 155px;
    }

    .blog-hero-symbol {
        transform: scale(.78) rotate(-24deg);
    }

    .blog-hero-note {
        right: 5px;
        bottom: 0;
    }

    .blog-featured-section {
        padding-top: 40px;
    }

    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        min-height: 220px;
        height: 230px;
    }

    .blog-featured-content {
        padding: 23px;
    }

    .blog-featured-content h3 {
        font-size: 23px;
    }

    .blog-latest-section {
        padding-top: 45px;
        padding-bottom: 40px;
    }

    .blog-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .blog-search {
        width: 100%;
    }

    .blog-results-count {
        align-self: flex-end;
    }

    .blog-category-filters {
        gap: 7px;
    }

    .blog-filter-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-image {
        height: 220px;
    }

    .blog-card-content {
        padding: 21px;
    }

    .blog-business-cta {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 40px;
        padding: 26px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aneesmith-blog-page *,
    .aneesmith-blog-page *::before,
    .aneesmith-blog-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}