/* Adjust Swiper Container to fit without arrows */
.swiper-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    margin: 0;
}

/* Featured Novel Styling */
.featured-novel {
    display: flex;
    width: 100%;
    max-width: 900px;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to right, rgba(76, 29, 149, 0.9), rgba(124, 58, 237, 0.6), rgba(139, 92, 246, 0.3)); /* Purple gradient */
    padding: 12px 15px; /* Reduced padding */
    box-shadow: 0 3px 10px rgba(76, 29, 149, 0.2);
    margin: 0 auto;
}

/* Left Side: Title, Writer, Category */
.featured-info {
    flex: 1;
    color: white;
    padding-right: 10px;
}

.Fnovel-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.2;
}

.novel-writer {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 3px;
    color: #ffffff;
    opacity: 0.9;
}

.Fnovel-category {
    font-size: 14px;
    color: #40edfd; /* Original yellow color */
    display: inline-block;
    padding: 2px 8px;
    background-color: rgba(245, 9, 9, 0);
    border-radius: 12px;
    margin-top: 2px;
}

.Fread-more {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #ff6600; /* Original orange color */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.Fread-more:hover {
    background: #ff8833; /* Original hover color */
    transform: translateY(-1px);
}

/* Right Side: Cover Image Inside Background */
.featured-cover {
    flex-shrink: 0;
    width: 110px;
    height: 160px;
    position: relative;
    transition: transform 0.3s ease;
}

.featured-cover:hover {
    transform: scale(1.02);
}

.Fcover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hide navigation arrows */
.swiper-button-prev, .swiper-button-next {
    display: none;
}

/* Pagination Style */
.swiper-pagination {
    position: absolute;
    bottom: 8px; /* Reduced bottom spacing */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0 10px;
    width: auto;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 102, 0, 0.7); /* Back to original orange color */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.swiper-pagination-bullet-active {
    background-color: #ffffff;
    width: 10px;
    height: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-novel {
        padding: 10px;
    }
    
    .Fnovel-title {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .novel-writer {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .Fnovel-category {
        font-size: 12px;
        padding: 1px 6px;
    }
    
    .Fread-more {
        padding: 5px 10px;
        font-size: 13px;
        margin-top: 6px;
    }
    
    .featured-cover {
        width: 100px;
        height: 140px;
    }
    
    .swiper-pagination {
        bottom: 6px;
    }
}

@media (max-width: 480px) {
    .featured-novel {
        padding: 8px;
    }
    
    .Fnovel-title {
        font-size: 16px;
    }
    
    .novel-writer {
        font-size: 13px;
    }
    
    .Fnovel-category {
        font-size: 11px;
        padding: 1px 5px;
    }
    
    .Fread-more {
        padding: 4px 8px;
        font-size: 12px;
        margin-top: 5px;
    }
    
    .featured-cover {
        width: 80px;
        height: 120px;
    }
    
    .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
    
    .swiper-pagination-bullet-active {
        width: 7px;
        height: 7px;
    }
    
    .featured-info {
        padding-right: 6px;
    }
}

/* For extra small devices */
@media (max-width: 360px) {
    .featured-novel {
        padding: 6px;
    }
    
    .Fnovel-title {
        font-size: 14px;
    }
    
    .novel-writer {
        font-size: 12px;
    }
    
    .Ffeatured-cover {
        width: 70px;
        height: 100px;
    }
    
    .Fread-more {
        font-size: 11px;
        padding: 3px 7px;
    }
}


:root {
    --lavender-light: #E6E6FA;
    --lavender-main: #967BB6;
    --lavender-dark: #7B68EE;
    --white: #FFFFFF;
    --text-dark: #2C1810;
    --text-light: #000000;
}


/* Enhanced Page Title */
.page-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin: 2.5rem 0;
    background: linear-gradient(135deg, #6a11cb 0%, #9c4ade 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: -1rem;
}

.page-title::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6a11cb, transparent);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, #9c4ade, transparent);
}
.status-tag {
    background: #f1f8e9;
    color: #689f38;
}

.status-tag.ongoing {
    background: #fff3e0;
    color: #f57c00;
}
/* Rest of the existing CSS remains the same */

/* High Contrast Mode for Title */
@media (prefers-contrast: more) {
    .page-title {
        background: none;
        color: #6a11cb;
        text-decoration: underline;
        text-decoration-thickness: 3px;
    }
    
    .page-title::before,
    .page-title::after {
        display: none;
    }
}

