/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    background:#f7f5f0;
    color:#1a1a1a;

    font-family:'Source Sans 3', sans-serif;

    overflow-x:hidden;
}

/* =========================
   PAGE
========================= */

.page-wrapper{

    width:94%;
    max-width:1600px;

    margin:auto;
}

/* =========================
   NAVBAR
========================= */

.navbar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:30px 0;

    position:relative;
    z-index:100;
}

.logo{

    display:flex;
    align-items:center;

    gap:14px;

    font-size:34px;

    font-weight:700;

    font-family:'Playfair Display', serif;

    color:#1d1d1d;
}

.logo span{

    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#b89c64;

    color:#fff;

    border-radius:50%;

    font-size:22px;

    font-family:'Playfair Display', serif;
}

nav{

    display:flex;
    gap:45px;
}

nav a{

    text-decoration:none;
    color:#222;

    font-size:19px;
    font-weight:500;

    transition:0.3s;
}

nav a:hover{

    color:#b68b3c;
}

/* =========================
   HERO SECTION
========================= */

.hero{

    position:relative;

    margin-bottom:110px;

    overflow:hidden;

    border-radius:24px;
}

/* Banner */

.hero-banner{

    width:100%;
    height:760px;

    object-fit:cover;
    object-position:center center;

    display:block;

    border-radius:24px;

    transform:scale(1.01);
}

/* Cinematic Overlay */

.hero-overlay{

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        90deg,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.58) 30%,
        rgba(0,0,0,0.18) 58%,
        rgba(0,0,0,0.03) 100%
    );

    border-radius:24px;
}

/* =========================
   HERO TEXT
========================= */

.hero-content{

    position:absolute;

    right:90px;
    top:48%;

    transform:translateY(-50%);

    max-width:760px;

    z-index:10;

    text-align:right;
}

/* Small Intro */

.hero-subtitle{

    color:#d8c6a5;

    font-size:20px;

    letter-spacing:2px;

    margin-bottom:25px;

    text-transform:uppercase;
}

/* Main Heading */

.hero-title{

    font-family:'Playfair Display', serif;

    font-size:74px;

    line-height:1.08;

    color:#f7e8c7;

    margin-bottom:28px;

    font-weight:700;

    position:relative;

    z-index:5;

    max-width:720px;

    text-shadow:
    0 4px 20px rgba(0,0,0,0.45);
}

/* Divider */

.hero-divider{

    width:240px;
    height:2px;

    background:#c7a96b;

    margin-bottom:35px;

    position:relative;
}

.hero-divider::after{

    content:"✦";

    position:absolute;

    top:-14px;
    left:50%;

    transform:translateX(-50%);

    color:#d5b06d;

    background:transparent;

    font-size:24px;
}

/* Description */

.hero-description{

    font-size:24px;

    line-height:1.7;

    color:#f3efe7;

    max-width:580px;

    text-shadow:
    0 2px 12px rgba(0,0,0,0.35);
}



/* =========================
   SEARCH
========================= */

.search-section{

    display:flex;

    justify-content:center;

    gap:15px;

    margin-bottom:70px;
}

.search-section input{

    width:650px;

    padding:18px 22px;

    border:1px solid #ddd;

    border-radius:12px;

    font-size:18px;

    background:#fff;
}

.search-section input:focus{

    outline:none;

    border-color:#b89c64;
}

.search-section button{

    background:#b7ad87;

    color:#fff;

    border:none;

    padding:18px 30px;

    border-radius:12px;

    cursor:pointer;

    font-size:17px;
    font-weight:600;

    transition:0.3s;
}

.search-section button:hover{

    background:#9d9067;
}

/* =========================
   BOOK SECTION
========================= */

.books-section{

    display:grid;

    grid-template-columns:240px 1fr;

    gap:50px;

    margin-bottom:120px;
}
/* =========================
   BOOK WRAPPER
========================= */

.books-wrapper{

    background:#f9f7f2;

    padding:80px 60px;

    border-radius:28px;

    margin-bottom:120px;
}

/* BOOK AWARDS */

.book-award{

    margin-top:16px;

    font-size:14px;

    line-height:1.7;

    color:#8a6b2f;

    font-weight:600;
}

/* FEATURED BOOKS */

