/* Bookstore layout additions — responsive breakpoints per brief */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Anti-spam honeypot field — must be invisible to humans but submitted with the form */
.bs-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bs-honeypot input,
.bs-honeypot label {
    pointer-events: none;
}

.bookstore-header-row {
    align-items: center;
}

.bookstore-nav-wrap {
    flex: 1;
    min-width: 0;
}

.bookstore-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 14px;
}

.bookstore-nav ul li.active > a {
    text-decoration: underline;
}

/* ============== Cart icon button in header ============== */
.bs-cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 14px;
    border-radius: 50%;
    color: #fff;
    background: rgb(14 44 84) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.bs-cart-button i {
    font-size: 19px;
    line-height: 1;
}

.bs-cart-button:hover,
.bs-cart-button:focus,
.bs-cart-button.is-active {
    background: #fff;
    color: #003663;
    border-color: #fff;
    transform: translateY(-1px);
}

.bs-cart-button-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d97706;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px #003663;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.bs-cart-button-count.is-empty {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
}

.bs-cart-button:hover .bs-cart-button-count,
.bs-cart-button.is-active .bs-cart-button-count {
    box-shadow: 0 0 0 2px #fff;
}

/* When the sticky header turns light (theme adds .is-sticky on scroll) */
header.is-sticky .bs-cart-button {
    color: #003663;
    background: rgba(0, 54, 99, 0.08);
    border-color: rgba(0, 54, 99, 0.18);
}

header.is-sticky .bs-cart-button:hover,
header.is-sticky .bs-cart-button:focus,
header.is-sticky .bs-cart-button.is-active {
    background: #003663;
    color: #fff;
    border-color: #003663;
}

header.is-sticky .bs-cart-button-count {
    box-shadow: 0 0 0 2px #fff;
}

/* Mobile: keep the cart button visible next to the menu toggle */
@media (max-width: 768px) {
    .bookstore-header-row {
        flex-wrap: nowrap;
    }
    .bs-cart-button {
        order: 2;
        margin-left: 8px;
        width: 40px;
        height: 40px;
    }
    .mainmenu.bookstore-nav-wrap {
        order: 3;
    }
}

.bookstore-page {
    min-height: 50vh;
}

.bs-section-title {
    margin-bottom: 36px;
}

/* ============== Lightweight bookstore buttons ============== */
.bs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    border: 1px solid transparent;
    text-transform: none;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.bs-btn:focus-visible {
    outline: 2px solid #003663;
    outline-offset: 2px;
}

.bs-btn-primary {
    background: #003663;
    color: #fff;
    border-color: #003663;
}

.bs-btn-primary:hover,
.bs-btn-primary:focus {
    background: #00284a;
    color: #fff;
    border-color: #00284a;
}

.bs-btn-ghost {
    background: transparent;
    color: #003663;
    border-color: #c8d3df;
}

.bs-btn-ghost:hover,
.bs-btn-ghost:focus {
    background: #003663;
    color: #fff;
    border-color: #003663;
}

.bs-btn-link {
    height: auto;
    padding: 0;
    background: transparent;
    color: #003663;
    border: 0;
    text-decoration: underline;
    font-size: 12px;
    letter-spacing: 0;
}

.bs-btn-link:hover,
.bs-btn-link:focus {
    color: #00284a;
}

.bs-btn-block {
    width: 100%;
}

/* ============== Books grid ============== */
.book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 481px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1200px) {
    .book-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.book-card {
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: #dfe6ee;
}

.book-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(160deg, #f7f9fc 0%, #e9eef5 100%);
}

.book-card-cover img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 78%;
    max-width: 78%;
    height: auto;
    max-height: 86%;
    object-fit: contain;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.book-card:hover .book-card-cover img {
    transform: scale(1.03);
}

.book-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(0, 54, 99, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.book-card-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-card-title {
    font-size: 17px;
    line-height: 1.3;
    margin: 0;
    color: #111827;
    font-weight: 700;
    text-transform: none;
}

.book-card-title a {
    color: inherit;
    text-decoration: none;
}

.book-card-title a:hover,
.book-card-title a:focus {
    color: #003663;
}

.book-card-author {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0;
}

.book-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #003663;
    margin: 4px 0 6px;
}

.book-card-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
}

