main{
    min-height: 100vh;
}

main .landing{
    background: url("/images/homeScrollerIntro.jpg");
    height: 450px;
    background-size: cover;
    background-position: center 44%;
    background-repeat: no-repeat;
    /* margin-top: min(5%,292px); */
}
main .landing .landingBack{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
    height: 450px;
    background-color: rgba(0, 0, 0, 0.24);
}
main .landing .landingText{
    color: white;
    display: flex;
    width: 50%;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}
main .landing .landingText .heading1{
    font-size: clamp(30px,5vw,45px);
    font-family: cursive;
}
main .landing .landingText .heading2{
    font-size: 18px;
    font-family: monospace;
}
main .landing .landingText form a{
    padding: 15px 25px;
    background-color: yellow;
    display: block;
    text-decoration: none;
    color: black;
    border-radius: 3px;
    border: none;
    margin-top: 25px;
    text-wrap: nowrap;
    font-size: 15px;
    cursor: pointer;
}
main .landing .landingText form a:hover{
    background-color: whitesmoke;
}
@media screen and (max-width : 750px) {
    /* main .landing .landingBack:{
        display: none;
    } */
    main .landing .landingText:nth-child(1){
        display: none;
    }
    main .landing .landingText{
        width: 100%;
    }
}
/* ****************************************************** */

