
/* ==========================================================
   BOOKS / CATALOGUE PAGE
   Works with assets/style.css
========================================================== */


/* ==========================================================
   BOOKS HERO
========================================================== */

.books-hero {
    position: relative;
    overflow: hidden;

    padding: 105px 0 95px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(49, 94, 251, 0.13),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(99, 102, 241, 0.07),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f7f9ff 0%,
            #ffffff 100%
        );
}


.books-hero::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    top: -100px;

    border-radius: 50%;

    background:
        rgba(49, 94, 251, 0.05);

    pointer-events: none;
}


.books-hero::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    left: -80px;
    bottom: -80px;

    border-radius: 50%;

    border:
        30px solid
        rgba(49, 94, 251, 0.035);

    pointer-events: none;
}


.books-hero-content {
    position: relative;

    z-index: 2;

    max-width: 800px;
}


.books-hero h1 {
    margin: 16px 0 18px;

    color: #101828;

    font-size:
        clamp(42px, 6vw, 70px);

    line-height: 1.05;

    letter-spacing: -2.5px;
}


.books-hero h1 span {
    color: #315efb;
}


.books-hero p {
    max-width: 680px;

    margin: 0;

    color: #667085;

    font-size: 18px;

    line-height: 1.8;
}


/* ==========================================================
   CATALOGUE
========================================================== */

.catalogue {
    background: #ffffff;
}


/* ==========================================================
   CATALOGUE HEADING
========================================================== */

.catalogue-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 48px;
}


.catalogue-heading > div {
    flex: 1;
}


.catalogue-heading > p {
    width: 100%;
    max-width: 470px;

    margin: 0;

    color: #667085;

    font-size: 16px;

    line-height: 1.7;
}


.catalogue-heading h2 {
    margin: 12px 0 0;
}


.catalogue-heading h2 span {
    color: #315efb;
}


/* ==========================================================
   BOOK GRID
========================================================== */

.book-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;

    align-items: stretch;
}


/* ==========================================================
   BOOK CARD
========================================================== */

.book-item {
    display: grid;

    grid-template-columns:
        minmax(170px, 0.72fr)
        minmax(0, 1.28fr);

    min-width: 0;

    min-height: 335px;

    overflow: hidden;

    border:
        1px solid #e8ebf2;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 30px
        rgba(16, 24, 40, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.book-item:hover {
    transform: translateY(-6px);

    border-color:
        rgba(49, 94, 251, 0.22);

    box-shadow:
        0 18px 45px
        rgba(16, 24, 40, 0.11);
}


/* ==========================================================
   BOOK COVER
========================================================== */

.book-cover {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 335px;

    overflow: hidden;

    isolation: isolate;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 25% 20%,
            rgba(255, 255, 255, 0.28),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #315efb,
            #233a9f
        );
}


/* COVER VARIATIONS */

.book-cover-02 {
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(255, 255, 255, 0.20),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            #4f46e5,
            #312e81
        );
}


.book-cover-03 {
    background:
        radial-gradient(
            circle at 25% 70%,
            rgba(255, 255, 255, 0.18),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #2563eb,
            #1e3a8a
        );
}


.book-cover-04 {
    background:
        radial-gradient(
            circle at 70% 25%,
            rgba(255, 255, 255, 0.20),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #3730a3,
            #1e1b4b
        );
}


/* COVER DECORATION */

.book-cover::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -70px;
    bottom: -70px;

    border-radius: 50%;

    border:
        30px solid
        rgba(255, 255, 255, 0.08);

    z-index: -1;
}


.book-cover::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    left: -50px;
    top: 30px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    z-index: -1;
}


/* ==========================================================
   COVER CONTENT
========================================================== */

.cover-content {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    width: 100%;

    text-align: center;
}


.cover-label {
    margin-bottom: 14px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    opacity: 0.8;
}


.cover-content strong {
    font-size: 28px;

    line-height: 1;

    letter-spacing: 2px;
}


.cover-number {
    margin-top: 4px;

    font-size: 72px;

    font-weight: 800;

    line-height: 0.95;

    letter-spacing: -4px;
}