/* Book detail: when a 3rd action button exists (e.g. Amazon), let it span full width */
.book-card-actions > a:nth-child(3) {
    grid-column: 1 / -1;
}

.book-card-amazon {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.book-card-amazon:hover,
.book-card-amazon:focus {
    color: #003663;
    text-decoration: underline;
}

/* ============== Book detail layout ============== */
.book-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 769px) {
    .book-detail-layout {
        grid-template-columns: minmax(240px, 360px) 1fr;
    }
}

.book-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.book-gallery a {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}

.book-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* ============== Cart / checkout ============== */
.cart-table-wrap {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.cart-table th,
.cart-table td {
    padding: 14px 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: middle;
    color: #1f2937;
}

.cart-table th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    background: #f9fafb;
}

.cart-qty-input {
    width: 72px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
}

.cart-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(160deg, #f7f9fc, #e9eef5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef2f7;
}

.cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cart-product-title {
    color: #0f172a !important;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

.cart-product-title:hover,
.cart-product-title:focus {
    color: #003663 !important;
    text-decoration: underline;
}

.cart-product-author {
    color: #6b7280;
    font-size: 12.5px;
}

.cart-remove {
    color: #b91c1c !important;
    font-size: 12.5px;
    text-decoration: none;
    border-bottom: 1px dashed rgba(185, 28, 28, 0.4);
}

.cart-remove:hover,
.cart-remove:focus {
    border-bottom-style: solid;
}

.cart-update-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    margin-top: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.cart-summary-card {
    width: 100%;
    max-width: 380px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cart-summary-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 6px;
}

.cart-summary-line strong {
    font-size: 22px;
    color: #003663;
}

.cart-summary-note {
    color: #6b7280;
    font-size: 12.5px;
    margin: 0 0 18px;
}

.cart-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-clear-form {
    margin: 0;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px 20px;
}

.cart-empty h3 {
    margin-bottom: 8px;
    color: #0f172a;
}

.cart-empty p {
    color: #6b7280;
    margin-bottom: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 769px) {
    .checkout-grid {
        grid-template-columns: 1fr 340px;
    }
}

.checkout-summary {
    background: #f9fafb;
    padding: 22px 24px;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 110px;
}

.checkout-summary-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 14px;
}

.checkout-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 12px;
}

.checkout-summary-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.checkout-summary-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.checkout-thumb {
    width: 48px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(160deg, #f7f9fc, #e9eef5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef2f7;
}

.checkout-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-summary-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.checkout-summary-title-row {
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.checkout-summary-qty {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.checkout-summary-amount {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.checkout-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 2px solid #003663;
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.checkout-summary-total strong {
    font-size: 22px;
    color: #003663;
    text-transform: none;
    letter-spacing: 0;
}

.checkout-summary-note {
    color: #6b7280;
    font-size: 12px;
    margin-top: 10px;
}

.form-stack label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.form-stack .form-control,
.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ============== Footer / newsletter ============== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #fff;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.newsletter-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 376px) {
    .newsletter-field {
        flex-direction: row;
        align-items: stretch;
    }
}

.newsletter-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 4px;
    border: none;
}

.newsletter-btn {
    white-space: nowrap;
}

/* ============== Reviews ============== */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 481px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.review-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.stars {
    color: #f5a623;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.alert-soft {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

/* ============== Stripe cancelled page ============== */
.bs-cancel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 769px) {
    .bs-cancel-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 36px;
    }
}

.bs-cancel-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

@media (min-width: 769px) {
    .bs-cancel-card {
        padding: 40px;
    }
}

.bs-cancel-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.bs-cancel-title {
    font-size: 26px;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 12px;
    font-weight: 700;
}

@media (min-width: 769px) {
    .bs-cancel-title {
        font-size: 30px;
    }
}

.bs-cancel-lead {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 60ch;
}

.bs-cancel-lead strong {
    color: #0f172a;
}

.bs-cancel-reasons {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 12px;
}

.bs-cancel-reasons li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.bs-cancel-bullet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #003663;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bs-cancel-reasons strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 2px;
}

