
/* =========================================
   RESOURCE / BOOK DETAIL PAGE
========================================= */

.rd-page {
    background: #ffffff;
    color: #243247;
    min-height: 65vh;
    padding: 28px 20px 70px;
}

.rd-container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

/* Breadcrumb */

.rd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 30px;
    color: #788597;
    font-size: 13px;
    line-height: 1.7;
}

.rd-breadcrumb a {
    color: #56677e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rd-breadcrumb a:hover {
    color: #174a82;
}

.rd-breadcrumb a i {
    margin-right: 5px;
}

.rd-breadcrumb-arrow {
    font-size: 10px;
    color: #b5bdc8;
}

.rd-breadcrumb span {
    color: #253b56;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Main product layout */

.rd-product {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 58px;
    align-items: start;
}

.rd-image-column {
    min-width: 0;
}

.rd-image-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    padding: 35px;
    overflow: hidden;
    background: #f5f7fa;
    border: 1px solid #e9edf2;
    border-radius: 14px;
}

.rd-cover-image {
    display: block;
    width: 100%;
    max-width: 350px;
    max-height: 530px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(19, 38, 64, 0.15));
    transition: transform 0.3s ease;
}

.rd-image-box:hover .rd-cover-image {
    transform: translateY(-4px);
}

.rd-image-label {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    background: #ffffff;
    color: #174a82;
    border: 1px solid #e3eaf2;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(20, 40, 70, 0.05);
}

/* Product information */

.rd-info-column {
    min-width: 0;
    padding-top: 7px;
}

.rd-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
    color: #174a82;
    background: #edf4fb;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    overflow-wrap: anywhere;
}

.rd-title {
    margin: 0 0 14px;
    color: #152d49;
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.2;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.rd-caption {
    margin: 0;
    color: #65758a;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.rd-divider {
    width: 100%;
    height: 1px;
    margin: 25px 0;
    background: #e8edf2;
}

/* Description */

.rd-description h2 {
    margin: 0 0 12px;
    color: #1c3451;
    font-size: 18px;
    font-weight: 700;
}

.rd-description p {
    margin: 0;
    color: #627186;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* Availability */

.rd-availability {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 28px;
    padding: 19px;
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    background: #ffffff;
}

.rd-availability-icon,
.rd-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #174a82;
    background: #edf4fb;
    border-radius: 9px;
    font-size: 17px;
}

.rd-availability-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.rd-detail-label {
    display: block;
    color: #758398;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.rd-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
}

.rd-status-available {
    color: #187547;
}

.rd-status-unavailable {
    color: #b33b3b;
}

.rd-quantity {
    color: #68788c;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Contact card */

.rd-contact-card {
    margin-top: 24px;
    padding: 23px;
    background: #f8fafc;
    border: 1px solid #e7edf3;
    border-radius: 12px;
}

.rd-contact-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.rd-contact-heading > div:last-child {
    min-width: 0;
}

.rd-contact-heading h2 {
    margin: 1px 0 7px;
    color: #1c3451;
    font-size: 17px;
    line-height: 1.4;
}

.rd-contact-heading p {
    margin: 0;
    color: #6b7a8d;
    font-size: 13px;
    line-height: 1.7;
}

.rd-contact-information {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 17px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 8px;
}

.rd-contact-information > i {
    margin-top: 3px;
    color: #174a82;
    font-size: 17px;
}

.rd-contact-information > div {
    min-width: 0;
}

.rd-contact-information p {
    margin: 7px 0 0;
    color: #35465c;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: normal;
}

.rd-no-contact {
    margin: 18px 0 0;
    color: #69798d;
    font-size: 13px;
    line-height: 1.7;
}

/* Buttons */

.rd-back-button,
.rd-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 45px;
    margin-top: 20px;
    padding: 12px 18px;
    border: 1px solid #174a82;
    border-radius: 7px;
    background: #174a82;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.rd-back-button:hover,
.rd-primary-button:hover {
    background: #10365f;
    border-color: #10365f;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Not found */

.rd-not-found {
    max-width: 600px;
    margin: 60px auto;
    padding: 45px 25px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e7edf3;
    border-radius: 14px;
}

.rd-not-found-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    color: #174a82;
    background: #eaf2fa;
    border-radius: 50%;
    font-size: 27px;
}

.rd-not-found h1 {
    margin: 0 0 12px;
    color: #1c3451;
    font-size: 27px;
}

.rd-not-found p {
    margin: 0 auto;
    max-width: 460px;
    color: #68788c;
    font-size: 14px;
    line-height: 1.8;
}

/* Responsive */

@media (max-width: 900px) {
    .rd-product {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 30px;
    }

    .rd-image-box {
        min-height: 390px;
        padding: 25px;
    }

    .rd-cover-image {
        max-height: 430px;
    }

    .rd-contact-card {
        padding: 18px;
    }
}

@media (max-width: 680px) {
    .rd-page {
        padding: 20px 15px 45px;
    }

    .rd-breadcrumb {
        gap: 8px;
        margin-bottom: 20px;
        font-size: 12px;
    }

    .rd-product {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .rd-image-box {
        min-height: 300px;
        padding: 28px 20px;
    }

    .rd-cover-image {
        max-height: 360px;
        max-width: 260px;
    }

    .rd-title {
        font-size: 29px;
    }

    .rd-caption {
        font-size: 15px;
    }

    .rd-divider {
        margin: 20px 0;
    }

    .rd-contact-card {
        padding: 17px;
    }

    .rd-back-button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .rd-image-box {
        min-height: 260px;
    }

    .rd-title {
        font-size: 25px;
    }

    .rd-availability {
        gap: 10px;
        padding: 14px;
    }

    .rd-availability-icon,
    .rd-contact-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }
}


