/* Poppins Font Imports */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/poppins-1.woff2");
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/poppins-2.woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/poppins-3.woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/poppins-4.woff2");
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/poppins-5.woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/poppins-6.woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@media only screen and (max-width: 359px) {

    .nav,
    .main,
    .footer {
        display: none;
    }

    body {
        font-family: 'Poppins', sans-serif;
        background-color: #0d010d;
        color: #e0e0e0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        margin: 0;
        padding: 1rem;
        text-align: center;
    }

    .screen-too-small-header {
        font-size: 2rem;
        font-weight: 700;
        color: #d112b3;
        margin-bottom: 1rem;
    }

    p {
        font-size: 1rem;
        color: #b0b0b0;
        margin: 0 auto 1.5rem auto;
        max-width: 600px;
    }

    ul {
        list-style: none;
        padding: 0;
        margin-bottom: 2rem;
        text-align: left;
        max-width: 600px;
    }

    li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
        color: #b0b0b0;
    }

    li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: #d112b3;
        font-size: 1.25rem;
        line-height: 1;
    }

}

@media only screen and (min-width: 360px) {

    .screen-too-small {
        display: none;
    }

    :root {
        --bg-color: #0d010d;
        --main-gradient: linear-gradient(180deg, #0d010d 0%, #310531 100%);
        --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
        --text-color: #f0e6f2;
        --secondary-text-color: #b3a5b3;
        --accent-color: #d112b3;
        --border-color: rgba(255, 255, 255, 0.1);
        --glow-box-shadow: rgba(209, 18, 179, 0.4);
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: 'Poppins', sans-serif;
        color: var(--text-color);
    }

    body {
        display: flex;
        flex-direction: column;
        background: var(--main-gradient);
        min-height: 100vh;
        line-height: 1.6;
        scroll-behavior: smooth;
        margin: 0;
    }

    body::-webkit-scrollbar {
        width: 8px;
    }
    
    body::-webkit-scrollbar-track {
        background: var(--bg-color);
    }
    
    body::-webkit-scrollbar-thumb {
        background-color: #444;
        border-radius: 4px;
    }
    
    body::-webkit-scrollbar-thumb:hover {
        background-color: #666;
    }

    .main-content-wrapper {
        display: none;
        flex-direction: column;
        min-height: 100vh;
    }

    .kebab-wrapper {
        margin-bottom: 2rem;
    }

    /* --- Navbar --- */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        padding: 1rem 2rem;
        align-items: center;
        justify-content: space-between;
    }

    .nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(13, 1, 13, 0.7);
        backdrop-filter: blur(10px);
        z-index: -1;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .brand-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-decoration: none;
        color: inherit;
        transition: opacity 0.3s ease;
    }

    .brand-link:hover {
        opacity: 0.5;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .logo img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .website-name {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-color);
    }

    .horizontal-spacer {
        height: 60px;
    }

    .nav-links {
        z-index: 1000;
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .nav-link-item {
        position: relative;
        cursor: pointer;
        padding: 0.5rem;
        padding-right: 0;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .nav-button {
        display: inline-block;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
        border: 1px solid var(--border-color);
        color: var(--text-color);
        font-weight: 600;
        padding: 0.5rem 1.5rem;
        border-radius: 8px;
        text-decoration: none;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .nav-button:hover {
        background-color: #310531;
        transform: translateY(-1px);
    }

    .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(13, 1, 13, 0.85);
        backdrop-filter: blur(8px);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.5rem 0;
        min-width: 150px;
        margin-top: 0.5rem;
        z-index: 10;
    }

    .dropdown.active {
        display: block;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
        white-space: nowrap;
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    /* --- Main Content --- */
    .main {
        max-width: 1200px;
        margin: 0 auto;
        padding: 8rem 2rem 4rem;
    }

    .section-spacing {
        margin-top: 4rem;
    }

    /* --- Homepage specific styles --- */
    .intro {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }

    .intro h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--text-color);
    }

    .intro p {
        font-size: 1.1rem;
        color: var(--secondary-text-color);
        margin-bottom: 2rem;
    }

    .intro-button {
        display: inline-block;
        background: var(--accent-color);
        color: var(--text-color);
        font-weight: 600;
        padding: 1rem 2.5rem;
        border-radius: 8px;
        text-decoration: none;
        transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        font-size: 1.1rem;
        box-shadow: 0 4px 15px rgba(192, 18, 166, 0.4);
    }

    .intro-button:hover {
        background-color: #c00e9a;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--glow-box-shadow);
    }

    .request-book-link {
        margin-top: 1.5rem;
    }

    .request-book-link a {
        font-size: 1rem;
        font-weight: 600;
        color: var(--accent-color) !important;
        transition: color 0.3s ease;
        cursor: pointer;
    }
    
    .request-book-link a:hover {
        color: #ff8bee !important;
    }

    .card-section-headers {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 2rem;
    }

    .cards-1 {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }

    .card-1 {
        background: var(--card-gradient);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        max-width: 500px;
        flex: 1 1 45%;
        transition: transform 0.3s ease;
    }

    .card-1:hover {
        transform: translateY(-10px);
    }

    @media (max-width: 768px) {
        .card-1 {
            flex: 1 1 100%;
        }
    }

    .card-1 h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .card-1 p {
        color: var(--secondary-text-color);
        text-align: justify;
    }

    .subscription-plans h1 {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 2rem;
    }

    .plan-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .plan-card {
        background: var(--card-gradient);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        flex: 1 1 300px;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .plan-card:hover {
        transform: translateY(-10px);
    }

    .plan-card h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .price {
        font-size: 3rem;
        font-weight: 600;
        color: var(--accent-color);
        margin-bottom: 1rem;
    }

    .price span {
        font-size: 1rem;
        font-weight: 400;
        color: var(--secondary-text-color);
    }

    .plan-description {
        color: var(--secondary-text-color);
        text-align: justify;
        flex-grow: 1;
        margin-bottom: 1.5rem;
    }

    .buy-now-btn {
        background: var(--accent-color);
        border: none;
        border-radius: 8px;
        padding: 0.75rem 2rem;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-color);
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: 100%;
        margin-top: auto;
    }

    .buy-now-btn:hover {
        background-color: #a80e8e;
    }

    .cards-2 {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .card-2 {
        background: var(--card-gradient);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        transition: transform 0.3s ease;
    }

    .card-2:hover {
        transform: translateY(-10px);
    }

    .card-2 h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .card-2 p {
        color: var(--secondary-text-color);
        text-align: justify;
    }

    .faq-headers {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 2rem;
    }

    .faq-item {
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
        cursor: pointer;
        text-align: justify;
    }

    .faq-item:first-child {
        border-top: 1px solid var(--border-color);
    }

    .faq-question {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        padding-right: 1rem;
    }

    .faq-question p {
        padding-right: 16px;
        padding-left: 16px;
    }

    .faq-question::after {
        content: '+';
        font-size: 1.5rem;
        transition: transform 0.3s ease;
    }

    .faq-question.active::after {
        content: '−';
        transform: rotate(180deg);
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .faq-answer-content {
        padding: 1rem;
        color: var(--secondary-text-color);
    }

    .faq-answer-content a {
        font-weight: bold;
    }

    /* --- Taming the CSS --- */
    .spacer-div {
        flex-grow: 1;
    }

    /* --- Footer --- */
    .footer {
        border-top: 1px solid var(--border-color);
        padding: 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: max-content;
        bottom: 0;
    }

    .footer-left,
    .footer-right {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .footer-logo {
        width: 30px;
        height: 30px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }

    .copyright {
        font-size: 0.9rem;
        color: var(--secondary-text-color);
    }

    .footer-links {
        display: flex;
        gap: 1.5rem;
    }

    .footer-links>div>a {
        text-decoration: none;
        color: var(--secondary-text-color);
        transition: color 0.3s ease;
    }

    .footer-links>div>a:hover {
        color: var(--text-color);
    }

    .footer-links div {
        font-size: 0.9rem;
        color: var(--secondary-text-color);
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .footer-links div:hover {
        color: var(--text-color);
    }

    @media (max-width: 625px) {
        .footer {
            flex-direction: column;
            gap: 1.5rem;
            text-align: center;
        }

        .footer-right {
            flex-direction: column;
            gap: 0.5rem;
        }

        .nav {
            padding: 1rem 1rem;
        }
    }

    /* --- Book Webpage Specific Styles --- */
    .container {
        max-width: 900px;
        margin: 0 auto;
    }

    .book-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .book-cover-container {
        width: 200px;
        height: 300px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--border-color);
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .book-cover-container img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
    }

    .book-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .book-details h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--text-color);
        margin: 0;
    }

    .book-details .author {
        font-size: 1.25rem;
        color: var(--accent-color);
        margin-top: 1rem;
    }

    .metadata {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .metadata-item {
        font-size: 0.9rem;
        color: var(--secondary-text-color);
        text-align: center;
    }

    .metadata-item span {
        color: var(--text-color);
        font-weight: 600;
    }

    .description {
        background: var(--card-gradient);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .description h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--accent-color);
        margin-bottom: 1rem;
    }
    
    .description p, .download-section p {
        color: var(--secondary-text-color);
        line-height: 1.6;
        margin-bottom: 1rem;
        text-align: justify;
    }

    .description h3 {
        margin-bottom: 1rem;
    }
    
    .description-container {
        width: 100%;
    }
    
    .description-container ul {
        list-style-type: none;
        padding: 0;
        margin-left: 1.5rem;
        text-align: left;
    }
    
    .description-container li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--secondary-text-color);
    }
    
    .description-container li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: #d112b3;
        font-size: 1.25rem;
        line-height: 1;
    }

    .availability {
        margin-bottom: 2rem;
    }

    .availability h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--accent-color);
        margin-bottom: 1rem;
        text-align: center;
    }

    .availability-list {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .availability-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1rem;
        color: var(--secondary-text-color);
    }

    .availability-item .checkmark {
        color: #4CAF50;
        font-weight: 700;
    }

    .download-section {
        background: var(--card-gradient);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .download-section h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--accent-color);
        margin-bottom: 1rem;
    }

    .download-section p {
        margin-bottom: 1rem;
    }

    .download-links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .download-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--accent-color);
        color: var(--text-color);
        font-weight: 600;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        text-decoration: none;
        transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        text-align: center;
        white-space: nowrap;
        width: 141px;
    }

    .download-btn:hover {
        background-color: #c00e9a;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px var(--glow-box-shadow);
    }

    .empty-state {
        margin-top: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem 1.5rem;
        border-radius: 10px;
        border: 1px dashed rgba(255, 193, 7, 0.45);
        background: rgba(255, 193, 7, 0.08);
        color: var(--secondary-text-color);
    }
    
    .empty-state strong {
        display: block;
        color: var(--text-color);
        margin-bottom: 0.35rem;
        text-align: center;
    }
    
    .empty-state p {
        margin-bottom: 0;
        width: 100%;
        text-align: center;
    }

    .key-input-group {
        display: flex;
        text-align: justify;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .key-input {
        width: 100%;
        max-width: 400px;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--text-color);
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        text-align: center;
    }

    .confirm-btn {
        background-color: #479749;
        text-decoration: none;
        border: none;
        border-radius: 8px;
        padding: 0.75rem 1.5rem;
        width: 141px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-color);
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .confirm-btn:hover {
        background-color: #2e6331;
        transform: translateY(-2px);
    }

    .report-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--card-gradient);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .report-section h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--accent-color);
        margin-bottom: 1rem;
    }
    
    .report-section p {
        color: var(--secondary-text-color);
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    .report-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--accent-color);
        color: var(--text-color);
        font-weight: 600;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        text-decoration: none;
        transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        text-align: center;
        white-space: nowrap;
        width: 200px;
    }

    .report-btn:hover {
        background-color: #c00e9a;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px var(--glow-box-shadow);
    }

    .lead {
        color: var(--text-color);
        margin-bottom: 1rem;
    }

    @media (min-width: 768px) {
        .book-header {
            flex-direction: row;
            text-align: left;
        }

        .book-details {
            align-items: flex-start;
        }

        .metadata {
            justify-content: flex-start;
        }
    }

    /* .key-input-group {
    } */

    /* General Card Styles (for cover-style cards in horizontal carousels) */
    .book-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 0 0 250px;
        text-decoration: none;
        transition: transform 0.3s ease;
        background: var(--card-gradient);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
        padding-bottom: 1rem;
        scroll-snap-align: start;
    }

    .book-item:hover {
        transform: scale(1.03);
    }

    .book-image-link {
        display: block;
        width: 100%;
        height: 320px;
        overflow: hidden;
        border-radius: 12px 12px 0 0;
    }

    .book-image-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .book-title-container {
        padding: 0.75rem 1rem 0;
        text-align: center;
        width: 100%;
    }

    .book-title {
        font-size: 1rem;
        color: var(--text-color);
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }


    /* Browse Page Specific Styles */

    /* Header Search Bar */
    .search-container {
        position: relative;
        margin-left: auto;
        @media only screen and (min-width: 360px) and (max-width: 499px) {
            width: 125px;
        }
        @media only screen and (min-width: 500px) {
            width: 250px;
        }
    }

    .search-container.expanded {
        @media only screen and (max-width: 729px) {
            padding: 24.5px 32px;
            background-color: var(--bg-color);
            width: 100%;
            height: 92px;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1002;
        }
        @media only screen and (min-width: 730px) {
            width: 500px;
        }
    }

    .nav-header-search-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        margin-left: auto;
        border: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        z-index: 1001;
        @media only screen and (min-width: 360px) and (max-width: 499px) {
            width: 125px;
        }
        @media only screen and (min-width: 500px) {
            width: 250px;
        }
    }

    .nav-header-search-input {
        flex-grow: 1;
        padding: 0.5rem 1rem;
        background: transparent;
        border: none;
        outline: none;
        color: var(--text-color);
        font-size: 1rem;
    }

    .nav-header-search-input::placeholder {
        color: var(--secondary-text-color);
    }

    .nav-header-search-wrapper.expanded {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px var(--glow-box-shadow);
        @media only screen and (max-width: 729px) {
            width: 100%;
        }
        @media only screen and (min-width: 730px) {
            width: 300px;
        }
    }

    .nav-header-search-wrapper.expanded .search-magnifying-glass-icon {
        color: var(--accent-color);
    }

    .nav-header-search-wrapper.expanded .nav-header-search-input {
        padding-right: 1rem;
    }

    .search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    .search-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Search Dropdown Styling */
    .search-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        max-width: 600px;
        background-color: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        padding: 1rem;
        max-height: 400px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        z-index: 1001;
    }

    .search-dropdown > div > a {
        text-decoration: none;
    }

    .search-dropdown > div > p > a {
        color: var(--accent-color) !important;
        font-weight: bold;
        transition: color 0.3s ease;
    }

    .search-dropdown > div > p > a:hover {
        color: #ff8bee !important;
    }

    .search-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        @media only screen and (max-width: 729px) {
            width: 100%;
            max-width: none;
            position: fixed;
            top: 92px; 
            height: max-content;
            max-height: calc(100vh - 92px);
            overflow-y: auto;
            border-radius: 0;
            box-shadow: none;
            background-color: var(--bg-color);
            border-left: none;
            border-right: none;
            border-bottom: 1px solid var(--border-color);
        }
    }

    .search-result-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem 1rem;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        transition: background-color 0.2s ease, transform 0.2s ease;
        margin-bottom: 0.5rem;
        border: 1px solid transparent;
    }

    .search-result-card:last-child {
        margin-bottom: 0;
    }

    .search-result-card:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        border-color: var(--accent-color);
    }

    .search-result-title {
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-color);
        margin-bottom: 0.1rem;
    }

    .search-result-author, .search-result-isbn, .search-result-publisher {
        font-size: 0.8rem;
        color: var(--secondary-text-color);
    }

    .search-result-author, .search-result-isbn {
        margin-bottom: 0;
    }

    @media only screen and (max-width: 729px) {
        .search-container,
        .nav-header-search-wrapper,
        .search-dropdown {
            transition: none;
        }
        
        /* .search-container.expanded {
            padding: 24.5px 32px;
            background-color: var(--bg-color);
            width: 100%;
            height: 92px;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1002;
        } */
    
        /* .nav-header-search-wrapper.expanded {
            width: 100%;
        } */
    
        /* .search-dropdown.active {
            width: 100%;
            max-width: none;
            position: fixed;
            top: 92px; 
            height: max-content;
            max-height: calc(100vh - 92px);
            overflow-y: auto;
            border-radius: 0;
            box-shadow: none;
            background-color: var(--bg-color);
            border-left: none;
            border-right: none;
            border-bottom: 1px solid var(--border-color);
        } */
    }

    .search-dropdown::-webkit-scrollbar {
        width: 8px;
    }
    
    .search-dropdown::-webkit-scrollbar-track {
        background: var(--bg-color);
    }
    
    .search-dropdown::-webkit-scrollbar-thumb {
        background-color: #444;
        border-radius: 4px;
    }
    
    .search-dropdown::-webkit-scrollbar-thumb:hover {
        background-color: #666;
    }

    @media (hover: none) and (pointer: coarse) {
        .search-dropdown::-webkit-scrollbar {
            display: none;
        }
    }

    /* Carousel Styling */
    .carousel-container {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 1rem 0;
        gap: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .carousel-container::-webkit-scrollbar-track {
        background: var(--bg-color);
    }
    
    .carousel-container::-webkit-scrollbar-thumb {
        background-color: #444;
        border-radius: 4px;
    }
    
    .carousel-container::-webkit-scrollbar-thumb:hover {
        background-color: #666;
    }

    @media (hover: none) and (pointer: coarse) {
        .carousel-container::-webkit-scrollbar {
            display: none;
        }
    }

    .carousel-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Quick Categories styling */
    .categories-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .categories-section h1 {
        display: block; 
    }
    
    .categories-section h1 .status-text {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.5em;
        color: var(--secondary-text-color);
    }

    .category-card {
        background: var(--card-gradient);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.8rem 1.5rem;
        text-decoration: none;
        color: var(--text-color);
        font-weight: 600;
        transition: transform 0.2s ease, background-color 0.2s ease;
        white-space: nowrap;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 120px;
        scroll-snap-align: start;
    }

    .category-card:hover {
        transform: translateY(-2px);
        background-color: rgba(255, 255, 255, 0.08);
    }

    .horizontal-categories {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .categories-list-wrapper::-webkit-scrollbar {
        height: 8px;
    }
    
    .categories-list-wrapper::-webkit-scrollbar-track {
        background: var(--bg-color);
    }
    
    .categories-list-wrapper::-webkit-scrollbar-thumb {
        background-color: #444;
        border-radius: 4px;
    }
    
    .categories-list-wrapper::-webkit-scrollbar-thumb:hover {
        background-color: #666;
    }

    @media (hover: none) and (pointer: coarse) {
        .categories-list-wrapper::-webkit-scrollbar {
            display: none;
        }
    }

    .categories-list-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .categories-list {
        display: flex;
        gap: 1rem;
        padding-top: 2px;
        padding-bottom: 1rem;
        list-style: none;
        white-space: nowrap;
    }

    .category-button {
        background: var(--card-gradient);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.3s ease;
        text-decoration: none;
        color: var(--text-color);
    }

    .category-button:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    /* Recent Updates Section (Single-Column, Vertically Stacked) */
    .recent-updates-section {
        margin-top: 4rem;
        padding: 0;
    }

    .section-header {
        text-align: left;
        margin-bottom: 1rem;
        font-size: 2rem;
        font-weight: bold;
    }

    .recent-updates-grid-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* @media (max-width: 768px) {
        .recent-updates-grid-container {
        }
    } */

    .recent-updates-column {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .list-card {
        background: var(--card-gradient);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-decoration: none;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .list-card:hover {
        transform: translateY(-3px);
        background-color: rgba(255, 255, 255, 0.08);
    }

    .list-card-img {
        width: 60px;
        height: 80px;
        border-radius: 4px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .list-card-content {
        flex-grow: 1;
    }

    .list-card-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
        color: var(--text-color);
    }

    .list-card-meta {
        font-size: 0.85rem;
        color: var(--secondary-text-color);
    }

    .list-card-time {
        font-size: 0.8rem;
        color: var(--secondary-text-color);
        text-align: right;
        flex-shrink: 0;
    }

    /* Categorized Book Sections */
    .book-category-section {
        margin-top: 4rem;
        padding-left: 0;
    }

    .book-category-section h1 {
        text-align: left;
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    /* --- Request Specific Styles --- */
    .request-content h1 {
        font-size: 3rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .request-content .intro-text {
        font-size: 1rem;
        color: var(--secondary-text-color);
        text-align: center;
        max-width: 800px;
        margin: 0 auto 2rem auto;
    }

    .request-content h2 {
        font-size: 2rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
    }

    .request-content h3 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .request-content p {
        color: var(--secondary-text-color);
        margin-bottom: 1rem;
        text-align: justify;
    }

    .request-content p > a {
        font-weight: bold;
        color: var(--text-color);
    }

    .request-content ul {
        list-style: none;
        padding: 0;
        margin-left: 1.5rem;
    }

    .request-content li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--secondary-text-color);
    }

    .request-content li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--accent-color);
        font-size: 1.25rem;
        line-height: 1;
    }

    .request-link-container {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .request-link {
        background-color: var(--accent-color);
        color: var(--text-color) !important;
        font-weight: 600;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        text-decoration: none;
        transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
        text-align: center;
        white-space: nowrap;
        width: max-content;
    }

    .request-link:hover {
        background-color: #c00e9a;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px var(--glow-box-shadow);
    }

    /* --- Policy Content Specific Styles --- */
    .policy-content h1 {
        font-size: 3rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .policy-content .intro-text {
        font-size: 1rem;
        color: var(--secondary-text-color);
        text-align: center;
        max-width: 800px;
        margin: 0 auto 2rem auto;
    }

    .policy-content h2 {
        font-size: 2rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
    }

    .policy-content h3 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .policy-content p {
        color: var(--secondary-text-color);
        margin-bottom: 1rem;
        text-align: justify;
    }

    .policy-content ul {
        list-style: none;
        padding: 0;
        margin-left: 1.5rem;
    }

    .policy-content li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--secondary-text-color);
    }

    .policy-content li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--accent-color);
        font-size: 1.25rem;
        line-height: 1;
    }

    .policy-content a {
        color: var(--secondary-text-color);
    }

    /* --- Terms of Use Specific Styles --- */
    .terms-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .terms-content h1 {
        font-size: 3rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .terms-content .intro-text {
        font-size: 1rem;
        color: var(--secondary-text-color);
        text-align: center;
        max-width: 800px;
        margin: 0 auto 2rem auto;
    }

    .terms-content h2 {
        font-size: 2rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
    }

    .terms-content h3 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .terms-content p {
        color: var(--secondary-text-color);
        margin-bottom: 1rem;
        text-align: justify;
    }

    .terms-content ul {
        list-style: none;
        padding: 0;
        margin-left: 1.5rem;
    }

    .terms-content li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--secondary-text-color);
    }

    .terms-content li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: var(--accent-color);
        font-size: 1.25rem;
        line-height: 1;
    }

    /* --- 404 Page Specific Styles --- */
    .not-found-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 50vh;
    }

    .not-found-container h1 {
        font-size: 5rem;
        font-weight: 700;
        color: var(--accent-color);
        margin-bottom: -20px;
    }

    .not-found-container h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .not-found-container p {
        color: var(--secondary-text-color);
        margin-bottom: 15px;
        max-width: 600px;
    }

    .home-button {
        display: inline-block;
        background-color: var(--accent-color);
        color: var(--text-color);
        font-weight: 600;
        padding: 0.725rem 2rem;
        border-radius: 8px;
        text-decoration: none;
        transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }

    .home-button:hover {
        background-color: #c00e9a;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(209, 18, 179, 0.4);
    }

}