.bs-cancel-reasons span {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

.bs-cancel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.bs-cancel-summary {
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 110px;
}

.bs-cancel-summary-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 6px;
}

.bs-cancel-summary-meta {
    color: #0f172a;
    font-size: 14px;
    margin: 0 0 16px;
}

.bs-cancel-summary-meta strong {
    color: #003663;
}

.bs-cancel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 10px;
}

.bs-cancel-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
}

.bs-cancel-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.bs-cancel-thumb {
    width: 48px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(160deg, #f7f9fc, #e9eef5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef2f7;
}

.bs-cancel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bs-cancel-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bs-cancel-item-title {
    color: #0f172a !important;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bs-cancel-item-title:hover,
.bs-cancel-item-title:focus {
    color: #003663 !important;
    text-decoration: underline;
}

.bs-cancel-item-qty {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.bs-cancel-item-amount {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.bs-cancel-empty {
    color: #6b7280;
    font-size: 13.5px;
    margin: 0 0 14px;
}

/* ============== Thank-you / order success page ============== */
.bs-thanks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 769px) {
    .bs-thanks-grid {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 36px;
    }
}

.bs-thanks-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

@media (min-width: 769px) {
    .bs-thanks-card {
        padding: 40px;
    }
}

.bs-thanks-card--center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.bs-thanks-card--center .bs-thanks-icon {
    margin-left: auto;
    margin-right: auto;
}

.bs-thanks-card--center .bs-thanks-actions {
    justify-content: center;
}

.bs-thanks-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
}

.bs-thanks-title {
    font-size: 26px;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 12px;
    font-weight: 700;
}

@media (min-width: 769px) {
    .bs-thanks-title {
        font-size: 32px;
    }
}

.bs-thanks-lead {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 60ch;
}

.bs-thanks-card--center .bs-thanks-lead {
    margin-left: auto;
    margin-right: auto;
}

.bs-thanks-lead strong {
    color: #0f172a;
}

.bs-thanks-ref {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    background: #f7f9fc;
    border: 1px dashed #c8d3df;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 28px;
}

.bs-thanks-ref-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
}

.bs-thanks-ref-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    color: #003663;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
}

.bs-thanks-subtitle {
    font-size: 15px;
    color: #0f172a;
    margin: 0 0 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bs-thanks-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 12px;
    counter-reset: bs-thanks;
}

.bs-thanks-steps li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.bs-thanks-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #003663;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bs-thanks-steps strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 2px;
}

.bs-thanks-steps span {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

.bs-thanks-steps a {
    color: #003663;
    border-bottom: 1px solid rgba(0, 54, 99, 0.4);
}

.bs-thanks-steps a:hover,
.bs-thanks-steps a:focus {
    border-bottom-color: #003663;
}

.bs-thanks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

/* Sidebar order summary */
.bs-thanks-summary {
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 110px;
}

.bs-thanks-summary-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 14px;
}

.bs-thanks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 12px;
}

