:root {
--coral: #EF5350;
--coral-dark: #D84340;
--coral-light: #FF7B79;
--coral-bg: rgba(239, 83, 80, 0.06);
--charcoal: #2B2D35;
--charcoal-light: #3A3D47;
--gold: #E8C97A;
--gold-dark: #D4B460;
--gold-light: #F2DDA0;
--gold-bg: rgba(232, 201, 122, 0.10);
--parchment: #FAF8F5;
--cream: #F3EFE9;
--warm-gray: #7A756D;
--light-gray: #E8E4DE;
--soft-white: #FDFCFA;
--ink: #1E1F24;
--forest: #2D6A4F;
--navy: #1B3A5C;
}

body > .container-fluid {
max-width: 100%;
}

.main-ample-header-wrapper {
position: sticky;
top: 0;
z-index: 100;
background: rgba(250, 248, 245, 0.92);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(43, 45, 53, 0.06);
}

.ample-header {
max-width: 1280px;
margin: 0 auto;
padding: 14px 32px;
display: flex;
align-items: center;
gap: 24px;
background: transparent;
}

.ample-header * {
float: none !important;
}

.ample-header .ample-logo {
margin: 0;
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.ample-header .ample-search {
margin: 0;
flex: 1;
}

.ample-header .ample-login {
margin: 0;
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
}

.ample-header .ample-search input#bookSearchInput {
width: 100%;
padding: 12px 20px 12px 44px !important;
border: 1.5px solid var(--light-gray);
border-radius: 100px;
font-family: 'DM Sans', sans-serif;
font-size: 15px;
color: var(--ink);
background: var(--soft-white);
transition: all 0.25s ease;
outline: none;
}
.ample-header .ample-logo img{
    height: 38px;
}

.ample-header .ample-login button.btn-signup {
padding: 10px 22px;
border-radius: 100px;
font-size: 14px;
font-weight: 600;
border: 1.5px solid var(--light-gray);
background: transparent;
color: var(--charcoal);
cursor: pointer;
transition: all 0.25s ease;
margin-bottom: 0;
}

.ample-header .ample-login #authSignIn {
padding: 10px 22px;
margin-bottom: 0;
border-radius: 100px;
font-size: 14px;
font-weight: 600;
border: none;
background: var(--coral);
color: #fff;
cursor: pointer;
transition: all 0.25s ease;
height: auto;
margin-left: 0;
opacity: 1;
}

.ample-menu {
background: var(--charcoal);
height: auto;
}

.ample-menu .sub-nav-inner {
max-width: 1280px;
margin: 0 auto;
padding: 0 32px;
display: flex;
align-items: center;
gap: 4px;
}

.ample-menu .sub-nav-inner > li {
margin: 0  !important;
float: none;
height: auto;
line-height: normal;
display: block;
padding: 0 !important;
}

.ample-menu .sub-nav-inner > ul > li > a {
padding: 12px 18px;
font-size: 13.5px;
font-weight: 500;
color: rgba(250, 248, 245, 0.7);
transition: all 0.2s ease;
border-bottom: 2px solid transparent;
margin: 0;
display: inline-block;
vertical-align: middle;
}

.ample-menu .ample-menu .sub-nav-inner > ul {
display: flex;
align-items: center;
gap: 4px;
}

.ample-menu ul li i {
padding: 0;
font-size: 16px;
color: rgba(250,248,245,0.7);
display: inline-block;
}
.ample-menu > .sub-nav-inner > ul > li:hover a {color: #fff;border-bottom-color: var(--coral);}

.ample-menu .sub-nav-inner li:hover a i {
color: var(--coral);
}

.ample-menu > .sub-nav-inner > ul > li {
float: none;
margin: 0;
height: auto;
padding: 0;
line-height: normal;
}

.ample-menu > .sub-nav-inner > ul {
display: flex;
align-items: center;
gap: 4px;
}

.ample-sub-menu {
top: 41px;
}
body .ample-footer{
    display: none !important;
}


/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--charcoal) 0%, #1a1c22 100%);
    padding: 80px 32px;
}

/* Decorative elements */
.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(239,83,80,0.12) 0%, transparent 60%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,201,122,0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--parchment);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease both;
}

.hero-text h1 .accent { color: var(--coral); }
.hero-text h1 .gold { color: var(--gold); }

.hero-text p {
    font-size: 17.5px;
    color: rgba(250,248,245,0.6);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 460px;
    animation: fadeUp 0.8s ease 0.15s both;
}

