/* Books of all time Theme Custom Styles */

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Spinner Animation for Hero/Search loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Base custom styles to support the dynamic search loading overlay */
.web-loader {
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.spinner-border {
    display: inline-block;
    width: 2.25rem;
    height: 2.25rem;
    vertical-align: text-bottom;
    border: 0.25em solid #4f46e5; /* indigo-600 */
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.book-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Awesomplete Custom Styles for Books Theme --- */
.awesomplete {
    flex: 1 1 0%;
    display: flex;
    position: relative;
    width: 100%;
}

.awesomplete .visually-hidden {
    display: none;
}

.awesomplete > ul {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 9999;
    min-width: 100%;
    box-sizing: border-box;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
    background: #ffffff;
    border: 1px solid #e7e5e4; /* stone-200 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    max-height: 20rem;
    overflow-y: auto;
    text-align: left;
}

.awesomplete > ul[hidden],
.awesomplete > ul:empty {
    display: none;
}

.awesomplete li {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    color: #44403c; /* stone-700 */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.awesomplete li:hover,
.awesomplete li[aria-selected="true"] {
    background: #f5f5f4; /* stone-100 */
    color: #4f46e5; /* indigo-600 */
}

.awesomplete mark {
    background: #e0e7ff; /* indigo-100 */
    color: #4f46e5; /* indigo-600 */
    font-weight: 700;
    padding: 0.1rem 0.25rem;
    border-radius: 0.25rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-none {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Typography styles for Legal & Compliance Page Content */
.compliance-page-content h2 {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1c1917; /* stone-900 */
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f5f5f4; /* stone-100 */
    padding-bottom: 0.5rem;
}

.compliance-page-content h3 {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #292524; /* stone-800 */
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.compliance-page-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: #44403c; /* stone-700 */
    margin-bottom: 1.25rem;
}

.compliance-page-content ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.25rem !important;
}

.compliance-page-content ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.25rem !important;
}

.compliance-page-content li {
    font-size: 1rem;
    line-height: 1.625;
    color: #44403c; /* stone-700 */
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.compliance-page-content a {
    color: #4f46e5; /* indigo-600 */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.compliance-page-content a:hover {
    color: #4338ca; /* indigo-700 */
}

.compliance-page-content strong {
    font-weight: 600;
    color: #1c1917; /* stone-900 */
}

/* Contact Form Overrides for Books Theme (to make it look premium and fit the style) */
.compliance-page-content .contact-page-wrapper {
    max-width: 650px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.compliance-page-content .contact-heading {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 2.25rem !important;
    font-weight: 850 !important;
    color: #1c1917 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
}

.compliance-page-content .contact-subheading {
    font-size: 1rem !important;
    line-height: 1.625 !important;
    color: #57534e !important; /* stone-600 */
    margin-bottom: 2rem !important;
}

.compliance-page-content .contact-form {
    background: #ffffff !important;
    border: 1px solid #e7e5e4 !important; /* stone-200 */
    border-radius: 1.5rem !important; /* rounded-3xl */
    padding: 2rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
}

.compliance-page-content .contact-field {
    margin-bottom: 1.5rem !important;
}

.compliance-page-content .contact-label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #44403c !important; /* stone-700 */
    margin-bottom: 0.5rem !important;
}

.compliance-page-content .contact-input,
.compliance-page-content .contact-textarea {
    width: 100% !important;
    padding: 0.875rem 1.25rem !important;
    background-color: #fafaf9 !important; /* stone-50 */
    border: 1px solid #e7e5e4 !important; /* stone-200 */
    border-radius: 0.75rem !important; /* rounded-xl */
    font-size: 1rem !important;
    color: #1c1917 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease-in-out !important;
}

.compliance-page-content .contact-input:focus,
.compliance-page-content .contact-textarea:focus {
    background-color: #ffffff !important;
    border-color: #4f46e5 !important; /* indigo-600 */
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

.compliance-page-content .contact-textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

.compliance-page-content .contact-captcha-box {
    background-color: #fafaf9 !important; /* stone-50 */
    border: 1px solid #e7e5e4 !important; /* stone-200 */
    border-radius: 1rem !important;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 1.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.compliance-page-content .contact-captcha-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #44403c !important;
    margin-bottom: 0 !important;
}

.compliance-page-content .contact-captcha-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.compliance-page-content .contact-captcha-equation {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #292524 !important; /* stone-800 */
    padding: 0.5rem 0.875rem !important;
    background-color: #e7e5e4 !important; /* stone-200 */
    border-radius: 0.5rem !important;
}

.compliance-page-content .contact-captcha-input {
    width: 90px !important;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid #e7e5e4 !important;
    border-radius: 0.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
}

.compliance-page-content .contact-captcha-input:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

.compliance-page-content .contact-captcha-hint {
    font-size: 0.75rem !important;
    color: #78716c !important; /* stone-500 */
}

.compliance-page-content .contact-submit-btn {
    width: 100% !important;
    padding: 1rem !important;
    background-color: #4f46e5 !important; /* indigo-600 */
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.15), 0 2px 4px -1px rgba(79, 70, 229, 0.05) !important;
}

.compliance-page-content .contact-submit-btn:hover {
    background-color: #4338ca !important; /* indigo-700 */
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.25), 0 4px 6px -2px rgba(79, 70, 229, 0.1) !important;
}

.compliance-page-content .status-msg-success {
    padding: 1rem 1.25rem !important;
    border-radius: 0.75rem !important;
    background-color: #ecfdf5 !important; /* emerald-50 */
    color: #065f46 !important; /* emerald-800 */
    border: 1px solid #a7f3d0 !important; /* emerald-200 */
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.compliance-page-content .status-msg-error {
    padding: 1rem 1.25rem !important;
    border-radius: 0.75rem !important;
    background-color: #fef2f2 !important; /* red-50 */
    color: #991b1b !important; /* red-800 */
    border: 1px solid #fecaca !important; /* red-200 */
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}


