.logo img {
    max-width: 130px;
}

.mobile-menu__logo img {
    max-width: 150px;
}

.nav-menu__link {
    padding: 38px 10px;
}

/* ============ Banner ============ */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    background: hsl(var(--main) / 0.1);
    color: hsl(var(--main));
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}
.text-gradient {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ Line-awesome icons inside template icon circles ============ */
.field-icon i {
    font-size: 40px;
    line-height: 1;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-item.hover-bg-main:hover .field-icon i {
    -webkit-text-fill-color: hsl(var(--main));
}
.popular-item__title {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 4px;
}

/* ============ Published books slider ============ */
.book-slider .slick-slide { padding: 12px; }
.book-slider .slick-list { margin: 0 -12px; }
.book-card {
    background: hsl(var(--white));
    border-radius: 16px;
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: transform .25s ease;
}
.book-card:hover { transform: translateY(-6px); }
.book-card__cover {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 2 / 3;
    margin: 0 auto 24px;
    border-radius: 4px 10px 10px 4px;
    overflow: hidden;
    box-shadow: -6px 10px 24px rgba(20, 20, 60, .25), inset 4px 0 0 rgba(0, 0, 0, .15);
}
.book-card__cover img,
.book-card__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.book-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--main-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
}
.book-card__cover::before { /* spine */
    content: "";
    position: absolute;
    left: 8px; top: 0; bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, .35);
    z-index: 2;
}
.book-card__title {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}
.book-card__subtitle { color: hsl(var(--body-color)); }

/* ============ Authors ============ */
.author-thumb { aspect-ratio: 290 / 324; background: hsl(var(--section-bg)); }
.author-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ============ Why choose us ============ */
.choose-us-item__thumb { aspect-ratio: 8 / 5; }

/* ============ Steps ============ */
.working-process-item__desc { max-width: 260px; margin-inline: auto; }

/* ============ Footer contact ============ */
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact__item { display: flex; gap: 10px; align-items: flex-start; color: hsl(var(--static-white) / .8); }
.footer-contact__item i { font-size: 22px; color: hsl(var(--static-white)); margin-top: 2px; }
.footer-contact__item a { color: hsl(var(--static-white) / .8); }
.footer-contact__item a:hover { color: hsl(var(--static-white)); }

/* ============ Publish now popup + form ============ */
.publish-modal .modal-content {
    border: 0;
    border-radius: 20px;
    padding: 12px;
    background: hsl(var(--white));
}
.publish-modal .modal-title { font-size: 26px; }
.publish-modal__tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--main-gradient);
}
.publish-form .common-input {
    background-color: hsl(var(--section-bg));
    border-color: hsl(var(--border-color)) !important;
}
.publish-form select.common-input { background-position: right 16px center; }
.publish-form .common-input.is-invalid { border-color: #dc3545 !important; }
.form-status { display: none; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.form-status.success { display: block; background: #e8f7ee; color: #146c43; }
.form-status.error { display: block; background: #fdecec; color: #b02a37; }

/* ============ Inner pages ============ */
.info-card {
    background: hsl(var(--white));
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--box-shadow);
    height: 100%;
}
.info-card__icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: hsl(var(--main) / .1);
    margin-bottom: 20px;
}
.info-card__icon i { font-size: 32px; color: hsl(var(--main)); }
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list__item {
    position: relative;
    padding: 0 0 36px 84px;
}
.step-list__item::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 0; top: 0;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--main-gradient); color: #fff; font-weight: 700; font-size: 20px;
}
.step-list__item::after {
    content: "";
    position: absolute; left: 29px; top: 66px; bottom: 6px;
    width: 2px; background: hsl(var(--border-color));
}
.step-list__item:last-child::after { display: none; }
.step-list__title { margin-bottom: 8px; }
.testimonial-card {
    background: hsl(var(--white));
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex; flex-direction: column;
}
.testimonial-card__quote { font-size: 40px; color: hsl(var(--main)); line-height: 1; }
.testimonial-card__text { flex-grow: 1; font-size: 17px; margin: 12px 0 20px; }
.map-frame { border: 0; width: 100%; height: 400px; border-radius: 16px; display: block; }

