/* Extracted from books.aspx */

.checked {
    color: orange;
}

.star-outer {
    position: relative;
    display: inline-block
}

.star-outer::before {
    content: '\f005 \f005 \f005 \f005 \f005';
    font-family: 'Font Awesome 5 free';
    font-weight: 900;
}

.star-inner::before {
    content: '\f005 \f005 \f005 \f005 \f005';
    font-family: 'Font Awesome 5 free';
    font-weight: 900;
    color: orange;
}

.star-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    white-space: nowrap;
}


/* Legacy definitions removed in favor of strict class names */


.card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.tag {
    align-self: flex-start;
    padding: .25em .75em;
    border-radius: 1em;
    font-size: .75rem;
}

.tag+.tag {
    margin-left: .5em;
}

.tag-blue {
    background: #56CCF2;
    background: linear-gradient(to bottom, #2F80ED, #56CCF2);
    color: #fafafa;
}

.tag-brown {
    background: #D1913C;
    background: linear-gradient(to bottom, #FFD194, #D1913C);
    color: #fafafa;
}

.tag-red {
    background: #cb2d3e;
    background: linear-gradient(to bottom, #ef473a, #cb2d3e);
    color: #fafafa;
}

.card__body h4 {
    font-size: 1.5rem;
    text-transform: capitalize;
}

.card__footer {
    display: flex;
    padding: 1rem;
    margin-top: auto;
}

.user {
    display: flex;
    gap: .5rem;
}

.user__image {
    border-radius: 50%;
}

.user__info>small {
    color: #666;
}

/* Sidebar and Layout Styles */

.sidebar .nav p {
    text-transform: capitalize !important;
    font-size: 12.7px !important;
    font-weight: 400;
}

.sidebar .nav i {
    font-size: 14px !important;
    line-height: 21px !important;
}

.sidebar .nav li>a {
    margin: 0px 15px !important;

}

.hbf1:hover {
    background-color: rgba(255, 255, 255, 0.13) !important;
    color: white !important;
    opacity: 1 !important;
}

.hbf1 {
    display: none !important;
    background: white !important;
    text-transform: capitalize !important;
    color: #4E59AD !important;
    line-height: 28px;
    width: 222px;
    font-size: 12.7px !important;
}

.clg-hvr:hover .hbf1 {
    display: block !important;
}

.ndb-blog {
    background: #e9e7fd;
    border-radius: 15px;
    overflow: hidden;
    padding: 10px;
    text-align: center;
}

.ndb-blog-bnnr img {
    height: 104px;
    border-radius: 15px;
    width: 185px;
}

/* Top bar start */
.ndb-top-bar {
    background: #fafafa;
    padding: 6px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ndb-tb-1 {
    background: #E9E7FD;
    padding: 5px;
    border-radius: 5px;
}

.ndb-tb-1>i {
    color: #757575;
    margin-right: 16px;
    font-size: 13px;
    margin-left: 5px;
}

.ndb-tb-input {
    border: none;
    outline: none;
    background: #E9E7FD;
    font-size: 14px;
    font-weight: 300;
}

.ndb-plan-wrapper {
    background: #fff;
    padding: 6px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.ndb-tb-right {
    gap: 30px;
    display: flex;
    align-items: center;

}

.ndb-tb-cp {
    font-size: 14px;
    color: #3A3A3A;
}


/* Left Counsellor */
.ndb-srw-slider {
    padding: 15px 0 20px 0;
    background: #e9e7fd;
    border-radius: 25px;
}

/* Jumbotron and Search */
.jumbotron {
    text-align: left;
    margin: auto;
    line-height: 1.42857143;
    font-weight: 300;
    font-size: 17px;
    box-sizing: border-box;
    margin-bottom: 30px;
    color: inherit;
    background-color: #eee;
    padding-top: 48px;
    padding-bottom: 48px;
    border-radius: 4px;
    padding-left: 60px;
    padding-right: 60px;
    max-width: 1200px;
    padding: 2rem !important;
}

.j-heading {
    text-align: center !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    color: #f57f1a !important;
    margin-bottom: 25px !important;
}

.j-heading span {
    color: rgb(128 128 128) !important;
    font-weight: 500 !important;
}

.input-group {
    text-align: left;
    line-height: 1.42857143;
    font-weight: 300;
    font-size: 17px;
    color: inherit;
    box-sizing: border-box;
    flex-wrap: wrap;
    -webkit-box-align: stretch;
    align-items: stretch;
    width: 100%;
    position: relative;
    display: table;
    border-collapse: separate;
}

.input-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #979797;
    border-radius: 5px;
    width: 85%;
    outline: none;
}

.input-group-btn {
    text-align: left;
    line-height: 1.42857143;
    font-weight: 300;
    color: inherit;
    border-collapse: separate;
    box-sizing: border-box;
    display: table-cell;
    width: 1%;
    vertical-align: middle;
    position: relative;
    font-size: 0;
    white-space: nowrap;
}

.btn {
    border: none !important;
    background: #2557a7 !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 15px 15px !important;
    font-weight: 600 !important;
    border-radius: 0 5px 5px 0 !important;
}

.btn i {
    font-size: 13px;
    margin-left: 5px;
}

.button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 17px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
}

.button2 {
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    transition-duration: 0.4s;
    background-color: white;
    width: fit-content;
    color: black;
    border: 1px solid #084298;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 15px;
}

.button2:hover {
    background-color: #008CBA;
    color: white;
}

.button2:hover i {
    color: #fff;
}

.tsb {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 400;
    color: #41464b;
    margin-right: 14px;
}

.head_container {
    margin-left: 10px;
    font-size: 19px;
    color: #333;
    font-weight: 300;
}

.tsb-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#show-results {
    /* display: block; defined in legacy but also hidden in some blocks, will handle in razor */
}


.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    justify-content: center;
}

.book-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #626CAC;
}

