/*
 * DigitalRange Tools Hub
 */


/* -------------------------------------------------
   Main container
------------------------------------------------- */

.dr-tools-hub {
    width: 100%;
    max-width: 1200px;

    margin: 50px auto;

    padding:
        0 20px;

    box-sizing: border-box;
}


/* -------------------------------------------------
   Header
------------------------------------------------- */

.dr-tools-hub__header {
    max-width: 760px;

    margin:
        0 auto 40px;

    text-align: center;
}


.dr-tools-hub__eyebrow,
.dr-tools-section-heading__eyebrow {
    margin:
        0 0 10px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.dr-tools-hub__title {
    margin:
        0 0 16px;

    font-size: 44px;

    line-height: 1.15;
}


.dr-tools-hub__description {
    margin: 0;

    font-size: 17px;

    line-height: 1.7;
}


/* -------------------------------------------------
   Search
------------------------------------------------- */

.dr-tools-search {
    max-width: 720px;

    margin:
        0 auto 15px;
}


.dr-tools-search__label {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(
        0,
        0,
        0,
        0
    );

    white-space: nowrap;

    border: 0;
}


.dr-tools-search__wrapper {
    position: relative;
}


.dr-tools-search__icon {
    position: absolute;

    left: 18px;
    top: 50%;

    transform:
        translateY(-50%);

    font-size: 22px;

    pointer-events: none;
}


.dr-tools-search__input {
    width: 100%;

    min-height: 58px;

    padding:
        0 20px 0 52px;

    box-sizing: border-box;

    border:
        1px solid #d1d5db;

    border-radius: 14px;

    background: #ffffff;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.dr-tools-search__input:focus {
    border-color: #9ca3af;

    box-shadow:
        0 0 0 3px
        rgba(
            0,
            0,
            0,
            0.06
        );
}


.dr-tools-search-status {
    min-height: 24px;

    margin:
        0 auto 30px;

    max-width: 720px;

    text-align: center;

    font-size: 14px;
}


/* -------------------------------------------------
   Section headings
------------------------------------------------- */

.dr-tools-section-heading {
    margin-bottom: 24px;
}


.dr-tools-section-heading__title {
    margin: 0;

    font-size: 30px;

    line-height: 1.25;
}


/* -------------------------------------------------
   Featured tools
------------------------------------------------- */

.dr-tools-featured {
    margin:
        0 0 65px;
}


.dr-tools-featured-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 24px;
}


.dr-tool-featured-card {
    display: flex;

    gap: 20px;

    padding: 26px;

    border:
        1px solid #e5e7eb;

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 25px
        rgba(
            0,
            0,
            0,
            0.04
        );
}


.dr-tool-featured-card__icon {
    display: flex;

    flex:
        0 0 58px;

    width: 58px;
    height: 58px;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #f3f4f6;

    font-size: 23px;
    font-weight: 700;
}


.dr-tool-featured-card__content {
    min-width: 0;
}


.dr-tool-featured-card__title {
    margin:
        0 0 10px;

    font-size: 23px;

    line-height: 1.3;
}


.dr-tool-featured-card__title a {
    text-decoration: none;
}


.dr-tool-featured-card__description {
    margin:
        0 0 18px;

    font-size: 15px;

    line-height: 1.6;
}


/* -------------------------------------------------
   Categories
------------------------------------------------- */

.dr-tools-categories {
    margin:
        0 0 65px;
}


.dr-tools-category-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 18px;
}