/* ============ Books as template product boxes ============ */
.book-product { background: hsl(var(--white)); display: flex; flex-direction: column; }
.book-product .product-item__content { flex-grow: 1; display: flex; flex-direction: column; }
.book-product .product-item__bottom { margin-top: auto; }
.book-product__thumb {
    max-height: none !important;
    aspect-ratio: 4 / 5;
    background: hsl(var(--section-bg));
    border-radius: 8px;
}
.book-product__thumb .link { position: relative; display: block; height: 100%; padding: 20px; }
.book-product__thumb img,
.book-product__thumb .book-card__fallback {
    position: absolute;
    top: 20px; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    width: auto; height: calc(100% - 40px);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 3px 8px 8px 3px;
    box-shadow: -6px 10px 22px rgba(20, 20, 60, .28);
}
.book-product:hover .book-product__thumb img { transform: translateX(-50%) scale(1.04); }
.book-product__badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 3px 10px; border-radius: 50px;
    font-size: 12px; font-weight: 700; color: #fff;
    background: var(--main-gradient);
}
.book-product__title {
    font-size: 17px; line-height: 1.4; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 48px;
}
.book-slider .slick-track { display: flex; }
.book-slider .slick-slide { height: auto; }
.book-slider .slick-slide > div { height: 100%; }
.book-slide { height: 100%; }

/* ============ CI4 version additions ============ */
.mt-120 { margin-top: 120px; }
@media (max-width: 991px) { .mt-120 { margin-top: 80px; } }

/* Header – 8 menu items: use the hamburger menu below 1200px */
@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-menu__link { padding: 38px 8px; font-size: 15px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .header .header-menu,
    .header .header-right__inner { display: none !important; }
    .header .toggle-mobileMenu { display: inline-block !important; }
    .mobile-menu.d-lg-none { display: block !important; }
    .mobile-menu .header-right__inner.d-lg-none { display: flex !important; }
}