.featured-grid{

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:40px;
}

/* FEATURED CARD */

.featured-book{

    border:2px solid rgba(192,160,98,0.25);

    background:linear-gradient(
        to bottom,
        #ffffff,
        #fcfaf5
    );
}




/* =========================
   SECTION TITLE
========================= */

.section-title{

    text-align:center;

    margin-bottom:60px;
}

.section-title h2{

    font-family:'Playfair Display', serif;

    font-size:58px;

    margin-bottom:14px;

    color:#1b1b1b;
}

.section-title p{

    font-size:22px;

    color:#666;
}

/* =========================
   BOOK CARD
========================= */

.book-card{

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    box-shadow:
    0 8px 30px rgba(0,0,0,0.08);

    transition:0.35s;
}

.book-card:hover{

    transform:translateY(-10px);

    box-shadow:
    0 18px 45px rgba(0,0,0,0.12);
}

.book-card img{

    width:100%;

    height:380px;

    object-fit:cover;

    display:block;

    border-radius:18px 18px 0 0;
    transition:0.5s;
}
.book-card:hover img{

    transform:scale(1.04);
}
.book-info{

    padding:28px;
}

.book-info h3{

     font-size:34px;

    line-height:1.25;

    margin-bottom:14px;

    font-family:'Playfair Display', serif;
}

.book-info p{

    font-size:18px;

    line-height:1.8;

    color:#555;

    margin-bottom:24px;
}
.book-card-link{

    text-decoration:none;

    color:inherit;

    display:block;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{

    display:flex;
    flex-direction:column;

    gap:22px;
}

.sidebar a{

    text-decoration:none;

    color:#222;

    font-size:20px;

    transition:0.3s;
}

.sidebar a:hover{

    color:#b68b3c;

    transform:translateX(5px);
}

/* =========================
   BOOK GRID
========================= */

.books-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));

    gap:40px;
}

/* =========================
   BOOK CARD
========================= */

.book-card{

    background:#fff;

    padding:18px;

    border-radius:18px;

    transition:0.35s;

    box-shadow:
    0 4px 20px rgba(0,0,0,0.06);
}

.book-card:hover{

    transform:translateY(-10px);

    box-shadow:
    0 12px 35px rgba(0,0,0,0.12);
}

.book-card img{

    width:100%;

    height:340px;

    object-fit:cover;

    border-radius:14px;

    margin-bottom:18px;
}

.book-card h3{

    font-size:22px;

    line-height:1.5;

    color:#222;
}

/* =========================
   SPOTLIGHT
========================= */

.spotlight{

    text-align:center;

    margin-bottom:120px;
}

.spotlight h2{

    font-size:62px;

    margin-bottom:15px;

    font-family:'Playfair Display', serif;
}

.spotlight p{

    color:#666;

    margin-bottom:50px;

    font-size:22px;
}

.spotlight-grid{

    display:flex;

    justify-content:center;

    gap:35px;

    flex-wrap:wrap;
}

.spot-card img{

    width:240px;

    height:360px;

    object-fit:cover;

    border-radius:16px;

    box-shadow:
    0 10px 28px rgba(0,0,0,0.14);

    transition:0.3s;
}

.spot-card img:hover{

    transform:translateY(-8px);
}
/* =========================
   LITERARY JOURNEY
========================= */

.journey-section{

    padding:120px 0;

    position:relative;
}

.section-heading{

    text-align:center;

    margin-bottom:80px;
}

.section-mini{

    color:#b79d63;

    letter-spacing:3px;

    font-size:13px;

    font-weight:600;
}

.section-heading h2{

    font-size:64px;

    margin-top:15px;

    font-family:'Playfair Display', serif;
}

.section-heading p{

    max-width:700px;

    margin:20px auto 0;

    line-height:1.9;

    color:#666;

    font-size:18px;
}


/* TIMELINE */

.timeline{

    position:relative;

    max-width:1200px;

    margin:auto;
}

/* CENTER LINE */

.timeline::before{

    content:'';

    position:absolute;

    top:0;
    bottom:0;

    left:50%;

    width:2px;

    background:#d8c79a;

    transform:translateX(-50%);
}

/* ITEMS */

.timeline-item{

    position:relative;

    width:50%;

    padding:20px 60px;

    margin-bottom:120px;
}

