/* ================= GOOGLE FONTS ================= */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Poppins:wght@400;600;700&display=swap");

/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
 -webkit-tap-highlight-color: transparent; /* ✅ disables blue tap flash */
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-top: 50px; /* space for fixed navbar */
  overflow-x: hidden;
  text-align: center; /* center everything by default */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a,
.btn,
.btn-signup,
.card a {
  text-decoration: none !important;
  border: none;
  outline: none;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 1.5rem;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.navbar a {
  -webkit-tap-highlight-color: transparent; /* removes blue overlay */
}

/* Ensure list items have gentle rounding for the highlight area */
.nav-links li,
.overlay-links li {
  border-radius: 8px;
  overflow: visible;
}

/* Make anchors fill their list-item so the highlight covers the entire block */
.nav-links a,
.overlay-links a {
  display: block;                
  padding: 0.75rem 1rem;         
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  text-decoration: none;
  color: inherit;
  transition: background-color 120ms linear;
  border-radius: 8px;            
  line-height: 1;                
}

/* Visual highlight when touched / active / focused (covers whole block) */
.nav-links li.touch-active,
.overlay-links li.touch-active,
.nav-links a.touch-active,
.overlay-links a.touch-active,
.nav-links a:active,
.overlay-links a:active,
.nav-links a:focus,
.overlay-links a:focus {
  background-color: rgba(0,0,0,0.08); /* subtle gray highlight */
  color: inherit;
}

/* Keyboard focus visible for accessibility */
.nav-links a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(143,0,255,0.06); /* light focus ring; won't affect layout */
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.map {
  width: 25px;
  height: auto;
}

.nav-links {
  display: none; /* hidden on mobile */
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger into X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.overlay-links {
  list-style: none;
  text-align: center;
}

.overlay-links li {
  margin: 1.5rem 0;
}

.overlay-links a {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  color: #000;
  transition: color 0.3s ease;
}

.overlay-links a:hover {
  color: #8f00ff;
}

/* ================= HERO ================= */
.hero {
  display: flex;
  flex-direction: column;
  padding: 3rem 1.5rem;
  background: #fff;
}

.hero-text h1 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #444;
}

.hero-image {
  margin: 2rem auto 0 auto;
  max-width: 80%;
}
.btn-signup {
  display: block;
  margin: 1rem auto 0 auto;
  padding: 0.9rem 1.8rem;
  background: #000;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: background 0.3s ease;
}
/* Prevent sticky active/focus color on mobile */
.btn-signup:active {
  background: #8f00ff;
  color: #fff;
  transition: background 0.1s ease;
}


.btn-signup:hover {
  background: #8f00ff;
  color: #000;
}

/* ================= LEADERS & CATEGORIES ================= */
.leaders,
.categories {
  padding: 3rem 1.5rem;
  background: #fafafa;
}

.leaders h2,
.categories h2,
.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.card-grid,
.category-grid,
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  justify-items: center;
}

.card,
.category-card,
.book-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  width: 90%;
  max-width: 280px;
}

.card:hover,
.category-card:hover,
.book-card:hover {
  transform: translateY(-5px);
}
.book-section .section-title {
  margin-top: 1.5rem;  

}

.book-card .overlay {
  text-align: center;
  padding: 0.8rem;
}

/* ================= QUOTE ================= */
.quote-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .quote-image {
    width: 200px;
    height: 200px;
    border-radius: 6%;
    margin-bottom: 1rem;
    filter: grayscale(100%);
  }

  .quote-text-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 1rem 0;
    max-width: 90%;
  }

  .quote-mark {
    font-size: 2.5rem;
    color: rgba(0,0,0,0.15);
    line-height: 1;
    flex-shrink: 0;
  }

  .quote-mark.left {
    margin-right: 0.5rem;
    align-self: flex-start;
  }

  .quote-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    text-align: left;
  }

  .quote-mark.right {
    margin-left: 0.5rem;
    align-self: flex-end;
  }

  .quote-author {
    margin-top: 1rem;
    font-style: italic;
    font-weight: 700;
    font-size: 1rem;
    color: #444;
  }

