* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    background-color: #E7E7E7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.footer {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
}

footer,
.footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.font-arial {
    font-family: Arial, Helvetica, sans-serif;
}

.font-georgia {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.navbar {
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.overall-bg {
    background-color: #E7E7E7;
    flex: 1;
    margin-top: 20px;
}

/* for long description anchor tag*/
.overall-bg .card-body p a {
    text-decoration: none !important;
    color: #0d6efd !important;
    cursor: pointer;

}


.navbar-brand img {
    width: 150px;
    height: auto;
}

.navbar-nav .nav-item {
    margin-right: 20px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd;
}

.btn-signin {
    font-weight: 500;
    border: none;
    background-color: #006bb7;
    border-radius: 16px;

}

@media (max-width: 991px) {
    .mobile-signin {
        display: block !important;
        background-color: #006bb7;
        margin-top: 10px;
        font-family: Arial, Helvetica, sans-serif;
        text-align: center;
    }

    .desktop-signin {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-signin {
        display: none !important;
    }
}

.dropdown-menu.mega-menu {
    width: 60%;
    left: 20%;
    right: auto;
    border-radius: 5px;
    padding: 10px;
    background: #3c4852;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    color: white !important;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    position: absolute;
    z-index: 999;
}

.nav-item.dropdown {
    position: static;
}

@media (min-width: 992px) {

    .nav-item.dropdown:hover .dropdown-menu.mega-menu,
    .dropdown-menu.mega-menu:hover {
        opacity: 1;
        visibility: visible;
    }
}

.mega-menu .row {
    display: flex;
    flex-wrap: wrap;
}



.mega-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu ul li {
    margin-bottom: 6px;
}

.mega-menu ul li a {
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    color: white !important;
    font-size: 15px;
    transition: color 0.2s ease;
}

.mega-menu ul li a:hover {
    color: #0d6efd;
}

/* Mobile view: full width dropdown */
/* @media (max-width: 991px) {
    .dropdown-menu.mega-menu {
        width: 100%;
        left: 0;
        position: static;
        box-shadow: none;
        background: #3c4852;
    }
}

/* Scrollable line container */
.category-scroll {
    border-bottom: 2px solid #E7E7E7;
    padding-bottom: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    font-size: small;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-overflow-scrolling: touch;

}

.category-scroll::-webkit-scrollbar {
    display: none;

}

#categoryCard a,
#categoryCard a *,
#categoryCard .card-title {
    text-decoration: none !important;
}

.category-scroll .btn {
    flex-shrink: 0;
}

.nav-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;

}

.nav-scroll::-webkit-scrollbar {
    display: none;

}

.search-box {
    position: relative;
    /* width: 80%; */
}


@media (max-width: 700px) {
    .search-box {
        position: relative;
        width: 100%;
    }

}

.search-box input {
    border-radius: 50px;
    border: 1px solid #ddd;
    padding: 10px 40px 10px 20px;
    width: 100%;
    font-size: small;
    font-family: Arial, Helvetica, sans-serif;
    outline: none;
}


.search-wrapper {
    width: 450px;
    max-width: 100%;
}

.search-box input {
    border-radius: 50px;
    border: 1px solid #ddd;
    padding: 10px 40px 10px 20px;
    width: 100%;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    outline: none;
}

@media (max-width: 992px) {
    .search-wrapper {
        width: 400px;
    }

    .search-box input {
        font-size: 15px;
        padding: 8px 36px 8px 18px;
    }
}

@media (max-width: 576px) {
    .search-wrapper {
        width: 100%;
    }
}


.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: green;
    font-size: 18px;
}

.subscribe-input {
    border-radius: 50px;
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-size: small;
    font-family: Arial, Helvetica, sans-serif;
}

.subscribe-btn {
    border-radius: 50px;
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    margin-top: 10px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.language-scroll {
    max-height: 200px;
    overflow-y: auto;
}

.language-scroll::-webkit-scrollbar {
    display: none;
}

.category-box {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 500px;
    overflow-y: auto;
}

.category-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.category-item:hover {
    background-color: #f8fdf8;
}

.category-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #35b86b;
    background: #e8fff0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    /*flex-shrink: 0;*/
}

.category-icon img {
    width: 28px;
    height: 28px;
}

.category-content {
    flex: 1;
}

.category-name {
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: gray;
    display: block;
    cursor: pointer;
}

.category-box::-webkit-scrollbar {
    display: none;
}

.category-box::-webkit-scrollbar-thumb {
    background: #b2b2b2;
    border-radius: 10px;
}

.category-box::-webkit-scrollbar-thumb:hover {
    background: #909090;
}

.category-item ul {
    margin-top: 6px;
    padding-left: 12px;
    border-left: 2px solid #35b86b10;

}

.category-item ul li {
    margin-bottom: 6px;
}