/* Dark Mode Support for Title */
@media (prefers-color-scheme: dark) {
    .page-title {
        opacity: 0.9;
    }
}

/* Mobile Optimization for Title */
@media (max-width: 640px) {
    .page-title {
        margin: 1.5rem 0;
        font-size: clamp(1.75rem, 4vw, 2rem);
    }
    
    .page-title::before,
    .page-title::after {
        width: 4rem;
    }
}
.chapters-container {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 2rem;
    border: 1px solid rgba(106, 17, 203, 0.1);
}

.chapter-date {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.chapters-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chapter-item {
    border-bottom: 1px solid rgba(106, 17, 203, 0.08);
}

.chapter-item:last-child {
    border-bottom: none;
}

.chapter-link {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    isolation: isolate;
}

.chapter-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.05), rgba(156, 74, 222, 0.05));
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.chapter-link:hover {
    transform: translateX(0.25rem);
}

.chapter-link:hover::before {
    opacity: 1;
}

.chapter-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.chapter-number {
    color: #6a11cb;
    font-weight: 700;
    font-size: 0.875rem;
    min-width: 2rem;
    text-align: center;
}

.chapter-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #334155;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.status-free {
    background-color: rgba(34, 197, 94, 0.1);
    color: rgb(21, 128, 61);
}

.status-purchased {
    background-color: rgba(59, 130, 246, 0.1);
    color: rgb(29, 78, 216);
}

.lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #f8f4ff, #ffffff);
    box-shadow: 0 2px 4px rgba(106, 17, 203, 0.1);
    transition: transform 0.2s ease;
}

.chapter-link:hover .lock-icon {
    transform: scale(1.05);
}

.lock-icon svg {
    stroke: #6a11cb;
    stroke-width: 2;
    width: 1.25rem;
    height: 1.25rem;
}
/* Previous CSS remains the same */

.no-chapters {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.02), rgba(156, 74, 222, 0.02));
    border-radius: 1rem;
    min-height: 200px;
    position: relative;
}

.no-chapters::before {
    content: '📚';
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.no-chapters::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(106, 17, 203, 0.2) 50%,
        transparent 100%
    );
    border-radius: 3px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    .no-chapters {
        background: transparent;
        border: 2px solid #6a11cb;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .no-chapters::before {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .no-chapters {
        color: #94a3b8;
        background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(156, 74, 222, 0.1));
    }
}

/* Mobile Optimization */
@media (max-width: 640px) {
    .no-chapters {
        padding: 2rem 1rem;
        min-height: 150px;
    }
    
    .no-chapters::before {
        font-size: 2rem;
    }
}
.quick-links {
    margin-top: 2rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 0.75rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(106, 17, 203, 0.1);
    font-weight: 500;
}

