@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Roboto:ital,wght@0,100;0,300;1,700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.home-container {
    width: 100%;
    font-family: 'Lato',  sans-serif;
}

.header-container {
    width: 100%;
    display: grid;
    align-items: center;
    padding: 40px 120px 20px;
    position: relative;
}

.home-container-heading {
    font-weight: 700;
    font-size: 2.2rem;
    color: #171717;
    justify-self: center !important;
}

/* select menu */
.select-menu {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    position: absolute;
    bottom: -90px;
    right: 120px;
}
.select-menu .select-btn{
    display: flex;
    height: 50px;
    background: #fff;
    padding: 20px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 8px;
    border: 2px solid #3A9CE9;
    align-items: center;
    cursor: pointer;
    justify-content: space-between;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.select-btn i{
    font-size: 25px;
    transition: 0.3s;
}

.select-menu.active .select-btn i{
    transform: rotate(-180deg);
}
.select-menu .options{
    position: absolute;
    width: 320px;
    padding: 7px;
    margin-top: 10px;
    border-radius: 8px;
    border: 2px solid #3A9CE9;
    background: #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
    display: none;
}
.select-menu.active .options{
    display: block;
}
.options .option{
    display: flex;
    height: 50px;
    cursor: pointer;
    padding: 0 16px;
    border-radius: 8px;
    align-items: center;
    background: #fff;
}
.options .option:hover{
    background: #F2F2F2;
}
.option .option-text{
    font-size: 16px;
    color: #333;
}
/* select ends */

.webinar-container {
    padding: 40px 120px 40px;
    width: 100%;
}

.webinar-card-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, calc(25% - 15px));
    grid-gap: 20px;
    grid-row-gap: 40px;
}

.webinar-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.webinar-img-p-cont {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.webinar-card img {
    width: 100%;
    height: 164px;
    object-fit: contain;
}

.webinar-card p {
    min-height: 45px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: initial;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    font-weight: 600;
    font-size: 1rem;
    line-height: 24px;
    color: #171717;
    margin-top: 14px;
}

.whitepaper-container {
    padding: 40px 120px 60px;
    width: 100%;
}

.section-heading {
    font-weight: 700;
    font-size: 2rem;
    line-height: 3rem;
    color: #171717;
    margin-bottom: 20px;
}

.whitepaper-card-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, calc(25% - 15px));
    grid-gap: 20px;
}

.whitepaper-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.whitepaper-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 6px;
}

.whitepaper-card p {
    font-weight: 600;
    font-size: 1rem;
    line-height: 24px;
    color: #171717;
    margin-top: 14px;
    margin-bottom: 14px;
}

.img-title-cont {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-style {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #3A9CE9;
    border-radius: 8px;
    border: none;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    margin-top: 14px;
    text-align: center;
    text-decoration: none;
}

.load-more-webinar, .load-more-whitepaper {
    display: block;
    width: 150px;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #3A9CE9;
    color: #3A9CE9;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    margin: 40px auto 0;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.load-more-webinar:hover, .load-more-whitepaper:hover {
    color: #fff;
    background: #3A9CE9;
    transition: all 0.3s;
}

.load-more-webinar i, .load-more-whitepaper i {
    margin-bottom: -1.5px;
    vertical-align: middle;
    margin-left: 7px;
}

@media only screen and (max-width: 1450px) {

    .header-container {
        padding: 24px 80px 20px;
    }

    .select-menu {
        right: 80px;
    }

    .webinar-container {
        padding: 40px 80px 40px;
    }

    .whitepaper-container {
        padding: 40px 80px 60px;
    }
}

@media only screen and (max-width: 990px) {

    .webinar-card-container {
        grid-template-columns: repeat(3, 33%);
    }

    .whitepaper-card-container {
        grid-template-columns: repeat(3, 33%);
    }
}

@media only screen and (max-width: 750px) {

    .header-container {
        padding: 24px 1rem 0;
    }


    .home-container-heading {
        font-size: 1.8rem;
        margin: 1.5rem auto 0;
    }

    .select-menu {
        max-width: 250px;
        position: relative; 
        top: 0;      
        right: 0;
        left: 0;
        bottom: 0;
        margin-top: 20px;
    }

    .select-menu .options{
        width: 100%;
    }
    
    .webinar-container {
        padding: 20px 1rem 40px;
    }

    .whitepaper-container {
        padding: 20px 1rem 40px;
    }

    .section-heading {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 10px;
    }

    .webinar-card-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .whitepaper-card-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .webinar-card p {
        line-height: 22px;
        margin-top: 10px;
    }

    .whitepaper-card p { 
        font-size: 1rem;
        line-height: 22px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .btn-style {
        padding: 0.7rem;
    }
}