.timeline-item.left{

    left:0;

    text-align:right;
}

.timeline-item.right{

    left:50%;
}

/* DOT */

.timeline-dot{

    position:absolute;

    top:35px;

    width:18px;
    height:18px;

    background:#b79d63;

    border-radius:50%;

    box-shadow:0 0 0 6px rgba(183,157,99,0.15);

    z-index:10;
}

.timeline-item.left .timeline-dot{

    right:-9px;
}

.timeline-item.right .timeline-dot{

    left:-9px;
}

/* TEXT CARD */

.timeline-content{

    background:#fff;

    padding:38px;

    border-radius:28px;

    box-shadow:0 10px 35px rgba(0,0,0,0.06);

    transition:0.35s;

    position:relative;

    z-index:2;
}

.timeline-content:hover{

    transform:translateY(-8px);
}

.timeline-year{

    color:#b79d63;

    font-size:13px;

    letter-spacing:3px;

    font-weight:700;

    text-transform:uppercase;
}

.timeline-content h3{

    margin:18px 0;

    font-size:38px;

    line-height:1.2;

    font-family:'Playfair Display', serif;

    color:#111;
}

.timeline-content p{

    color:#555;

    line-height:1.9;

    font-size:18px;
}

/* MEMORY PHOTO */

.timeline-memory-photo{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:300px;
    height:210px;

    border-radius:26px;

    overflow:hidden;

    box-shadow:0 18px 45px rgba(0,0,0,0.15);

    background:#fff;

    transition:0.4s;

    z-index:5;
}

/* LEFT ITEMS -> IMAGE RIGHT */

.timeline-item.left .timeline-memory-photo{

    right:-330px;
}

/* RIGHT ITEMS -> IMAGE LEFT */

.timeline-item.right .timeline-memory-photo{

    left:-330px;
}

/* IMAGE */

.timeline-memory-photo img{

    width:100%;
    height:100%;

    object-fit:cover;

    display:block;

    transition:0.5s;
}

/* HOVER */

.timeline-memory-photo:hover{

    transform:translateY(-50%) scale(1.04);
}

.timeline-memory-photo:hover img{

    transform:scale(1.05);
}

/* LABEL */

.timeline-memory-photo::before{

    content:'MEMORY';

    position:absolute;

    top:14px;
    left:14px;

    background:rgba(0,0,0,0.65);

    color:#fff;

    padding:6px 14px;

    border-radius:30px;

    font-size:10px;

    letter-spacing:2px;

    z-index:10;
}

/* IMAGE OVERLAY */

.timeline-memory-photo::after{

    content:'';

    position:absolute;

    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0.15),
        transparent
    );
}

/* MOBILE */

@media(max-width:1200px){

    .timeline::before{

        left:25px;
    }

    .timeline-item{

        width:100%;

        left:0 !important;

        padding-left:80px;

        padding-right:20px;

        text-align:left;
    }

    .timeline-dot{

        left:16px !important;
    }

    .timeline-memory-photo{

        position:relative;

        top:auto;
        left:auto !important;
        right:auto !important;

        transform:none;

        width:100%;

        height:240px;

        margin-top:25px;
    }

    .timeline-memory-photo:hover{

        transform:scale(1.02);
    }

    .timeline-content h3{

        font-size:30px;
    }
}



/* MOBILE */

@media(max-width:900px){

    .timeline::before{

        left:20px;
    }

    .timeline-item{

        width:100%;

        left:0 !important;

        padding-left:60px;

        padding-right:20px;

        text-align:left !important;
    }

    .timeline-dot{

        left:11px !important;
        right:auto !important;
    }

    .section-heading h2{

        font-size:42px;
    }
}

/* AVAILABLE TITLES */

.available-books{

    padding:120px 0;
}

.section-heading{

    text-align:center;

    margin-bottom:70px;
}

.section-heading span{

    color:#b79d63;

    letter-spacing:2px;

    font-size:14px;

    font-weight:700;

    text-transform:uppercase;
}

.section-heading h2{

    font-size:58px;

    margin:18px 0;

    font-family:'Playfair Display', serif;
}

.section-heading p{

    max-width:760px;

    margin:auto;

    font-size:20px;

    line-height:1.9;

    color:#666;
}

