 @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-color: #f8f9fa;
     overflow-x: hidden;
 }

 /* Hero and Search Section */
 .hero-section {
     background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
     padding: 80px 0 60px;
     margin-top: 76px;
     margin-bottom: 40px;
     border-bottom: 1px solid #eee;
     position: relative;
     overflow: hidden;
 }

 .hero-section::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: radial-gradient(circle at 20% 50%, rgba(1, 47, 179, 0.03) 0%, transparent 50%);
     pointer-events: none;
 }

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

 .logo-container {
     width: 220px;
     height: 220px;
     margin: 0 auto 32px auto;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     background: #012FB3;
     box-shadow: 0 8px 40px rgba(1, 47, 179, 0.12);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     animation: fadeInScale 1s ease-out 0.2s both;
 }

 .logo-container:hover {
     transform: translateY(-8px) scale(1.02);
     box-shadow: 0 16px 60px rgba(1, 47, 179, 0.2);
 }

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

 .hero-section h1 {
     font-size: 3.2rem;
     font-weight: 700;
     color: #012FB3;
     margin-bottom: 1.2rem;
     animation: fadeInUp 0.8s ease-out 0.4s both;
 }

 .hero-section .lead {
     font-size: 1.25rem;
     color: #22223b;
     max-width: 600px;
     margin: 0 auto 2.5rem auto;
     animation: fadeInUp 0.8s ease-out 0.6s both;
 }

 /* 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: 2px solid #012FB3;
     border-radius: 50px;
     overflow: hidden;
     box-shadow: 0 4px 20px rgba(1, 47, 179, 0.15);
     transition: all 0.3s ease;
     background: white;
 }

 #searchForm .input-group:hover {
     box-shadow: 0 8px 30px rgba(1, 47, 179, 0.25);
     transform: translateY(-2px);
 }

 #searchForm .form-control {
     border: none;
     padding: 0.75rem 1.75rem;
     height: 54px;
     font-size: 1rem;
     line-height: 1.5;
     background: transparent;
     transition: all 0.3s ease;
 }

 #searchForm .form-control:focus {
     box-shadow: none;
     background: rgba(1, 47, 179, 0.02);
 }

 #searchForm .btn {
     padding: 0.75rem 2rem;
     background: #012FB3;
     color: white;
     border: none;
     min-width: 120px;
     font-weight: 600;
     transition: all 0.3s ease;
     position: relative;
     overflow: hidden;
 }

 #searchForm .btn:hover {
     background: #1E43B0;
     transform: translateX(-2px);
 }

 #searchForm .btn:active {
     transform: scale(0.98);
 }

 /* Navbar Styles */
 .navbar {
     padding: 15px 0;
     background: rgba(255, 255, 255, 0.95) !important;
     backdrop-filter: blur(10px);
     box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
     transition: all 0.3s ease;
 }

 .navbar.scrolled {
     padding: 10px 0;
     background: rgba(255, 255, 255, 0.98) !important;
 }

 .navbar-brand {
     padding: 0;
     margin-right: 3rem;
     transition: transform 0.3s ease;
 }

 .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: 12px;
     padding: 0;
     margin-bottom: 2rem;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     position: relative;
     animation: fadeInUp 0.6s ease-out;
     animation-fill-mode: both;
 }

 .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.4), transparent);
     transition: left 0.5s;
     z-index: 1;
 }

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

 .book-card:hover {
     transform: translateY(-12px) scale(1.02);
     box-shadow: 0 20px 40px rgba(1, 47, 179, 0.15);
 }

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

 .thumbnail-wrapper {
     width: 100%;
     height: 200px;
     overflow: hidden;
     border-radius: 12px 12px 0 0;
     position: relative;
 }

 .thumbnail {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.4s ease;
 }

 .book-card:hover .thumbnail {
     transform: scale(1.1);
 }

 .book-title {
     margin: 1.5rem 1rem 0.5rem;
     font-size: 1.1rem;
     font-weight: 600;
     color: #333;
     line-height: 1.4;
     transition: color 0.3s ease;
 }

 .book-card:hover .book-title {
     color: #012FB3;
 }

 .book-author {
     color: #666;
     font-size: 0.9rem;
     margin: 0 1rem 1.5rem;
     font-weight: 500;
 }

 /* Blog Cards for Home Page */
 .blog-card-home {
     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 4px 20px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     position: relative;
     animation: fadeInUp 0.6s ease-out;
     animation-fill-mode: both;
     height: 100%;
 }

 .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.4), transparent);
     transition: left 0.5s;
     z-index: 1;
 }

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

 .blog-card-home:hover {
     transform: translateY(-8px) scale(1.02);
     box-shadow: 0 16px 40px rgba(1, 47, 179, 0.12);
 }

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

 .blog-thumbnail-wrapper {
     width: 100%;
     height: 180px;
     overflow: hidden;
     border-radius: 16px 16px 0 0;
     position: relative;
 }

 .blog-thumbnail {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.4s ease;
 }

 .blog-card-home:hover .blog-thumbnail {
     transform: scale(1.1);
 }

 /* 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, #012FB3 0%, #1E43B0 100%);
     color: white;
     padding: 3px 8px;
     border-radius: 12px;
     font-size: 0.7rem;
     font-weight: 600;
     box-shadow: 0 2px 6px rgba(1, 47, 179, 0.3);
     white-space: nowrap;
 }

 .blog-category-home:nth-child(2) {
     background: linear-gradient(135deg, #6610f2 0%, #8b5a2b 100%);
     box-shadow: 0 2px 6px rgba(102, 16, 242, 0.3);
 }

 .blog-category-home:nth-child(3) {
     background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
     box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
 }

 .blog-category-home:nth-child(4) {
     background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
     box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
 }

 .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: 1rem;
     font-weight: 600;
     color: #333;
     line-height: 1.4;
     transition: color 0.3s ease;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 .blog-card-home:hover .blog-title-home {
     color: #012FB3;
 }

 .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: #555;
     line-height: 1.5;
     font-size: 0.85rem;
     display: -webkit-box;
     -webkit-line-clamp: 3;
     -webkit-box-orient: vertical;
     overflow: hidden;
     flex-grow: 1;
     margin-bottom: 0.75rem;
 }

 .blog-read-more-home {
     background: linear-gradient(135deg, #012FB3 0%, #1E43B0 100%);
     color: white;
     border: none;
     padding: 6px 12px;
     border-radius: 20px;
     font-weight: 600;
     font-size: 0.75rem;
     transition: all 0.3s ease;
     text-decoration: none;
     display: inline-block;
     align-self: flex-start;
     margin-top: auto;
 }

 .blog-read-more-home:hover {
     color: white;
     text-decoration: none;
     transform: translateY(-1px);
     box-shadow: 0 4px 12px rgba(1, 47, 179, 0.3);
 }

 /* 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;
 }

 /* 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;
     }
 }