/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PT Serif", serif;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #111;
    color: white;
}

/* HERO */
#heroSection {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

#navbar {
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid #b4b4b4;
    transition: transform 0.3s ease;
    flex-wrap: nowrap;
}

#left {
    font-size: 1.1rem;
    font-weight: normal;
    cursor: pointer;
    transition: 0.3s;
    color: black;
    text-decoration: none;
}

#left img {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
}

#right {
    display: flex;
    gap: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: black;
}

#right div,
#right a {
    color: black;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

#heroSection {
    padding-top: 80px;
}

#heroImage {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 40px 80px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.aboutWords {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.aboutWords p {
    font-size: 1.4rem;
    text-decoration: none;
    line-height: 1.7;
    color: black;
    font-weight: normal;
}

.profilePicture {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profilePicture img {
    width: 100%;
    max-width: 350px;
    height: 500px;
    object-fit: cover;
    border-radius: 0%;
}

/* BOOKS */
#books {
    min-height: 100vh;
    width: 100%;
    padding: 120px 40px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#booksSectionTitle {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: #787878;
    letter-spacing: -1px;
    text-transform: uppercase;
}

#booksList {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.bookCard {
    width: 320px;
    background-color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.bookCover {
    width: 100%;
    height: 340px;
    overflow: hidden;
    background-color: #eee;
}

.bookCover img {
    width: 100%;
    height: 140%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bookCard:hover .bookCover img {
    transform: scale(1.04);
}

.bookTitle {
    padding: 20px 20px 10px;
}

.bookTitle h5 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.bookAbout {
    padding: 0 20px 20px;
    flex: 1;
}

.bookAbout p {
    color: black;
    line-height: 1.6;
    font-size: 0.92rem;
}

.bookShop {
    padding: 20px;
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bookShop a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 10px 6px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    color: #444;
    background-color: white;
    transition: all 0.2s ease;
}

.bookShop a:first-child {
    flex: 1 1 100%;
    background-color: #111;
    color: white;
    border-color: #111;
}

.bookShop a:hover {
    border-color: #111;
    color: #111;
    background-color: #616161;
}

.bookShop a:first-child:hover {
    background-color: #616161;
    border-color: #111;
    color: #111;
}

/* BLOG */
#blog {
    min-height: 100vh;
    width: 100%;
    padding: 100px 80px;
    background-color: #787878;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#blogSectionTitle {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 60px;
    color: white;
    text-transform: uppercase;
}

#blogList {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.blogCard {
    width: 320px;
    background-color: #1c1c1c;
    /* border-radius: 18px; */
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.blogCard img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blogContent {
    padding: 20px;
}

.blogContent h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
}

.blogContent p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.blogContent button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #616161;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Blog Display Rules */
.hidden {
    display: none !important;
}

#blog-single-view {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

#backToHomeBtn {
    background: #222;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'PT Serif', serif;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.2s ease;
}

#backToHomeBtn:hover {
    background: #555;
}

.full-article-content img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.full-article-content h1 {
    font-family: 'PT Serif', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.full-article-content #post-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}


/* CONTACT */
#contact {
    min-height: calc(100vh - 85px);
    width: 100%;
    padding: 100px 80px;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
}

#contactSectionTitle {
    font-size: 1.6rem;
    font-weight: bold;
    color: #787878;
    margin-bottom: 60px;
    text-transform: uppercase;
}

#contactContainer {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

#contactLeft {
    flex: 1;
    min-width: 300px;
}

#contactLeft h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #111;
}

#contactLeft p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.contactInfo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    color: #333;
}

.contactInfo strong {
    margin-bottom: 5px;
}

#contactRight {
    flex: 1;
    min-width: 320px;
}

#contactRight form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contactRight input,
#contactRight textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}

#contactRight textarea {
    height: 180px;
    resize: none;
}

#contactRight button {
    width: fit-content;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    background-color: #616161;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#contactRight button:hover {
    background-color: #787878;
    color: white;
}

/* FOOTER */
#footer {
    height: 85px;
    width: 100%;
    padding: 20px 40px;
    background: #787878;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#copyright {
    color: white;
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: 0.3s;
}

/* HIDE MENU TOGGLE ON DESKTOP */
#menuToggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    color: black;
}

/* FOR TABLETS */
@media (max-width: 1024px) {

    #heroImage {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .aboutWords {
        text-align: center;
    }

    #books {
        padding: 80px 20px;
    }

    #blog {
        padding: 80px 20px;
    }

    #contact {
        padding: 80px 20px;
    }
}

/* MAIN MOBILE */
@media (max-width: 768px) {

    #navbar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0 20px;
        height: 70px;
    }

    #left {
        display: flex;
        align-items: center;
    }

    #left img {
        height: 60px;
    }

    #menuToggle {
        display: block !important;
        font-size: 1.9rem;
        cursor: pointer;
        margin-left: auto;
        z-index: 9999;
    }

    #right {
        position: fixed;
        top: 70px;
        right: 0;
        width: 200px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 20px;
        transform: translateX(100%);
        transition: 0.3s ease;
        z-index: 999;
    }

    #right.show {
        transform: translateX(0);
    }

    #heroImage {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }

    .aboutWords p {
        font-size: 1.1rem;
        text-align: center;
    }

    .profilePicture img {
        height: auto;
        max-width: 280px;
    }

    #booksList {
        flex-direction: column;
        align-items: center;
    }

    .bookCard {
        width: 100%;
        max-width: 340px;
    }

    #blogList {
        flex-direction: column;
        align-items: center;
    }

    .blogCard {
        width: 100%;
        max-width: 340px;
    }

    #contactContainer {
        flex-direction: column;
    }

    #contactSectionTitle {
        font-size: 2rem;
        text-align: center;
    }

    #footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .socials {
        justify-content: center;
    }
}

/* VERY SMALL PHONES */
@media (max-width: 480px) {

    #menuToggle {
        display: block !important;
        font-size: 0.8rem;
        cursor: pointer;
        margin-left: auto;
        z-index: 9999;
    }

    #heroSection {
        height: auto;
        padding-top: 90px;
    }

    #heroImage {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }

    .aboutWords p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
    }

    .profilePicture img {
        width: 100%;
        max-width: 220px;
        height: auto;
    }

    #booksSectionTitle {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 25px;
    }

    #books {
        padding: 60px 15px;
    }

    .bookCard {
        width: 100%;
        max-width: 300px;
    }

    #blog {
        padding: 60px 15px;
    }

    #blogSectionTitle {
        font-size: 1.2rem;
    }

    .blogCard {
        width: 100%;
        max-width: 300px;
    }

    .blogContent h2 {
        font-size: 0.8rem;
    }

    #contactContainer {
        flex-direction: column;
        width: 100%;
    }

    #contactLeft,
    #contactRight {
        width: 100%;
        min-width: unset;
    }

    #contactRight form {
        width: 100%;
    }

    #contactRight input,
    #contactRight textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    #copyright {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .socials {
        display: flex;
        justify-content: center;
        gap: 25px;
        flex-wrap: nowrap;
    }

    .socials a {
        font-size: 1.4rem;
    }
}