.cover-content small {
    margin-top: 18px;

    padding: 6px 12px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.09);

    font-size: 10px;

    letter-spacing: 0.3px;

    opacity: 0.85;
}


/* ==========================================================
   BOOK INFORMATION
========================================================== */

.book-info {
    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 30px;
}


.book-tag {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding: 7px 11px;

    border-radius: 999px;

    background: #eef3ff;

    color: #315efb;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.8px;
}


.book-info h3 {
    margin: 16px 0 10px;

    color: #101828;

    font-size: 24px;

    line-height: 1.25;

    letter-spacing: -0.4px;
}


.book-description {
    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================
   BOOK META
========================================================== */

.book-meta {
    margin-top: 20px;

    padding-top: 18px;

    border-top:
        1px solid #edf0f5;
}


.book-meta > div {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;
}


.book-meta strong {
    flex-shrink: 0;

    color: #344054;

    font-size: 13px;

    font-weight: 700;
}


.book-meta span {
    color: #667085;

    font-size: 13px;

    text-align: right;
}


/* ==========================================================
   DOWNLOAD BUTTON
========================================================== */

.small-btn {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    margin-top: auto;

    padding: 13px 17px;

    border: 0;

    border-radius: 10px;

    background: #315efb;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.small-btn:hover {
    background: #2348d7;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(49, 94, 251, 0.25);
}


.small-btn:active {
    transform: translateY(0);
}


.small-btn i {
    font-size: 13px;
}


/* ==========================================================
   BOOK CATALOGUE
========================================================== */

.catalogue {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}


/* ==========================================================
   CATALOGUE HEADING
========================================================== */

.catalogue-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
}


.catalogue-heading .eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #315efb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


.catalogue-heading h2 {
    margin: 0;
    color: #101828;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
}


.catalogue-heading h2 span {
    color: #315efb;
}


.catalogue-heading > p {
    max-width: 500px;
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
}


/* ==========================================================
   BOOK GRID
========================================================== */

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}


/* ==========================================================
   BOOK ITEM
========================================================== */

.book-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(16, 24, 40, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.book-item:hover {
    transform: translateY(-6px);
    border-color: #dbe4ff;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.11);
}


/* ==========================================================
   BOOK COVER
========================================================== */

.book-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
}


.book-cover::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.25),
            transparent 30%
        );
}


.book-cover::after {
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}


/* ==========================================================
   COVER COLORS
========================================================== */

.book-cover-01 {
    background:
        linear-gradient(
            145deg,
            #315efb,
            #182b75
        );
}


.book-cover-02 {
    background:
        linear-gradient(
            145deg,
            #0f9d8a,
            #075f54
        );
}


.book-cover-03 {
    background:
        linear-gradient(
            145deg,
            #8b5cf6,
            #4c1d95
        );
}


.book-cover-04 {
    background:
        linear-gradient(
            145deg,
            #f59e0b,
            #92400e
        );
}


/* ==========================================================
   COVER CONTENT
========================================================== */

.cover-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
}


.cover-label {
    margin-bottom: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.85;
}


.cover-content strong {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
}


.cover-number {
    margin: 8px 0 18px;
    font-size: 72px;
    font-weight: 900;
    line-height: 0.9;
    opacity: 0.95;
}


.cover-content small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
}


/* ==========================================================
   BOOK INFO
========================================================== */

.book-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}


.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}


.book-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 50px;
    background: #eef3ff;
    color: #315efb;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}


.book-info h3 {
    margin: 0 0 10px;
    color: #101828;
    font-size: 22px;
    line-height: 1.25;
}


.book-description {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.75;
}


/* ==========================================================
   BOOK META
========================================================== */

.book-meta {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #eaecf0;
}


.book-meta > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.book-meta strong {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}


.book-meta span {
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}


/* ==========================================================
   DOWNLOAD BUTTON
========================================================== */

.small-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 22px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #101828;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.small-btn:hover {
    transform: translateY(-2px);
    background: #315efb;
    box-shadow: 0 8px 20px rgba(49, 94, 251, 0.22);
}


.small-btn i {
    font-size: 12px;
}


/* ==========================================================
   SAMPLE MODAL
========================================================== */

.book-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.book-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* ==========================================================
   MODAL OVERLAY
========================================================== */

