/* General start =========================================================================*/
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    background-color: #eaeeee;
}

html {
    scroll-behavior: smooth;
}

.wrapper {
    max-width: 1700px;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;

    display: flex;
    flex-direction: column;

    order: 15px solid red;
}
/* General end ==========================================================================*/



/* when the button is clicked the color changes START ============*/
li.active {
    border: 0.1875rem solid white;
    transition: none;
    background-color: orange;
}

li.inactive {
    border: 0.1875rem solid transparent;
    transition: none;
}
/* when the button is clicked the color changes END ============*/



/* Header start ========================================================================== */
.header-books {
    min-height: 4.375rem;
    max-width: 1700px;
    width: 100%;
    position: fixed;
    top: 0;
    background-color: #eaeeee;
    background-color: #2c3143;
    padding-inline: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;

    -webkit-box-shadow: 0px 9px 5px -7px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 9px 5px -7px rgba(0, 0, 0, 0.2);

    order: 10px dotted rgb(205, 222, 18);
}

.header-logo {
    padding: 5px 20px;
    background-color: lightgray;
    overflow: hidden;

    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: rgba(0, 0, 0, 0.8);
    font-size: 35px;
    text-align: center;

    order: 5px dotted rgb(26, 201, 32);
}


.header-right {
    display: flex;
    padding: 20px;
    gap: 30px;

    order: 5px dotted darkorange;
}

.header-right .li-navigation .a {
    isplay: block;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px 20px;
 
    font-family: sans-serif;
    color: white;

    border: 2px solid rgb(140, 140, 140);
}


.nav-book {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}


/* when the button is clicked the color changes START ============*/
/* li.active {
    border: 0.1875rem solid white;
    transition: none;
    background-color: orange;
}

li.inactive {
    border: 0.1875rem solid transparent;
    transition: none;
} */
/* when the button is clicked the color changes END ============*/
/* Header end ===================================================================================================== */














/* Footer start ===================================================================================================*/
.footer {
    min-height: 9.375rem;
    color: white;
    background-color: #2c3143;
    display: flex;
    justify-content: center;
    padding: 1.25rem;
 
    order: 5px dotted white;
}

.footer-content-wrapper {
    display: flex;
    gap: 9.375rem;

    order: 5px dotted red;
}

.col {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 1.125rem;
}

.col:nth-child(1) {
    justify-content: center;
}

.col-content-wrapper>p {
    color: #53ced6;
    cursor: pointer;
    line-height: 1.4;
}

.col-content-wrapper>p:hover {
    color: white;
}

/* arrow to the top start ================================*/
.to-the-top {
    position: fixed;
    position: absolute;
    bottom: 2.25rem;
    right: 1.25rem;
    padding: 1.25rem;
    font-size: 2.5rem;
    font-weight: 700;
    rotate: -90deg;
}

.to-the-top a {
    padding: 0rem 0.5rem;
    color: gray;
    text-decoration: none;
    background-color: lightgrey;
    font-size: 2.5rem;
}
/* arrow to the top end ===================================*/
/* Footer end ===================================================================================================*/







/* Employee page start ============================================================================================== */
section.section-page-2 {
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    order: 15px dotted red;
}


.employee-section {
    display: flex;
    margin-top: 110px;
    margin-bottom: auto;

    order: solid 20px rgb(94, 141, 13);
}

.employee-wrapper {
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;

    order: 10px dotted rgb(228, 18, 172);
}

.employee-card-wrapper {
    max-width: 250px;
    width: 100%;
    min-height: 400px;
    background-color: rgba(44, 49, 67, 0.1);
    padding: 10px;

    display: flex;
    flex-direction: column;

    border: 2px solid rgb(191, 191, 191);
}

.employee-img-wrapper {
    margin-bottom: auto;

    order: 10px dotted orange;
}

.employee-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.employee-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;

    order: 5px dotted grey;
}

p.employee-text {
    margin-bottom: auto;
    overflow-y: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    margin-top: 20px;

    order: 2px solid green;
}

.employee-button {
    display: block;
    margin: 0 auto;
    border: none;
    background-color: red;
    color: white;
    padding: 10px 30px;
    cursor: pointer;
    border-radius: 5px;
}
/* employee page end ======================================================================================= */





/* Hero Home page start ========================================================================================================== */
.hero-wrapper {
    background-image: url('https://images.unsplash.com/photo-1485322551133-3a4c27a9d925?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: grid;
    place-content: center;
    text-align: center;
}

.hero-content {
    background-color: rgba(95, 54, 42, 0.8);
    padding: 1.25rem;
    border-radius: 0.6rem;
    margin-inline: 1.25rem;
    margin-top: 5rem;
}

.hero-content h1 {
    font-size: 2.5rem;
}

.hero-content {
    font-size: 1.25rem;
}

.hero-content * {
    color: white;
}

.btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.6rem 1.2rem;
    background-color: #ff5733;
    text-decoration: none;
    border-radius: 0.3rem;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #c70039;
}
/* Hero Home page end ========================================================================================================== */






