* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  padding-top: 80px;
  background-color: #f9f9f9;
}

button.disabled {
  background-color: gray;
  cursor: not-allowed;
  opacity: 0.6;
}
/* Start Header */

header {
  background-color: white;
  padding: 15px 65px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  z-index: 1000;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1.logoName {
  font-size: 30px;
  font-weight: bold;
  color: #708aff;
  font-family: Georgia, "Times New Roman", Times, serif;
}
.logo span {
  color: #708aff;
  font-size: 12px;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", Times, serif;
}
header .search input {
  margin-left: 5px;
  padding-left: 3;
  width: 170px;
  transition: width 0.3s;
  border: 1px solid #ccc;
  padding: 10px 30px;
  border-radius: 10px;
}
header .search {
  position: relative;
}
header .search::before {
  font-family: var(--fa-style-family-classic);
  content: "\f002";
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--grey-color);
}
header .search input:focus {
  width: 200px;
  outline: none;
  border-color: #708aff;
}
nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  align-items: center;
}

nav a {
  color: #708aff;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
  font-family: "IBM Plex Mono Regular";
}
nav a:hover {
  color: #5a7de0;
  border-bottom: 1px solid;
}
/* End Header */

.bckgrnd {
  height: 100vh;
  width: 100%;
  position: relative;
}

.hero .discover {
  position: absolute;
  color: white;
  background-color: #708aff;
  border: none;
  padding: 10px;
  border-radius: 5px;
}
.hero .discover {
  position: absolute;
  background-color: #708aff;
  border: none;
  padding: 15px;
  border-radius: 5px;
  bottom: 43%;
  left: 44%;
}
.hero .discover a {
  text-decoration: none;
  color: white;
}
.hero h3 {
  position: absolute;
  top: 63%;
  left: 39%;
  color: #46332d;
}
/* End Hero Section */

/* Start New Releases */
.books-section {
  margin: 50px 20px;
  scroll-margin-top: 100px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 40px;
}
.section-header h2 {
  color: #708aff;
}
.section-header .view-options {
  display: flex;
  gap: 10px;
}

.view-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background-color: white;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
  border: 2px solid #708aff;
  color: #708aff;
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
  padding: 0 40px;
}
.book-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}
.book-card:hover {
  transform: translateY(-5px);
  box-sizing: 0 5px 35px rgba(0, 0, 0, 0.15);
}
.book-cover {
  width: 100%;
  height: 300px;
  object-fit: fill;
  background-color: #f7fafc;
}
.book-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 130px;
}
.spacer {
  flex: 1;
}
.book-title {
  font-size: 13px;
  color: #708aff;
  margin-bottom: 5px;
  line-height: 1.4;
  overflow: hidden;
}
.book-author {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}
.add-cart {
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 10px;
  background-color: #f16921;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.add-cart:hover {
  background-color: grey;
}
.view-all a {
  text-decoration: none;
  display: block;
  text-align: center;
  color: #708aff;
  font-weight: bold;
  padding: 10px;
  border-bottom: 1px solid #708aff;
  width: 102px;
  margin: 0 auto;
}
/* End New Releases */
/* Start Blog & News */
.news-section {
  margin: 50px 20px;
}
.news-section .section-header {
  padding: 0 30px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  padding: 0 30px;
}
.news-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-5px);
  box-sizing: 0 5px 35px rgba(0, 0, 0, 0.15);
}
.news-card img {
  width: 100%;
  height: 300px;
  object-fit: fill;
  background-color: #f7fafc;
}
.news-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}
.news-info button {
  width: fit-content;
  padding: 2px 10px;
  border: 1px solid #d8d8d8;
  background-color: #f9f9f9;
  border-radius: 4px;
  color: #708aff;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}
.news-info button:hover {
  background-color: #708aff;
  color: white;
}
.news-info h3 {
  font-size: 20px;
  color: #708aff;
  margin-bottom: 5px;
  line-height: 1.4;
  overflow: hidden;
}
.news-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}
/* End Blog & News */
/* Start Clients Section */
.clients-section {
  margin: 50px 20px;
}
.clients-section h2 {
  color: #708aff;
  font-size: 30px;
  text-align: center;
  margin-bottom: 30px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}
.post {
  background-color: white;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.09);
}
.post-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.post-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.post-head h3 {
  color: #708aff;
}
.post-body p {
  color: #666;
}
/* End Clients Section */

/* Start Footer */
footer {
  background-color: #708aff;
  color: white;
  padding: 40px 40px 20px 40px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-section h3,
.footer-section h4 {
  margin-bottom: 15px;
  font-size: 24px;
}
.footer-section p {
  color: #dddada;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section ul li a {
  color: #dddada;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-left: 10px;
}
.footer-section ul li a:hover {
  color: white;
}
.social {
  display: flex;
  gap: 15px;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #4a5568;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social a:hover {
  background-color: white;
  color: black;
  transform: translateY(-2px);
}
.email-input {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.email-input input {
  padding: 8px 12px;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  background-color: transparent;
  caret-color: #dddada;
}
.email-input input::placeholder {
  color: #dddada;
}
.email-input .subscribe {
  border: none;
  padding: 5px 50px;
  background-color: white;
  color: #708aff;
  font-weight: bold;
  border-radius: 5px;
  margin-left: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.email-input .subscribe:hover {
  background-color: #d8d8d8;
}
.bottom {
  border-top: 1px solid #dddada;
  padding-top: 15px;
  text-align: center;
  color: #dddada;
}
/* End Footer */