/* ================= ABOUT ================= */
.about-connect {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 1.5rem;
  background: #fff;
}

.about-left h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-left p {
  font-size: 1rem;
  line-height: 1.6;
}

.about-right {
  text-align: center;
}

.profile-pic {
  width: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  display: block;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem
}

.social-links img {
  width: 28px;
  height: 28px;
}

/* ================= NEWSLETTER ================= */
.newsletter-container {
  background: #fff;
  padding: 3rem 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.newsletter-form input,
.newsletter-form button {
  padding: 1rem;
  border-radius: 0.4rem;
  border: 1px solid #000;
}

.newsletter-form button {
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #8f00ff;
  color: #000;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 1rem;
  background: #000;
  color: #fff;
  font-size: 0.9rem;
}

footer a {
  color: #8f00ff;
}

/* ================= MEDIA QUERIES ================= */

/* Small devices ≥576px */
@media (min-width: 576px) {
  .card-grid{
     display: grid;
   grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
   gap: 2rem;
  }
 
  .book-grid {
      
  } .category-grid{
   
  }
}

/* Tablets ≥768px */
@media (min-width: 768px) {
  /* Navbar */
  .card{
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
   gap: 2rem;
  }
  .nav-links {
    display: flex;
  }
  .hamburger {
    display: none;
  }

  /* Hero section */
  .hero {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 4vw;
  }

  .hero-text {
    flex: 1;
    padding-right: 3vw;
    text-align: left;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-image {
    flex: 1;
    max-width: 90%;
    margin-left: 5rem;
    margin-bottom: 3rem;
  }

  .btn-signup {
    font-size: 1.2vw;
    padding: 1.5vh 3vw;
    border-radius: 0.8vw;
  }
  /* Quote section */
  .quote-section {
    flex-direction: row;
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 3rem;
  }

  .quote-mark.left {
    text-align: left;
    padding-left: 3rem;
  }

  .quote-mark.right {
    text-align: right;
    padding-right: 3rem;
  }

  /* Book section */
  .book-section {
    text-align: left;
    padding: 2rem 4rem;
  }

  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .newsletter-form input {
    flex: 1;
    min-width: 220px;
  }
}

/* Mobile / small screens */
@media only screen and (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* Desktop / larger screens */
@media only screen and (min-width: 901px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}


/* Extra desktop refinements ≥1024px */
@media (min-width: 1024px) {
  .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  }
  .book-grid {
    grid-template-columns: repeat(4, 1fr);
  }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 3rem;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;           /* spacing between items */
  margin: 0;
  margin-left: auto;   /* push nav to the right of the navbar */
  align-items: center;
  padding: 0;
}
.nav-links li {
  margin: 0;           /* spacing controlled by .nav-links gap */
  padding: 0;
}
.nav-links a,
.overlay-links a {
  display: inline-block;               /* inline links on desktop */
  padding: 0;                          /* desktop spacing (mobile uses block padding) */
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  border-radius: 0.25rem;              /* optional slight rounding */
  transition: color 0.25s ease;
  background: transparent;             /* ensure no background box on desktop */
}
/* Hover: only change text color (no gray block) */
.nav-links a:hover,
.overlay-links a:hover {
  color: #8f00ff;
  background: transparent;
}
/* Current/active link */
.nav-links a.active,
.overlay-links a.active {
  color: #8f00ff;
  opacity: 1;
}
/* Ensure touch-active class does not show desktop block highlight */
.nav-links li.touch-active,
.overlay-links li.touch-active,
.nav-links a.touch-active,
.overlay-links a.touch-active {
  background: transparent;
}
/* Add this inside your desktop media query */
.nav-links a:focus {
  outline: none;
  box-shadow: none;
  background-color: transparent;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  font-weight: bold;
  color: #000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.map {
  width: 25px;
  height: auto;
  vertical-align: middle;
}

  .hero {
    flex-direction: row;        
    align-items: center;        
    justify-content: space-between; 
    padding: 6rem 4rem;        
  }

  .hero-text h1 {
    font-size: 3rem;            
  }

  .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #444;
  }

  .hero-image {
    margin: 0;                  
    max-width: 45%;             
  }

.card-grid .card,
.card-grid .category-card {
  margin: 0;
}

/* Optional: tune header alignment if your logo needs small shift */
.logo {
  margin-left: 0; /* ensure logo sits flush with navbar left padding */
}



/* ================= HERO ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 5rem 4vw;
  min-height: 50vh;
}
.hero-text {
  flex: 1;
  padding-right: 3vw;
}
.hero-text h1 {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
}
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #444;
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-image img {
  max-width: 95%;
  height: auto;
  margin-left: 5rem;
  margin-bottom: 4rem;
  object-fit: contain;
}
/* CTA BUTTON */

.btn-signup {
  display: inline-block;
  padding: 0.6rem 1.4rem;   /* medium padding */
  background-color: #000;
  color: #fff;
  font-size: 1.2vw;
  font: 500;/* medium text size */
  text-decoration: none;
  border-radius: 0.8vw;  /* subtle rounding */
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-signup:hover {
  background-color: #8f00ff;
  color: black;
  transition: all 0.5s ease;
}
.btn-signup:active {
  background-color: #6b00cc;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
    
/* ================= LEADERS SECTION ================= */
.leaders {
  margin-bottom: 1.5rem;
  padding: 80px 20px;
  background: #fafafa;
  text-align: center;
}
.leaders h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
/* Card Grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal wide cards */
  gap: 0.6rem; /* tight spacing between cards */
  padding: 2rem 1rem;
  justify-items: center;
}

.card {
 width: 100%; /* take full column width */
  max-width: 350px; /* optional: limit max width */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  padding: 0.8rem;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  z-index: 10; /* bring to front on hover */
}

.card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    filter: grayscale(100%);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.1rem;
}

.card a {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: black;
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}
.card a:link {
  text-decoration: none;
}
.card a:hover {
  background: #8f00ff;
  color: black;
  transition: all 0.5s ease;
}
.card a:active {
  background: #6b00cc;
  transition: transform 0.12s ease, opacity 0.12s ease;
}


.circle-wrapper {
  position: absolute; 
  top: 66.5%;
  right: -140px;
  transform: translateY(-50%);
  z-index: 1; 
  pointer-events: none; 
  opacity: 0;
  animation: fadeInCircle 2s ease-out forwards;
  animation-delay: 0.5s;
}
.side-circle {
  width: 250px;
  height: 250px;
  background-color: rgba(128, 128, 128, 0.2); 
  border-radius: 50%;
  pointer-events: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px); 
}

 @keyframes fadeInCircle {
  to {
    opacity: 1;
  }
}
         /* ================= CATEGORIES SECTION ================= */