/* Articles, Home page start ==========================================================================================*/
section.books-articles-section {
    width: 100%;
    padding: 20px;

    order: 5px solid orange;
}

.articles-main {
    display: flex;
    gap: 10px;

    order: 5px dotted green;
}

.article-wrapper {
    flex: 1;
    padding: 10px;
    -webkit-box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);

    order: 2px double darkcyan;
}

.main-left {
    flex: 5;
    display: flex;
    gap: 20px;
    padding: 5px;
    columns: 3;

    order: 5px dotted orange;
}

.main-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    order: 5px dotted red;
}

.good-to-know {
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
    color: saddlebrown;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;

    border: 2px solid saddlebrown;
}

.h2-headings {
    color: saddlebrown;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.right-h2 {
    color: saddlebrown;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-bottom: 20px;
    margin-top: 10px;

    order: 5px solid darkorange;
}

.right-image {
    width: 80%;
    cursor: pointer;
}
/* Articles, Home page end ==============================================================================*/





/* Books page start =======================================================================================================*/
/* Grid cards layout start =======================================================*/
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 0.7fr));
    gap: 1.25rem;
    justify-content: center;
    padding: 1.25rem;
    background-color: #eaeeee;
    margin-top: 90px;
  

    order: 10px solid blue;
}

.book {
    background-color: white;
    border-radius: 0.5rem;
    text-align: center;
    padding: 0.6rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    display: flex;
    flex-direction: column;

    order: 10px solid saddlebrown;
}

.book-page-img-wrapper {
    min-height: 300px;
    margin-bottom: auto;

    display: flex;
    align-items: flex-start;

    order: 5px double red;
}

.book img {
    width: 100%;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    order: 15px dotted rgb(163, 200, 16);
}

.book>h2 {
    font-size: 1.5rem;
    margin: 0.6rem 0;
}

.book>p {
    margin: 0.3rem 0;
    color: #555;
}
/* Grid cards layout end ========================================================*/
/* Books page end =======================================================================================================*/



/* Contact page start =================================================================================== */
.contact-page-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-page {
    background-color: #eaeeee;
    background-color: #fff;
    flex: 1;
    padding: 1.25rem;
}

.form-wrapper {
    max-width: 25rem;
    height: fit-content;
    padding: 1.25rem;
    margin-top: 8.75rem;
    margin-bottom: 3.125rem;
    margin-inline: auto;
    border-radius: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background-color: #eaeeee;
    background-color: #cccccc;

    order: 5px dotted green;
}

label {
    font-weight: 900;
    font-size: 1.125rem;
}

input[type="email"],
textarea {
    width: 100%;
    padding: 0.6rem;
    margin: 0.6rem 0rem;
    border: none;
    border-radius: 0.25rem;
}

.button-form {
    display: block;
    margin-inline: auto;
    margin-top: 0.625rem;
    background-color: #28a745;
    font-size: 1.125rem;
    color: white;
    padding: 0.6rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #088423;
}

.success-message {
    text-align: center;
    display: none;
    margin-top: 0.6rem;
    color: green;
    font-size: 1.125rem;
}
/* Contact page end ==================================================================================== */





/* Responsive start ==================================================================================*/
@media screen and (max-width: 1200px) {

    .main-left {
        flex: 4;
        columns: 1;
        flex-direction: column;
    }

    .main-right {
        flex: 2;
    }

    .header-books .header-right li a {
        display: flex;
        align-items: center;
        text-align: center;
    }

    .header-logo {
        text-align: center;
    }
}


@media screen and (max-width: 1000px) {

    .header-right {
        margin: 0 auto;
        flex-direction: column;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        padding: 0.6rem 0rem;
        gap: 0.3rem;
        width: fit-content;
        margin: 0 auto;
    }

    .div-footer-wrapper {
        padding: 1.25rem 0rem;
    }

    .header-books .header-right li {
        width: 100%;
    }

    .hero-content {
        margin-top: 270px;
    }

    .book-grid {
        margin-top: 300px;
    }

    .employee-section {
        margin-top: 320px;
    }

    .form-wrapper {
        margin-top: 350px;
    }
}


@media screen and (max-width: 850px) {

    .header-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.6rem 0rem;
    }

    .book-grid {
        margin-top: 280px;
    }
}


@media screen and (max-width: 700px) {

    .footer-content-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .articles-main {
        flex-direction: column;
    }

    .book-grid {
        margin-top: 300px;
    }
}


@media screen and (max-width: 550px) {

    .header-books {
        flex-direction: column;
    }

    .hero-content {
        margin-top: 300px;
    }

    .header-right {
        display: block;
        width: 100%;
        flex-direction: column;
    }

    .header-books .header-right li a {
        display: block;
        text-align: center;
    }

    .book-grid {
        margin-top: 320px;
    }
}
/* Responsive end ======================================================================================*/