.category-item ul li a {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #555;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.book-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}

.book-card:hover {

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.book-card img {
    width: 80%;
    height: 80%;
    object-fit: cover;
}

.book-card .card-title {
    font-weight: 600;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #222;
}

.book-card .card-text {

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.3;
}

.book-card {
    font-size: 0.9rem;
    color: #555;
    transition: color 0.2s ease;
}

.book-card .social-icons i:hover {
    color: #0d6efd;
}

.footer-style li a:hover {
    color: #0d6efd;
}

.footer-links {
    display: flex;

    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}


.footer-link {
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    color: gray;
    font-size: 0.95rem;
    font-weight: bold;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-link:hover {
    color: darkblue;
    cursor: pointer;
}

@media (max-width: 700px) {
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start !important;
        gap: 12px;

    }

    .footer-links li {
        display: inline-block;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}


.pagination .page-link {
    width: 38px !important;
    height: 38px !important;
    color: #4e73df !important;
    border: 1px solid #dee2e6;
    margin: 0 4px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover {
    background-color: #198754;
    color: #fff !important;
    border-color: #198754;
}

.pagination .page-item.active .page-link {
    background-color: #4e73df;
    border-color: #198754;
    color: #fff !important;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

.subject-box {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.subject-box:hover {
    background-color: #198754;
    color: #fff;
    border-color: #198754;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.chapter-box {
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background-color: #fff;
    cursor: pointer;
    color: #0d6efd;
}

.chapter-box:hover {
    transform: translateY(-3px);
    background-color: #f8f9fa;
    color: #0d6efd;
    box-shadow: 0 6px 12px rgba(0, 0, 1, 0.1);
}

/*//10 sec timer*/
.circle-timer {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid green;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: #2dd4bf;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.circle-timer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid rgba(255, 77, 79, 0.3);
}

.pdf-viewer object {
    border: 1px solid #ccc;
    border-radius: 5px;
}

.card-title {
    font-size: 20px;
    color: #3C4852;
}

.subcategory-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.subcategory-btn .toggle-icon {
    transition: transform 0.3s, color 0.3s;
}

.subcategory-btn:hover {
    background-color: #ffffff;
    border-color: #0d6efd;
    color: #0d6efd;
}

.subcategory-btn:hover .toggle-icon {
    color: #0d6efd;
}

.subcategory-btn.collapsed .toggle-icon {
    transform: rotate(0deg);
}

.subcategory-btn:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

.ebook-btn .card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #212529;
    transition: all 0.3s;
}

.ebook-btn .card:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    background-color: #ffffff;
}

.ebook-btn .card h6 {
    transition: color 0.3s;
}

.ebook-btn .card:hover h6 {
    color: #0d6efd;
}

.banner-slider .slick-slide {
    text-align: center;
}

.banner-slider img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .banner-slider img {
        height: 250px;
    }
}


.banner-slider .slick-prev,
.banner-slider .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.banner-slider .slick-prev {
    left: -25px;
}

.banner-slider .slick-next {
    right: -25px;
}

.banner-slider .slick-prev:before,
.banner-slider .slick-next:before {
    color: #4f5a63;
    font-size: 30px;
    opacity: 1;
    transition: color 0.3s;
}

.banner-slider .slick-prev:hover:before,
.banner-slider .slick-next:hover:before {
    color: #222;
}

@media (max-width: 768px) {
    .banner-slider .slick-prev {
        left: 0px !important;
    }

    .banner-slider .slick-next {
        right: 1px !important;
    }
}

.category-card {
    padding: 10px;
}

.category-card .card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

.card-img-top {
    height: 150px;
    object-fit: cover;
}

.breadcrumb {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #6c757d;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.mobile-search {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
}

.mobile-search form {
    display: flex;
    gap: 8px;
    width: 90%;
    max-width: 500px;

}

.mobile-search form input {
    border-radius: 30px;
}

.mobile-search form button {
    border-radius: 30px;
}

@media (max-width: 576px) {
    .mobile-search form {
        width: 85%;
        max-width: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .mobile-search {
        justify-content: center;
    }

    .mobile-search form {
        max-width: 400px;
        margin: 0 auto;
    }
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#page-content {
    display: none;
}

.sticky-footer-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* background: #fff; */
    /* box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15); */
    z-index: 1050;
    transition: transform 1.2s ease;
    padding: 8px 0;
}

.sticky-footer-wrapper.closed {
    transform: translateY(calc(100% - 25px));
}

.sticky-footer-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.sticky-footer-ad-content img,
.sticky-footer-ad-content iframe {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.toggle-ad-btn {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1060;
}

.sticky-footer-wrapper.closed .toggle-ad-btn i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.sticky-footer-wrapper.closed {
    transform: translateY(100%);
}


.sticky-footer-wrapper.open {
    transform: translateY(0);
}


.promo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* background: #f8f9fa; */
    border-radius: 10px;

}

.promo-image {
    width: 100%;
    height: 260px;
    object-fit: fill;
    object-position: center;
    display: block;
}


@media (max-width: 768px) {
    .promo-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 0;
    }

    .promo-container {
        border-radius: 0;
        background: transparent;
    }
}

.faq-btn {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: #212529;
    transition: all 0.3s ease;
}

.faq-btn:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
}

.faq-btn .toggle-icon {
    color: #64d6af;
    transition: transform 0.3s, color 0.3s;
}

.faq-btn:hover .toggle-icon {
    color: #0d6efd;
}

.faq-btn:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
    color: #64d6af;
}

.faq-btn.collapsed .toggle-icon {
    transform: rotate(0deg);
}