/* =========================================================
   BIOSPG DOCUMENTATION
========================================================= */

.biospg-docs-page {
    background: #f6f8f3;
    color: #333;
}


/* =========================================================
   HERO
========================================================= */

.docs-hero {
    position: relative;

    min-height: 480px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            120deg,
            #1d5429,
            #4d873f
        );

    overflow: hidden;
}

.docs-hero:after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -150px;
    top: -180px;

    border-radius: 50%;

    background: rgba(255,255,255,.06);
}

.docs-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(255,255,255,.12),
            transparent 40%
        );
}

.docs-hero-content {
    position: relative;

    z-index: 2;

    max-width: 800px;

    padding: 65px 0;

    color: #fff;
}

.docs-breadcrumb {
    margin-bottom: 30px;

    font-size: 13px;
}

.docs-breadcrumb a {
    color: rgba(255,255,255,.75);

    text-decoration: none;
}

.docs-breadcrumb span {
    margin: 0 7px;

    color: rgba(255,255,255,.55);
}

.docs-hero-label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 14px;

    border: 1px solid rgba(255,255,255,.25);

    background: rgba(255,255,255,.1);

    border-radius: 30px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;
}

.docs-hero h1 {
    color: #fff;

    font-size: 52px;

    line-height: 1.15;

    margin: 18px 0;
}

.docs-hero h1 strong {
    color: #b9df91;
}

.docs-hero p {
    max-width: 700px;

    color: rgba(255,255,255,.86);

    font-size: 17px;

    line-height: 1.75;

    margin-bottom: 28px;
}

.docs-hero-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.docs-btn-primary,
.docs-btn-secondary {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 13px 20px;

    border-radius: 5px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;
}

.docs-btn-primary {
    background: #fff;

    color: #356c38;
}

.docs-btn-secondary {
    border: 1px solid rgba(255,255,255,.35);

    color: #fff;
}


/* =========================================================
   STATS
========================================================= */

.docs-stats {
    position: relative;

    margin-top: -45px;

    z-index: 5;
}

.docs-stats-wrapper {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 10px 35px rgba(0,0,0,.08);
}

.docs-stat {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 25px;

    border-right: 1px solid #eee;
}

.docs-stat:last-child {
    border-right: none;
}

.docs-stat-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf6e9;

    color: #579344;

    font-size: 18px;
}

.docs-stat strong {
    display: block;

    font-size: 20px;
}

.docs-stat span {
    color: #888;

    font-size: 12px;
}


/* =========================================================
   SEARCH
========================================================= */

.docs-search-section {
    padding: 70px 0 35px;
}

.docs-search-box {
    padding: 30px;

    background: #fff;

    border-radius: 12px;

    box-shadow:
        0 5px 25px rgba(0,0,0,.04);
}

.docs-search-title span,
.docs-section-heading span {
    display: block;

    color: #579344;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.docs-search-title h2 {
    font-size: 25px;

    margin: 5px 0 25px;
}

.docs-search-form {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr auto;

    gap: 10px;
}

.docs-search-input {
    position: relative;
}

.docs-search-input i {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #999;
}

.docs-search-input input,
.docs-search-form select {
    width: 100%;

    height: 48px;

    border: 1px solid #e2e2e2;

    border-radius: 5px;

    padding: 0 15px;

    font-size: 13px;

    outline: none;
}

.docs-search-input input {
    padding-left: 42px;
}

.docs-search-form button {
    height: 48px;

    padding: 0 20px;

    border: none;

    border-radius: 5px;

    background: #579344;

    color: #fff;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   SECTION
========================================================= */

.docs-featured,
.docs-categories,
.docs-all {
    padding: 40px 0;
}

.docs-section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 25px;
}

.docs-section-heading h2 {
    margin: 5px 0 0;

    font-size: 30px;
}

.docs-section-heading > a {
    color: #579344;

    font-size: 13px;

    text-decoration: none;
}


/* =========================================================
   FEATURED
========================================================= */

.featured-documents {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.featured-document {
    background: #fff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0,0,0,.04);
}

.featured-document-cover {
    height: 150px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #dfeedd;

    position: relative;
}

.featured-document-cover.green {
    background: #d8ead6;
}

.featured-document-cover.orange {
    background: #f3e7d7;
}

.featured-document-cover > span {
    position: absolute;

    top: 12px;
    left: 12px;

    font-size: 10px;

    font-weight: 700;

    color: #579344;
}

.document-file-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #fff;

    border-radius: 10px;

    color: #579344;

    font-size: 28px;

    box-shadow:
        0 5px 15px rgba(0,0,0,.08);
}

.document-file-icon.pdf {
    color: #c54a42;
}

.featured-document-content {
    padding: 22px;
}

.featured-document-content small {
    color: #999;

    font-size: 10px;

    font-weight: 700;
}

.featured-document-content h3 {
    font-size: 18px;

    line-height: 1.4;

    margin: 8px 0;
}

