/* ==========================================================================
   Books & Job Circular pages — styled to match the site's "mentor" theme
   (same palette / fonts / card language as the home page redesign), kept in
   its own file so it can only ever affect these two pages.
   ========================================================================== */

/* ---------------------------- Shared page header ---------------------------- */
.mentor-page-header {
    padding: 34px 0 28px;
    background: linear-gradient(180deg, #fdeef6 0%, #fdf6fa 100%);
}

.mentor-page-header .breadcrumb-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 500;
    font-size: 14px;
    color: #6b5464;
    margin-bottom: 10px;
}

.mentor-page-header .breadcrumb-links a {
    color: #6b5464;
    transition: color .2s;
}

.mentor-page-header .breadcrumb-links a:hover {
    color: var(--mentor-primary);
}

.mentor-page-header .breadcrumb-links span.current {
    color: var(--mentor-primary);
    font-weight: 600;
}

.mentor-page-header h1 {
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 700;
    font-size: clamp(24px, 2.6vw, 34px);
    color: #2c1524;
    margin: 0;
}

.mentor-page-header .search-box {
    max-width: 420px;
    margin-top: 18px;
    position: relative;
}

.mentor-page-header .search-box input {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: 1px solid #f0d3e2;
    padding: 0 50px 0 20px;
    font-size: 14px;
    background: #fff;
}

.mentor-page-header .search-box button {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-image: var(--mentor-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------- Books page ---------------------------- */
.mentor-books-wrapper {
    padding: 34px 0 60px;
}

.mentor-book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.mentor-book-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(60, 20, 45, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.mentor-book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(60, 20, 45, .16);
    color: inherit;
}

.mentor-book-thumb {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4e9f0;
}

.mentor-book-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mentor-book-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mentor-book-title {
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 700;
    font-size: 15px;
    color: #201a1e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mentor-book-title:hover { color: var(--mentor-primary); }

.mentor-book-author {
    font-size: 12.5px;
    color: #8a7a86;
}

.mentor-book-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 4px 0 10px;
}

.mentor-book-price-row .old {
    font-size: 13px;
    color: #a99aa4;
    text-decoration: line-through;
}

.mentor-book-price-row .now {
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 700;
    font-size: 19px;
    color: #201a1e;
}

.mentor-book-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background-image: var(--mentor-grad);
    color: #fff;
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 14px rgba(158, 41, 99, .22);
}

.mentor-book-buy-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(158, 41, 99, .3);
}

@media (max-width: 991.98px) {
    .mentor-book-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
    .mentor-books-wrapper { padding: 20px 0 40px; }
    .mentor-book-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .mentor-book-body { padding: 10px 12px 14px; gap: 4px; }
    .mentor-book-title { font-size: 13px; }
    .mentor-book-price-row .now { font-size: 16px; }
    .mentor-book-buy-btn { font-size: 12px; padding: 9px 10px; }
}

@media (max-width: 480px) {
    .mentor-book-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* --------------------------- Book details page --------------------------- */
.mentor-book-details-wrapper {
    padding: 34px 0 60px;
}

.mentor-book-details-cover {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(60, 20, 45, .12);
    margin-bottom: 18px;
}

.mentor-book-details-cover img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.mentor-book-details-title {
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 28px);
    color: #201a1e;
    margin-bottom: 6px;
}

.mentor-book-details-author {
    font-size: 14.5px;
    color: #8a7a86;
    margin-bottom: 14px;
}

.mentor-book-details-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}

.mentor-book-details-price-row .old {
    font-size: 16px;
    color: #a99aa4;
    text-decoration: line-through;
}

.mentor-book-details-price-row .now {
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 700;
    font-size: 26px;
    color: var(--mentor-primary);
}

.mentor-book-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.mentor-book-details-actions .mentor-btn { min-width: 200px; justify-content: center; }

.mentor-book-details-description {
    font-size: 15px;
    line-height: 1.9;
    color: #3c3c55;
}

.mentor-book-details-description img { max-width: 100%; height: auto; }

.mentor-book-related-title {
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: #201a1e;
    margin: 40px 0 18px;
}

@media (max-width: 767.98px) {
    .mentor-book-details-wrapper { padding: 18px 0 40px; }
    .mentor-book-details-actions .mentor-btn { min-width: 0; flex: 1 1 auto; }
}

/* ---------------------------- Job circular page ---------------------------- */
.mentor-jc-wrapper {
    padding: 34px 0 60px;
}

.mentor-jc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mentor-jc-card {
    background: #fff;
    border: 1px solid #f1e3ec;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(60, 20, 45, .06);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.mentor-jc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(60, 20, 45, .14);
    color: inherit;
}

.mentor-jc-banner {
    position: relative;
    padding: 22px 18px 18px;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background-image: linear-gradient(135deg, var(--mentor-primary-dark) 0%, var(--mentor-primary) 55%, var(--mentor-primary-2) 100%);
    background-size: cover;
    background-position: center;
    text-align: center;
}

