* {
    font-family: 'Poppins', sans-serif !important;
}

i {
    font-family: 'FontAwesome', sans-serif !important;
}

input, textarea, select, option {
    font-size: 16px !important;
}

.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 5px 10px;
    margin-left: 4px;
    color: #337ab7;
    text-decoration: none;
    background-color: transparent;
    border: none;
    font-size: 16px;
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover,
.pagination > li > a:focus,
.pagination > li > a:hover,
.pagination > li > span:focus,
.pagination > li > span:hover {
    background-color: #245081;
    border-color: #245081;
    color: #fff;
    border-radius: 8px;
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover {
    background-color: transparent;
    border-color: transparent;
}

.marginTop {
    margin-top: 40px;
}

.explore-header {
    padding: 20px;
    color: #fff;
    background: linear-gradient(90deg, #2E507D 1%, #5986C4 100%);
}

.explore-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 1px;
}

.explore-header h1 {
    font-size: 28px;
    margin: 10px 0 25px 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    overflow-x: auto;
    margin-bottom: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    display: block;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav-active {
    border-bottom: 2px solid #fff;
}

.breadcrumbs ul {
    display: flex;
    align-items: center;
    color: #949494;
    flex-wrap: wrap;
    line-height: normal;
    gap: 7px;
}

.breadcrumbs ul > li > i {
    padding: 0 5px;
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 50px;
}

.navigation-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.tab-btn {
    padding: 8px 20px;
    cursor: pointer;
    color: #636967;
    background: #F2F3F2;
    border: none;
    border-radius: 20px;
    white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
    background: #5986C4;
    color: #fff;
}

.view-all-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.view-all-section p {
    margin-bottom: 0;
}

.view-all-section .view-all {
    cursor: pointer;
    color: #999999;
    text-decoration: underline;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content ul.pagination {
    margin-top: 35px;
}

.flashcard-grid, .all-section-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.tab-content ul {
    margin-bottom: 0;
}

.tab-content nav {
    text-align: end;
}

.flashcard {
    color: #000;
    border-radius: 10px;
    padding: 15px;
    background: #EEF3FA;
    border: 1px solid transparent;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.flashcard:hover, .flashcard.active, .flashcard:focus {
    text-decoration: none;
    border: 1px solid #5986C4;
    box-shadow: 0 1px 14px 0 #5986C4;
}

.textbook-card {
    display: block;
    cursor: pointer;
}

.flashcard-heading-text {
    font-size: 18px;
    font-weight: 600;
    color: #2E4F7E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.flashcard-detail-text {
    color: #767676;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.flashcard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tag, .terms {
    background: #D9E3F2;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #2E4F7E;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.flashcard-rating {
    color: #E1AD27;
}

.flashcard-rating .fa-star,
.flashcard-rating .fa-star-o,
.flashcard-rating .fa-star-half-o {
    color: #E1AD27;
    font-size: 14px;
}

.flashcard-rating .rating-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.user-info .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #B4C8E4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #2E4F7E;
}

.user-info span {
    font-size: 12px;
    color: #2E4F7E;
}

.flashcard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.preview-btn {
    background: #2E4F7E;
    border: 1px solid #2E4F7E;
    color: #fff;
    width: 95px;
    height: 30px;
    font-size: 12px;
    border-radius: 15px;
}

.view-deck-detail {
    background: transparent;
    border: 1px solid #2E4F7E;
    color: #2E4F7E;
    width: 95px;
    height: 30px;
    font-size: 12px;
    border-radius: 15px;
}

.flashcard-mask {
    position: absolute;
    bottom: 0;
    left: 0;
}

.flashcard-mask img {
    width: 100%;
}

.tab-content-heading {
    font-size: 24px;
    font-weight: 600;
    color: #4F4F4F;
    margin: 0;
    display: inline-block;
}

.textbook-section {
    display: flex;
    gap: 12px;
}

.image-section {
    height: 145px;
    flex: 0 0 33%;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.description-section {
    width: 65%;
    flex: 1;
    min-width: 0;
}

.textbook-heading, .textbook-description p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.textbook-heading {
    color: #2E4F7E;
    font-size: 18px;
    font-weight: 600;
}

.textbook-description p {
    font-size: 12px;
    color: #4D4D4D;
    font-weight: 600;
    margin-bottom: 3px;
}

.font-weight-400 {
    font-weight: 400;
}

.verified-solution {
    background: #2E4F7E;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #fff;
    display: inline-block;
    margin-top: 25px;
}

.verified-solution img {
    margin-top: -4px;
}

.expert_qa {
    cursor: pointer;
}

.expertQA-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.expertQA-description {
    font-size: 12px !important;
    font-weight: normal !important;
    color: #4D4D4D;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: normal;
    height: 55px;
    margin: 5px 0 10px 0;
}

.no-found-section {
    text-align: center;
    margin-top: 50px;
}

.no-library-icon {
    width: 25%;
}

.empty-content-data {
    grid-column: 1 / -1;
    text-align: center;
    color: #767676;
}

.empty-content-data img {
    width: 60px;
}

.empty-content-text-heading {
    font-weight: 600;
    font-size: 18px;
    margin: 15px 0 10px;
}

.main-empty-content {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.no-content-heading {
    margin-left: 10px;
    font-size: 20px;
    font-weight: 600;
}

.empty-heading {
    margin-left: 10px;
    font-size: 14px;
}

@media (max-width: 992px) {
    .no-library-icon {
        width: 35%;
    }

    .tab-content ul.pagination {
        margin: 40px 0 0 !important;
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .all-section-card {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
    }

    .all-section-card .flashcard {
        flex: 0 0 auto;
        width: 80%;
        scroll-snap-align: start;
    }

    .explore-header {
        margin-top: 50px;
    }

    .pagination > li > a,
    .pagination > li > span {
        font-size: 12px !important;
    }

    .tab-content ul.pagination {
        margin: 40px 0 0 !important;
    }

    .explore-header h1 {
        font-size: 20px;
        margin: 8px 0 25px 0;
    }

    .main-nav ul {
        gap: 18px;
    }

    .main-nav a {
        padding-bottom: 8px;
    }

    .flashcard-grid {
        grid-template-columns: 1fr;
    }

    .explore-container {
        padding: 0;
    }

    .tabs-container {
        padding: 20px 15px 50px;
    }

    .no-library-icon {
        width: 45%;
    }

    .hover-detailed-container {
        display: contents !important;
    }
}

@media (max-width: 600px) {
    .no-library-icon {
        width: 60%;
    }
}

@media (max-width: 420px) {
    .no-library-icon {
        width: 75%;
    }
}

.font-weight-600 {
    font-weight: 600;
}

.hover-detailed-container {
    position: relative;
    display: inline-block;
}

.hover-detailed-container .detailed-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    border-radius: 10px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
    background: #fff;
    box-shadow: 0 4px 34px 0 #00000073;
    width: 40vw;
    pointer-events: none;
}

.hover-detailed-container:hover .detailed-tooltip {
    opacity: 1;
    pointer-events: auto;
}

.hover-detailed-container .detailed-tooltip .flashcard {
    background: #fff;
}

.hover-detailed-container .detailed-tooltip .flashcard:hover {
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: none;
}

.detail-popup-section {
    display: flex;
    gap: 15px;
}

.detail-popup-section .image-section {
    width: 35%;
    height: 220px;
}

.detail-popup-section .image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.detailed-heading {
    color: #4F4F4F;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: normal;
    min-height: 25px;
    max-height: 50px;
}

.detailed-heading span {
    color: #8B8B8B;
    font-size: 10px;
}

.author-name {
    color: #5580EF;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: normal;
    height: 17px;
}

.review-section {
    margin-bottom: 6px;
}

.reviews {
    color: #8B8B8B;
    font-size: 10px;
    padding-left: 12px;
}

.popup-description {
    margin: 10px 0;
}

.popup-description p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: normal;
    height: 20px;
    font-size: 12px;
    margin-bottom: 0;
}

.price-section {
    margin-top: 16px;
}

.price-section p {
    font-size: 12px;
    color: #4F4F4F;
    margin-bottom: 5px;
}

.price-savings {
    color: #8B8B8B;
}

.loader-button {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.spinner {
    position: relative;
    width: 20px;
    height: 20px;
}

.spinner::before,
.spinner::after {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    animation: spinner-b4c8mmmn 0.5s backwards, spinner-49opz7mn 1.25s 0.5s infinite ease;
    border: 5px solid #1269ba;
    border-radius: 50%;
    box-shadow: 0 -30px 0 -5px #1269ba;
    position: absolute;
}

.spinner::after {
    animation-delay: 0s, 1.25s;
}

@keyframes spinner-b4c8mmmn {
    from {
        box-shadow: 0 0 0 -5px #1269ba;
    }
}

@keyframes spinner-49opz7mn {
    to {
        transform: rotate(360deg);
    }
}





