/* Book category (replaces subtitle) */
.book-product__category {
    display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
    padding: 3px 12px; border-radius: 50px;
    background: hsl(var(--main) / .08); color: hsl(var(--main));
    font-weight: 500; transition: .2s;
}
.book-product__category:hover { background: hsl(var(--main)); color: #fff; }

/* Category tabs */
.common-tab .cat-count {
    display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px;
    border-radius: 20px; font-size: 12px; line-height: 20px; text-align: center;
    background: hsl(var(--main) / .12); color: hsl(var(--main));
}
.common-tab .nav-link.active .cat-count { background: rgba(255,255,255,.2); color: #fff; }

/* Empty state */
.empty-state { padding: 60px 20px; }
.empty-state i { font-size: 64px; color: hsl(var(--main)); }

/* CTA box */
.cta-box {
    background: var(--main-gradient);
    border-radius: 24px;
    padding: 64px 24px;
    position: relative; overflow: hidden;
}
.btn-outline-white { border: 1px solid rgba(255,255,255,.8); color: #fff; }
.btn-outline-white:hover { background: #fff; color: hsl(var(--main)); }

/* Services details (service-three) */
.service-three-item__icon.field-icon i { font-size: 36px; }
.service-three-item__cta { display: none; }
.service-three-item.active .service-three-item__cta { display: inline-flex; }
.service-three-item { scroll-margin-top: 120px; }

/* Pagination */
.common-pagination { flex-wrap: wrap; gap: 8px; }
.common-pagination .page-item.active .page-link { background: var(--main-gradient); color: #fff; border-color: transparent; }

/* Enquiry form */
.enquiry-form .common-input { background-color: hsl(var(--section-bg)); border-color: hsl(var(--border-color)) !important; }
.enquiry-form select.common-input { background-position: right 16px center; }
.enquiry-form .common-input.is-invalid { border-color: #dc3545 !important; }
.enquiry-form .invalid-msg { color: #dc3545; font-size: 13px; margin-top: 4px; }

/* ============ Testimonials slider ============ */
.testimonial-slider .slick-list { margin: 0 -12px; padding-bottom: 8px; }
.testimonial-slider .slick-slide { padding: 0 12px; height: auto; }
.testimonial-slider .slick-track { display: flex; }
.testimonial-slider .slick-slide > div, .testimonial-slider .testimonial-item { height: 100%; }
.testimonial-item { display: flex !important; flex-direction: column; }
.testimonial-item__desc { flex-grow: 1; }
.star-rating__item.star-off { color: hsl(var(--border-color)) !important; }
.client-info__thumb { flex-shrink: 0; }
.client-info__thumb img { width: 100%; height: 100%; object-fit: cover; }
.client-info__initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--main-gradient); color: #fff;
    font-weight: 700; font-size: 24px; letter-spacing: 1px;
}
.testimonial .slick-dots { margin-top: 32px; }

/* ============ Call to action ============ */
.cta-section .seller-item { display: flex; flex-direction: column; align-items: flex-start; }
.cta-section .seller-item__desc { flex-grow: 1; }
.cta-tag {
    display: inline-block; margin-bottom: 16px;
    padding: 4px 14px; border-radius: 50px;
    background: rgba(255, 255, 255, .7); color: #11142d;
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.btn-whatsapp { background: #25d366; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.cta-section .support-content__desc { margin-bottom: 20px; }
.text-lowercase-none, .cta-section .btn-static-black { text-transform: none !important; }

/* ============ How to Publish ============ */
@media (min-width: 992px) { .how-publish-aside { position: sticky; top: 120px; } }
.step-list__item p { color: hsl(var(--body-color)); }

/* ============ Mobile Bottom Menu (Home · Services · Books · Authors) ============ */
.mobile-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: hsl(var(--white));
    border-top: 1px solid hsl(var(--border-color) / .6);
    box-shadow: 0 -6px 20px rgba(17, 20, 45, .08);
}
.mobile-bottom-nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    color: hsl(var(--heading-color));
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: color .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav__item i { font-size: 24px; line-height: 1; transition: transform .2s ease; }
.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:focus-visible { color: hsl(var(--main)); }
.mobile-bottom-nav__item.active { color: hsl(var(--main)); font-weight: 600; }
.mobile-bottom-nav__item.active i { transform: translateY(-1px); }
.mobile-bottom-nav__item.active::before {           /* small indicator line on top */
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 28px; height: 3px;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
    background: var(--main-gradient);
}
@media (max-width: 991px) {
    body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }  /* keep footer visible above the bar */
    .progress-wrap { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; } /* scroll-to-top button above the bar */
}
@media (max-width: 359px) {
    .mobile-bottom-nav__item { font-size: 11px; }
    .mobile-bottom-nav__item i { font-size: 22px; }
}

/* ============ What We Publish blocks (no Read More) ============ */
.publish-block .service-item__desc { margin-bottom: 0; }

/* ============ Book Detail Page ============ */
.book-detail-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.25; text-transform: none; }
.book-detail-subtitle { font-size: 18px; color: hsl(var(--body-color)); }
.book-detail-cover {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    border-radius: 16px;
    background: hsl(var(--section-bg));
    min-height: 420px;
    overflow: hidden;
}
.book-detail-cover img,
.book-detail-cover .book-card__fallback {
    position: relative;
    width: auto; max-width: 100%;
    height: 440px; max-height: 60vh;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px 10px 10px 4px;
    box-shadow: -10px 16px 36px rgba(20, 20, 60, .3);
}
.book-detail-cover .book-card__fallback { display: flex; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; }
.book-detail-cover .book-product__badge { top: 16px; left: 16px; font-size: 13px; padding: 4px 12px; }
@media (max-width: 575px) {
    .book-detail-cover { min-height: 340px; padding: 28px 16px; }
    .book-detail-cover img, .book-detail-cover .book-card__fallback { height: 300px; }
}
.book-tag {
    display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 14px;
    background: hsl(var(--main) / .08); color: hsl(var(--main)); font-weight: 500;
}
.book-toc { counter-reset: toc; list-style: none; padding: 0; margin: 0; }
.book-toc li {
    counter-increment: toc;
    display: flex; gap: 14px; align-items: baseline;
    padding: 12px 0; border-bottom: 1px dashed hsl(var(--border-color));
    color: hsl(var(--heading-color)); font-weight: 500;
}
.book-toc li::before {
    content: counter(toc, decimal-leading-zero);
    flex-shrink: 0; font-weight: 700; color: hsl(var(--main)); min-width: 28px;
}
.book-author-box__photo { width: 140px; height: 160px; object-fit: cover; object-position: top; border-radius: 12px; flex-shrink: 0; }
.book-sidebar .product-sidebar__title { font-size: 26px; }
.book-sidebar .author-details__thumb img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
@media (min-width: 992px) { .book-sidebar { position: sticky; top: 110px; } }
.product-details__item .product-details__title,
.book-author-box h2 { font-weight: 700; color: hsl(var(--heading-color)); }