.mentor-jc-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 8, 20, .38);
}

.mentor-jc-banner > * {
    position: relative;
    z-index: 1;
}

.mentor-jc-org {
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    line-height: 1.35;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.mentor-jc-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mentor-jc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .2s;
}

.mentor-jc-pill:hover { transform: translateY(-2px); color: #fff; }

.mentor-jc-pill-notice {
    background: rgba(255, 255, 255, .92);
    color: var(--mentor-primary-dark);
}

.mentor-jc-pill-notice:hover { color: var(--mentor-primary-dark); background: #fff; }

.mentor-jc-pill-apply {
    background: #fff;
    color: var(--mentor-primary);
    border: 1.5px solid rgba(255, 255, 255, .85);
}

.mentor-jc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background-image: var(--mentor-grad);
    color: #fff;
    font-family: "Baloo Da 2", var(--font-family);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(158, 41, 99, .22);
    transition: transform .2s, box-shadow .2s;
}

.mentor-jc-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(158, 41, 99, .3);
}

.mentor-jc-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mentor-jc-title {
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 600;
    font-size: 15px;
    color: #2c1524;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mentor-jc-title:hover { color: var(--mentor-primary); }

.mentor-jc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #7a6874;
    margin-top: auto;
}

.mentor-jc-deadline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.mentor-jc-deadline.is-expired { color: #b3273d; }
.mentor-jc-deadline:not(.is-expired) { color: var(--mentor-primary); }

/* --------- Popular sidebar (used on both list & details page) --------- */
.mentor-jc-sidebar-card {
    background: #fff;
    border: 1px solid #f1e3ec;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(60, 20, 45, .06);
}

.mentor-jc-sidebar-head {
    background-image: var(--mentor-grad);
    color: #fff;
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 18px;
}

.mentor-jc-sidebar-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.mentor-jc-sidebar-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    color: inherit;
    transition: background .2s;
}

.mentor-jc-sidebar-item:hover {
    background: #fdeef6;
    color: inherit;
}

.mentor-jc-sidebar-item img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mentor-jc-sidebar-item .info h6 {
    font-family: "Baloo Da 2", var(--font-family);
    font-size: 12.5px;
    font-weight: 600;
    color: #2c1524;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mentor-jc-sidebar-item .info small {
    font-size: 11px;
    color: #b3273d;
    font-weight: 600;
}

/* --------------------------- Details page --------------------------- */
.mentor-jc-details-wrapper {
    padding: 34px 0 60px;
}

.mentor-jc-details-banner {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(60, 20, 45, .1);
}

.mentor-jc-details-banner img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.mentor-jc-details-title {
    font-family: "Baloo Da 2", var(--font-family);
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 28px);
    color: #2c1524;
    margin-bottom: 16px;
}

.mentor-jc-info-card {
    background: #fdeef6;
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.mentor-jc-info-item h6 {
    font-size: 11.5px;
    color: #9a7f91;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 4px;
}

.mentor-jc-info-item p {
    font-family: "Baloo Da 2", var(--font-family);
    font-size: 15px;
    font-weight: 700;
    color: #2c1524;
    margin: 0;
}

.mentor-jc-apply-btn-row {
    margin: 26px 0;
    text-align: center;
}

.mentor-jc-notice-image {
    margin: 26px 0;
    text-align: center;
}

.mentor-jc-notice-image img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #f1e3ec;
    box-shadow: 0 4px 14px rgba(60, 20, 45, .08);
}

.mentor-jc-description {
    font-size: 15px;
    line-height: 1.9;
    color: #3c3c55;
}

.mentor-jc-description img { max-width: 100%; height: auto; }

@media (max-width: 991.98px) {
    .mentor-jc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .mentor-jc-wrapper, .mentor-jc-details-wrapper { padding: 18px 0 40px; }
    .mentor-jc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .mentor-jc-banner { min-height: 128px; padding: 16px 12px 14px; }
    .mentor-jc-org { font-size: 13.5px; }
    .mentor-jc-pill { font-size: 11px; padding: 6px 12px; }
    .mentor-jc-cta { font-size: 12px; padding: 9px 10px; }
    .mentor-jc-body { padding: 12px 12px 14px; }
    .mentor-jc-title { font-size: 13px; }
    .mentor-jc-meta { font-size: 11px; flex-wrap: wrap; gap: 4px 8px; }
    .mentor-jc-info-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .mentor-jc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .mentor-jc-banner { min-height: 108px; padding: 12px 8px 10px; gap: 6px; }
    .mentor-jc-org { font-size: 12px; }
    .mentor-jc-pill { font-size: 9.5px; padding: 5px 9px; }
    .mentor-jc-cta { font-size: 11px; padding: 8px 6px; gap: 4px; }
    .mentor-jc-cta i { display: none; }
    .mentor-jc-body { padding: 10px 10px 12px; gap: 6px; }
    .mentor-jc-title { font-size: 12px; -webkit-line-clamp: 2; }
}
