body {
    font-family: system-ui, -apple-system, Arial;
    background: #fafafa;
    overflow-x: hidden;
}

/* NAV */
.navbar {
    z-index: 1000;
}

/* HERO */

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('/images/bg_contact.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    /*background:linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.1));*/
    z-index: 2;
}

/**/
.hero {
    height: 120vh;
    overflow: hidden;
    color: white;
}

/**/
.layer {
    position: absolute;
    width: 120%;
    left: -10%;
    /*top:0;*/
}

/**/
.layer.back {
    z-index: 1;
}

.layer.mid {
    z-index: 2;
}

.layer.grow {
    z-index: 3;
}

.layer.shrink {
    z-index: 3;
}


.hero-text {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
}

/**/
.hero-text {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-float {
    position: absolute;
    width: 120px;
    z-index: 4;
}

.float1 {
    top: 20%;
    left: 10%;
}

.float2 {
    top: 60%;
    left: 75%;
}

.float3 {
    top: 40%;
    left: 45%;
}

/* SECTIONS */

section {
    /*padding:100px 0;
position:relative;*/
    padding: 120px 25px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

section#banners {
    position: relative;
    padding: 0px;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* STANDARD PARALLAX */

.static-bg {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.static-bg::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    /*background:rgba(0,0,0,0.35);*/
}

.static-bg .container {
    position: relative;
    z-index: 2;
}

@media(min-width:900px) {
    .static-bg {
        background-attachment: fixed;
    }
}

/* PREMIUM LAYERED PARALLAX */

.layered {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.layer {
    position: absolute;
    width: 120%;
    left: -10%;
    object-fit: cover;
}

.layer.bg {
    z-index: 1;
}

.layer.mid {
    z-index: 2;
}

.layer.front {
    z-index: 3;
}

.layer-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    top: 40%;
    transform: translateY(-50%);
}

/* FLOATING */

.floating {
    position: absolute;
    width: 140px;
    pointer-events: none;
}

.sliding {
    position: absolute;
    width: 140px;
    pointer-events: none;
}

/* MOBILE */

@media(max-width:768px) {

    .hero-float,
    .floating,
    .sliding {
        width: 60px;
        opacity: 0.7;
    }

    .hero {
        height: 101vh;
    }
}



.books-wrapper {
    overflow: hidden;
}

.books-track {
    display: flex;
    gap: 40px;
    width: max-content;
    padding: 40px;
}

.book {
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.book:hover {
    transform: scale(1.08);
}

.alert {
    border-radius: 8px;
    font-size: 14px;
}

.salesheader {
    color: #e64123;
}

section.contact {
    background-color: #268886;
    min-height: 50vh;
    color: #fff;
}

section.newsletter,
section.sales {
    min-height: 50vh;
}

.contactusbox {
    width: 50%;
    border-radius: 20px;
    background-color: #fff;
    color: #000;
    padding: 25px;
}

.footer-container {
    position: relative;
}

.footer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    transform: translate(-50%, -50%);
    z-index: 10;
}

@media(min-width:576px) {
    .d-sm-block {
        display: inline-block !important;
    }
}


/*nav search*/

/* NAVBAR */

#mainNavbar {
  z-index: 1050;
  padding-top: 14px;
  padding-bottom: 14px;
}

#mainNavbar .nav-link {
  /*font-weight: 600;
  margin: 0 8px;*/
}

.nav-search-btn {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  transition: transform 0.25s ease;
}

.nav-search-btn:hover {
  transform: scale(1.12);
}

/* SEARCH PANEL */

.nav-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 28px 0;
  box-shadow: 0 15px 25px rgba(0,0,0,0.12);
  z-index: 1050;
}

.nav-search-panel[hidden] {
  display: none !important;
}

.nav-search-panel .container {
  max-width: 900px;
}

.nav-search-panel .form-control {
  border-radius: 8px 0 0 8px;
  border: 1px solid #ddd;
}

.nav-search-panel .btn {
  border-radius: 0 8px 8px 0;
  padding-left: 30px;
  padding-right: 30px;
}

/* MOBILE */

@media (max-width: 991.98px) {

  #mainNavbar .navbar-brand {
    font-size: 17px;
  }

  .nav-search-panel {
    padding: 18px 0;
  }

  .nav-search-panel .form-control {
    font-size: 16px;
  }

  .nav-search-panel .btn {
    padding: 10px 15px;
  }

}




/* -------------------------- */
/* ==========================================
   Book detials page
========================================== */

/* ==========================================
   GLOBAL
========================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}

/*.book-page {
    max-width: 1600px;
    margin: 35px auto 60px;
}*/

/* ==========================================
   BOOK COVER & PREVIEW IMAGES
========================================== */