.available-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:40px;
}

.available-card{

    background:#fff;

    border-radius:28px;

    overflow:hidden;

    box-shadow:0 12px 35px rgba(0,0,0,0.06);

    transition:0.35s;

    display:flex;

    flex-direction:column;
}

.available-card:hover{

    transform:translateY(-10px);
}

.available-card img{

    width:100%;

    height:340px;

    object-fit:cover;
}

.available-content{

    padding:35px;

    display:flex;

    flex-direction:column;

    flex-grow:1;
}

.available-content h3{

    font-size:36px;

    margin-bottom:18px;

    font-family:'Playfair Display', serif;
}

.available-content p{

    color:#555;

    line-height:1.9;

    margin-bottom:24px;
}

.book-award{

    background:#f7f2e3;

    color:#8c6d28;

    padding:12px 16px;

    border-radius:12px;

    margin-bottom:20px;

    font-size:15px;

    line-height:1.7;
}

.book-info{

    display:flex;

    gap:15px;

    margin-bottom:20px;

    flex-wrap:wrap;
}

.book-info span{

    background:#f3f3f3;

    padding:8px 14px;

    border-radius:30px;

    font-size:14px;
}

.book-meta{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    align-items:center;

    margin:22px 0 30px;
}

.book-meta span{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    background:#efe8d2;

    color:#8a7341;

    padding:10px 18px;

    border-radius:30px;

    font-size:15px;

    font-weight:700;

    white-space:nowrap;

    min-height:44px;
}

.book-buttons{

    display:flex;

    gap:16px;

    flex-wrap:wrap;

    margin-top:10px;
}
.available-content .book-buttons{

    margin-top:auto;

    padding-top:25px;
}

.read-btn,
.buy-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:170px;

    text-decoration:none;

    padding:15px 24px;

    border-radius:14px;

    font-weight:700;

    font-size:16px;

    transition:0.35s;
}

.read-btn {
    display: inline-flex; /* Ensures it acts like a proper button element */
    align-items: center;
    justify-content: center;
    min-width: 170px;
    text-decoration: none;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: 0.35s;
    
    /* Add these two lines to guarantee visibility */
    background: #b79d63 !important; 
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(183, 157, 99, 0.28);
}

.buy-btn{

    border:1px solid #b79d63;

    color:#b79d63;
}

.read-btn:hover{

    background:#94753b;

    transform:translateY(-4px);

    box-shadow:
    0 14px 32px rgba(183,157,99,0.45);
}

.buy-btn:hover{

    background:#b79d63;

    color:#fff;

    transform:translateY(-4px);

    box-shadow:
    0 14px 32px rgba(183,157,99,0.25);
}

.full-btn{

    width:100%;

    text-align:center;
}


/* =========================
   MOBILE
========================= */

@media(max-width:1100px){

    .hero-title{

        font-size:62px;
    }

    .hero-description{

        font-size:22px;
    }

    .hero-banner{

        height:620px;
    }
}

@media(max-width:900px){

    .navbar{

        flex-direction:column;

        gap:25px;
    }

    nav{

        flex-wrap:wrap;
        justify-content:center;
    }

    .books-section{

        grid-template-columns:1fr;
    }

    .sidebar{

        flex-direction:row;

        flex-wrap:wrap;

        justify-content:center;
    }

    .hero{

        border-radius:18px;
    }

    .hero-banner{

        height:520px;

        border-radius:18px;
    }

    .hero-overlay{

        border-radius:18px;
    }

    .hero-content{

        left:35px;
        right:35px;
    }

    .hero-title{

        font-size:48px;
    }

    .hero-description{

        font-size:20px;
    }

    .author-intro h1{

        font-size:46px;
    }

    .author-intro p{

        font-size:20px;
    }

    .search-section{

        flex-direction:column;
        align-items:center;
    }

    .search-section input{

        width:100%;
    }
}

@media(max-width:600px){

    .hero-banner{

        height:460px;
    }

    .hero-title{

        font-size:38px;
    }

    .hero-description{

        font-size:18px;
    }

    .hero-subtitle{

        font-size:14px;
    }

    .profile-image{

        width:120px;
        height:120px;
    }

    .spotlight h2{

        font-size:42px;
    }
}