.categories {
  margin-top: -30px;
  padding: 4vh 5vw;
  text-align: center;
  filter: grayscale(100%); 
  z-index: 30;
}
.categories-leaders {
  margin-top: -80px; 
  position: relative;
  z-index: 0;
}
.categories h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.category-card img.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.category-card:hover img.card-img {
  transform: scale(1.05);
  filter: brightness(0.85);
}
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
  color: white;
  text-align: left;
}
.card-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.card-overlay p {
  font-size: 0.95rem;
  line-height: 1.4;
}
.quote-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .quote-image {
    width: 200px;
    height: 200px;
    border-radius: 6%;
    object-fit: cover;
    margin-bottom: 1rem;
    display: block;
    filter: grayscale(100%);
  }

  .quote-text-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 1rem 0;
    max-width: 90%;
  }

  .quote-mark {
    font-size: 2.5rem;
    color: rgba(0,0,0,0.15);
    line-height: 1;
    flex-shrink: 0;
  }

  .quote-mark.left {
    margin-right: 0.5rem;
    align-self: flex-start;
  }

  .quote-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    margin: 0;
    flex: 1;
    text-align: left;
  }

  .quote-mark.right {
    margin-left: 0.5rem;
    align-self: flex-end;
  }

  .quote-author {
    margin-top: 1rem;
    font-style: italic;
    font-weight: 700; /* bold */
    color: #444;
    font-size: 1rem;
  }