.book-cover {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.preview-thumbnails {
    margin-top: 14px;
}

.preview-thumbnails img {
    display: block;
    width: 100%;
    height: 75px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s ease, opacity .2s ease;
}

.preview-thumbnails img:hover,
.preview-thumbnails img.active {
    border-color: #222;
}

/* ==========================================
   BOOK DETAILS
========================================== */

.book-series {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 4px;
}

.book-title,
.book-carousel-heading {
    font-family: "Chelsea Market", system-ui;
    font-weight: 400;
    font-style: normal;
    /*font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 500;
    line-height: 1.2;*/
    margin-bottom: 14px;
}

.book-info hr {
    border: 0;
    border-top: 1px solid #ddd;
    opacity: 1;
    margin: 15px 0;
}

.section-heading {
    font-size: 20px;
    font-weight: 400;
    color: #999;
    margin: 20px 0 8px;
}

.book-description {
    font-size: 14px;
    /*line-height: 1.65;*/
}

.book-description p {
    margin-bottom: 18px;
}

.book-features {
    font-size: 14px;
    /*line-height: 1.8;*/
    padding-left: 30px;
}

.book-features li {
    /*padding-bottom: 6px;*/
}

/* ==========================================
   FORMAT & PURCHASING TABLE
========================================== */

.format-box {
    border: 1px solid #bbb;
    border-radius: 28px;
    padding: 12px 15px;
    margin-top: 24px;
}

.format-table {
    width: 100%;
    font-size: 13px;
    margin-bottom: 0;
}

.format-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #333;
    /*padding: 10px 8px;*/
    white-space: nowrap;
}

.format-table tbody td {
    /*padding: 12px 8px;*/
    vertical-align: middle;
}

.format-table tbody tr + tr {
    border-top: 1px solid #eee;
}

.format-table .format-name {
    min-width: 150px;
}

.format-icon {
    font-size: 22px;
    vertical-align: middle;
    margin-right: 6px;
}

.purchase-link {
    /*display: inline-block;
    background: #f1f1f1;
    color: #222;
    text-decoration: none;
    border-radius: 25px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;*/
    transition: background .2s ease;
}

.purchase-link:hover {
    /*background: #ddd;
    color: #222;*/
    opacity: 0.8;
}

/* ==========================================
   RIGHT METADATA SIDEBAR
========================================== */

.book-sidebar {
    background: #eaeaea;
    border-radius: 30px;
    padding: 18px;
    height: 100%;
}

.sidebar-section {
    border-bottom: 1px solid #fff;
    padding: 10px 0;
}

.sidebar-section:first-child {
    padding-top: 0;
}

.sidebar-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sidebar-label {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    margin-bottom: 7px;
}

.sidebar-value {
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.meta-pill {
    display: inline-block;
    background: #fff;
    color: #222;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin: 2px 2px 2px 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

a.meta-pill {
    text-decoration: none;
    transition: background .2s ease;
}

a.meta-pill:hover {
    background: #000;/*#d4d4d4;
    color: #222;*/
    color: #fff;
}

/* RESOURCE BUTTONS */

.resource-btn {
    display: block;
    width: 100%;
    background: #252124;
    color: #fff;
    border-radius: 30px;
    padding: 12px 10px;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    transition: background .2s ease;
}

.resource-btn:hover {
    background: #555;
    color: #fff;
}

/* ==========================================
   RELATED BOOKS
========================================== */

.related-books {
    /*margin-top: 65px;*/
}

.related-books a {
    display: block;
    text-decoration: none;
}

.related-books img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform .25s ease;
}

.related-books a:hover img {
    transform: translateY(-6px);
}

/* Bootstrap doesn't provide 7 columns,
   so add this custom utility */

@media (min-width: 1200px) {
    .row-cols-xl-7 > * {
        flex: 0 0 auto;
        width: 14.285714%;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .book-sidebar {
        height: auto;
    }

    .book-sidebar .sidebar-section {
        height: 100%;
    }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767.98px) {

    .book-page {
        margin-top: 20px;
    }

    .book-cover {
        max-width: 400px;
        margin: 0 auto;
    }

    .book-series {
        font-size: 18px;
    }

    .book-title {
        font-size: 28px;
    }

    .preview-thumbnails img {
        height: 65px;
    }

    .format-box {
        padding: 10px;
        border-radius: 20px;
    }

    .book-sidebar {
        height: auto;
    }

    .related-books {
        margin-top: 35px;
    }

}



/* ==========================================
   BOOK COVER SLICK CAROUSEL
========================================== */

.book-carousel-section {
    padding: 35px 0 50px;
    min-height:revert;
}

.book-carousel-heading {
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 600;
    margin: 0;
}

/* Slide spacing */

.book-cover-slider {
    margin: 0 -10px;
}

.book-cover-slider .book-slide {
    padding: 0 10px;
}

/* Book covers */

.book-cover-slider .book-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    transition: transform .3s ease;
}

.book-cover-slider .book-slide a {
    display: block;
    overflow: hidden;
}

.book-cover-slider .book-slide a:hover img {
    transform: scale(1.04);
}

/* Navigation arrows */

.carousel-arrow {
    background: #252124;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 22px;
    line-height: 1;
    margin-left: 8px;
    cursor: pointer;
    transition: background .2s ease;
}

.carousel-arrow:hover {
    background: #666;
}

.carousel-arrow.slick-disabled {
    opacity: .35;
    cursor: default;
}

/* Prevent layout issues */

.book-cover-slider .slick-track {
    display: flex;
}

.book-cover-slider .slick-slide {
    height: auto;
}

.book-cover-slider .slick-slide > div {
    height: 100%;
}

/* Mobile */

@media (max-width: 575.98px) {

    .book-carousel-section {
        padding: 20px 0 35px;
    }

    .book-cover-slider {
        margin: 0 -6px;
    }

    .book-cover-slider .book-slide {
        padding: 0 6px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