.book-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}


/* ==========================================================
   MODAL BOX
========================================================== */

.book-modal-box {
    position: relative;
    z-index: 2;

    width: min(100%, 540px);
    max-height: calc(100vh - 40px);

    overflow-x: hidden;
    overflow-y: auto;

    padding: 32px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.28);

    transform:
        translateY(25px)
        scale(0.96);

    transition:
        transform 0.3s ease;
}


.book-modal.active .book-modal-box {
    transform:
        translateY(0)
        scale(1);
}


/* ==========================================================
   MODAL SCROLLBAR
========================================================== */

.book-modal-box::-webkit-scrollbar {
    width: 6px;
}


.book-modal-box::-webkit-scrollbar-track {
    background: transparent;
}


.book-modal-box::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #d0d5dd;
}


.book-modal-box::-webkit-scrollbar-thumb:hover {
    background: #98a2b3;
}


/* ==========================================================
   MODAL CLOSE
========================================================== */

.book-modal-close {
    position: absolute;
    top: 17px;
    right: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #f2f4f7;
    color: #344054;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.book-modal-close:hover {
    background: #fee4e2;
    color: #d92d20;
    transform: rotate(90deg);
}


.book-modal-close:focus-visible {
    outline: 3px solid rgba(49, 94, 251, 0.20);
    outline-offset: 2px;
}


/* ==========================================================
   MODAL HEADER
========================================================== */

.book-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    padding-right: 42px;
    margin-bottom: 23px;
}


.book-modal-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #315efb,
            #233a9f
        );

    color: #ffffff;
    font-size: 19px;

    box-shadow:
        0 8px 20px rgba(49, 94, 251, 0.20);
}


.book-modal-header .eyebrow {
    display: block;
    margin-bottom: 5px;

    color: #315efb;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}


.book-modal-header h2 {
    margin: 0 0 6px;

    color: #101828;

    font-size: 25px;
    line-height: 1.2;
}


.book-modal-header p {
    margin: 0;

    color: #667085;

    font-size: 13px;
    line-height: 1.6;
}


/* ==========================================================
   SELECTED BOOK
========================================================== */

.selected-book {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
    padding: 14px 16px;

    border: 1px solid #dbe4ff;
    border-radius: 12px;

    background: #f5f7ff;
}


.selected-book span {
    color: #667085;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;
}


.selected-book strong {
    max-width: 60%;

    color: #315efb;

    font-size: 13px;
    line-height: 1.4;

    text-align: right;
}


/* ==========================================================
   FORM
========================================================== */

#bookEnquiryForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.form-group label {
    color: #344054;

    font-size: 13px;
    font-weight: 700;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #d0d5dd;
    border-radius: 10px;

    outline: none;

    background: #ffffff;
    color: #101828;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-group input,
.form-group select {
    min-height: 48px;
    padding: 12px 14px;
}


.form-group textarea {
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #98a2b3;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #315efb;

    box-shadow:
        0 0 0 4px rgba(49, 94, 251, 0.10);
}


.form-group input:invalid:not(:placeholder-shown):focus,
.form-group select:invalid:focus {
    border-color: #f04438;
}


/* ==========================================================
   SELECT
========================================================== */

.form-group select {
    appearance: none;
    -webkit-appearance: none;

    padding-right: 42px;

    background-image:
        linear-gradient(45deg, transparent 50%, #667085 50%),
        linear-gradient(135deg, #667085 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 20px,
        calc(100% - 13px) 20px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}


/* ==========================================================
   SUB TYPE
========================================================== */

#subTypeGroup[hidden] {
    display: none;
}


/* ==========================================================
   SUBMIT BUTTON
========================================================== */

.enquiry-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    margin-top: 4px;
    padding: 14px 20px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #315efb,
            #2348d7
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(49, 94, 251, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}


.enquiry-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(49, 94, 251, 0.30);
}


.enquiry-submit:active {
    transform: translateY(0);
}


.enquiry-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* ==========================================================
   FORM NOTE
========================================================== */

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin: 0;

    color: #98a2b3;

    font-size: 11px;
    line-height: 1.5;

    text-align: center;
}


.form-note i {
    color: #667085;
}