/* ================= BOOKS SECTION ================= */
.book-section {
  text-align: left;
  margin: 3rem;
  padding: 2rem 2rem;
  margin-top: -2rem; 
 
}
.book-section .section-title {
  margin-top: 1.5rem;   /* pushes the text down */
  /* or use padding-top if you want spacing inside the section itself */
}


.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #3b2e2e;
  margin-bottom: 3rem;
  font-family: "Poppins", sans-serif;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; 
  row-gap: 3rem; 
  justify-items: center;
  background-color: rgba(220, 220, 220, 0.4); 
  padding: 2rem  0; 
  border-radius: 0.8rem; 
}


/* --- Book Card --- */
.book-card {
  position: relative;
  width: 200px;
  height: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
}

.book-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 100%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.05), transparent);
  transform: skewY(-1deg);
}

/* Image styling */
.book-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover only affects the image */
.book-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

           /* ================= FULLSCREEN OVERLAY ================= */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.overlay-links {
  list-style: none;
  text-align: center;
}

.overlay-links li {
  margin: 1.5rem 0;
}

.overlay-links a {
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  color: #000;
  transition: color 0.3s ease;
}

.overlay-links a:hover {
  color: #8f00ff;
}


  /* ===== About & Connect Section ===== */
.about-connect {
  display: flex;
  flex-direction: row-reverse;   
  justify-content: space-between;
  align-items: flex-start;
  margin: 3rem auto;
  padding: 80px 5%;              
  gap: 1.5rem;                     
}

.about-left {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  text-align: left;              
}

.about-left h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.about-left p {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;             
  line-height: 1.8;              
  color: #333;
  margin-bottom: 20px;
}

.about-right {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;                     
  margin-top: -1.5rem;                 
}

.about-right p {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: black;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: -0.75rem;
}

.social-links img {
  width: 26px;
  height: 26px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.social-links img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}



  /* ===== Newsletter Section (Clean, White & Centered) ===== */
.newsletter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff; 
  color: #000; 
  text-align: center;
  padding: 4rem 2rem; 
  margin-top: -5rem;
 
}

.newsletter-content {
  max-width: 480px;
  width: 100%;
}
.newsletter-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.newsletter-content p {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* ====== Form Styling ====== */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.newsletter-form input {
  padding: 0.8rem 1rem;
  border: 1.5px solid #000;
  background: transparent;
  color: #000;
  border-radius: 0.4rem;
  font-size: 1rem;
  outline: none;
  flex: 1;
  min-width: 220px;
}

.newsletter-form input::placeholder {
  color: #555;
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #8f00ff;
  color: #000;
}
.newsletter-form button:active{
  background: #6b00cc;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
/* ===== Footer Section (Properly Placed) ===== */
footer {
  text-align: center;
  padding: 1.2rem 1rem;
  background: #000;
  color: #fff;
  font-size: 0.9rem;
  width: 100%;
  margin-top: auto;
  position: static; 
}

footer a {
  color: #8f00ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* Large screens ≥1440px */
@media (min-width: 1440px) {
  .book-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }

  .about-left h2 {
    font-size: 2rem;
  }

  .about-left p {
    font-size: 1.3rem;
  }

  .newsletter-content h2 {
    font-size: 2rem;
  }
}

/* Ultra-wide screens ≥1920px */
@media (min-width: 1920px) {
  .book-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .hero {
    padding: 6rem 6vw;
  }

  .book-card {
    width: 240px;
    height: 340px;
  }
}