.hero-search {
    display: flex;
    gap: 0;
    animation: fadeUp 0.8s ease 0.3s both;
}

.hero-search input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 14px 0 0 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    outline: none;
}
.hero-search input::placeholder { color: #B5B0A8; }

.hero-search button {
    padding: 18px 32px;
    background: var(--coral);
    color: #fff;
    border: none;
    border-radius: 0 14px 14px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
    white-space: nowrap;
}
.hero-search button:hover { background: var(--coral-dark); }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    animation: fadeUp 0.8s ease 0.45s both;
}

.hero-tag {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 500;
    background: rgba(255,255,255,0.08);
    color: rgba(250,248,245,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s ease;
    cursor: pointer;
}
.hero-tag:hover {
    background: rgba(239,83,80,0.15);
    color: var(--coral-light);
    border-color: rgba(239,83,80,0.2);
}

/* Hero right - floating book cards */
.hero-books {
    position: relative;
    height: 420px;
    animation: fadeUp 0.8s ease 0.2s both;
}

.float-book {
    position: absolute;
    border-radius: 4px 10px 10px 4px;
    box-shadow: 8px 8px 30px rgba(0,0,0,0.3);
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
    overflow: hidden;
}

.float-book::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(90deg, rgba(0,0,0,0.2), transparent);
    z-index: 2;
}

.float-book:hover { transform: translateY(-8px) rotate(0deg) !important; }

.float-book .fb-cover {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 12px;
}

.fb-title {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.fb-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    width: fit-content;
}

.fb-badge.free { background: var(--forest); color: #fff; }
.fb-badge.price { background: var(--coral); color: #fff; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════ */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--charcoal);
}

.view-all {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--coral);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}
.view-all:hover { gap: 8px; }
.view-all svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════
   FEATURED BANNERS (3 cards)
═══════════════════════════════════ */
.featured-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.banner-card {
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
    z-index: 1;
}

.banner-label {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.banner-title {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

/* ═══════════════════════════════════
   BOOK CAROUSEL
═══════════════════════════════════ */
.book-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.book-row::-webkit-scrollbar { display: none; }

.book-item {
    flex: 0 0 180px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.book-item:hover { transform: translateY(-6px); }

.book-cover-img {
    width: 180px;
    height: 270px;
    border-radius: 4px 10px 10px 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.12);
    margin-bottom: 12px;
}

.book-cover-img::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(90deg, rgba(0,0,0,0.12), transparent);
    z-index: 2;
}
.book-cover-img a,a.view-all,.cat-card a {
    text-decoration: none;
}
.hero-tag a {
    color: rgba(250, 248, 245, 0.6);
    text-decoration: none;
}

.hero-tag:hover a {
    color: var(--coral-light);
}
.book-cover-fill {
    width: 100%; height: 100%;
    background-size: cover;
    background-repeat: none;
    background-position: top center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 12px;
}

.book-cover-fill .bc-ornament {
    font-size: 28.8px;
    opacity: 0.1;
    color: #fff;
    text-align: center;
}

.book-cover-fill .bc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bc-info .bc-title {
    font-family: 'Playfair Display', serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.bc-info .bc-author {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.7);
}

.price-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 8px;
    width: fit-content;
}

.price-badge.free { background: var(--forest); color: #fff; }
.price-badge.paid { background: var(--coral); color: #fff; }

.book-meta-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--charcoal);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-meta-author {
    font-size: 12.5px;
    color: var(--warm-gray);
}

.book-meta-stars {
    color: var(--gold-dark);
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ═══════════════════════════════════
   CATEGORY GRID
═══════════════════════════════════ */
.bg-cream { background: var(--cream); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.cat-card {
    text-align: center;
    padding: 28px 16px;
    border-radius: 16px;
    background: var(--soft-white);
    border: 1px solid rgba(43,45,53,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    border-color: var(--coral);
}

.cat-icon {
    font-size:32px;
    margin-bottom: 10px;
}

.cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
}

.cat-count {
    font-size: 11.5px;
    color: var(--warm-gray);
    margin-top: 2px;
}

/* ═══════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════ */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.how-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: 20px;
    background: var(--soft-white);
    border: 1px solid rgba(43,45,53,0.05);
    position: relative;
    overflow: hidden;
}

.how-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.how-card:hover::after { opacity: 1; }

.how-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--coral-bg);
    color: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin: 0 auto 20px;
    font-family: 'Playfair Display', serif;
}