/* ==========================================================
   BODY LOCK
========================================================== */

body.modal-open {
    overflow: hidden;
}


/* ==========================================================
   DOWNLOAD SUCCESS
========================================================== */

.download-success {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 10001;

    display: flex;
    align-items: center;
    gap: 13px;

    width: min(
        calc(100% - 30px),
        350px
    );

    padding: 15px 18px;

    border: 1px solid #d1fadf;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 15px 40px rgba(16, 24, 40, 0.15);

    transform: translateY(20px);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.download-success.show {
    transform: translateY(0);

    opacity: 1;
    visibility: visible;
}


.download-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #dcfae6;
    color: #039855;
}


.download-success strong {
    display: block;

    margin-bottom: 3px;

    color: #101828;

    font-size: 13px;
}


.download-success span {
    display: block;

    overflow: hidden;

    color: #667085;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {

    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .catalogue {
        padding: 65px 0;
    }


    .catalogue-heading {
        flex-direction: column;
        align-items: flex-start;

        gap: 15px;

        margin-bottom: 30px;
    }


    .catalogue-heading > p {
        max-width: 100%;
    }


    .book-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .book-cover {
        min-height: 270px;
    }


    .book-info {
        padding: 22px;
    }


    .book-info h3 {
        font-size: 20px;
    }


    /* MODAL */

    .book-modal {
        align-items: flex-end;
        padding: 10px;
    }


    .book-modal-box {
        width: 100%;

        max-height: calc(100vh - 20px);

        padding: 25px 20px;

        border-radius: 20px 20px 14px 14px;

        transform:
            translateY(30px)
            scale(0.98);
    }


    .book-modal-header {
        gap: 12px;

        padding-right: 38px;

        margin-bottom: 18px;
    }


    .book-modal-icon {
        width: 44px;
        height: 44px;

        border-radius: 12px;

        font-size: 16px;
    }


    .book-modal-header h2 {
        font-size: 21px;
    }


    .book-modal-header p {
        font-size: 12px;
    }


    .selected-book {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }


    .selected-book strong {
        max-width: 100%;
        text-align: left;
    }


    .download-success {
        right: 15px;
        bottom: 15px;

        width: calc(100% - 30px);
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    .book-modal {
        padding: 6px;
    }


    .book-modal-box {
        padding: 22px 16px;
    }


    .book-modal-close {
        top: 12px;
        right: 12px;

        width: 34px;
        height: 34px;
    }


    .book-modal-header {
        padding-right: 35px;
    }


    .book-modal-header h2 {
        font-size: 19px;
    }


    .form-group input,
    .form-group select {
        min-height: 46px;
    }


    .enquiry-submit {
        min-height: 48px;
    }

}

/* ==========================================================
   BOOK COVER
========================================================== */

.book-cover {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 420px;
    border-radius: 16px;
    isolation: isolate;
}


/* ==========================================================
   BOOK COVER IMAGE
========================================================== */

.book-cover-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    z-index: -2;

    transition: transform 0.5s ease;
}


/* ==========================================================
   IMAGE OVERLAY
========================================================== */

.book-cover-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.65)
        );

    z-index: -1;
}


/* ==========================================================
   COVER CONTENT
========================================================== */

.cover-content {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px;

    color: #ffffff;
}


/* ==========================================================
   HOVER EFFECT
========================================================== */

.book-item:hover .book-cover-image {
    transform: scale(1.05);
}

/* ==========================================================
   FOOTER
========================================================== */

.footer {
  background: #0a142d;
  color: #aeb9cf;
  padding: 60px 0 0;
}


/* ==========================================================
   FOOTER GRID
========================================================== */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 55px;
  align-items: start;
}


/* ==========================================================
   FOOTER LOGO
========================================================== */

.footer-logo img {
  width: 170px;
  height: 58px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  display: block;
}


/* ==========================================================
   FOOTER BRAND
========================================================== */

.footer-brand p {
  max-width: 400px;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 14px;
}


/* ==========================================================
   FOOTER HEADINGS
========================================================== */

.footer h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
}


/* ==========================================================
   FOOTER LINKS
========================================================== */