.book-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card-body img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    /* Ensure entire book cover is visible w/o distortion */
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.c-content {
    width: 100%;
    overflow: hidden;
    padding-top: 20px;
}

.c-title {
    width: 30%;
    float: left;
}

.ct-name {
    color: #6c757d;
    font-family: 'poppins', sans-serif;
    font-size: 17px;
    font-weight: 300;
}

.ct-book-title {
    font-size: 16px;
    font-family: 'poppins', sans-serif;
    font-weight: 400;
    color: #656a6e;
    margin-left: 35%;
}

.c-book-desc {
    width: 100%;
    overflow: hidden;
}

.cbd-publisher {
    width: 30%;
    float: left;
}

.cbd-publisher b {
    color: #6c757d;
    font-family: 'poppins', sans-serif;
    font-size: 17px;
    font-weight: 300;
}

.sbdp-name {
    font-size: 17px;
    font-family: 'poppins', sans-serif;
    font-weight: 400;
    color: #656a6e;
    margin-left: 35%;
}

.c-author {
    width: 100%;
    overflow: hidden;
}

.c-author-title {
    width: 30%;
    float: left;
}

.cat-name {
    color: #6c757d;
    font-family: 'poppins', sans-serif;
    font-size: 17px;
    font-weight: 300;
}

#setRating {
    font-size: 17px;
    font-family: 'poppins', sans-serif;
    font-weight: 400;
    color: #656a6e;
    margin-left: 35%;
}

.c-review a {
    font-size: 13.5px;
    padding: 6px 13px;
    background: #626cad;
    color: #fff;
    border-radius: 5px;
    font-family: 'poppins', sans-serif;
    font-weight: 400;
    transition: 0.1s ease all;
}

.c-review a:hover {
    color: #fff;
}

.c-review-btn {
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
    box-sizing: border-box;
    font-size: 17px;
    font-family: Source Sans Pro, sans-serif;
    border: none;
    border-radius: 5px;
    display: inline-block;
    padding: 6px 18px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    background-color: #2fbbcc;
    color: #ffffff;
}

/* Responsiveness */
@media (max-width: 900px) {
    .dashboard-right-wrapper {
        width: 100%;
        position: absolute;
        left: auto;
    }
}

@media (max-width: 768px) {
    .job-card-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .ndb-blog-bnnr img {
        width: 134px !important;
    }

    .master-box {
        padding: 0 0 !important;
    }
}

@media (max-width: 400px) {
    .button2 {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
}

body {
    background-color: #fcfcfc;
}

#header {
    font-family: 'Righteous', sans-serif;
    font-size: 3rem;
}

h2 {
    font-family: 'Righteous', sans-serif;
}

.book-list {
    margin-top: 20px;
    visibility: hidden;
}

.nav-ul {
    margin-left: 30px;
}

@media only screen and (max-width : 680px) {
    .m-footer-hide {
        display: none;
    }
}

.visible_resp {
    display: none;
}

@media only screen and (max-width: 620px) {
    .visible_resp {
        display: block;
        ;
    }
}

/* W3Schools Sidebar Styles (Used in Mobile) */
.w3-sidebar {
    height: 100%;
    width: 200px;
    background-color: #fff;
    position: fixed !important;
    z-index: 1;
    overflow: auto
}

.w3-bar-block .w3-bar-item {
    width: 100%;
    display: block;
    padding: 8px 16px;
    text-align: left;
    border: none;
    white-space: normal;
    float: none;
    outline: 0
}

.w3-border-right {
    border-right: 1px solid #ccc !important
}

.w3-large {
    font-size: 18px !important
}

.w3-teal,
.w3-hover-teal:hover {
    color: #fff !important;
    background-color: #009688 !important
}

.w3-button {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap
}

/* Main Panel Layout Fix */
.main-panel {
    position: relative;
    float: right;
    width: 80%;
    /* Matching the 20% sidebar */
    min-height: 100vh;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .main-panel {
        width: 100%;
        float: none;
    }
}