.featured-document-content p {
    color: #777;

    font-size: 13px;

    line-height: 1.7;

    min-height: 65px;
}

.document-meta {
    display: flex;

    gap: 15px;

    color: #999;

    font-size: 11px;

    border-top: 1px solid #eee;

    padding-top: 12px;
}

.document-actions {
    display: flex;

    gap: 8px;

    margin-top: 15px;
}

.btn-read {
    flex: 1;

    text-align: center;

    padding: 10px;

    border-radius: 4px;

    background: #579344;

    color: #fff;

    text-decoration: none;

    font-size: 12px;
}

.btn-download {
    width: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #ddd;

    border-radius: 4px;

    color: #579344;

    text-decoration: none;
}


/* =========================================================
   CATEGORIES
========================================================= */

.docs-categories {
    background: #fff;
}

.docs-section-heading.center {
    justify-content: center;

    text-align: center;
}

.categories-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.documentation-category {
    display: flex;

    gap: 15px;

    padding: 25px;

    background: #f8faf6;

    border: 1px solid #edf0eb;

    border-radius: 10px;

    text-decoration: none;

    transition: .3s;
}

.documentation-category:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.07);
}

.category-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e8f3e4;

    color: #579344;

    border-radius: 10px;

    font-size: 20px;
}

.documentation-category h3 {
    color: #333;

    font-size: 16px;

    margin: 0 0 6px;
}

.documentation-category p {
    color: #777;

    font-size: 12px;

    line-height: 1.6;

    margin: 0 0 10px;
}

.documentation-category strong {
    color: #579344;

    font-size: 11px;
}


/* =========================================================
   DOCUMENT LIST
========================================================= */

.document-list {
    background: #fff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 5px 25px rgba(0,0,0,.04);
}

.document-list-item {
    display: grid;

    grid-template-columns:
        55px 1fr 60px 130px;

    gap: 20px;

    align-items: center;

    padding: 20px;

    border-bottom: 1px solid #eee;
}

.document-list-item:last-child {
    border-bottom: none;
}

.list-document-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #edf6e9;

    color: #579344;

    font-size: 22px;
}

.list-document-icon.pdf {
    color: #c54a42;

    background: #faeaea;
}

.list-document-info > span {
    color: #579344;

    font-size: 9px;

    font-weight: 700;
}

.list-document-info h3 {
    font-size: 16px;

    margin: 4px 0;
}

.list-document-info p {
    color: #888;

    font-size: 12px;

    margin: 0;
}

.list-document-type {
    color: #999;

    font-size: 11px;

    font-weight: 700;
}

.list-document-action {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px;

    border: 1px solid #579344;

    border-radius: 4px;

    color: #579344;

    font-size: 11px;

    text-decoration: none;
}

.list-document-action:hover {
    background: #579344;

    color: #fff;
}


/* =========================================================
   CTA
========================================================= */

.docs-cta {
    padding: 45px 0;

    background:
        linear-gradient(
            100deg,
            #286534,
            #619348
        );
}

.docs-cta-content {
    display: flex;

    align-items: center;

    gap: 20px;

    color: #fff;
}

.docs-cta-icon {
    width: 60px;
    height: 60px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.15);

    border-radius: 50%;

    font-size: 25px;
}

.docs-cta-content > div:nth-child(2) {
    flex: 1;
}

.docs-cta-content span {
    color: rgba(255,255,255,.7);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}

.docs-cta-content h2 {
    color: #fff;

    font-size: 23px;

    margin: 4px 0;
}

.docs-cta-content p {
    color: rgba(255,255,255,.8);

    font-size: 13px;

    margin: 0;
}

.docs-cta-content > a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 13px 20px;

    background: #fff;

    color: #579344;

    border-radius: 5px;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .docs-stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .docs-stat:nth-child(2) {
        border-right: none;
    }

    .docs-stat:nth-child(3),
    .docs-stat:nth-child(4) {
        border-top: 1px solid #eee;
    }

    .docs-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .featured-documents {
        grid-template-columns: 1fr 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 767px) {

    .docs-hero h1 {
        font-size: 38px;
    }

    .docs-hero p {
        font-size: 15px;
    }

    .docs-stats-wrapper {
        grid-template-columns: 1fr;
    }

    .docs-stat {
        border-right: none !important;
        border-bottom: 1px solid #eee;
    }

    .docs-stat:last-child {
        border-bottom: none;
    }

    .docs-search-form {
        grid-template-columns: 1fr;
    }

    .featured-documents {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .document-list-item {
        grid-template-columns: 50px 1fr;
    }

    .list-document-type {
        display: none;
    }

    .list-document-action {
        grid-column: 2;
        justify-self: start;
    }

    .docs-cta-content {
        display: block;
    }

    .docs-cta-icon {
        margin-bottom: 15px;
    }

    .docs-cta-content > a {
        display: inline-flex;

        margin-top: 20px;
    }

}