.footer a:not(.logo) {
  display: block;
  color: #aeb9cf;
  text-decoration: none;
  font-size: 13px;
  margin: 8px 0;
  transition: 0.2s ease;
}

.footer a:not(.logo):hover {
  color: #fff;
  transform: translateX(3px);
}


/* ==========================================================
   FOOTER TEXT
========================================================== */

.footer p {
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0;
}


/* ==========================================================
   SOCIAL ICONS
========================================================== */

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-socials a {
  width: 32px;
  height: 32px !important;
  display: grid !important;
  place-items: center;
  border: 1px solid #293753;
  border-radius: 9px;
  color: #dbe3f2 !important;
  font-size: 11px !important;
  margin: 0 !important;
  transition: 0.25s ease;
}

.footer-socials a:hover {
  background: #fff;
  color: #0a142d !important;
  border-color: #fff;
  transform: translateY(-2px) !important;
}


/* ==========================================================
   COPYRIGHT
========================================================== */

.copyright {
  text-align: center;
  border-top: 1px solid #202f4b;
  margin-top: 45px;
  padding: 20px;
  font-size: 11px;
  color: #8290a9;
  line-height: 1.6;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 992px) {

  .footer {
    padding-top: 50px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 600px;
  }

  .copyright {
    margin-top: 40px;
  }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

  .footer {
    padding: 45px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-logo img {
    width: 155px;
    height: auto;
    max-height: 55px;
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.8;
  }

  .footer h4 {
    margin-bottom: 13px;
  }

  .footer a:not(.logo) {
    font-size: 13px;
    margin: 9px 0;
  }

  .footer p {
    font-size: 13px;
    line-height: 1.7;
  }

  .footer-socials {
    margin-top: 15px;
  }

  .copyright {
    margin-top: 35px;
    padding: 18px 15px;
    font-size: 10px;
  }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

  .footer {
    padding-top: 40px;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-logo img {
    width: 145px;
    max-height: 52px;
  }

  .footer-brand p {
    font-size: 12px;
  }

  .footer h4 {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .footer a:not(.logo) {
    font-size: 12px;
    margin: 8px 0;
  }

  .footer p {
    font-size: 12px;
  }

  .footer-socials a {
    width: 31px;
    height: 31px !important;
  }

  .copyright {
    margin-top: 30px;
    padding: 16px 10px;
    font-size: 10px;
  }
}
/* ==========================================================
   GENERAL MODAL
   Uses existing .modal markup
========================================================== */

#enquiryModal {
    position: fixed;

    inset: 0;

    z-index: 9998;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    background:
        rgba(15, 23, 42, 0.62);

    backdrop-filter:
        blur(6px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


#enquiryModal.active {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


#enquiryModal .modal-box {
    position: relative;

    width: min(
        100%,
        560px
    );

    max-height: 90vh;

    overflow-y: auto;

    padding: 34px;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 30px 80px
        rgba(16, 24, 40, 0.22);

    transform:
        translateY(20px)
        scale(0.97);

    transition:
        transform 0.3s ease;
}


#enquiryModal.active .modal-box {
    transform:
        translateY(0)
        scale(1);
}


#enquiryModal .modal-close {
    position: absolute;

    top: 16px;
    right: 16px;
}


#enquiryModal .modal-box h2 {
    margin: 10px 0 8px;

    color: #101828;

    font-size: 30px;
}


#enquiryModal .modal-description {
    margin: 0 0 24px;

    color: #667085;

    font-size: 14px;

    line-height: 1.6;
}


#enquiryModal .modal-box label {
    display: block;

    margin-bottom: 16px;

    color: #344054;

    font-size: 13px;

    font-weight: 700;
}


#enquiryModal .modal-box input,
#enquiryModal .modal-box select,
#enquiryModal .modal-box textarea {
    width: 100%;

    box-sizing: border-box;

    margin-top: 7px;

    padding: 12px 14px;

    border:
        1px solid #d0d5dd;

    border-radius: 9px;

    outline: none;

    background: #ffffff;

    color: #101828;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


#enquiryModal .modal-box input:focus,
#enquiryModal .modal-box select:focus,
#enquiryModal .modal-box textarea:focus {
    border-color: #315efb;

    box-shadow:
        0 0 0 3px
        rgba(49, 94, 251, 0.10);
}


