/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
header {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo i {
  margin-right: 10px;
  color: #3498db;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: #3498db;
  color: white;
}

.search-bar {
  display: flex;
  align-items: center;
}

.search-bar input {
  padding: 0.5rem;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
  width: 250px;
}

.search-bar button {
  padding: 0.5rem 1rem;
  border: none;
  background: #3498db;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #2980b9;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: #e74c3c;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #c0392b;
}

/* Featured Books Section */
.featured-books {
  padding: 4rem 0;
  background: white;
}

.featured-books h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #2c3e50;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.book-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.book-card img {
  width: 100%;
  max-width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.book-info h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.author {
  color: #7f8c8d;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.genre {
  color: #3498db;
  font-weight: bold;
  margin-bottom: 1rem;
}

.isbn,
.year {
  font-size: 0.9rem;
  color: #95a5a6;
  margin-bottom: 0.5rem;
}

.availability {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 1rem;
  display: inline-block;
}

.availability.available {
  background: #d4edda;
  color: #155724;
}

.availability.borrowed {
  background: #f8d7da;
  color: #721c24;
}

.borrow-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  width: 100%;
}

.borrow-btn:hover:not(:disabled) {
  background: #219a52;
}

.borrow-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Book Card Actions for new layout */
.book-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.view-details-btn {
  flex: 1;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.view-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.book-card-actions .borrow-btn {
  flex: 1;
  width: auto;
  background: linear-gradient(45deg, #4caf50, #45a049);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.book-card-actions .borrow-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  background: linear-gradient(45deg, #45a049, #3d8b40);
}

/* Make book titles and images clickable */
.book-info h3 {
  cursor: pointer;
  transition: color 0.3s ease;
}

.book-info h3:hover {
  color: #3498db;
}

.book-card img {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.book-card img:hover {
  opacity: 0.9;
}

.borrow-btn:hover {
  background: #229954;
}

.borrow-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

/* Library Stats */
.library-stats {
  background: #34495e;
  color: white;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item i {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.stat-item h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Services Section */
.services {
  padding: 4rem 0;
  background: #ecf0f1;
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #2c3e50;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Catalog Styles */
.catalog-header {
  background: #3498db;
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.catalog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Enhanced Catalog Hero Section */
.catalog-hero-enhanced {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    );
  background-size: 60px 60px;
  animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.catalog-hero-enhanced .hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.catalog-hero-enhanced h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.catalog-hero-enhanced p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.quick-genre-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.quick-tag-label {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
}

.quick-genre-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.quick-genre-tag:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Compact Catalog Filters */
.catalog-filters-compact {
  background: white;
  padding: 1.5rem 0;
  border-bottom: 2px solid #f1f3f4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.compact-filters-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.compact-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  min-width: 280px;
  transition: all 0.3s ease;
}

.compact-search:focus-within {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.compact-search i {
  color: #667eea;
  margin-right: 0.8rem;
}

.compact-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  color: #2c3e50;
}

.compact-search input::placeholder {
  color: #95a5a6;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #95a5a6;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.search-clear-btn.show {
  opacity: 1;
}

.search-clear-btn:hover {
  background: #f1f3f4;
  color: #e74c3c;
}

.compact-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.compact-filter label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.compact-filter label i {
  color: #667eea;
  font-size: 0.8rem;
}

.compact-filter select {
  padding: 0.6rem 0.8rem;
  border: 2px solid #e9ecef;
  border-radius: 20px;
  background: white;
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.compact-filter select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.compact-clear-btn {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.compact-clear-btn:hover {
  background: linear-gradient(45deg, #c0392b, #a93226);
  transform: translateY(-2px);
}

.compact-results {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #495057;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  background: #f8f9fa;
  border-radius: 20px;
  white-space: nowrap;
}

.compact-results i {
  color: #667eea;
}

/* Responsive Design for Compact Filters */
@media (max-width: 768px) {
  .compact-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .compact-search {
    min-width: auto;
    width: 100%;
  }

  .compact-filter {
    justify-content: space-between;
    width: 100%;
  }

  .compact-filter select {
    min-width: auto;
    flex: 1;
    margin-left: 1rem;
  }

  .compact-clear-btn,
  .compact-results {
    justify-content: center;
    width: 100%;
  }
}

.filters-header {
  text-align: center;
  margin-bottom: 3rem;
}

.filters-header h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.filters-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.advanced-search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.search-icon {
  color: #667eea;
  margin-right: 1rem;
  font-size: 1.1rem;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 1rem 0;
  background: transparent;
  color: #2c3e50;
}

.search-input-wrapper input::placeholder {
  color: #95a5a6;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #95a5a6;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.search-clear-btn.show {
  opacity: 1;
  transform: scale(1);
}

.search-clear-btn:hover {
  background: #f8f9fa;
  color: #e74c3c;
}

.advanced-search-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.advanced-search-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.filters-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.filter-section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f3f4;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.filter-label i {
  color: #667eea;
}

.filter-pills-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #e9ecef;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.filter-pill:hover {
  background: #e9ecef;
  border-color: #667eea;
  transform: translateY(-2px);
}

.filter-pill.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.sort-dropdown-wrapper {
  position: relative;
  display: inline-block;
  min-width: 200px;
}

.sort-dropdown {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  background: white;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

.sort-dropdown:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sort-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.sort-dropdown:focus + .sort-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.filters-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 2px solid #f1f3f4;
}

.active-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.active-filter-tag {
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.active-filter-tag .remove-filter {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.active-filter-tag .remove-filter:hover {
  background: rgba(255, 255, 255, 0.2);
}

.filters-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.clear-filters-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-filters-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.results-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #495057;
  font-weight: 600;
  font-size: 1rem;
}

.results-count i {
  color: #667eea;
}

/* Responsive Design for Enhanced Filters */
@media (max-width: 768px) {
  .catalog-hero-enhanced h1 {
    font-size: 2.5rem;
  }

  .catalog-hero-enhanced p {
    font-size: 1.1rem;
  }

  .hero-search-container {
    flex-direction: column;
    gap: 1rem;
  }

  .advanced-search-container {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-pills-group {
    justify-content: center;
  }

  .filters-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .active-filters {
    justify-content: center;
  }

  .filters-actions {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
}

.catalog-content {
  padding: 3rem 0;
}

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

/* About Page Styles */
.about-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-content {
  padding: 4rem 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.about-text h3 {
  color: #3498db;
  margin: 2rem 0 1rem 0;
  font-size: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.values {
  padding: 4rem 0;
  background: #f8f9fa;
}

.values h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
  font-size: 2.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-card i {
  font-size: 3rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.value-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.team {
  padding: 4rem 0;
  background: white;
}

.team h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
  font-size: 2.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.team-member h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.team-member .role {
  color: #3498db;
  font-weight: bold;
  margin-bottom: 1rem;
}

.history {
  padding: 4rem 0;
  background: #ecf0f1;
}

.history h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
  font-size: 2.5rem;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  align-items: center;
}

.timeline-year {
  background: #3498db;
  color: white;
  padding: 1rem;
  border-radius: 50%;
  font-weight: bold;
  min-width: 80px;
  text-align: center;
  margin-right: 2rem;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.timeline-content h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-content {
  padding: 4rem 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: #3498db;
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.contact-item h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.hours p {
  margin-bottom: 0.3rem;
}

.contact-form h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3498db;
}

.submit-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: #229954;
}

.map-section {
  padding: 3rem 0;
  background: #f8f9fa;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
  font-size: 2rem;
}

.map-placeholder {
  background: white;
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-placeholder i {
  font-size: 4rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.faq {
  padding: 4rem 0;
  background: white;
}

.faq h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
  font-size: 2.5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #3498db;
}

.faq-item h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #3498db;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  color: #bdc3c7;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #3498db;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1rem;
  text-align: center;
  color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
  }

  .search-bar {
    width: 100%;
  }

  .search-bar input {
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .filters {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-item {
    flex-direction: column;
    text-align: center;
  }

  .timeline-year {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

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

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

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

  .hero-content p {
    font-size: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Book card hover effect enhancement */
.book-card {
  position: relative;
  overflow: hidden;
}

.book-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(52, 152, 219, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.book-card:hover::before {
  animation: shine 0.5s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Image Fallback Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[src=""],
img:not([src]) {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

img[src=""]:before,
img:not([src]):before {
  content: "📷 Image";
  color: #999;
  font-size: 14px;
}

.book-card img {
  min-height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-card img:before {
  content: "📚";
  font-size: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.team-member img {
  min-height: 150px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  border-radius: 50%;
}

.about-image img {
  min-height: 300px;
  background: linear-gradient(135deg, #34495e, #2c3e50);
}

/* Legal Pages Styles */
.privacy-hero,
.terms-hero {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.privacy-hero h1,
.terms-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-hero p,
.terms-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.privacy-content,
.terms-content {
  padding: 3rem 0;
  background: white;
}

.legal-document {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-document .section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ecf0f1;
}

.legal-document .section:last-child {
  border-bottom: none;
}

.legal-document h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

.legal-document h3 {
  color: #34495e;
  font-size: 1.3rem;
  margin: 2rem 0 1rem 0;
}

.legal-document p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.legal-document ul,
.legal-document ol {
  margin: 1rem 0 1.5rem 2rem;
}

.legal-document li {
  margin-bottom: 0.5rem;
}

.legal-document strong {
  color: #2c3e50;
}

.contact-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #3498db;
  margin: 1.5rem 0;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info i {
  color: #3498db;
  margin-right: 0.5rem;
  width: 20px;
}

.acknowledgment {
  background: #fff3cd;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.acknowledgment h2 {
  color: #856404;
  border-bottom-color: #ffc107;
}

.acknowledgment p {
  color: #856404;
}

.last-updated {
  text-align: center;
  font-style: italic;
  color: #7f8c8d;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Table of Contents (if needed) */
.toc {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  border-left: 4px solid #3498db;
}

.toc h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.toc ul {
  list-style-type: none;
  margin-left: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.toc a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Sitemap Styles */
.sitemap-hero {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.sitemap-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sitemap-content {
  padding: 3rem 0;
  background: #f8f9fa;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.page-category {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-category h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #3498db;
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.page-link {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border-left: 4px solid #3498db;
}

.page-link:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-icon {
  margin-right: 1.5rem;
  font-size: 2rem;
  color: #3498db;
  min-width: 60px;
  text-align: center;
}

.page-info h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.page-info p {
  color: #7f8c8d;
  margin: 0;
  line-height: 1.5;
}

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

.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.quick-link:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.website-stats {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.website-stats h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
}

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

.stat-card {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-top: 4px solid #e74c3c;
}

.stat-card i {
  font-size: 2rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.stat-card h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: #7f8c8d;
  margin: 0;
}

/* Book Details Page Styles - Enhanced */
.book-details-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  animation: float 20s ease-in-out infinite;
}

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

.breadcrumb {
  font-size: 1rem;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.breadcrumb a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.breadcrumb i.fas.fa-chevron-right {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.breadcrumb span {
  font-weight: bold;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

.book-details-content {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.book-details-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.book-image-section {
  text-align: center;
  position: relative;
}

.book-cover-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.book-cover {
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  display: inline-block;
  transition: all 0.3s ease;
}

.book-cover:hover {
  transform: translateY(-10px) rotateY(10deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.book-cover img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.book-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.5s ease;
}

.book-cover:hover .book-glow {
  opacity: 1;
  animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.availability-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(45deg, #4caf50, #45a049);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.book-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto;
}

.borrow-btn-large {
  background: linear-gradient(45deg, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.borrow-btn-large:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(76, 175, 80, 0.4);
  background: linear-gradient(45deg, #45a049, #3d8b40);
}

.borrow-btn-large:disabled,
.borrow-btn-large.disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.borrow-btn-large:active .btn-ripple {
  width: 300px;
  height: 300px;
}

.action-buttons-row {
  display: flex;
  gap: 1rem;
}

.wishlist-btn,
.share-btn {
  flex: 1;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.wishlist-btn:hover,
.share-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.wishlist-btn.active {
  background: #e74c3c;
  border-color: #e74c3c;
  color: white;
}

.book-info-section {
  padding-left: 2rem;
}

.book-header {
  margin-bottom: 2rem;
}

.title-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.book-header h1 {
  font-size: 2.2rem;
  margin: 0;
  color: #2c3e50;
  font-weight: 800;
  background: linear-gradient(45deg, #2c3e50, #34495e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.genre-tag {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
}

.book-author {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.book-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1.2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stars-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stars {
  color: #f39c12;
  font-size: 1.4rem;
  display: flex;
  gap: 0.2rem;
}

.rating-text {
  color: #7f8c8d;
  font-size: 0.95rem;
}

.quick-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #95a5a6;
  font-size: 0.9rem;
}

.book-meta-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.book-meta-card h3 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.meta-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.meta-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.meta-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-content strong {
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.9rem;
}

.meta-content span {
  color: #555;
  font-size: 1rem;
}

.book-description-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.book-description-card h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.description-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.description-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #ecf0f1;
}

.tags-container {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tag {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.read-more-btn {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.read-more-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.book-details-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.publisher-info-card,
.library-info-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.publisher-info-card:hover,
.library-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.publisher-info-card h4,
.library-info-card h4 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.info-item i {
  color: #667eea;
  width: 20px;
  text-align: center;
}

.info-item div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-item strong {
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 600;
}

.info-item span {
  color: #555;
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .book-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-info-section {
    padding-left: 0;
  }

  .book-header h1 {
    font-size: 1.8rem;
  }

  .title-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .book-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .quick-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .book-details-extra {
    grid-template-columns: 1fr;
  }

  .action-buttons-row {
    flex-direction: column;
  }

  .description-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Related Books Section */
.related-books {
  margin: 3rem 0;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-books h3 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  text-align: center;
}

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

.related-book-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 1rem;
  border-radius: 10px;
}

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

.related-book-card img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 5px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.related-book-info h4 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.related-book-info p {
  color: #7f8c8d;
  margin-bottom: 0.3rem;
}

.related-book-info .genre {
  font-size: 0.9rem;
  color: #95a5a6;
}

/* Reviews Section */
.book-reviews {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.book-reviews h3 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  text-align: center;
}

.reviews-container {
  margin-bottom: 2rem;
}

.review-item {
  border-bottom: 1px solid #ecf0f1;
  padding: 1.5rem 0;
}

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

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reviewer-info strong {
  color: #2c3e50;
  font-size: 1.1rem;
}

.review-stars {
  color: #f39c12;
}

.review-date {
  color: #95a5a6;
  font-size: 0.9rem;
}

.review-text {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

.load-more-reviews {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.load-more-reviews:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive Design for Book Details */
@media (max-width: 768px) {
  .book-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-info-section {
    padding-left: 0;
  }

  .book-header h1 {
    font-size: 2rem;
  }

  .book-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .borrow-btn-large {
    flex: 1;
    min-width: 200px;
  }

  .wishlist-btn,
  .share-btn {
    flex: 1;
    min-width: 120px;
  }

  .book-details-extra {
    grid-template-columns: 1fr;
  }

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

  .related-books-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .book-details-hero {
    padding: 1.5rem 0;
  }

  .book-details-content {
    padding: 2rem 0;
  }

  .book-header h1 {
    font-size: 1.8rem;
  }

  .book-author {
    font-size: 1.1rem;
  }

  .book-actions {
    flex-direction: column;
  }

  .borrow-btn-large,
  .wishlist-btn,
  .share-btn {
    min-width: unset;
  }

  .related-books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .related-book-card img {
    max-width: 120px;
  }
}

/* Enhanced Home Page Styles */

/* Enhanced Hero Section */
.hero-enhanced {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text .highlight {
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.primary {
  background: linear-gradient(45deg, #4caf50, #45a049);
  color: white;
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Quick Categories */
.quick-categories {
  padding: 4rem 0;
  background: #f8f9fa;
}

.quick-categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  display: block;
  text-decoration: none;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.category-card p {
  color: #666;
  margin-bottom: 1rem;
}

.book-count {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Enhanced Featured Books */
.featured-books-enhanced {
  padding: 4rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
}

.books-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.book-card-enhanced {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.book-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.book-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-card-enhanced:hover .book-overlay {
  opacity: 1;
}

.quick-view-btn,
.add-favorite-btn {
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: #333;
  transition: all 0.3s ease;
}

.quick-view-btn:hover,
.add-favorite-btn:hover {
  transform: scale(1.1);
  background: #4caf50;
  color: white;
}

.book-info {
  padding: 1.5rem;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.genre-tag {
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.genre-tag.fiction {
  background: #e8f5e8;
  color: #2e7d32;
}
.genre-tag.dystopian {
  background: #fce4ec;
  color: #c2185b;
}
.genre-tag.romance {
  background: #f3e5f5;
  color: #7b1fa2;
}

.rating {
  color: #ffc107;
  font-weight: 600;
}

.book-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.author {
  color: #666;
  margin-bottom: 1rem;
}

.description {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.book-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.borrow-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.borrow-btn.primary {
  background: linear-gradient(45deg, #4caf50, #45a049);
  color: white;
}

.borrow-btn.secondary {
  background: #e0e0e0;
  color: #666;
}

.availability {
  font-size: 0.9rem;
  font-weight: 600;
}

.availability.available {
  color: #4caf50;
}
.availability.reserved {
  color: #ff9800;
}

.view-all-section {
  text-align: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* New Arrivals */
.new-arrivals {
  padding: 4rem 0;
  background: #f8f9fa;
}

.arrivals-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
}

.arrival-card {
  flex: 0 0 200px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.arrival-card:hover {
  transform: translateY(-5px);
}

.arrival-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.arrival-info {
  padding: 1rem;
  position: relative;
}

.arrival-info h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.arrival-info p {
  color: #666;
  font-size: 0.9rem;
}

.new-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #4caf50;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Enhanced Stats */
.library-stats-enhanced {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  overflow: hidden;
}

.stats-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.stats-header {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stats-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-item-enhanced {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.stat-item-enhanced:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(45deg, #4caf50, #45a049);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.stat-content h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffd700;
}

.stat-content p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.stat-detail {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Testimonials */
.testimonials {
  padding: 4rem 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 20px;
  border-left: 4px solid #4caf50;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0.25rem;
  color: #2c3e50;
}

.author-info span {
  color: #666;
  font-size: 0.9rem;
}

.rating {
  color: #ffc107;
  margin-top: 0.5rem;
}

/* Enhanced Services */
.services-enhanced {
  padding: 4rem 0;
  background: #f8f9fa;
}

.services-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.service-card-enhanced {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, #4caf50, #45a049);
}

.service-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #4caf50, #45a049);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.service-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #555;
}

.service-features i {
  color: #4caf50;
  font-size: 0.9rem;
}

/* Call to Action */
.cta-section {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,25 75,75 25,75" fill="rgba(255,255,255,0.05)"/></svg>');
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: #4caf50;
  color: white;
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

/* Responsive Design for Enhanced Homepage */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
  }

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

  .books-grid-enhanced {
    grid-template-columns: 1fr;
  }

  .services-grid-enhanced {
    grid-template-columns: 1fr;
  }

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

  .stats-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
  }
}