.dr-tools-category-card {
    display: flex;

    position: relative;

    gap: 15px;

    padding: 21px;

    border:
        1px solid #e5e7eb;

    border-radius: 15px;

    background: #ffffff;

    color: inherit;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.dr-tools-category-card:hover {
    transform:
        translateY(-3px);

    border-color:
        #cbd5e1;

    box-shadow:
        0 10px 25px
        rgba(
            0,
            0,
            0,
            0.07
        );
}


.dr-tools-category-card__icon {
    display: flex;

    flex:
        0 0 46px;

    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #f3f4f6;

    font-size: 18px;
    font-weight: 700;
}


.dr-tools-category-card__content {
    display: flex;

    min-width: 0;

    flex-direction: column;
}


.dr-tools-category-card__name {
    margin-bottom: 6px;

    font-size: 17px;

    font-weight: 700;
}


.dr-tools-category-card__description {
    margin-bottom: 10px;

    font-size: 13px;

    line-height: 1.5;
}


.dr-tools-category-card__meta {
    font-size: 12px;

    font-weight: 600;
}


.dr-tools-category-card__arrow {
    position: absolute;

    right: 18px;
    bottom: 18px;

    font-size: 17px;

    transition:
        transform 0.2s ease;
}


.dr-tools-category-card:hover
.dr-tools-category-card__arrow {
    transform:
        translateX(4px);
}


/* -------------------------------------------------
   All tools
------------------------------------------------- */

.dr-tools-all {
    margin-bottom: 30px;
}


.dr-tools-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 24px;
}


/* -------------------------------------------------
   Individual tool card
------------------------------------------------- */

.dr-tool-card {
    display: flex;

    gap: 18px;

    padding: 25px;

    border:
        1px solid #e5e7eb;

    border-radius: 16px;

    background: #ffffff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.dr-tool-card:hover {
    transform:
        translateY(-4px);

    border-color:
        #cbd5e1;

    box-shadow:
        0 12px 30px
        rgba(
            0,
            0,
            0,
            0.08
        );
}


.dr-tool-card__icon {
    display: flex;

    flex:
        0 0 52px;

    width: 52px;
    height: 52px;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f3f4f6;

    font-size: 21px;
    font-weight: 700;
}


.dr-tool-card__content {
    min-width: 0;
}


.dr-tool-card__category {
    margin:
        0 0 5px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}


.dr-tool-card__title {
    margin:
        0 0 10px;

    font-size: 21px;

    line-height: 1.3;
}


.dr-tool-card__title a {
    text-decoration: none;
}


.dr-tool-card__description {
    margin:
        0 0 13px;

    font-size: 14px;

    line-height: 1.6;
}


.dr-tool-card__subcategory {
    display: inline-block;

    margin:
        0 0 15px;

    padding:
        4px 8px;

    border-radius: 6px;

    background: #f3f4f6;

    font-size: 11px;

    line-height: 1.2;
}


.dr-tool-card__link {
    display: inline-flex;

    gap: 7px;

    align-items: center;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;
}


.dr-tool-card__link span {
    transition:
        transform 0.2s ease;
}


.dr-tool-card:hover
.dr-tool-card__link span {
    transform:
        translateX(4px);
}


/* -------------------------------------------------
   No results
------------------------------------------------- */

.dr-tools-no-results {
    margin-top: 30px;

    padding: 40px;

    text-align: center;

    border:
        1px dashed #d1d5db;

    border-radius: 14px;
}


.dr-tools-no-results p {
    margin:
        0 0 15px;
}


.dr-tools-no-results button {
    padding:
        10px 18px;

    border:
        1px solid #d1d5db;

    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    font-size: 14px;
}


/* -------------------------------------------------
   Responsive
------------------------------------------------- */

@media (max-width: 1000px) {

    .dr-tools-category-grid,
    .dr-tools-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

}


@media (max-width: 750px) {

    .dr-tools-featured-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .dr-tools-hub {
        margin-top: 35px;
        margin-bottom: 35px;

        padding-left: 15px;
        padding-right: 15px;
    }


    .dr-tools-hub__title {
        font-size: 34px;
    }


    .dr-tools-hub__description {
        font-size: 16px;
    }


    .dr-tools-category-grid,
    .dr-tools-grid {
        grid-template-columns: 1fr;
    }


    .dr-tool-featured-card,
    .dr-tool-card {
        padding: 20px;
    }


    .dr-tools-section-heading__title {
        font-size: 27px;
    }

}