#enquiryModal .modal-box textarea {
    resize: vertical;

    min-height: 110px;
}


#enquiryModal .form-status {
    margin-top: 12px;

    font-size: 13px;

    text-align: center;
}


#enquiryModal .form-status.success {
    color: #039855;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .book-grid {
        grid-template-columns: 1fr;
    }


    .book-item {
        grid-template-columns:
            230px minmax(0, 1fr);
    }

}


/* ==========================================================
   TABLET / SMALL LAPTOP
========================================================== */

@media (max-width: 850px) {

    .books-hero {
        padding:
            85px 0 75px;
    }


    .catalogue-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }


    .catalogue-heading > p {
        max-width: 650px;
    }


    .catalogue-cta-box {
        padding: 38px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .books-hero {
        padding:
            70px 0 60px;
    }


    .books-hero h1 {
        font-size: 44px;

        letter-spacing: -1.5px;
    }


    .books-hero p {
        font-size: 16px;

        line-height: 1.7;
    }


    .book-grid {
        gap: 20px;
    }


    .book-item {
        grid-template-columns: 1fr;

        min-height: 0;
    }


    .book-cover {
        min-height: 270px;
    }


    .book-info {
        padding: 25px;
    }


    .book-info h3 {
        font-size: 22px;
    }


    .catalogue-cta {
        padding-bottom: 65px;
    }


    .catalogue-cta-box {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        padding: 32px 25px;

        border-radius: 20px;
    }


    .catalogue-cta-action {
        width: 100%;
    }


    .catalogue-cta-action .btn {
        width: 100%;
    }


    .book-modal {
        padding: 15px;
    }


    .book-modal-box {
        padding: 27px 21px;

        border-radius: 18px;
    }


    .book-modal-header {
        gap: 12px;
    }


    .book-modal-header h2 {
        font-size: 21px;
    }


    .selected-book {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }


    .selected-book strong {
        text-align: left;
    }


    #enquiryModal {
        padding: 15px;
    }


    #enquiryModal .modal-box {
        padding: 27px 21px;

        border-radius: 18px;
    }


    #enquiryModal .modal-box h2 {
        font-size: 25px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .books-hero {
        padding:
            60px 0 50px;
    }


    .books-hero h1 {
        font-size: 36px;

        letter-spacing: -1px;
    }


    .books-hero p {
        font-size: 15px;
    }


    .catalogue-heading {
        margin-bottom: 35px;
    }


    .book-cover {
        min-height: 230px;
    }


    .cover-content strong {
        font-size: 24px;
    }


    .cover-number {
        font-size: 62px;
    }


    .book-info {
        padding: 22px;
    }


    .book-info h3 {
        font-size: 21px;
    }


    .book-description {
        font-size: 13px;
    }


    .book-meta > div {
        flex-direction: column;

        gap: 4px;
    }


    .book-meta span {
        text-align: left;
    }


    .small-btn {
        padding:
            12px 14px;
    }


    .book-modal {
        padding: 10px;
    }


    .book-modal-box {
        padding:
            23px 16px;
    }


    .book-modal-header {
        padding-right: 30px;
    }


    .book-modal-icon {
        width: 44px;
        height: 44px;

        border-radius: 12px;

        font-size: 16px;
    }


    .book-modal-header h2 {
        font-size: 20px;
    }


    .download-success {
        right: 15px;
        left: 15px;

        bottom: 15px;

        width: auto;
    }


    #enquiryModal {
        padding: 10px;
    }


    #enquiryModal .modal-box {
        padding:
            23px 16px;
    }

}


/* ==========================================================
   VERY SMALL DEVICES
========================================================== */

@media (max-width: 360px) {

    .books-hero h1 {
        font-size: 32px;
    }


    .book-cover {
        min-height: 215px;
    }


    .book-info {
        padding: 19px;
    }


    .book-modal-header {
        gap: 9px;
    }


    .book-modal-header h2 {
        font-size: 18px;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .book-item,
    .small-btn,
    .book-modal,
    .book-modal-box,
    .download-success,
    #enquiryModal,
    #enquiryModal .modal-box {
        transition: none;
    }

}
