
/* JATAV HISTORY - DALIT BOOKS */

.db-page {
    max-width: 1250px;
    margin: 22px auto 50px;
    padding: 0 16px;
    color: #23364a;
}

/* HERO */
.db-hero {
    text-align: center;
    padding: 42px 20px;
    border: 1px solid #c5e5f5;
    border-radius: 15px;
    background: linear-gradient(120deg, #e8f7ff, #d4efff 55%, #effaff);
}

.db-kicker,
.db-eyebrow {
    display: inline-block;
    color: #3982aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.db-hero h1 {
    color: #173f60;
    font-size: clamp(28px, 4vw, 40px);
    margin: 10px 0;
    line-height: 1.2;
}

.db-hero p {
    color: #56748a;
    font-size: 14px;
    line-height: 1.7;
    max-width: 700px;
    margin: auto;
}

/* STORE STRIP */
.db-stores {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 4px;
    border-bottom: 1px solid #e7edf2;
}

.db-store-heading h2 {
    color: #294963;
    font-size: 16px;
    margin: 0 0 4px;
}

.db-store-heading p {
    color: #82909d;
    font-size: 11px;
    margin: 0;
}

.db-store-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.db-store-logo {
    width: 92px;
    height: 42px;
    padding: 5px 10px;
    box-sizing: border-box;
    border: 1px solid #e8edf2;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.db-store-logo img {
    max-width: 100%;
    max-height: 27px;
    object-fit: contain;
}

/* CATEGORY BAR */
.db-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 21px 0;
}

.db-categories button {
    border: 1px solid #dce6ef;
    border-radius: 30px;
    padding: 9px 16px;
    color: #526b80;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.db-categories button:hover,
.db-categories button.active {
    background: #174d79;
    color: #fff;
    border-color: #174d79;
}

/* TWO COLUMN LAYOUT */
.db-layout {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 23px;
    align-items: start;
}

/* WRITER SIDEBAR */
.db-sidebar {
    position: sticky;
    top: 95px;
}

.db-sidebar-box {
    border: 1px solid #e4eaf0;
    border-radius: 11px;
    background: #fff;
    padding: 16px 12px;
}

.db-sidebar-box h2 {
    font-size: 16px;
    color: #284b68;
    margin: 0 0 14px;
    padding: 0 5px 12px;
    border-bottom: 1px solid #edf0f4;
}

.db-writer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    padding: 10px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #5d7081;
    text-align: left;
    font-size: 12px;
    cursor: pointer;
    margin: 2px 0;
}

.db-writer:hover,
.db-writer.active {
    color: #1e6394;
    background: #edf7fd;
}

.db-writer.active {
    font-weight: 800;
}

.db-writer small {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f3f6;
    color: #6d7d8d;
    border-radius: 20px;
    font-size: 10px;
}

.db-sidebar-note {
    margin-top: 13px;
    padding: 15px;
    background: #edf7fc;
    border: 1px solid #d9edf8;
    border-radius: 10px;
}

.db-sidebar-note strong {
    color: #285878;
    font-size: 13px;
}

.db-sidebar-note p {
    color: #71879a;
    font-size: 11px;
    line-height: 1.6;
    margin: 7px 0 0;
}

/* MAIN HEADING */
.db-main-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 0 0 16px;
}

.db-main-heading h2 {
    color: #233f59;
    font-size: 23px;
    margin: 5px 0 0;
}

.db-results {
    color: #82909e;
    font-size: 11px;
    white-space: nowrap;
}

/* SEARCH */
.db-search {
    height: 45px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 17px;
}

.db-search span {
    color: #6790aa;
    font-size: 25px;
}

.db-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #30485d;
    font-size: 13px;
}

/* BOOK GRID */
.db-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.db-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: .22s ease;
}

.db-card:hover {
    transform: translateY(-4px);
    border-color: #c7dce9;
    box-shadow: 0 8px 22px rgba(27,65,95,.09);
}

/* IMAGE */
.db-cover-area {
    position: relative;
    height: 205px;
    padding: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f0f5f8;
}

.db-index {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #27658c;
    background: #fff;
    font-size: 9px;
    font-weight: 800;
}

.db-cover {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 5px 6px rgba(0,0,0,.16));
}

.db-cover-fallback {
    width: 130px;
    height: 175px;
    padding: 14px;
    box-sizing: border-box;
    border: 4px double rgba(255,255,255,.6);
    background: linear-gradient(145deg, #1b4e72, #347d9d);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,.14);
}

.db-cover-fallback span {
    font-size: 7px;
    letter-spacing: 1px;
}

.db-cover-fallback strong {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.35;
    margin: 15px 0;
}

.db-cover-fallback small {
    font-size: 9px;
}

/* BOOK INFO */
.db-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 13px;
}

.db-book-category {
    display: inline-block;
    width: fit-content;
    color: #2675a4;
    background: #edf7fd;
    border: 1px solid #d9edf9;
    border-radius: 20px;
    padding: 5px 9px;
    font-size: 9px;
    font-weight: 800;
    margin-bottom: 9px;
}