.how-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18.5px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.how-card p {
    font-size: 14px;
    color: var(--warm-gray);
    line-height: 1.6;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.site-footer {
    clear: both;
    background: var(--charcoal);
    color: rgba(250,248,245,0.6);
    padding: 64px 32px 32px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-wrap {margin-bottom: 16px;display: block;}
.footer-brand .logo-text { color: var(--parchment); }

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: rgba(250,248,245,0.5);
}

.social-link:hover {
    background: var(--coral);
    color: #fff;
}

.social-link svg { width: 16px; height: 16px; }

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--parchment) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.footer-col ul {list-style: none;padding: 0;}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(250,248,245,0.55);
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-col a:hover { color: var(--coral-light); }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

.footer-bottom a {
    color: rgba(250,248,245,0.4);
    margin-left: 20px;
    text-decoration: none;
}
.footer-bottom a:hover { color: var(--coral-light); }

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 32px;
}

.btn-coral {
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: var(--coral);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-coral:hover {
    background: var(--coral-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 83, 80, 0.25);
}

/* ═══════════════════════════════════
   CTA / JOIN BANNER
═══════════════════════════════════ */
.join-banner {
    background: linear-gradient(135deg, var(--charcoal) 0%, #1a1c22 100%);
    border-radius: 24px;
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(239,83,80,0.1), transparent 60%);
    border-radius: 50%;
}

.join-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--parchment);
    margin-bottom: 12px;
    position: relative;
    margin-top: 0;
}

.join-banner p {
    font-size: 16px;
    color: rgba(250,248,245,0.55);
    margin-bottom: 32px;
    position: relative;
}
.join-banner .btn-coral:hover{color: #fff;}
.join-banner .btn-coral {
    text-decoration: none;
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 12px;
    position: relative;
}


/* ═══════════════════════════════════
   NEWSLETTER
═══════════════════════════════════ */
.newsletter-section {
    background: var(--cream);
    padding: 72px 32px;
}

.newsletter-inner {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.newsletter-inner p {
    font-size: 15px;
    color: var(--warm-gray);
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--light-gray);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    background: var(--soft-white);
    outline: none;
    color: var(--ink);
}

.newsletter-form input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(239,83,80,0.08);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--coral);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.newsletter-form button:hover { background: var(--coral-dark); }
@media (max-width: 1200px) {
    .hero-text h1{
        font-size: 50px;
    }
}
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .join-banner h2{font-size: 35px;}
    .hero-inner { grid-template-columns: 1fr; }
    .hero-books { display: none; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-banners { grid-template-columns: 1fr; }
}

@media ( max-width:991px ){
    .hero-text h1{
        font-size: 35px;
    }
    .ample-header .ample-login{
        display: none;
    }
    .ample-header .menu-bar {
        margin-right: 0;
        margin-top: 0;
    }
    .ample-header .clearfix {
        display: none;
    }
    .ample-header .menu-bar {
        margin-right: 0;
        margin-top: 0;
    }
    #app .menu-list{
        height: 100vh !important;
    }
    .well-nav .ample-login-nav{
        position: absolute;
    }

    .well-nav .ample-login-nav button {
        width: calc( 100% - 7px );
        padding: 10px 22px;
        border-radius: 100px;
        font-size: 14px;
        font-weight: 600;
        border: none;
        background: var(--coral);
        color: #fff;
        cursor: pointer;
        transition: all 0.25s ease;
        display: inline-block;
        min-width: auto;
        height: auto;
    }

    .well-nav .ample-login-nav label#authSignIn {
        padding: 10px 22px;
        font-size: 14px;
        font-weight: 600;
        border: 1.5px solid var(--light-gray);
        background: transparent;
        color: var(--charcoal);
        cursor: pointer;
        transition: all 0.25s ease;
        display: inline-block;
        height: a;
        margin-left: 0;
        text-align: center;
        min-height: unset;
        height: auto;
        font-weight: 600;
        border-radius: 100px;
        width: calc(100%  - 14px );
    }
    .well-nav .ample-login-nav {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero { padding: 48px 16px; }
    .how-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .ample-header {
        padding: 12px 16px;
        gap: 12px;
    }
    .section {
        padding: 48px 16px;
    }
    .join-banner h2{
        font-size: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .join-banner { padding: 48px 24px; border-radius: 16px; }
    .newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}