main .genres{
    margin: max(2.5%,10px) 0;
    padding: 1% 10%;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(7px,5%,20px);
}
main .genres .genre{
    display: flex;
    /* padding-top: 2%; */
    /* padding-left: 2%; */
    width: 48%;
    height: clamp(0px,15vw,1000px);
    min-height: fit-content;
    transition: all 300ms;
}
main .genres .genre:hover{
    scale: 1.04 !important;
}
main .genre .genrebookBack{
    padding-top: 4%;
    padding-left: 4%;
    width: 100%;
    background-repeat: no-repeat;
    background-position: right top;
}
main .genres .genre p{
    font-size: clamp(15px,2.5vw,30px);
    color: white;
    max-width: 60%;
}
@media screen and (max-width : 620px) {
    main .genres .genre{
        display: flex;
        width: 100%;
    }
    main .genres .genre .genrebookBack{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    main .genre .genrebookBack{
        background-size: cover;
    }
}
main .genres .genre:nth-child(1){
    background: linear-gradient(45deg, #d1d8e0, #124f82);
}
main .genre:nth-child(1) .genrebookBack:nth-child(1){
    background-image: url("/images/introBg2-removebg-preview.png");
}
main .genres .genre:nth-child(2){
    background: linear-gradient(45deg, #fce690, #ae0514);
}
main .genre:nth-child(2) .genrebookBack:nth-child(1){
    background-image: url("/images/books-removebg-preview.png");
}
main .genres .genre:nth-child(3){
    background: linear-gradient(45deg, #c2dd8e, #406b09);
}
main .genre:nth-child(3) .genrebookBack:nth-child(1){
    background-image: url("/images/agriGenre.png");
    background-size: cover;
}
main .genres .genre:nth-child(4){
    background: linear-gradient(45deg, #e5b7d1, #8da4d6);
}
main .genre:nth-child(4) .genrebookBack:nth-child(1){
    background-image: url("/images/fictionalGenre.png");
    background-size: cover;
}
main .genres .genre:nth-child(5){
    background: linear-gradient(45deg, #e5e3e6, #f6993a);
}
main .genre:nth-child(5) .genrebookBack:nth-child(1){
    background-image: url("/images/artGenre.png");
    background-size: cover;
}
main .genres .genre:nth-child(6){
    background: linear-gradient(45deg, #abac88, #c9ccb7);
}
main .genre:nth-child(6) .genrebookBack:nth-child(1){
    background-image: url("/images/businessGenre.png");
    background-size: cover;
}
main .genres .genre:nth-child(7){
    background: linear-gradient(45deg, #ebd6c5, #d8cac7);
}
main .genre:nth-child(7) .genrebookBack:nth-child(1){
    background-image: url("/images/travelGenre.png");
    background-size: cover;
}
main .genres .genre:nth-child(8){
    background: linear-gradient(45deg, #2e4579, #4e91d5);
}
main .genre:nth-child(8) .genrebookBack:nth-child(1){
    background-image: url("/images/comicGenre.jpg");
    background-size: cover;
}

/* ****************************************************** */

main .homeAbout{
    margin: max(2.5%,10px) 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0% 10%;
}
main .homeAbout .heading{
    font-size: var(--font-size-subHeading2);
    color: #555555;
    font-weight: bold;
}
main .homeAbout .subheading{
    font-size: var(--font-size-subHeading);
    color: var(--green-color);
}
main .homeAbout p{
    font-size: var(--font-size-text2);
    line-height: 170%;
    color: #555555;
    text-align: justify;
}

/* ****************************************************** */

main .recentBooks{
    padding: 1% 10%;
    margin: max(2.5%,10px) 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
main .recentBooks .heading{
    font-size: var(--font-size-subHeading2);
    font-weight: bold;
    color: #555555;
    padding-bottom: 2%;
    border-bottom: 2px solid lightgray;
}
main .recentBooks .books{
    display: flex;
    gap: 20px;
    /* align-items: center; */
    justify-content: space-evenly;
    flex-wrap: wrap;
}
main .recentBooks .books .book{
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* max-width: 400px; */
    min-width: 300px;
    width: calc(50% - 10px);
    border: 1px solid lightgray;
    border-radius: 5px;
    color: #555555;
    line-height: 120%;
}
main .recentBooks .books .book img{
    margin: 0 auto;
    width: clamp(90px,15vw,230px);
    aspect-ratio: 3/4;
    object-fit: cover;
}
main .recentBooks .books .book .title{
    font-size: var(--font-size-text);
    font-weight: 600;
    color: #555555;
}
main .recentBooks .books .book .authors{
    font-size: var(--font-size-text3);
    line-height: 150%;
}

/* ****************************************************** */

main .services{
    padding: 1% 10%;
    margin: max(2.5%,10px) 0;
}
main .services .heading{
    padding-bottom: 2%;
    font-size: var(--font-size-subHeading2);
    color: #555555;
    border-bottom: 2px solid lightgray;
    margin-bottom: 10px;
    font-weight: bold;
}
main .services .service {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: max(1%,10px);
    margin: 2% 0;
    width: 100%;
    transition: all 300ms;
}
main .services .service img{
    width: 25px;
}
main .services .service .subheading{
    font-size: var(--font-size-subHeading);
    color: var(--green-color);
}
main .services .service p{
    font-size: var(--font-size-text);
    color: #555555;
    margin-top: 5px;
}

/* ****************************************************** */

main .blogs{
    padding: 1% 10%;
}
main .blogs .heading{
    padding-bottom: 2%;
    font-size: var(--font-size-subHeading2);
    color: #555555;
    border-bottom: 2px solid lightgray;
    margin-bottom: 10px;
    font-weight: bold;
}
main .blogs .blogContainer{
    display: flex;
    flex-direction: column;

}
main .blogs .blog{
    display: flex;
    gap: 30px;
    padding: 3% 0;
    border-bottom: 2px solid lightgray;
}
main .blogs .blog img{
    width: 100%;
    max-width: 200px;
    aspect-ratio: 16/9;
    object-fit: contain;
    box-shadow: 7px 11px 16px 5px lightgray;
}
main .blogs .blog .title{
    font-size: var(--font-size-subHeading);
    color: #333;
}
main a:has(.btn){
    width: 100%;
    display: flex;
    justify-content: center;
}
main .btn{
    padding: 1% 3%;
    background-color: var(--green-color);
    border: 2px solid white;
    color: white;
    border-radius: 5px;
    transition: all 300ms;
    margin: 10px auto;
    width: fit-content;
}
main .btn:hover{
    background-color: white;
    border-color: var(--green-color);
    color: var(--green-color);
}
@media screen and (max-width : 600px) {
    main .blogs .blog{
        flex-direction: column;
    }
}
/* ****************************************************** */

main .facilities{
    padding: 2% 10%;
    /* margin: 10% 0; */
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    flex-wrap: wrap;
}
main .facilities .facility{
    padding: max(1%,10px);
    display: flex;
    gap: 30px;
    border: 2px solid lightgray;
    border-radius: 5px;
    width: 100%;
    align-items: center;
    justify-content: center;
    max-width: 300px;
}
main .facilities .facility img{
    width: 25px;
}
main .facilities .facility .heading{
    font-size: calc(var(--font-size-text) + 2px);
}
main .facilities .facility .subHeading{
    font-size: var(--font-size-text2);
    color: #555555;
    line-height: 200%;
}

/* ****************************************************** */

main .testimonials{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 2% 10%;
}
main .testimonials .heading{
    text-align: center;
    padding: 2%;
    color: #333;
    border-bottom: 2px solid darkgrey;
}
main .testimonials .messages{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 100px;
    overflow: hidden;
}
main .testimonials .messages .card{
    position: relative;
    /* width: 300px; */
    width: 100%;
    min-width: max(30vw,270px);
    transform: translateX(10%);
    transition: all 500ms;
}
main .testimonials .messages .card img{
    position: relative;
    height: 25%;
    max-height: 70px;
    border-radius: 50%;
    background-color: white;
    top: 10%;
    left: -8%;
}
main .testimonials .messages .card .content{
    font-size: calc(var(--font-size-text) - 2px);
    line-height: 170%;
    /* width: 300px; */
    color: rgb(120, 119, 119);
    padding: 10% 12%;
    text-align: justify;
    border: 1px solid lightgray;
    border-top: none;
    border-bottom: none;
    border-radius: 5px;
    overflow: hidden;
    max-height: 300px;
    transition: all 200ms;
}
main .testimonials .messages .card .showing{
    max-height: 100% !important;
}
main .testimonials .messages .card .readMore{
    font-size: calc(var(--font-size-text)) !important;
    display: inline-block;
    width: 100%;
    text-align: center;
    color: var(--green-color);
    cursor: pointer;
}
main .testimonials .scrollController{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}
main .testimonials .scrollController .scrollButton{
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: grey;
    border: 3px double white;
    cursor: pointer;
    transition: all 500ms;
    outline: 2px solid white;
}
main .testimonials .scrollController .scrollButton:first-child{
    outline: 2px solid green;
    transform: scale(1.2);
    background-color: greenyellow;
}