.db-card-info h3 {
    color: #233c54;
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 5px;
}

.db-author {
    color: #7b8b9a;
    font-size: 11px;
    margin: 0 0 10px;
}

.db-description {
    color: #697989;
    font-size: 11px;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}

/* SELLER BUTTONS */
.db-buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}

.db-buy {
    min-height: 37px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
    transition: .2s;
}

.db-buy img {
    width: 30px;
    height: 17px;
    object-fit: contain;
    background: #fff;
    border-radius: 3px;
    padding: 1px 2px;
}

.db-buy span {
    flex: 1;
    text-align: center;
}

.db-buy b {
    font-size: 14px;
}

.db-amazon {
    color: #252525 !important;
    background: #ffbd45;
    border: 1px solid #f2ae2d;
}

.db-amazon:hover {
    background: #f4a91e;
}

.db-flipkart {
    color: #fff !important;
    background: #1765bd;
    border: 1px solid #1765bd;
}

.db-flipkart:hover {
    background: #1054a2;
}

.db-link-pending {
    display: block;
    padding: 10px;
    color: #8b98a5;
    background: #f5f7f9;
    border-radius: 6px;
    font-size: 10px;
    text-align: center;
}

/* EMPTY */
.db-empty {
    padding: 35px;
    text-align: center;
    background: #f6f9fb;
    border-radius: 10px;
    color: #75889a;
}

.db-empty h3 {
    color: #38536c;
    margin: 0 0 6px;
}

/* ABOUT */
.db-about {
    margin-top: 30px;
    padding: 22px;
    border: 1px solid #dcebf4;
    border-radius: 11px;
    background: #f2f9fd;
}

.db-about h2 {
    color: #284c69;
    font-size: 18px;
    margin: 0 0 8px;
}

.db-about p {
    color: #687f91;
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
}

.db-disclosure {
    text-align: center;
    color: #99a3ad;
    font-size: 9px;
    margin: 13px 0 0;
}

/* RESPONSIVE */
@media(max-width: 1000px) {
    .db-layout {
        grid-template-columns: 195px minmax(0, 1fr);
        gap: 15px;
    }

    .db-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 650px) {
    .db-page {
        padding: 0 11px;
    }

    .db-hero {
        padding: 34px 16px;
    }

    .db-hero p {
        font-size: 12px;
    }

    .db-stores {
        display: block;
        text-align: center;
        padding: 15px 0;
    }

    .db-store-logos {
        justify-content: center;
        margin-top: 12px;
        gap: 8px;
    }

    .db-store-logo {
        width: 82px;
        height: 37px;
    }

    .db-store-logo img {
        max-height: 23px;
    }

    .db-categories {
        gap: 7px;
        padding: 16px 0;
    }

    .db-categories button {
        padding: 8px 12px;
        font-size: 10px;
    }

    .db-layout {
        display: flex;
        flex-direction: column;
    }

    .db-sidebar {
        position: static;
        width: 100%;
    }

    .db-sidebar-box {
        padding: 12px;
    }

    .db-sidebar-box h2 {
        margin-bottom: 9px;
    }

    .db-sidebar-box {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .db-sidebar-box h2 {
        width: 100%;
    }

    .db-writer {
        width: auto;
        border: 1px solid #e7edf2;
        padding: 8px 10px;
        margin: 0;
        flex: 0 0 auto;
    }

    .db-sidebar-note {
        display: none;
    }

    .db-main {
        width: 100%;
    }

    .db-main-heading h2 {
        font-size: 20px;
    }

    .db-grid {
        gap: 11px;
    }

    .db-cover-area {
        height: 175px;
        padding: 10px;
    }

    .db-cover {
        max-height: 150px;
    }

    .db-cover-fallback {
        width: 112px;
        height: 150px;
    }

    .db-cover-fallback strong {
        font-size: 14px;
    }

    .db-card-info {
        padding: 10px;
    }

    .db-card-info h3 {
        font-size: 13px;
    }

    .db-description {
        font-size: 10px;
    }

    .db-buy {
        min-height: 34px;
        font-size: 10px;
    }

    .db-buy img {
        width: 26px;
        height: 15px;
    }
}

@media(max-width: 360px) {
    .db-grid {
        grid-template-columns: 1fr;
    }

    .db-cover-area {
        height: 220px;
    }

    .db-cover {
        max-height: 195px;
    }

    .db-cover-fallback {
        width: 145px;
        height: 190px;
    }
}

/* AMAZON LOGO ONLY BUTTON */

.amazon-logo-btn {
    width: 66px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #e3e8ed;
    border-radius: 8px;

    box-shadow: 0 2px 7px rgba(0,0,0,.06);
    transition: all .2s ease;
}

.amazon-logo-btn img {
    display: block;
    width: 100%;
    max-width: 148px;
    height: 125px;
    object-fit: contain;
}

.amazon-logo-btn:hover {
    background: #fff8e9;
    border-color: #f2ad35;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(220,155,35,.16);
}

.amazon-logo-btn:focus-visible {
    outline: 2px solid #2475a8;
    outline-offset: 3px;
}