/* ===========================
   GLOBAL
=========================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #000; color: #fff; font-family: 'Poppins', sans-serif; }


/* ===========================
   NAVBAR
=========================== */

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: gold;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}


/* ===========================
   HERO
=========================== */

#hero {
    text-align: center;
    padding: 140px 40px 100px;
    background: linear-gradient(180deg, #000, #111);
}

#hero h1 { font-size: 42px; color: #d4af37; margin-bottom: 18px; }
#hero p { font-size: 18px; color: #ccc; }


/* ===========================
   SECTIONS
=========================== */

section { 
    padding: 140px 40px; 
    max-width: 1200px; 
    margin: auto; 
}

section h2 { 
    font-size: 36px; 
    color: #d4af37; 
    margin-bottom: 30px; 
}


/* ===========================
   BOOKS GRID (Paperback + Digital)
=========================== */

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 25px;
}


/* ===========================
   BOOK CARD (Unified for ALL books)
=========================== */

.book-card {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    text-align: center;

    /* FIXED HEIGHT — this is what aligns your paperback books */
    height: 360px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* ===========================
   BOOK IMAGE
=========================== */

.book-card img {
    width: 140px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px;
    border-radius: 6px;
}


/* ===========================
   BOOK TITLE
=========================== */

.book-card h3 {
    font-size: 16px;

    /* FIXED TITLE HEIGHT — prevents long titles from breaking alignment */
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* ===========================
   BUTTON (Unified)
=========================== */

.book-card .btn,
.btn {
    padding: 10px 20px;
    background: #d4af37;
    color: #000;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}


/* ===========================
   FOOTER
=========================== */

footer {
    background: #000;
    padding: 40px;
    text-align: center;
    color: #ccc;
}


/* ===========================
   MOBILE MENU
=========================== */

@media (max-width: 900px) {

    .nav-links {
        display: none;
        flex-direction: column;
        background: #000;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        padding: 20px;
        border-top: 1px solid #222;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}
