/* =========================================================
   AeroCapital Website
   Additional Resources Stylesheet
   ---------------------------------------------------------
   Description: contains styles for the additional resources page (FULLY RESPONSIVE)
   Author: Shayan Bhatti https://github.com/Shayan-Bhatti
   ========================================================= */

#resources {
    position: relative;
    overflow: hidden;

    padding-top: 4.5rem;
    padding-bottom: 5rem;

    text-align: center;
    background-color: white;
}

#resources_tagline {
    font-size: clamp(0.5rem, 1.2vw, 1.2rem);
    font-weight: 800;
    color: #AD080C;
    margin-bottom: var(--basic_vertical_space);
}

#resources_title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4.5vw, 3.75rem);
    line-height: 1.25;
    font-weight: 800;
    color: #003852;
}

#resources_divider {
    width: 55px;
    height: 6px;
    background: #AD080C;
    margin: 1.4rem auto 2rem;
}

#resources_description {
    width: min(650px, 90%);
    margin: 0 auto;
    font-size: clamp(.95rem, 1.35vw, 1.2rem);
    line-height: 1.55;
}

#resources_cards {

    width: 91%;
    margin: 4rem auto 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.resource_card {

    position: relative;

    background: white;

    border-radius: 14px;

    overflow: hidden;

    border: 2px solid #ECECEC;

    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);

    transition: .25s;
}

.resource_card:hover {
    transform: translateY(-6px);
}

.resource_image {

    height: 235px;
    overflow: hidden;
}

.resource_image img {

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource_icon {

    position: absolute;

    top: 235px;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 74px;
    height: 74px;

    border-radius: 50%;

    background: #031D37;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.resource_icon img {

    width: 38px;
    height: 38px;
}

.resource_content {

    padding: 58px 36px 32px;

}

.resource_content h3 {

    font-size: clamp(1.15rem, 1.5vw, 1.8rem);
    font-weight: 800;
    color: #102D4B;

    min-height: 74px;
}

.resource_small_divider {

    width: 46px;
    height: 4px;

    background: #AD080C;

    margin: 1rem auto 1.7rem;
}

.resource_content p {

    font-size: clamp(.92rem, 1.1vw, 1.05rem);
    line-height: 1.55;

    color: #303030;

    min-height: 118px;

}

.resource_content a {

    display: inline-block;

    margin-top: 1rem;

    font-size: clamp(.95rem, 1.1vw, 1.05rem);

    font-weight: 800;

    color: #C41525;

    text-decoration: none;
}

.resource_content a:hover {

    text-decoration: underline;
}

@media (max-width: 1024px) {
    .resource_content span{
        display: none;
    }
} 
@media (max-width: 850px) {
    #resources_cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 2.5rem;
    }

    .resource_content {
        padding: 48px 24px 24px;
    }

    #resources_cards {
        width: 65%;
    }
}