.quick-link:hover {
    background: linear-gradient(135deg, #6a11cb, #9c4ade);
    color: white;
    transform: translateX(0.375rem);
    border-color: transparent;
}

.quick-link i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.quick-link:hover i {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    .chapter-link {
        grid-template-columns: 1fr auto;
        padding: 1rem;
    }

    .chapter-status {
        grid-column: 2;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .quick-link {
        padding: 0.875rem;
    }
}
.bundle-card {
    transition: all 0.3s ease-in-out;
    background: linear-gradient(145deg, #ffffff, #ffffff);
    border: 1px solid #e9d5ff;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.1);
}

.bundle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(147, 51, 234, 0.15);
    border-color: #d8b4fe;
}

.coin-icon {
    background: linear-gradient(45deg, #9333ea, #7e22ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.2);
}

.buy-button {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    transition: all 0.3s ease;
}

.buy-button:hover {
    background: linear-gradient(135deg, #7e22ce, #6b21a8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

.title-gradient {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Add loading state styles */
.buy-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.buy-button.loading::after {
    content: '...';
    display: inline-block;
    width: 1em;
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 100% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}
/* High Contrast Mode */
@media (prefers-contrast: more) {
    .page-title {
        background: none;
        color: #6a11cb;
    }

    .status-badge {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .chapter-link,
    .quick-link,
    .lock-icon {
        transition: none;
    }
}
/* Main container styles */
.NallNovel-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    font-family: Georgia, serif; /* Use Georgia as the primary font */
    background-color: var(--white);
    margin-top: 30px;
}

.NallNovel-container {
    width: 100%;
}

/* Grid layout */
.NallNovel-grid {
    display: grid;
    gap: 5px;
    grid-template-columns: 1fr;
    margin: 0;
}

/* Novel card styles */
.NallNovel-card {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    position: relative;
    
    padding-bottom: 5px;
}

/* Cover image styles */
.NakkNovel-cover {
    flex: 0 0 80px;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.NakkNovel-cover:hover {
    transform: scale(1.05);
}

.Ncover-image {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 0px;
}

/* Novel info section */
.Nnovel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    min-height: 120px;
}

.NallNovel-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 2px;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Nnovel__status {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.Nnovel__status::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.Nnovel__descriptions {
    font-size: 11px;
    color: var(--text-light);
    margin: 2px 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    line-height: 1.3;
}

.Nnovel_views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-light);
}

/* Read now button styles */
.Nbtn-read-now {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 8px;
    background-color: var(--lavender-main);
    color: var(--white);
    text-align: center;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.Nbtn-read-now:hover {
    background-color: var(--lavender-dark);
    box-shadow: 0 2px 8px rgba(123, 104, 238, 0.2);
}

/* Responsive Grid Breakpoints */
@media (min-width: 600px) {
    .NallNovel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (min-width: 900px) {
    .NallNovel-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (min-width: 1200px) {
    .NallNovel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Adjustments */
@media (max-width: 320px) {
    .NallNovel-sections {
        padding: 5px;
    }

    .NallNovel-grid {
        gap: 8px;
    }

    .NallNovel-card {
        padding: 10px;
        padding-bottom: 50px;
    }

    .NakkNovel-cover {
        flex: 0 0 70px;
        margin-right: 10px;
    }

    .Ncover-image {
        width: 70px;
        height: 105px;
    }
}

@media (max-width: 768px) {
    .Nlibrary-wrapper {
        padding: 1rem;
    }

    .Npage-title {
        font-size: 2rem;
    }

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

    .Nbook-card {
        height: 160px;
    }

    .Nbook-cover {
        width: 100px;
    }

    .Nbook-info {
        padding: 1rem;
    }
}
/* Grid layout */
.Cnovel-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

}

/* Novel card styles */
.Cnovel-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 20px;
}

.Cnovel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.Cnovel-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
}

/* Cover image styles */
.Cnovel-cover {
    flex: 0 0 80px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.Cnovel-cover:hover {
    transform: scale(1.05);
}

.Cnovel-cover img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 0px;
}

.placeholder-cover {
    width: 80px;
    height: 140px;
    background-color: var(--lavender-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    border-radius: 4px;
}

/* Novel info section */
.complete-novelinfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}

.complete-novelinfo span {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cnovel-descriptions {
    font-size: 14px;
    color: var(--text-light);
    margin: 2px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.Cchapters {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.Cchapters i {
    color: var(--lavender-main);
}

.Rates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--text-light);
    margin-top: auto;
}

.Rates i {
    color: var(--lavender-main);
}

/* Empty state */
.Cno-novels {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: var(--lavender-light);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 16px;
}

/* Section Styles */
.rec-sections,
.pop-sections,
.allNovel-sections {
    width: 100%;
    max-width: 1800px;
    padding: 0.0rem;
    margin: 0 auto;
}

.rec-container,
.pop-container,
.allNovel-container {
    background-color: #ffffff;
    padding: 0.5rem;
    margin: 0.0rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Header Container */
.heading-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem;
    margin-bottom: 0.0rem;
}

.section-heading {
    font-weight: 700;
    color: #983ff7;
    font-size: 2.2rem;
    margin: 0;
}

.view-all-btn {
    color: #a754f6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.view-all-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Grid Layout - Maintaining consistent sizing */
.rec-grid,
.pop-grid,
.allNovel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 16px;
    padding: 0.35rem;
}

/* Card Styles */
.rec-card,
.pop-card,
.allNovel-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    width: 100%;
}

.rec-card:hover,
.pop-card:hover,
.allNovel-card:hover {
    transform: translateY(-2px);
}

/* Cover Container */
.rec-card__cover,
.pop-card__cover,
.akkNovel-cover {
    position: relative;
    width: 100%;
    padding-bottom: 150%;
    background-color: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cover Image */
.rec-card__image,
.pop-card__image,
.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rec-card:hover .rec-card__image,
.pop-card:hover .pop-card__image,
.allNovel-card:hover .cover-image {
    transform: scale(1.05);
}

/* Title Styles */
.rec-card__title,
.pop-card-title,
.allNovel-title {
    margin-top: 0.75rem;
    padding: 0 0.5rem;
    width: 100%;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.rec-card-title span,
.pop-card-title span,
.allNovel-title span {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    line-height: 1.4;
    padding: 0.25rem 0;
}

/* Mobile Optimization */
@media screen and (max-width: 767px) {
    .rec-grid,
    .pop-grid,
    .allNovel-grid {
        grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
        gap: 10px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .rec-card-title span,
    .pop-card-title span,
    .allNovel-title span {
        font-size: 1.1rem;
    }
}

/* Tablet and Larger Screens */
@media screen and (min-width: 768px) {
    .rec-grid,
    .pop-grid,
    .allNovel-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        max-width: 1800px;
        margin: 0 auto;
    }

    .rec-container,
    .pop-container,
    .allNovel-container {
        padding: 0.5.0rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .view-all-btn {
        font-size: 1.4rem;
    }
}

/* Extra Large Screens */
@media screen and (min-width: 1200px) {
    .rec-grid,
    .pop-grid,
    .allNovel-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}
/* Status Banners - Repositioned to top right */
.rec-card__status-banner,
.pop-card__status-banner {
    position: absolute;
    top: 0.0rem;
    right: 0.0rem;
    left: auto;  /* Remove left constraint */
    max-width: 60%;  /* Prevent banner from being too wide */
    padding: 0.35rem 0.75rem;
    border-radius: 0px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
    background: rgba(77, 4, 141, 0.724);
    color: #ffffffc9;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(27, 6, 163, 0.26);
    z-index: 2;
}

/* Stats overlay - Transparent padding */
.rec-card__stats,
.pop-card__stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;  /* Align to the right */
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.8)
    );
    color: #fff;
    font-size: 0.85rem;
    z-index: 1;
}

/* Add icon styling for stats */
.rec-card__stats i,
.pop-card__stats i {
    color: #ffffff;  /* Gold color for star icon */
    margin-right: 0.25rem;
}

/* Ensure cover image stays behind overlays */
.rec-card__image,
.pop-card__image,
.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    z-index: 0;
}

/* Mobile optimization for overlays */
@media screen and (max-width: 767px) {
    .rec-card__status-banner,
    .pop-card__status-banner {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .rec-card__stats,
    .pop-card__stats {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
}

/* Touch Device Optimization */
@supports (-webkit-touch-callout: none) {
    .rec-grid,
    .pop-grid,
    .allNovel-grid {
        -webkit-overflow-scrolling: touch;
    }
}

/* Global link styling to remove underline everywhere */
a {
    text-decoration: none !important;
}

/* Ensure no underline for titles */
.allNovel-title, .allNovel-title span {
    text-decoration: none !important; /* Remove underline */
}
/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 999;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.best-selling-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.slide-info {
    position: absolute;
    bottom: 10px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
}

:root {
    --lavender-light: #E6E6FA;
    --lavender-main: #967BB6;
    --lavender-dark: #7B68EE;
    --white: #FFFFFF;
    --text-dark: #2C1810;
    --text-light: #000000;
    --shadow-color: rgba(0, 0, 0, 0.1);
}


/* Section Header */
section h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lavender-light);
}

/* FontAwesome icon adjustments */
.fas {
    font-size: 26px;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .Cnovel-grid {
        grid-template-columns: 1fr;
    }
    
    .Cnovel-card {
        margin: 0 0 20px 0;
    }
}



/* If you want to refine the styles for this page */
.password-reset-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
}

.password-reset-container h2 {
    font-size: 24px;
    color: #343a40;
    margin-bottom: 16px;
}

.password-reset-container p {
    font-size: 16px;
    color: #495057;
}

.password-reset-container a {
    color: #1d4ed8;
    text-decoration: none;
}

.password-reset-container a:hover {
    text-decoration: underline;
}

.password-reset-container {
    text-align: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.password-reset-container h2 {
    font-size: 24px;
    color: #343a40;
    margin-bottom: 20px;
}

.password-reset-container p {
    font-size: 16px;
    color: #495057;
}

.note {
    margin-top: 20px;
    font-size: 14px;
    color: #6c757d;
}

.title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
  }

  .subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
  }

  .password-reset-form {
    display: flex;
    flex-direction: column;
  }

  .password-reset-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .btn-reset {
    background: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
  }

  .btn-reset:hover {
    background: #0056b3;
  }