.bs-thanks-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.bs-thanks-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.bs-thanks-thumb {
    width: 48px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(160deg, #f7f9fc, #e9eef5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef2f7;
}

.bs-thanks-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bs-thanks-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bs-thanks-item-title {
    color: #0f172a !important;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bs-thanks-item-title:hover,
.bs-thanks-item-title:focus {
    color: #003663 !important;
    text-decoration: underline;
}

.bs-thanks-item-qty {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.bs-thanks-item-amount {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.bs-thanks-totals {
    margin: 0 0 18px;
    padding: 14px 0 0;
    border-top: 2px solid #003663;
    display: grid;
    gap: 6px;
}

.bs-thanks-totals > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bs-thanks-totals dt {
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.bs-thanks-totals dd {
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.bs-thanks-totals-grand dt {
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
}

.bs-thanks-totals-grand dd {
    color: #003663;
    font-size: 22px;
    font-weight: 800;
}

.bs-thanks-address {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.bs-thanks-address-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 6px;
}

.bs-thanks-address p {
    font-size: 13px;
    color: #0f172a;
    line-height: 1.55;
    margin: 0;
}

.bs-thanks-empty {
    color: #6b7280;
    font-size: 13.5px;
    margin: 0;
}

@media print {
    @page {
        size: A4;
        margin: 14mm 14mm 14mm 14mm;
    }

    html,
    body {
        background: #fff !important;
        color: #1f2937 !important;
        font-size: 11.5pt;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide every site chrome element on print */
    header,
    .header,
    .header-area,
    .sidebar-area,
    .sidebar-overlay,
    .header-area + *:empty,
    nav,
    .navbar,
    .mainmenu,
    .bookstore-header-row,
    footer,
    .footer-area,
    .footer,
    .bs-page-banner,
    .bs-receipt-hero,
    .bs-cart-button,
    .bs-thanks-actions,
    .bs-receipt-footer,
    .navbar-toggler,
    .scroll-up,
    .back-top,
    a[href^="javascript"],
    .breadcrumb,
    .bs-breadcrumb {
        display: none !important;
    }

    /* Reset main containers — full page, no top offset */
    main,
    .bookstore-page,
    .bs-receipt-page,
    .bs-receipt-shell,
    .section-padding {
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Receipt block fills the page nicely */
    .bs-receipt {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .bs-receipt-header {
        margin-bottom: 18px !important;
    }

    .bs-receipt-check {
        background: #fff !important;
        color: #16a34a !important;
        border: 2px solid #16a34a !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
    }

    .bs-receipt-title {
        font-size: 22pt !important;
        color: #0f172a !important;
        margin-bottom: 8px !important;
    }

    .bs-receipt-lead {
        font-size: 11pt !important;
        color: #4b5563 !important;
    }

    .bs-receipt-ref {
        font-size: 10.5pt !important;
    }

    .bs-receipt-ref strong {
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
    }

    /* Cards: light borders, no shadows, prevent splitting */
    .bs-receipt-card,
    .bs-thanks-card,
    .bs-thanks-summary {
        border: 1px solid #d4d4d4 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        break-inside: avoid;
        background: #fff !important;
        padding: 18px 20px !important;
        margin-bottom: 14px !important;
    }

    /* Items list */
    .bs-receipt-items {
        margin-bottom: 12px !important;
    }

    .bs-receipt-item {
        page-break-inside: avoid;
        break-inside: avoid;
        padding: 10px 0 !important;
        grid-template-columns: 60px 1fr auto auto !important;
        gap: 10px 14px !important;
    }

    .bs-receipt-thumb {
        width: 60px !important;
        height: 80px !important;
        border: 1px solid #e5e7eb !important;
    }

    .bs-receipt-item-title {
        font-size: 11pt !important;
        color: #0f172a !important;
        text-decoration: none !important;
    }

    .bs-receipt-item-unit,
    .bs-receipt-item-meta,
    .bs-receipt-item-qty {
        font-size: 9.5pt !important;
        color: #6b7280 !important;
    }

    .bs-receipt-item-total {
        font-size: 11pt !important;
        color: #0f172a !important;
    }

    /* Totals */
    .bs-receipt-totals {
        max-width: 320px !important;
    }

    .bs-receipt-totals dt,
    .bs-receipt-totals dd {
        font-size: 10pt !important;
    }

    .bs-receipt-grand dt {
        font-size: 12pt !important;
    }

    .bs-receipt-grand dd {
        font-size: 14pt !important;
    }

    /* Address block */
    .bs-receipt-card--address {
        gap: 24px !important;
    }

    .bs-receipt-address h3 {
        font-size: 10.5pt !important;
    }

    .bs-receipt-address p,
    .bs-receipt-meta-label {
        font-size: 9.5pt !important;
    }

    /* Convert links to plain black ink */
    a,
    a:visited {
        color: #0f172a !important;
        text-decoration: none !important;
    }

    /* Hide newsletter/contact card actions on print */
    .bs-thanks-summary {
        position: static !important;
    }
}

/* ============== Receipt-style success page (type=order) ============== */
.bs-receipt-page {
    background: #f8fafc;
    position: relative;
    padding: 0 0 80px;
    min-height: 70vh;
}

.bs-receipt-hero {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #003663 0%, #0a4a85 60%, #0c5aa3 100%);
    overflow: hidden;
}

@media (min-width: 769px) {
    .bs-receipt-hero {
        height: 180px;
    }
}

.bs-receipt-hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    pointer-events: none;
}

.bs-receipt-hero-shape--a {
    width: 260px;
    height: 260px;
    top: -90px;
    right: -60px;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%);
}

.bs-receipt-hero-shape--b {
    width: 180px;
    height: 180px;
    bottom: -80px;
    left: -40px;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.12;
}

.bs-receipt-shell {
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .bs-receipt-shell {
        margin-top: -100px;
    }
}

.bs-receipt {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}

.bs-receipt-header {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

@media (min-width: 769px) {
    .bs-receipt-header {
        padding: 40px 32px;
    }
}

.bs-receipt-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 32px;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.3);
}

.bs-receipt-title {
    font-size: 30px;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

@media (min-width: 769px) {
    .bs-receipt-title {
        font-size: 38px;
    }
}

.bs-receipt-lead {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.bs-receipt-lead strong {
    color: #0f172a;
}

.bs-receipt-ref {
    color: #6b7280;
    font-size: 13.5px;
    margin: 0;
}

.bs-receipt-ref strong {
    color: #0f172a;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    background: #f7f9fc;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Card containers */
.bs-receipt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

@media (min-width: 769px) {
    .bs-receipt-card {
        padding: 32px;
    }
}

/* Items list */
.bs-receipt-items {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.bs-receipt-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px 18px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
}

.bs-receipt-item:first-child {
    padding-top: 0;
}

.bs-receipt-item:last-child {
    border-bottom: 0;
    padding-bottom: 18px;
}

.bs-receipt-thumb {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(160deg, #f7f9fc, #e9eef5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef2f7;
}

.bs-receipt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bs-receipt-item-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bs-receipt-item-title {
    color: #0f172a !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    margin-bottom: 4px;
}

.bs-receipt-item-title:hover,
.bs-receipt-item-title:focus {
    color: #003663 !important;
    text-decoration: underline;
}

.bs-receipt-item-unit {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 2px;
}

.bs-receipt-item-meta {
    color: #6b7280;
    font-size: 12.5px;
    line-height: 1.4;
}

.bs-receipt-item-qty {
    color: #6b7280;
    font-size: 13.5px;
    white-space: nowrap;
    padding-top: 2px;
}

.bs-receipt-item-total {
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    padding-top: 2px;
}

@media (max-width: 600px) {
    .bs-receipt-item {
        grid-template-columns: 64px 1fr;
        gap: 12px;
    }
    .bs-receipt-thumb {
        width: 64px;
        height: 84px;
    }
    .bs-receipt-item-qty {
        grid-column: 2;
        order: 3;
    }
    .bs-receipt-item-total {
        grid-column: 2;
        order: 4;
        text-align: left;
    }
}

/* Totals */
.bs-receipt-totals {
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid #eef2f7;
    display: grid;
    gap: 8px;
    max-width: 360px;
    margin-left: auto;
}

.bs-receipt-totals > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.bs-receipt-totals dt {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.bs-receipt-totals dd {
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-align: right;
}

.bs-receipt-grand {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.bs-receipt-grand dt {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.bs-receipt-grand dd {
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
}

.bs-receipt-paid {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.bs-receipt-paid dt,
.bs-receipt-paid dd {
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
}

.bs-receipt-card-row dd {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.bs-receipt-card-exp {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

/* Address card */
.bs-receipt-card--address {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 600px) {
    .bs-receipt-card--address {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

.bs-receipt-address h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.bs-receipt-address p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 4px;
}

.bs-receipt-address p:last-child {
    margin-bottom: 0;
}

.bs-receipt-address strong {
    color: #0f172a;
    font-weight: 600;
}

.bs-receipt-meta-label {
    display: inline-block;
    min-width: 64px;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-right: 8px;
}

.bs-receipt-empty {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Footer links */
.bs-receipt-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 8px;
}

.bs-receipt-link {
    color: #be123c !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.bs-receipt-link:hover,
.bs-receipt-link:focus {
    color: #9f1239 !important;
    text-decoration-thickness: 2px;
}

.bs-receipt-dot {
    color: #cbd5e1;
    margin: 0 10px;
}

.bs-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    color: #4b5563;
    font-size: 13px;
}

.bs-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #003663;
    margin-bottom: 14px;
}

/* ================= Reusable page banner ================= */
.bs-page-banner {
    position: relative;
    overflow: hidden;
    padding: 130px 0 60px;
    background:
        radial-gradient(1200px 600px at 110% -50%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(135deg, #001f3a 0%, #003663 55%, #00264b 100%);
    color: #fff;
    text-align: center;
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .bs-page-banner {
        padding: 170px 0 80px;
    }
}

.bs-page-banner .container {
    position: relative;
    z-index: 2;
}

.bs-page-banner-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.55;
    z-index: 1;
}

.bs-page-banner-shape--a {
    width: 380px;
    height: 380px;
    top: -120px;
    right: -120px;
    background: radial-gradient(circle, rgba(159, 196, 234, 0.22) 0%, rgba(159, 196, 234, 0) 70%);
}

.bs-page-banner-shape--b {
    width: 460px;
    height: 460px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
}

.bs-banner-title {
    font-size: 30px;
    line-height: 1.18;
    margin: 0 auto 12px;
    font-weight: 700;
    color: #fff;
    max-width: 880px;
    text-transform: none;
    letter-spacing: -0.005em;
}

@media (min-width: 769px) {
    .bs-banner-title {
        font-size: 44px;
    }
}

.bs-banner-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 720px;
}

@media (min-width: 769px) {
    .bs-banner-lead {
        font-size: 16px;
    }
}

/* Breadcrumb */
.bs-breadcrumb {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.bs-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
}

.bs-breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.bs-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.45);
}

.bs-breadcrumb a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 1px;
    transition: border-color 0.15s ease;
}

.bs-breadcrumb a:hover,
.bs-breadcrumb a:focus {
    border-bottom-color: #fff;
}

.bs-breadcrumb [aria-current="page"] {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

/* When a banner is used, main content needs less top padding */
.bs-page-banner + .bookstore-page,
.bs-page-banner + main.bookstore-page {
    padding-top: 60px !important;
}

.bs-eyebrow.muted {
    color: #6b7280;
}

.hide-sm {
    display: none;
}

@media (min-width: 769px) {
    .hide-sm {
        display: inline;
    }
}

/* ================= About hero ================= */
.about-hero {
    position: relative;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid #eef2f7;
}

.about-hero-title {
    font-size: 30px;
    line-height: 1.18;
    color: #0f172a;
    margin: 0 auto 16px;
    max-width: 760px;
    font-weight: 700;
}

@media (min-width: 769px) {
    .about-hero-title {
        font-size: 40px;
    }
}

.about-hero-lead {
    color: #4b5563;
    font-size: 16px;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================= About sections ================= */
.about-section {
    padding: 60px 0;
}

@media (min-width: 769px) {
    .about-section {
        padding: 80px 0;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 769px) {
    .about-grid {
        grid-template-columns: minmax(280px, 420px) 1fr;
        gap: 60px;
    }
}

.about-photo figure {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    background: #0f172a;
}

.about-photo figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.about-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.about-photo figcaption strong {
    font-size: 16px;
    letter-spacing: 0.02em;
}

.about-photo figcaption span {
    font-size: 12px;
    opacity: 0.9;
}

.about-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.about-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 4px;
    border-right: 1px solid #eef2f7;
}

.about-stats > div:last-child {
    border-right: 0;
}

.about-stats strong {
    font-size: 22px;
    color: #003663;
    line-height: 1;
}

.about-stats span {
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-copy-title {
    font-size: 26px;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 16px;
    font-weight: 700;
}

@media (min-width: 769px) {
    .about-copy-title {
        font-size: 32px;
    }
}

.about-copy p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.75;
}

.about-subtitle {
    font-size: 16px;
    color: #0f172a;
    margin: 32px 0 14px;
    font-weight: 700;
    text-transform: none;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 12px;
}

.trust-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    background: #f7f9fc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.trust-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #003663;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trust-list strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 2px;
}

.trust-list span {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

.about-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

/* ================= Feature strip ================= */
.about-features-section {
    background: #f7f9fc;
    padding: 50px 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 481px) {
    .about-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.about-feature {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.about-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 54, 99, 0.08);
    color: #003663;
    margin: 0 auto 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.about-feature h4 {
    color: #0f172a;
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 700;
}

.about-feature p {
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

/* ================= Reach card ================= */
.reach-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding: 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, #003663 0%, #00284a 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 40, 74, 0.25);
}

@media (min-width: 769px) {
    .reach-card {
        grid-template-columns: 1.2fr 1fr auto;
        gap: 40px;
        padding: 40px 44px;
    }
}

.reach-card .bs-eyebrow {
    color: #9fc4ea;
}

.reach-card-title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #fff;
    font-weight: 700;
}

@media (min-width: 769px) {
    .reach-card-title {
        font-size: 26px;
    }
}

.reach-card-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.reach-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.reach-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
}

.reach-list li i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.reach-list a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.reach-list a:hover,
.reach-list a:focus {
    border-bottom-color: #fff;
}

.reach-cta .bs-btn-primary {
    background: #fff;
    color: #003663;
    border-color: #fff;
}

.reach-cta .bs-btn-primary:hover,
.reach-cta .bs-btn-primary:focus {
    background: #f1f5fa;
    color: #003663;
    border-color: #f1f5fa;
}

/* ============== Home: Featured book section ============== */
.bs-book-section {
    background: #fafbfd;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

.bs-section-heading {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.bs-section-heading--sm {
    margin-top: 90px;
    margin-bottom: 40px;
}

.bs-section-eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #003663;
    background: rgba(0, 54, 99, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.bs-section-title {
    font-size: 40px;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    text-transform: capitalize;
}

@media (max-width: 600px) {
    .bs-section-title {
        font-size: 30px;
    }
}

.bs-section-title--sm {
    font-size: 28px;
}

.bs-section-lead {
    color: #4b5563;
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0;
}

/* ----- Featured book main card ----- */
.featured-book {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 1080px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .featured-book {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

.featured-book-cover {
    position: relative;
    background: linear-gradient(160deg, #f4f8fd 0%, #e6eef7 60%, #d9e3ef 100%);
    padding: 50px 40px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 360px;
}

@media (min-width: 769px) {
    .featured-book-cover {
        padding: 60px 50px;
    }
}

.featured-book-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.45;
}

.featured-book-shape--a {
    width: 280px;
    height: 280px;
    top: -90px;
    right: -90px;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%);
}

.featured-book-shape--b {
    width: 220px;
    height: 220px;
    bottom: -70px;
    left: -60px;
    background: radial-gradient(circle, rgba(0, 54, 99, 0.18) 0%, rgba(0, 54, 99, 0) 70%);
}

.featured-book-cover-link {
    position: relative;
    z-index: 1;
    max-width: 280px;
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
    transform: rotate(-3deg);
}

.featured-book-cover-link:hover,
.featured-book-cover-link:focus {
    transform: rotate(0deg) translateY(-4px);
}

.featured-book-cover-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow:
        0 30px 60px rgba(15, 23, 42, 0.25),
        -10px 10px 0 -2px rgba(0, 54, 99, 0.08);
}

.featured-book-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    background: #003663;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 7px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 54, 99, 0.3);
}

/* ----- Featured book body ----- */
.featured-book-body {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .featured-book-body {
        padding: 50px 50px;
    }
}

.featured-book-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #be123c;
    background: rgba(190, 18, 60, 0.08);
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.featured-book-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

@media (min-width: 769px) {
    .featured-book-title {
        font-size: 34px;
    }
}

.featured-book-title a {
    color: inherit !important;
    text-decoration: none;
}

.featured-book-title a:hover,
.featured-book-title a:focus {
    color: #003663 !important;
}

.featured-book-author {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.featured-book-author span {
    color: #003663;
    font-weight: 700;
}

.featured-book-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef2f7;
}

.featured-book-price {
    font-size: 26px;
    font-weight: 800;
    color: #003663;
}

.featured-book-meta-dot {
    color: #cbd5e1;
}

.featured-book-language {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.featured-book-short {
    color: #1f2937;
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0 0 22px;
}

.featured-book-synopsis {
    background: #f8fafc;
    border-left: 3px solid #003663;
    padding: 18px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 26px;
}

.featured-book-synopsis h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #003663;
    margin: 0 0 8px;
}

.featured-book-synopsis p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.featured-book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    margin-top: auto;
}

/* ----- Backlist grid ----- */
.featured-book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .featured-book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 901px) {
    .featured-book-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.featured-book-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.featured-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.featured-book-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: linear-gradient(160deg, #f4f8fd, #e6eef7);
    overflow: hidden;
}

.featured-book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px 14px;
    transition: transform 0.4s ease;
}

.featured-book-card:hover .featured-book-card-cover img {
    transform: scale(1.04);
}

.featured-book-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: #003663;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.featured-book-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-book-card-title {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.featured-book-card-title a {
    color: inherit !important;
    text-decoration: none;
}

.featured-book-card-title a:hover,
.featured-book-card-title a:focus {
    color: #003663 !important;
}

.featured-book-card-author {
    color: #6b7280;
    font-size: 12.5px;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.featured-book-card-short {
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-book-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.featured-book-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #003663;
}

.featured-book-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.bs-btn-sm {
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    letter-spacing: 0.04em !important;
}

.featured-book-allcta {
    text-align: center;
    margin-top: 50px;
}

/* ============== Writing Journey overlay (let the photo breathe) ============== */
#writing .overlay-shape.overlay.overlay-1:before,
#writing .overlay.overlay-1:before {
    background: linear-gradient(
        90deg,
        rgba(0, 54, 99, 0) 0%,
        rgba(0, 54, 99, 0.15) 25%,
        rgba(0, 54, 99, 0.55) 55%,
        rgba(0, 54, 99, 0.82) 100%
    ) !important;
}

@media (max-width: 768px) {
    #writing .overlay-shape.overlay.overlay-1:before,
    #writing .overlay.overlay-1:before {
        background: linear-gradient(
            180deg,
            rgba(0, 54, 99, 0.1) 0%,
            rgba(0, 54, 99, 0.5) 60%,
            rgba(0, 54, 99, 0.85) 100%
        ) !important;
    }
}
