@keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translate3d(0, 40px, 0);
     }

     to {
         opacity: 1;
         transform: translate3d(0, 0, 0);
     }
 }

 @keyframes fadeInScale {
     from {
         opacity: 0;
         transform: scale(0.9);
     }

     to {
         opacity: 1;
         transform: scale(1);
     }
 }

 @keyframes pulse {
     0% {
         transform: scale(1);
     }

     50% {
         transform: scale(1.05);
     }

     100% {
         transform: scale(1);
     }
 }

 @keyframes shimmer {
     0% {
         background-position: -200px 0;
     }

     100% {
         background-position: calc(200px + 100%) 0;
     }
 }

 /* Main Layout Styles */
 body {
     background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
     overflow-x: hidden;
     font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
 }

 /* Hero and Search Section */
 .hero-section {
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
     padding: 100px 0 80px;
     margin-top: 76px;
     margin-bottom: 60px;
     border-bottom: 2px solid rgba(99, 102, 241, 0.1);
     position: relative;
     overflow: hidden;
     backdrop-filter: blur(10px);
 }

 .hero-section::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: radial-gradient(circle at 20% 50%, rgba(30, 67, 176, 0.08) 0%, transparent 50%),
                 radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
     pointer-events: none;
 }

 .hero-content {
     animation: fadeInUp 0.8s ease-out;
     position: relative;
     z-index: 2;
 }

 .logo-container {
     width: 240px;
     height: 240px;
     margin: 0 auto 40px auto;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     background: linear-gradient(135deg, #1E43B0 0%, #2563eb 100%);
     box-shadow: 0 20px 60px rgba(30, 67, 176, 0.3), 0 8px 20px rgba(37, 99, 235, 0.2);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     animation: fadeInScale 1s ease-out 0.2s both;
     position: relative;
 }

 .logo-container::before {
     content: '';
     position: absolute;
     inset: -2px;
     border-radius: 50%;
     background: linear-gradient(135deg, #1E43B0, #2563eb, #3b82f6);
     opacity: 0;
     transition: opacity 0.4s ease;
     z-index: -1;
     filter: blur(20px);
 }

 .logo-container:hover::before {
     opacity: 0.7;
 }

 .logo-container:hover {
     transform: translateY(-12px) scale(1.03) rotate(2deg);
     box-shadow: 0 30px 80px rgba(30, 67, 176, 0.4), 0 15px 30px rgba(37, 99, 235, 0.3);
 }

 .logo-container img {
     width: 250px;
     height: 250px;
     object-fit: contain;
     transition: transform 0.3s ease;
 }

 .hero-section h1 {
     font-size: 3.5rem;
     font-weight: 800;
     background: linear-gradient(135deg, #1E43B0 0%, #2563eb 50%, #3b82f6 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     margin-bottom: 1.5rem;
     animation: fadeInUp 0.8s ease-out 0.4s both;
     letter-spacing: -0.02em;
 }

 .hero-section .lead {
     font-size: 1.35rem;
     color: #475569;
     max-width: 650px;
     margin: 0 auto 3rem auto;
     animation: fadeInUp 0.8s ease-out 0.6s both;
     font-weight: 400;
     line-height: 1.8;
 }

 /* Search Form */
 #searchForm {
     max-width: 600px;
     margin: 0 auto;
     padding: 0 15px;
     animation: fadeInUp 0.8s ease-out 0.8s both;
 }

 #searchForm .input-group {
     border: 3px solid transparent;
     border-radius: 60px;
     overflow: hidden;
     box-shadow: 0 10px 40px rgba(30, 67, 176, 0.2), 0 4px 12px rgba(37, 99, 235, 0.1);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     background: white;
     position: relative;
 }

 #searchForm .input-group::before {
     content: '';
     position: absolute;
     inset: 0;
     border-radius: 60px;
     padding: 3px;
     background: linear-gradient(135deg, #1E43B0, #2563eb, #3b82f6);
     -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
     -webkit-mask-composite: xor;
     mask-composite: exclude;
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 #searchForm .input-group:hover::before {
     opacity: 1;
 }

 #searchForm .input-group:hover {
     box-shadow: 0 15px 50px rgba(30, 67, 176, 0.3), 0 8px 20px rgba(37, 99, 235, 0.2);
     transform: translateY(-4px);
 }

 #searchForm .form-control {
     border: none;
     padding: 1rem 2rem;
     height: 60px;
     font-size: 1.05rem;
     line-height: 1.5;
     background: transparent;
     transition: all 0.3s ease;
     font-weight: 500;
 }

 #searchForm .form-control:focus {
     box-shadow: none;
     background: rgba(99, 102, 241, 0.03);
 }

 #searchForm .form-control::placeholder {
     color: #94a3b8;
 }

 #searchForm .btn {
     padding: 1rem 2.5rem;
     background: linear-gradient(135deg, #1E43B0 0%, #2563eb 100%);
     color: white;
     border: none;
     min-width: 140px;
     font-weight: 700;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     letter-spacing: 0.025em;
 }

 #searchForm .btn::before {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 #searchForm .btn:hover::before {
     opacity: 1;
 }

 #searchForm .btn:hover {
     transform: translateX(-4px) scale(1.02);
     box-shadow: 0 8px 20px rgba(30, 67, 176, 0.5);
 }

 #searchForm .btn:active {
     transform: translateX(-2px) scale(0.98);
 }

 #searchForm .btn i,
 #searchForm .btn span {
     position: relative;
     z-index: 1;
 }

 /* Navbar Styles */
 .navbar {
     padding: 18px 0;
     background: rgba(255, 255, 255, 0.8) !important;
     backdrop-filter: blur(20px);
     box-shadow: 0 4px 30px rgba(30, 67, 176, 0.1);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     border-bottom: 1px solid rgba(30, 67, 176, 0.1);
 }

 .navbar.scrolled {
     padding: 12px 0;
     background: rgba(255, 255, 255, 0.95) !important;
     box-shadow: 0 6px 40px rgba(30, 67, 176, 0.15);
 }

 .navbar-brand {
     padding: 0;
     margin-right: 3rem;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .navbar-brand:hover {
     transform: translateY(-2px);
 }

 .navbar-brand:hover {
     transform: scale(1.05);
 }

 .navbar-brand img {
     height: 46px;
     width: auto;
     filter: none;
 }

 .navbar-nav .nav-item {
     margin-right: 1rem;
 }

 .navbar-nav .nav-link {
     color: #333 !important;
     font-weight: 500;
     padding: 0.5rem 1rem;
     border-radius: 6px;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
 }

 .navbar-nav .nav-link::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(1, 47, 179, 0.1), transparent);
     transition: left 0.5s;
 }

 .navbar-nav .nav-link:hover::before {
     left: 100%;
 }

 .navbar-nav .nav-link:hover {
     color: #012FB3 !important;
     background: rgba(1, 47, 179, 0.05);
     transform: translateY(-2px);
 }

 .navbar-nav .active .nav-link {
     color: #012FB3 !important;
     background: rgba(1, 47, 179, 0.1);
 }

 .nav-buttons .btn {
     padding: 0.5rem 1.5rem;
     font-weight: 500;
     border-radius: 6px;
     transition: all 0.3s ease;
     margin: 0 0.25rem;
 }

 .nav-buttons .btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
 }

 /* Featured Section */
 .featured-section {
     padding: 60px 0;
     background: #f8f9fa;
 }

 .featured-section.bg-white {
     background: white !important;
 }

 .section-title {
     color: #333;
     font-size: 2.2rem;
     margin-bottom: 3rem;
     padding-bottom: 1rem;
     border-bottom: 3px solid #012FB3;
     display: inline-block;
     font-weight: 600;
     position: relative;
     animation: fadeInUp 0.6s ease-out;
 }

 .section-title::after {
     content: '';
     position: absolute;
     bottom: -3px;
     left: 0;
     width: 60px;
     height: 3px;
     background: linear-gradient(90deg, #012FB3, #1E43B0);
     border-radius: 2px;
 }

 /* Book Title Tooltip */
 .book-tooltip {
     position: absolute;
     bottom: 110%;
     left: 50%;
     transform: translateX(-50%);
     background: rgba(1, 47, 179, 0.95);
     color: white;
     padding: 8px 12px;
     border-radius: 8px;
     font-size: 0.85rem;
     font-weight: 600;
     white-space: nowrap;
     z-index: 1000;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: 0 4px 12px rgba(1, 47, 179, 0.3);
     backdrop-filter: blur(10px);
     max-width: 220px;
     text-overflow: ellipsis;
     overflow: hidden;
     pointer-events: none;
 }

 .book-tooltip::before {
     content: '';
     position: absolute;
     top: 100%;
     left: 50%;
     transform: translateX(-50%);
     border: 6px solid transparent;
     border-top-color: rgba(1, 47, 179, 0.95);
 }

 /* Book Cards */
 .book-card {
     background: white;
     border-radius: 16px;
     padding: 0;
     margin-bottom: 2rem;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: 0 10px 30px rgba(30, 67, 176, 0.1), 0 4px 12px rgba(37, 99, 235, 0.05);
     overflow: hidden;
     position: relative;
     animation: fadeInUp 0.6s ease-out;
     animation-fill-mode: both;
     border: 1px solid rgba(30, 67, 176, 0.1);
 }

 .book-card:hover .book-tooltip {
     opacity: 1;
     visibility: visible;
     transform: translateX(-50%) translateY(-5px);
 }

 .book-card:nth-child(1) {
     animation-delay: 0.1s;
 }

 .book-card:nth-child(2) {
     animation-delay: 0.2s;
 }

 .book-card:nth-child(3) {
     animation-delay: 0.3s;
 }

 .book-card:nth-child(4) {
     animation-delay: 0.4s;
 }

 .book-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
     transition: left 0.6s;
     z-index: 1;
 }

 .book-card:hover::before {
     left: 100%;
 }

 .book-card:hover {
     transform: translateY(-16px) scale(1.02);
     box-shadow: 0 25px 50px rgba(30, 67, 176, 0.25), 0 15px 30px rgba(37, 99, 235, 0.15);
     border-color: rgba(30, 67, 176, 0.3);
 }

 .book-card a {
     text-decoration: none;
     color: inherit;
     display: block;
 }

 .thumbnail-wrapper {
     width: 100%;
     height: 220px;
     overflow: hidden;
     border-radius: 16px 16px 0 0;
     position: relative;
     background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
 }

 .thumbnail {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .book-card:hover .thumbnail {
     transform: scale(1.15) rotate(2deg);
 }

 .book-title {
     margin: 1.75rem 1.25rem 0.75rem;
     font-size: 1.15rem;
     font-weight: 700;
     color: #1e293b;
     line-height: 1.5;
     transition: all 0.3s ease;
     letter-spacing: -0.01em;
 }

 .book-card:hover .book-title {
     color: #1E43B0;
     transform: translateX(4px);
 }

 .book-author {
     color: #64748b;
     font-size: 0.95rem;
     margin: 0 1.25rem 1.75rem;
     font-weight: 500;
     letter-spacing: 0.01em;
 }

 /* Blog Cards for Home Page */
 .blog-card-home {
     background: white;
     border-radius: 20px;
     padding: 0;
     margin-bottom: 2rem;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: 0 10px 30px rgba(30, 67, 176, 0.1), 0 4px 12px rgba(37, 99, 235, 0.05);
     overflow: hidden;
     position: relative;
     animation: fadeInUp 0.6s ease-out;
     animation-fill-mode: both;
     height: 100%;
     border: 1px solid rgba(30, 67, 176, 0.1);
 }

 .blog-card-home:nth-child(1) {
     animation-delay: 0.1s;
 }

 .blog-card-home:nth-child(2) {
     animation-delay: 0.2s;
 }

 .blog-card-home:nth-child(3) {
     animation-delay: 0.3s;
 }

 .blog-card-home:nth-child(4) {
     animation-delay: 0.4s;
 }

 .blog-card-home::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
     transition: left 0.6s;
     z-index: 1;
 }

 .blog-card-home:hover::before {
     left: 100%;
 }

 .blog-card-home:hover {
     transform: translateY(-12px) scale(1.02);
     box-shadow: 0 25px 50px rgba(30, 67, 176, 0.2), 0 15px 30px rgba(37, 99, 235, 0.1);
     border-color: rgba(30, 67, 176, 0.3);
 }

 .blog-card-home a {
     text-decoration: none;
     color: inherit;
     display: block;
     height: 100%;
 }

 .blog-thumbnail-wrapper {
     width: 100%;
     height: 200px;
     overflow: hidden;
     border-radius: 20px 20px 0 0;
     position: relative;
     background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
 }

 .blog-thumbnail {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .blog-card-home:hover .blog-thumbnail {
     transform: scale(1.15) rotate(-2deg);
 }

 /* Blog Categories for Home */
 .blog-categories-home {
     position: absolute;
     top: 12px;
     left: 12px;
     z-index: 2;
     display: flex;
     flex-wrap: wrap;
     gap: 4px;
     max-width: calc(100% - 24px);
 }

 .blog-category-home {
     background: linear-gradient(135deg, #1E43B0 0%, #2563eb 100%);
     color: white;
     padding: 6px 12px;
     border-radius: 20px;
     font-size: 0.7rem;
     font-weight: 700;
     box-shadow: 0 4px 12px rgba(30, 67, 176, 0.4);
     white-space: nowrap;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     backdrop-filter: blur(10px);
 }

 .blog-category-home:nth-child(2) {
     background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
     box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
 }

 .blog-category-home:nth-child(3) {
     background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
     box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
 }

 .blog-category-home:nth-child(4) {
     background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
     box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
 }

 .blog-content-home {
     padding: 1.25rem;
     display: flex;
     flex-direction: column;
     height: calc(100% - 180px);
 }

 .blog-title-home {
     margin: 0 0 0.75rem 0;
     font-size: 1.1rem;
     font-weight: 700;
     color: #1e293b;
     line-height: 1.5;
     transition: all 0.3s ease;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
     letter-spacing: -0.01em;
 }

 .blog-card-home:hover .blog-title-home {
     color: #1E43B0;
     transform: translateX(4px);
 }

 .blog-meta-home {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
     margin-bottom: 0.75rem;
     font-size: 0.75rem;
     color: #666;
 }

 .blog-writer-home {
     font-weight: 600;
     color: #012FB3;
 }

 .blog-date-home {
     color: #666;
 }

 .blog-read-time-home {
     color: #999;
 }

 .blog-description-home {
     color: #64748b;
     line-height: 1.6;
     font-size: 0.9rem;
     display: -webkit-box;
     -webkit-line-clamp: 3;
     line-clamp: 3;
     -webkit-box-orient: vertical;
     overflow: hidden;
     flex-grow: 1;
     margin-bottom: 1rem;
 }

 .blog-read-more-home {
     background: linear-gradient(135deg, #1E43B0 0%, #2563eb 100%);
     color: white;
     border: none;
     padding: 8px 16px;
     border-radius: 24px;
     font-weight: 700;
     font-size: 0.8rem;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     text-decoration: none;
     display: inline-block;
     align-self: flex-start;
     margin-top: auto;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     box-shadow: 0 4px 12px rgba(30, 67, 176, 0.3);
 }

 .blog-read-more-home:hover {
     color: white;
     text-decoration: none;
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(30, 67, 176, 0.4);
     background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
 }

 /* View All Blogs Button */
 .view-all-blogs {
     text-align: center;
     margin-top: 3rem;
     animation: fadeInUp 0.6s ease-out 0.5s both;
 }

 .view-all-blogs .btn {
     background: linear-gradient(135deg, #012FB3 0%, #1E43B0 100%);
     color: white;
     border: none;
     padding: 0.75rem 2rem;
     border-radius: 50px;
     font-weight: 600;
     font-size: 1rem;
     transition: all 0.3s ease;
     text-decoration: none;
     display: inline-block;
     box-shadow: 0 4px 15px rgba(1, 47, 179, 0.3);
 }

 .view-all-blogs .btn:hover {
     color: white;
     text-decoration: none;
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(1, 47, 179, 0.4);
 }

 /* Loading States */
 .loading-shimmer {
     background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
     background-size: 200px 100%;
     animation: shimmer 1.5s infinite;
 }

/* Dashboard Specific Styles */
.dashboard-container {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.dashboard-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.dashboard-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    min-height: 600px;
}

.nav-pills .nav-link {
    color: #666;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
}

.nav-pills .nav-link.active {
    background: #012FB3;
    color: white;
}

.nav-pills .nav-link:hover:not(.active) {
    background: rgba(1, 47, 179, 0.1);
    color: #012FB3;
    transform: translateX(5px);
}

.data-table {
    margin-top: 1rem;
}

.data-table th {
    background: #f8f9fa;
    border: none;
    color: #333;
    font-weight: 600;
    padding: 1rem 0.75rem;
}

.data-table td {
    border: 1px solid #eee;
    vertical-align: middle;
    padding: 0.75rem;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    margin: 0 0.125rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.editor-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 400px;
    resize: vertical;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.image-item:hover {
    border-color: #012FB3;
    box-shadow: 0 4px 12px rgba(1, 47, 179, 0.2);
    transform: translateY(-2px);
}

.image-item.selected {
    border-color: #012FB3;
    background: rgba(1, 47, 179, 0.1);
    box-shadow: 0 4px 12px rgba(1, 47, 179, 0.3);
}

.image-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.modal-xl {
    max-width: 90%;
}

.form-floating textarea {
    min-height: 100px;
}

/* Dashboard animations */
.dashboard-sidebar {
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-content {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.data-table tbody tr {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.5s; }

/* Badge styles for categories */
.badge {
    font-size: 0.7rem;
    padding: 0.35em 0.6em;
}

/* Users list improvements */
.users-list .list-group-item {
    border-radius: 10px;
    margin-bottom: 0.6rem;
    padding: 0.75rem 0.85rem;
    display: block;
}

.users-list .user-meta {
    max-width: calc(100% - 150px);
}

.users-list .name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    vertical-align: middle;
}

.btn-group .btn {
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Status indicators */
.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #012FB3 0%, #1E43B0 100%) !important;
}

/* Form enhancements */
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > label {
    opacity: 0.65;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Mobile Responsive */
 @media (max-width: 991px) {
     .hero-section {
         padding: 60px 0 40px;
         margin-top: 70px;
     }

     .logo-container {
         width: 180px;
         height: 180px;
         margin-bottom: 24px;
     }

     .logo-container img {
         width: 120px;
         height: 120px;
     }

     .hero-section h1 {
         font-size: 2.5rem;
     }

     .hero-section .lead {
         font-size: 1.1rem;
         margin-bottom: 2rem;
     }

     .section-title {
         font-size: 1.8rem;
         margin-bottom: 2rem;
     }

     .navbar-nav .nav-item {
         margin-right: 0;
         margin-bottom: 0.5rem;
     }

     .nav-buttons {
         margin-top: 1rem;
     }

     .nav-buttons .btn {
         display: block;
         width: 100%;
         margin: 0.25rem 0;
     }
 }

 @media (max-width: 768px) {
     .hero-section {
         padding: 40px 0 30px;
     }

     .logo-container {
         width: 150px;
         height: 150px;
     }

     .logo-container img {
         width: 100px;
         height: 100px;
     }

     .hero-section h1 {
         font-size: 2rem;
         margin-bottom: 1rem;
     }

     .hero-section .lead {
         font-size: 1rem;
         padding: 0 1rem;
     }

     #searchForm {
         padding: 0 1rem;
     }

     #searchForm .form-control {
         padding: 0.6rem 1.2rem;
         height: 48px;
         font-size: 0.9rem;
     }

     #searchForm .btn {
         padding: 0.6rem 1.5rem;
         min-width: 100px;
     }

     .thumbnail-wrapper {
         height: 180px;
     }

     .blog-thumbnail-wrapper {
         height: 160px;
     }

     .book-title {
         font-size: 1rem;
         margin: 1rem 1rem 0.5rem;
     }

     .featured-section {
         padding: 40px 0;
     }
 }

 @media (max-width: 576px) {
     .logo-container {
         width: 120px;
         height: 120px;
     }

     .logo-container img {
         width: 80px;
         height: 80px;
     }

     .hero-section h1 {
         font-size: 1.8rem;
     }

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

     .thumbnail-wrapper {
         height: 160px;
     }

     .blog-thumbnail-wrapper {
         height: 140px;
     }
 }

 /* Touch device optimizations */
 @media (hover: none) and (pointer: coarse) {
     .book-card:hover {
         transform: none;
         box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     }

     .navbar-nav .nav-link:hover {
         transform: none;
     }

     .nav-buttons .btn:hover {
         transform: none;
     }
 }