/*
 * DG Books frontend styles
 * File: wp-content/plugins/dg-books/assets/css/dg-books.css
 */

.dg-books-grid {
    --dg-books-gap-x: 42px;
    --dg-books-gap-y: 56px;
    --dg-book-title-color: #1f1f1f;
    --dg-book-text-color: #4f4f4f;
    --dg-book-muted-color: #777777;
    --dg-book-accent-color: #009fe3;

    display: grid;
    gap: var(--dg-books-gap-y) var(--dg-books-gap-x);
    width: 100%;
}

.dg-books-grid--columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dg-books-grid--columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dg-books-grid--columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dg-books-grid--columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dg-books-grid--columns-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dg-book-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dg-book-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: #f4f4f4;
    text-decoration: none;
}

/*.dg-book-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4.15;
    padding: 18px;
    overflow: hidden;
    background: #fff;
}*/


.dg-book-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/*.dg-book-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}*/

.dg-book-card:hover .dg-book-card__image img {
    transform: scale(1.025);
}

/*.dg-book-card:hover .dg-book-card__image img {
    transform: scale(1.025);
}*/

.dg-book-card__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #fafafa);
}

.dg-book-card__badges {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.dg-book-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f1f1f;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.dg-book-card__content {
    padding-top: 16px;
}

.dg-book-card__author {
    margin-bottom: 4px;
    color: var(--e-global-color-b82c591);
    font-family: var(--e-global-typography-097fbd2-font-family);
    font-size: var(--e-global-typography-097fbd2-font-size);
    font-weight: var(--e-global-typography-097fbd2-font-weight);
}

.dg-book-card__title {
    margin: 0 0 5px;
    color: var(--dg-book-title-color);
}

.dg-book-card__title a {
    color: inherit;
    text-decoration: none;
}

.dg-book-card__title a:hover {
    color: var(--dg-book-accent-color);
}

.dg-book-card__subtitle {
    margin-bottom: 7px;
    color: var(--e-global-color-b82c591);
    font-size: 13px;
    line-height: 1.35;
}

.dg-book-card__excerpt {
    margin-top: 8px;
    color: var(--e-global-color-fb66723);
    font-size: 13px;
    line-height: 1.45;
}

.dg-book-card__price {
    margin-top: 10px;
    color: #1f1f1f;
    font-family: var(--e-global-typography-dc9c33b-font-family);
    font-size: var(--e-global-typography-dc9c33b-font-size);
    line-height: calc(1.25/.875);
}

.dg-books-empty {
    margin: 0;
    color: var(--e-global-color-b82c591, #777777);
    text-align: center;
    padding: 20px 0 0;
}

/* Homepage tuning */
.dg-home-featured-books .dg-books-grid,
.dg-home-published-books .dg-books-grid {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.dg-home-featured-books .dg-book-card__image {
    aspect-ratio: 3 / 4.05;
}

.dg-home-published-books .dg-books-grid {
    --dg-books-gap-x: 48px;
}

.dg-home-published-books .dg-book-card__image {
    aspect-ratio: 3 / 4.05;
}

/* Filters base */
.dg-books-filters {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.dg-books-search input[type='search'] {
    width: 600px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 15px;
}

.dg-books-genre-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dg-books-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 15px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #1f1f1f;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.dg-books-filter-button:hover,
.dg-books-filter-button.is-active {
    border-color: var(--dg-book-accent-color, #009fe3);
    color: var(--dg-book-accent-color, #009fe3);
}

/* Order form base */
.dg-book-order-form {
    display: grid;
    gap: 16px;
}

.dg-book-order-form__row {
    display: grid;
    gap: 6px;
}

.dg-book-order-form label {
    color: #1f1f1f;
    font-size: 14px;
}

.dg-book-order-form input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #1f1f1f;
}

.dg-book-order-form__submit {
    justify-self: start;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid var(--dg-book-accent-color, #009fe3);
    background: #ffffff;
    color: var(--dg-book-accent-color, #009fe3);
    cursor: pointer;
    font-size: 14px;
}

.dg-book-order-form__submit:hover {
    background: var(--dg-book-accent-color, #009fe3);
    color: #ffffff;
}

/* Books main page filters */
.dg-books-filters {
    gap: 28px;
    padding: 28px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
}

.dg-books-filters__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

.dg-books-filters__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.dg-books-filter-group {
    display: grid;
    gap: 12px;
}

.dg-books-filter-group__label,
.dg-books-filter-group > label {
    color: var(--e-global-color-fb66723, #1f1f1f);
    font-size: 14px;
    line-height: 1.3;
}

.dg-books-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dg-books-filter-choice {
    display: inline-flex;
    cursor: pointer;
}

.dg-books-filter-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dg-books-filter-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 14px;
    line-height: 1.2;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.dg-books-filter-choice:hover span,
.dg-books-filter-choice input:checked + span {
    border-color: var(--dg-book-accent-color, #009fe3);
    color: var(--dg-book-accent-color, #009fe3);
}

.dg-books-filter-group select {
    width: 100%;
    max-width: 280px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 14px;
}

.dg-books-filter-submit {
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid var(--dg-book-accent-color, #009fe3);
    background: var(--dg-book-accent-color, #009fe3);
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}

.dg-books-filter-reset {
    color: var(--e-global-color-b82c591, #777777);
    font-size: 14px;
    text-decoration: none;
}

.dg-books-filter-reset:hover {
    color: var(--dg-book-accent-color, #009fe3);
}

/* Books page wrapper helpers for Elementor containers */
.dg-books-page-intro {
    max-width: 760px;
}

.dg-books-page-title {
    margin-bottom: 18px;
}

@media (max-width: 1024px) {
    .dg-books-grid--columns-4,
    .dg-books-grid--columns-5,
    .dg-books-grid--columns-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dg-books-grid {
        --dg-books-gap-x: 28px;
    }
}

@media (max-width: 767px) {
    .dg-books-grid,
    .dg-books-grid--columns-2,
    .dg-books-grid--columns-3,
    .dg-books-grid--columns-4,
    .dg-books-grid--columns-5,
    .dg-books-grid--columns-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        --dg-books-gap-x: 18px;
        --dg-books-gap-y: 36px;
    }

    .dg-book-card__content {
        padding-top: 12px;
    }

    .dg-book-card__author,
    .dg-book-card__subtitle,
    .dg-book-card__excerpt,
    .dg-book-card__price {
        font-size: 12px;
    }

    .dg-books-filters {
        padding: 20px;
    }

    .dg-books-filters__top {
        grid-template-columns: 1fr;
    }

    .dg-books-filter-submit {
        width: 100%;
    }

    .dg-books-filter-choice span {
        width: 100%;
    }

    .dg-books-filter-choice {
        flex: 1 1 auto;
    }

    .dg-books-search input[type='search'] {
        width: 340px;
    }
}

@media (max-width: 420px) {
    .dg-books-grid,
    .dg-books-grid--columns-2,
    .dg-books-grid--columns-3,
    .dg-books-grid--columns-4,
    .dg-books-grid--columns-5,
    .dg-books-grid--columns-6 {
        grid-template-columns: 1fr;
    }
}

/* Catalog filters - design version */

.dg-books-filters--catalog {
    padding: 0;
    border: 0;
    background: transparent;
}

.dg-books-search--catalog {
    position: relative;
    max-width: 760px;
    margin: 0 auto 0;
}

.dg-books-search--catalog input[type='search'] {
    min-height: 50px;
    padding: 4px 0 0 35px;
    border: 0;
    border-bottom: 1px solid #d7d7d7;
    color: var(--e-global-color-b82c591);
    font-size: var(--e-global-typography-b66a987-font-size);
    background: transparent;
}

.dg-books-search__icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--e-global-color-b82c591);
    font-size: 42px;
    line-height: var(--e-global-typography-b66a987-line-height);
}

.dg-books-filter-group {
    display: grid;
    gap: 22px;
}

.dg-books-filter-group__label {
    text-transform: var(--e-global-typography-cbc3aa8-text-transform);
    letter-spacing: var(--e-global-typography-cbc3aa8-letter-spacing);
    color: var(--e-global-color-b82c591);
    font-size: var(--e-global-typography-cbc3aa8-font-size);
    font-weight: var(--e-global-typography-cbc3aa8-font-weight);
}

.dg-books-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dg-books-filter-choice span {
    min-height: 39px;
    font-size: var(--e-global-typography-46f8dd1-font-size);
    font-weight: var(--e-global-typography-46f8dd1-font-weight);
    letter-spacing: var(--e-global-typography-46f8dd1-letter-spacing);
    line-height: var(--e-global-typography-46f8dd1-line-height);
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #1f1f1f;
}

.dg-books-filter-choice input:checked + span {
    border-color: var(--dg-book-accent-color, #009fe3);
    color: var(--dg-book-accent-color, #009fe3);
}

.dg-books-filters__top,
.dg-books-filters__bottom,
.dg-books-filter-group select,
.dg-books-filter-submit,
.dg-books-filter-reset {
    display: none;
}

.dg-books-results-count {
    margin: 10px 0 40px;
    text-align: center;
    color: var(--e-global-color-b82c591);
    font-size: var(--e-global-typography-46f8dd1-font-size);
    font-weight: var(--e-global-typography-46f8dd1-font-weight);
    letter-spacing: var(--e-global-typography-46f8dd1-letter-spacing);
    line-height: var(--e-global-typography-46f8dd1-line-height);
}

.dg-books-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.dg-books-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d9d9d9;
    color: var(--e-global-color-text) !important;
    text-decoration: none;
    font-size: var(--e-global-typography-46f8dd1-font-size);
    font-weight: var(--e-global-typography-46f8dd1-font-weight);
    letter-spacing: var(--e-global-typography-46f8dd1-letter-spacing);
    line-height: var(--e-global-typography-46f8dd1-line-height);
}

.dg-books-pagination__link:hover,
.dg-books-pagination__link.is-active {
    border-color: var(--dg-book-accent-color, #009fe3);
    background: var(--dg-book-accent-color, #009fe3);
    color: var(--e-global-color-2d2c8b6) !important;
}

.dg-book-single-section__title {
    font-size: var(--e-global-typography-17d3ffb-font-size) !important;
    font-weight: var(--e-global-typography-17d3ffb-font-weight) !important;
    letter-spacing: var(--e-global-typography-17d3ffb-letter-spacing) !important;
    line-height: var(--e-global-typography-17d3ffb-line-height) !important;
    text-align: center;
    padding-top: 40px;
}

.heading-align-center {
    text-align: center;
    padding-bottom: 30px;
}

/* =========================================================
   BOOK AUTHORS BLOCK
========================================================= */

.dg-book-authors-block__title,.dg-book-creative-team__title {
    text-align: center;
    font-size: var(--e-global-typography-17d3ffb-font-size) !important;
    font-weight: var(--e-global-typography-17d3ffb-font-weight) !important;
    letter-spacing: var(--e-global-typography-17d3ffb-letter-spacing) !important;
    line-height: var(--e-global-typography-17d3ffb-line-height) !important;
}

.dg-book-authors-block {
    display: grid;
    gap: 30px;
}

.dg-book-author-block {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 46px;
    align-items: start;
}

.dg-book-author-block:first-child {
    padding-top: 0;
}

.dg-book-author-block__image {
    width: 120px;
}

.dg-book-author-block__image img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 70px !important;
}

.dg-book-author-block__image:empty::before {
    content: '';
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: #efefef;
}

.dg-book-author-block__content {
    max-width: 760px;
}

.dg-book-author-block__name {
    margin: 0 0 18px;
    color: var(--e-global-color-text) !important;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 400;
    font-size: var(--e-global-typography-c1cdaa5-font-size) !important;
    font-weight: var(--e-global-typography-c1cdaa5-font-weight) !important;
    line-height: var(--e-global-typography-c1cdaa5-line-height) !important;  
}

.dg-book-author-block__description {
    color: var(--e-global-color-fb66723);
    font-size: var(--e-global-typography-bb9a2e6-font-size) !important;
    font-weight: var(--e-global-typography-bb9a2e6-font-weight) !important;
    line-height: var(--e-global-typography-bb9a2e6-line-height) !important;
    line-height: 1.75;
}

.dg-book-author-block__description p:last-child {
    margin-bottom: 0;
}

.dg-book-author-block__link {
    display: inline-flex;
    align-items: center;
    margin-top: 26px;
    color: var(--dg-book-accent-color, #009fe3);
    text-decoration: none;
    font-size: var(--e-global-typography-46f8dd1-font-size) !important;
    line-height: var(--e-global-typography-46f8dd1-line-height) !important;
    transition: opacity 0.2s ease;
}

.dg-book-author-block__link:hover {
    opacity: 0.7;
}

.dg-person-archive-image,
.dg-person-archive-image img {
    width: 220px;
    height: 220px;
    border-radius: 999px;
}

.dg-person-archive-image {
    overflow: hidden;
    background: #f1f1f1;
}

.dg-person-archive-image img {
    display: block;
    object-fit: cover;
    object-position: center center;
}

.dg-person-archive-roles {
    margin-top: 22px;
    color: var(--dg-book-accent-color, #009fe3);
    font-size: var(--e-global-typography-097fbd2-font-size);
    font-weight: var(--e-global-typography-097fbd2-font-weight);
    letter-spacing: 0.06em;
    line-height: var(--e-global-typography-097fbd2-line-height);
    text-transform: uppercase;
    text-align: center;
}

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

@media (max-width: 1024px) {

    .dg-book-author-block {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 30px;
    }

    .dg-book-author-block__image,
    .dg-book-author-block__image img,
    .dg-book-author-block__image:empty::before {
        width: 90px;
        height: 90px;
    }

    .dg-book-author-block__name {
        font-size: 40px;
    }

    .dg-book-author-block__description {
        font-size: 18px;
    }

    .dg-book-author-block__link {
        font-size: 18px;
    }
}

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

@media (max-width: 767px) {

    .dg-book-authors-block {
        gap: 50px;
        margin-top: 70px;
    }

    .dg-book-author-block {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dg-book-author-block__image {
        width: 80px;
    }

    .dg-book-author-block__image,
    .dg-book-author-block__image img,
    .dg-book-author-block__image:empty::before {
        width: 80px;
        height: 80px;
    }

    .dg-book-author-block__name {
        margin-bottom: 14px;
        font-size: 32px;
    }

    .dg-book-author-block__description {
        font-size: 16px;
        line-height: 1.7;
    }

    .dg-book-author-block__link {
        margin-top: 18px;
        font-size: 16px;
    }
}

.dg-book-single-authors {
    color: var(--e-global-color-b82c591);
    font-size: var(--e-global-typography-520ac3d-font-size) !important;
    font-weight: var(--e-global-typography-520ac3d-font-weight) !important;
    line-height: var(--e-global-typography-520ac3d-line-height) !important;
}

.dg-book-single-subtitle {
    font-size: var(--e-global-typography-996464e-font-size) !important;
    font-weight: var(--e-global-typography-996464e-font-weight) !important;
    line-height: var(--e-global-typography-996464e-line-height) !important;
}


/* =========================================================
   CREATIVE TEAM
========================================================= */

.dg-book-creative-team {
    margin-top: 20px;
}

.dg-book-creative-team__title {
    margin: 0 0 16px;
}

.dg-book-creative-team__intro {
    margin-bottom: 64px;
    max-width: 700px;
    font-size: var(--e-global-typography-bb9a2e6-font-size) !important;
    font-weight: var(--e-global-typography-bb9a2e6-font-weight) !important;
    line-height: var(--e-global-typography-bb9a2e6-line-height) !important;
}

.dg-book-creative-team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 46px;
}

.dg-book-creative-card {
    display: flex;
    flex-direction: column;
}

.dg-book-creative-card__image {
    width: 104px;
    height: 104px;
    margin-bottom: 20px;
    border-radius: 999px;
    overflow: hidden;
    background: #f1f1f1;
}

.dg-book-creative-card__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    border-radius: 999px;
}

.dg-book-creative-card__image:empty::before {
    content: '';
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 999px;
    background: #f1f1f1;
}

.dg-book-creative-card__role {
    margin-bottom: 6px;

    color: var(--e-global-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--e-global-typography-a9b9552-font-size) !important;
    font-weight: var(--e-global-typography-a9b9552-font-weight) !important;
    line-height: var(--e-global-typography-a9b9552-line-height) !important;
    line-height: var(--e-global-typography-a9b9552-text-transform) !important;
    line-height: var(--e-global-typography-a9b9552-letter-spacing) !important;
}

.dg-book-creative-card__name {
    margin: 0 0 5px;
    font-size: var(--e-global-typography-ec52693-font-size) !important;
    font-weight: var(--e-global-typography-ec52693-font-weight) !important;
}

.dg-book-creative-card__description {
    margin-bottom: 0;
    font-size: var(--e-global-typography-29c3407-font-size) !important;
    font-weight: var(--e-global-typography-29c3407-font-weight) !important;
    line-height: var(--e-global-typography-29c3407-line-height) !important;

}

.dg-book-creative-card__link {
    margin-top: auto;
    color: var(--e-global-color-b82c591);
    text-decoration: none;
}

.dg-book-creative-card__link:hover {
    text-decoration: underline;
}

.dg-book-creative-person__link {
    font-size: var(--e-global-typography-571cc56-font-size) !important;
    font-weight: var(--e-global-typography-571cc56-font-weight) !important;
}

@media (max-width: 1024px) {
    .dg-book-creative-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dg-book-creative-team__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BOOK SINGLE META
========================================================= */

.dg-book-single-meta {
    display: grid;
    margin: 0;
    padding: 0;
}

.dg-book-single-meta__row--price dd {
    font-size: var(--e-global-typography-b66a987-font-size) !important;
    font-weight: var(--e-global-typography-b66a987-font-weight) !important;
    line-height: var(--e-global-typography-b66a987-line-height) !important;
}

.dg-book-single-meta__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--e-global-color-46365a6, #e8e8e8);
}

.dg-book-single-meta__row:first-child {
    border-top: 0;
}

.dg-book-single-meta__row:last-child {
    border-bottom: 0 !important;
}

.dg-book-single-meta dt,
.dg-book-single-meta dd {
    margin: 0;
    padding: 0;
}

.dg-book-single-meta dt {
    color: var(--e-global-color-b82c591);
    font-size: var(--e-global-typography-46f8dd1-font-size);
    font-weight: var(--e-global-typography-46f8dd1-font-weight);
    letter-spacing: var(--e-global-typography-46f8dd1-letter-spacing);
    line-height: var(--e-global-typography-46f8dd1-line-height);
}

.dg-book-single-meta dd {
    color: var(--e-global-color-text);
    text-align: right;
    font-size: var(--e-global-typography-46f8dd1-font-size);
    font-weight: var(--e-global-typography-46f8dd1-font-weight);
    letter-spacing: var(--e-global-typography-46f8dd1-letter-spacing);
    line-height: var(--e-global-typography-46f8dd1-line-height);
}

@media (max-width: 767px) {
    .dg-book-single-meta__row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 0;
    }

    .dg-book-single-meta dd {
        text-align: left;
    }
}

/* =========================================================
   FEATURED GENRES
========================================================= */

.dg-featured-genres {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 70px;
    align-items: start;
    width: 100%;
}

.dg-featured-genre {
    display: grid;
    justify-items: center;
    gap: 28px;
    color: var(--e-global-color-text) !important;
    text-align: center;
    text-decoration: none;
}

.dg-featured-genre:hover {
    color: var(--dg-book-accent-color, #009fe3);
}

.dg-featured-genre__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    overflow: hidden;
    border-radius: 999px;
    background: #f2f2f2;
}

.dg-featured-genre__image img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    border-radius: 999px;
}

.dg-featured-genre:hover .dg-featured-genre__image img {
    transform: scale(1.04);
}

.dg-featured-genre__title {
    display: block;
  font-size: var(--e-global-typography-1cf30de-font-size) !important;
  font-weight: var(--e-global-typography-1cf30de-font-weight) !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .dg-featured-genres {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px 40px;
    }

    .dg-featured-genre__image {
        width: 180px;
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .dg-featured-genres {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 24px;
    }

    .dg-featured-genre {
        gap: 18px;
    }

    .dg-featured-genre__image {
        width: 130px;
        height: 130px;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .dg-featured-genre__image {
        width: 110px;
        height: 110px;
    }
}

/* =========================================================
   BOOK FRAGMENT
========================================================= */

.dg-book-single-section--fragment {
   
}

.dg-book-single-section--fragment .dg-book-single-section__title {
    text-align: center;
}

.dg-book-single-fragment {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 32px;
}

.dg-book-single-fragment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--e-global-color-beceb7b);
}

.dg-book-single-fragment p {
    margin: 0 0 48px;
    color: var(--e-global-color-fb66723);
    font-style: italic;

    letter-spacing: -0.01em;
      font-size: var(--e-global-typography-text-font-size);
      font-weight: 300;
      line-height: var(--e-global-typography-text-line-height);

}

.dg-book-single-fragment p:last-child {
    margin-bottom: 0;
}

/* Tablet */
@media (max-width: 1024px) {

    .dg-book-single-fragment {
        padding-left: 44px;
    }

    .dg-book-single-fragment p {
        font-size: 24px;
        line-height: 1.8;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .dg-book-single-section--fragment {
        margin-top: 80px;
    }

    .dg-book-single-section--fragment .dg-book-single-section__title {
        margin-bottom: 40px;
    }

    .dg-book-single-fragment {
        padding-left: 26px;
    }

    .dg-book-single-fragment::before {
        width: 2px;
    }

    .dg-book-single-fragment p {
        margin-bottom: 32px;
        font-size: 18px;
        line-height: 1.8;
    }
}

.dg-book-single-section--related-news {
    border-top: 1px solid var(--e-global-color-46365a6, #e8e8e8);
}

.dg-authors-filters {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0px 0 70px;
    padding-top: 24px;
}

.dg-authors-search {
    position: relative;
    width: 260px;
    flex: 0 0 260px;
}

.dg-authors-search__icon {
    position: absolute;
    left: 8px;
    top: 6px;
    color: var(--e-global-color-b82c591);
}

.dg-authors-search input {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px 8px 38px !important;
    border: 1px solid var(--e-global-color-46365a6) !important;
    background: #fff;
    color: var(--e-global-color-text);
    font-size: var(--e-global-typography-46f8dd1-font-size) !important;
}

.dg-authors-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.dg-authors-alphabet__letter {
    color: #c8c8c8;
    text-decoration: none;
    pointer-events: none;
    font-size: var(--e-global-typography-2b7d967-font-size) !important;
    font-weight: var(--e-global-typography-2b7d967-font-weight) !important;
    letter-spacing: var(--e-global-typography-2b7d967-letter-spacing) !important;
    line-height: var(--e-global-typography-2b7d967-line-height) !important;
}

.dg-authors-alphabet__letter.is-disabled {
    color: #c8c8c8 !important;
}

.dg-authors-alphabet__letter.has-authors {
    color: var(--e-global-color-text);
    pointer-events: auto;
}

.dg-authors-alphabet__letter.has-authors:hover {
    color: var(--e-global-color-accent) !important;
}

.dg-authors-alphabet__letter.is-active {
    color: var(--dg-book-accent-color, #009fe3);
}

.dg-authors-grid {
    display: grid;
    gap: 56px 42px;
}

.dg-authors-grid--columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dg-author-card__image {
    display: block;
    aspect-ratio: 1 / 1.35;
    overflow: hidden;
    background: #f2f2f2;
}

.dg-author-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-author-card__role {
    margin-top: 18px;
    color: var(--dg-book-accent-color, #009fe3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dg-author-card__name {
    margin: 8px 0 12px;
}

.dg-author-card__name a {
    color: inherit;
    text-decoration: none;
}

.dg-author-card__description {
    color: var(--e-global-color-fb66723);
}

.dg-author-card__link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--e-global-color-text);
    text-decoration: none;
    border-bottom: 1px solid #d9d9d9;
}

@media (max-width: 1024px) {
    .dg-authors-grid--columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dg-authors-filters {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .dg-authors-grid--columns-4 {
        grid-template-columns: 1fr;
    }

    .dg-authors-search {
        width: 100%;
        flex-basis: auto;
    }
}

.dg-featured-genres-menu {
    list-style: none;
    padding: 0;
}

.dg-featured-genres-menu__item {
    padding: 1px 0;
}

.dg-featured-genres-menu__item a {
    color: var(--e-global-color-b82c591) !important;
padding-left: 0px;
  padding-right: 0px;
  padding-top: 4px;
  padding-bottom: 4px;
font-weight: var(--e-global-typography-5a2f7ba-font-weight);
  line-height: var(--e-global-typography-5a2f7ba-line-height);
}



.dg-book-single-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.dg-book-single-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1px solid var(--dg-book-accent-color, #009fe3);
    color: var(--dg-book-accent-color, #009fe3);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    line-height: 1.5;
}

/* Hall of Fame */
.dg-hall-of-fame,
.dg-book-hall-of-fame {
    width: 100%;
}

.dg-hof-year-group {
    margin-bottom: 72px;
}

.dg-hof-year-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.dg-hof-year-header h2 {
    margin: 0;
    font-size: 4.2rem !important;
}

.dg-hof-divider {
    flex: 1;
    height: 1px;
    background: #d8d0c5;
}

.dg-hof-item {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 64px;
}

.dg-hof-item.dg-hof-reverse {
    grid-template-columns: 1fr minmax(220px, 360px);
}

.dg-hof-item.dg-hof-reverse .dg-hof-image {
    order: 2;
}

.dg-hof-item.dg-hof-reverse .dg-hof-content {
    order: 1;
}

.dg-hof-image {
    text-align: center;
}

.dg-hof-image a {
    display: inline-block;
}

.dg-hof-book-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.dg-hof-content {
    max-width: 680px;
}

.dg-hof-content .dg-book-status {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0px 10px;
    border: 1px solid var(--e-global-color-primary);
    color: var(--e-global-color-primary);
    line-height: 1.8em;
}

.dg-hof-content h3 {
    margin: 0 0 20px;
    line-height: 1.2 !important;
    color: var( --e-global-color-fb66723 ) !important;
}

.dg-hof-description {
    margin-bottom: 28px;
}

.dg-hof-description p {
    margin: 0 0 16px;
    color: var( --e-global-color-b82c591 );
    font-size: 0.9rem;
    line-height: 1.8em;
}

.dg-hof-description ul,
.dg-hof-description ol {
    margin: 0 0 16px 22px;
}

.dg-hof-book {
    padding-left: 15px;
    padding-bottom: 7px;
    border-left: 1px solid var(--e-global-color-primary);
}

.dg-hof-book-label {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.dg-hof-book-title {
    margin-bottom: 18px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}

.dg-book-hall-of-fame .dg-section-title {
    margin-bottom: 36px;
}

.dg-hof-book-author {
    margin-top: 4px;
    margin-bottom: 18px;
    font-size: 16px;
    color: #666;
}

.dg-button {
    border: 1px solid var(--e-global-color-4c4dd10);
    color: var( --e-global-color-fb66723 ) !important;
    padding: 10px 27px;
    font-size: 0.9rem !important;
}

.dg-button:hover {
    border: 1px solid var(--e-global-color-primary);
    color: var( --e-global-color-primary ) !important;
}

@media (max-width: 767px) {
    .dg-hof-year-group {
        margin-bottom: 48px;
    }

    .dg-hof-year-header {
        gap: 16px;
        margin-bottom: 28px;
    }

    .dg-hof-year-header h2 {
        font-size: 34px;
    }

    .dg-hof-item,
    .dg-hof-item.dg-hof-reverse {
        display: flex;
        flex-direction: column;
        gap: 28px;
        align-items: flex-start;
        margin-bottom: 48px;
    }

    .dg-hof-item.dg-hof-reverse .dg-hof-image,
    .dg-hof-item.dg-hof-reverse .dg-hof-content {
        order: initial;
    }

    .dg-hof-image {
        width: 100%;
        text-align: left;
    }

    .dg-hof-book-image {
        max-width: 240px;
    }

    .dg-hof-content h3 {
        font-size: 26px;
    }
}