/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Hero Section */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(to right, rgb(255, 245, 226), rgb(255, 247, 233));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 40px;
  min-height: 100vh;
  /* Ensure it fills space */
}

/* Aleesa */
.ttl {
  font-family: "Playfair Display", serif;
  font-style: normal;
  position: absolute;
  font-size: 6.5rem;
  font-weight: 400;
  position: absolute;
  top: 35px;
  left: 180px;
  z-index: 3;
  animation: fadeDown 1s ease forwards;
}

/* Book Stack */
.book-stack {
  position: absolute;
  top: 450px;
  left: 250px;

}

.book2 img {
  width: 150px;
  position: absolute;
  top: 20px;
  left: 30px;
  transform: rotate(3deg);
  z-index: 1;
  border-radius: 4px;
  box-shadow: 18px rgba(0, 0, 0, 0.25);
  animation: slideInBack 1.2s ease forwards;
  opacity: 0;
}

.book img {
  width: 150px;
  left: 530px;
  top: 250px;
  position: relative;
  transform: rotate(-10deg);
  z-index: 2;
  border-radius: 4px;
  box-shadow: 22px rgba(0, 0, 0, 0.3);
  animation: slideInFront 1.5s ease forwards;
  opacity: 0;
}

/* Signature */
.sign img {
  width: 190px;
  position: absolute;
  top: 670px;
  left: 230px;
  animation: float 3s ease-in-out infinite;
}

/* Girl */
.girl {
  position: absolute;
  top: 100px;
  left: 32%;
  background: linear-gradient(rgb(254, 218, 145), rgb(254, 242, 219));
  padding: 30px 20px;
  border-radius: 4px;
  animation: fadeIn 1.8s ease forwards;
}

.girl img {
  width: 460px;
  height: 640px;
  position: relative;
  z-index: 2;
}

/* Right Content */
/* .right {
  position: absolute;
  top: 140px;
  right: 80px;
  width: 350px;
  text-align: left;
} */

.ttl1 {
  font-family: "Playfair Display", serif;
  font-style: normal;
  font-size: 6.5rem;
  font-weight: 400;
  position: absolute;
  height: 100px;
  right: 100px;
  top: 170px;
  margin: 0;
  animation: fadeDown 1s ease forwards;
}

.sub {
  font-family: "poppins", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  position: absolute;
  left: 930px;
  top: 390px;
  font-size: 32px;
  margin-top: 20px;
  animation: fadeUp 1.2s ease forwards;
}

.txt {
  position: absolute;
  left: 930px;
  top: 470px;
  font-size: 1rem;
  margin: 20px 0;
  color: #444;
  line-height: 1.6;
  animation: fadeUp 1.5s ease forwards;
}

/* Button */
.btn {
  position: absolute;
  left: 930px;
  top: 575px;
  display: inline-block;
  padding: 12px 25px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s;
  animation: fadeUp 1.8s ease forwards;
}

.btn:hover {
  background: #444;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInBack {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(0deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(3deg);
  }
}

@keyframes slideInFront {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(0deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-6deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Book image */
.book {
  position: absolute;
  bottom: 5px;
  right: 550px;
  width: 5px;
  z-index: 0;
  animation: fadeInUp 1.8s ease-in-out;
}

/* Signature under book */
.signature {
  position: absolute;
  bottom: -90px;
  left: -10px;
  font-size: 36px;
  font-family: 'Brush Script MT', cursive;
  color: #000;
  z-index: 0;
  animation: fadeInUp 2s ease-in-out;
}

/* Right Text */
.hero-text {
  flex: 1;
  left: 200px;
  bottom: 30px;
  animation: fadeInRight 1.5s ease-in-out;
}

.hero-text h2 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 15px;
  color: #1d1d1d;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 25px;
}

.btn {
  padding: 14px 32px;
  background: #1d1d1d;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #333;
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===========================
   Hero Section Responsive
   =========================== */

/* 📌 Laptop / Tablet (between 768px and 1024px) */
@media (max-width: 1024px) {
  .main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 30px;
  }

  .ttl,
  .ttl1 {
    font-size: 4rem;
    position: static;
    margin: 15px 0;
  }

  .sub {
    font-size: 24px;
    margin: 10px 0;
    position: static;
  }

  .txt {
    font-size: 1rem;
    margin: 15px 0;
    max-width: 600px;
    position: static;
  }

  .btn {
    position: static;
    margin-top: 20px;
  }

  .girl img {
    width: 350px;
    height: auto;
  }

  .book img,
  .book2 img,
  .sign img {
    display: none;
  }
}

/* ✅ Hero Section Fix for Mobile */
@media (max-width: 768px) {
  .main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 15px;
  }

  /* Reset all absolutely positioned elements */
  .ttl,
  .ttl1,
  .sub,
  .txt,
  .btn {
    position: static !important;
    /* remove absolute positioning */
    margin: 10px 0;
    width: 100%;
    max-width: 90%;
    text-align: center;
  }

  /* Titles */
  .ttl,
  .ttl1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  /* Subtitle */
  .sub {
    font-size: 1rem;
    margin-top: 10px;
  }

  /* Paragraph */
  .txt {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 15px auto;
    text-align: center;
  }

  /* Button */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
  }

  /* Girl Image */
  .girl {
    position: static;
    margin: 20px 0;
    background: none;
    padding: 0;
  }

  .girl img {
    width: 250px;
    max-width: 90%;
    height: auto;
  }

  .book,
  .book2,
  .sign {
    display: none;
  }
}


/* Section Wrapper */
.progress-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  background: #fff;
  font-family: 'Georgia', serif;
  gap: 50px;
}

/* Left Content */
.progress-text {
  flex: 1;
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

.progress-text h2 {
  font-size: 38px;
  margin-bottom: 20px;
  font-weight: 400;
}

.progress-text p {
  font-size: 16px;
  color: #444;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Progress Bars */
.progress-bar {
  margin-bottom: 20px;
}

.progress-bar .label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 5px;
}

.progress-track {
  height: 8px;
  background: #e5e5e5;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  /* starts at 0 */
  background: #222;
  border-radius: 5px;
  transition: width 2s ease;
}


/* Right Image */
.progress-image {
  flex: 1;
  text-align: center;
  position: relative;
  animation: fadeDown 1.5s ease forwards;
  opacity: 0;
}

.progress-image .girl-img {
  width: 410px;
  height: 548px;
  border-radius: 8px;
}

/* Book Overlay */
/* .book-overlay {
  position: absolute;
  bottom: 20px;
  left: 30px;
  animation: fadeUp 1.5s ease forwards;
} */

.book-overlay .book-img {
  position: absolute;
  width: 250px;
  transform: rotate(-8deg);
  box-shadow: 20px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  transition: transform 0.3s ease;
  top: 360px;
  right: 390px;
}

.book-overlay .book-img:hover {
  transform: rotate(-4deg) scale(1.05);
}


/* Button Wrapper */
.custom-button-wrapper {
  margin-top: 25px;
  text-align: left;
}

/* Button Style */
.custom-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #222;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

.custom-btn:hover {
  background: #444;
  transform: translateY(-3px);
}


/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats Section */
.stats {
  padding-bottom: 50px;
  bottom: 12px;
  display: flex;
  justify-content: center;
  background-color: white;
  text-align: center;
  gap: 100px;
  flex-wrap: wrap;
}

.stat-item h2 {
  font-family: poppins, serif;
  font-weight: 400;
  font-weight: normal;
  font-size: 60px;
  color: #222;
  margin: 0;
}

.stat-item p {
  font-size: 15px;
  color: #555;
  margin-top: 8px;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: 70px;
  }

  .stat-box h2 {
    font-size: 32px;
  }

  .stat-box p {
    font-size: 14px;
  }
}

/* ===========================
   Progress Section Responsive
   =========================== */

/* 📌 Laptop / Tablet (between 768px and 1024px) */
@media (max-width: 1024px) {
  .progress-section {
    flex-direction: row;
    /* still side by side */
    gap: 30px;
    /* reduce spacing */
    padding: 60px 40px;
    /* less padding */
    align-items: center;
  }

  .progress-text h2 {
    font-size: 28px;
    /* shrink title */
  }

  .progress-text p {
    font-size: 15px;
  }

  .progress-image .girl-img {
    width: 300px;
    /* smaller girl image */
    height: auto;
  }

  .book-overlay .book-img {
    width: 180px;
    right: 100px;
    /* reposition */
    top: auto;
    bottom: -20px;
  }
}

/* 📌 Mobile (below 768px) */
@media (max-width: 768px) {
  .progress-section {
    flex-direction: column;
    /* stack */
    padding: 40px 20px;
    text-align: center;
    gap: 20px;
  }

  .progress-text h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .progress-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .progress-image .girl-img {
    width: 80%;
    max-width: 250px;
    height: auto;
  }

  .book-overlay .book-img {
    display: none;
    /* hide floating book on small screens */
  }
}

/* Gallery Section */
.gallery-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(to right, rgb(255, 245, 226), rgb(255, 247, 233));
}

.gallery-title {
  font-size: 60px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  margin-bottom: 50px;
  color: #2c2c2c;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Gallery Button */
.gallery-button-wrapper {
  margin-top: 30px;
  text-align: center;
}

.gallery-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #222;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: #444;
  transform: translateY(-3px);
}


/* 4 book section */

/* --- Section Wrapper --- */
.books-section {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #fffaf3, #fdf1d9);
  text-align: center;
  font-family: "Georgia", serif;
}

/* --- Section Title --- */
.books-section h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-style: normal;
}

/* --- Grid Layout --- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Always 3 per row */
  gap: 40px;
  justify-items: center;
}

/* --- Book Card --- */
.books-card {
  background: linear-gradient(rgb(254, 218, 145), rgb(254, 242, 219));
  border-radius: 12px;
  padding: 30px;
  position: relative;
  max-width: 380px;
  text-align: left;
  font-family: "Playfair Display", serif;
  transition: transform 0.3s ease-in-out;
}

/* --- Rating Badge --- */
.books-card .rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #222;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
}

/* --- New Release Badge --- */
.books-card .new-release {
  position: absolute;
  top: 41%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(100, 155, 99);
  color: white;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: cursive;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Book Image --- */
.books-card img {
  margin-left: 35px;
  width: 70%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  transition: transform 0.3s ease-in-out;
}

/* Hover Animation */
.books-card:hover img {
  animation: shake 0.6s ease-in-out;
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(2deg);
  }

  50% {
    transform: rotate(-2deg);
  }

  75% {
    transform: rotate(2deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* --- Title --- */
.books-card h3 {
  font-size: 2.2rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  margin: 15px 0 10px;
  color: #222;
}

/* --- Subtitle --- */
.books-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 per row on tablets */
  }
}

@media (max-width: 640px) {
  .book-grid {
    grid-template-columns: 1fr;
    /* 1 per row on mobile */
  }
}

/* Event section  */

.events-section {
  padding: 60px 20px;
  width: 100%;
  margin: auto;
  background-color: white;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.events-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 600;
  animation: fadeInDown 1s ease;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

/* Card layout */
.event-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 35px;
  flex-direction: row;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 1s ease forwards;
}

/* Image */
.event-img {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  overflow: hidden;
  animation: fadeInLeft 1.2s ease forwards;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.event-img img:hover {
  opacity: 1;
}

/* Date box (50% in / 50% out of image) */
.event-date {
  position: absolute;
  top: 50%;
  /* vertically center */
  right: -70px;
  /* pushes half outside the image */
  transform: translateY(-50%);
  background: #fff;
  padding: 15px 25px;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  animation: slideIn 1.2s ease forwards;
  z-index: 5;
  /* make sure it’s above the image */
}


.event-date h2 {
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
}

.event-date p {
  margin: 5px 0 0;
  font-size: 1rem;
  color: #666;
}

/* Content */
.event-content {
  padding: 30px;
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* ensures button is visible at bottom */
  animation: fadeInRight 1.2s ease forwards;
}

.event-content h3 {
  margin: 0 0 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.event-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.event-content ul li {
  font-size: 0.95rem;
  margin: 8px 0;
  color: #444;
}

.event-content ul li i {
  margin-right: 8px;
  color: #666;
}

/* Button */
.button {
  display: inline-block;
  padding: 12px 22px;
  background: #222;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  align-self: flex-start;
  /* keeps it left aligned */
  animation: popIn 1.4s ease forwards;
}

.button:hover {
  background: #444;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-70%, -50%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===========================
   Event Section Responsive
   =========================== */

/* 📌 Laptop / Tablet (≤1024px) */
@media (max-width: 1024px) {
  .event-card {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 30px;
    flex-direction: row;
    gap: 20px;
  }

  .event-img {
    max-width: 300px;
  }

  .event-content {
    padding: 20px;
  }

  .event-content h3 {
    font-size: 1.2rem;
  }

  .event-content ul li {
    font-size: 0.9rem;
  }
}

/* 📌 Mobile (≤768px) */
@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
    max-width: 100%;
    margin: 0 0 25px;
  }

  .event-img {
    max-width: 100%;
  }

  .event-img img {
    height: 200px;
    object-fit: cover;
  }

  .event-date {
    right: 10px;
    top: 15px;
    transform: none;
  }

  .event-content {
    padding: 15px;
    text-align: center;
  }

  .event-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .event-content ul {
    margin-bottom: 15px;
  }

  .button {
    align-self: center;
  }
}



/* poster section */
.featured-book-section {
  padding: 80px 20px;
  font-family: "Poppins", sans-serif;
  width: 100%;
  height: 500px;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 2.5rem;
  font-style: normal;
}

/* Flex Container */
.featured-book-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

/* Left side (book + signature) */
.featured-book-left {
  flex: 1;
  position: relative;
  animation: fadeInLeft 1s ease forwards;
}

/* Book image styling */
.book-image img {
  width: 250px;
  height: 350px;
  display: block;
  transform: rotate(-8deg);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  position: relative;
  z-index: 2;
}

.signature-image {
  top: 10px;
}

.signature-image img {
  width: 200px;
  opacity: 0.9;
}

/* Right side (text + button) */
.featured-book-right {
  flex: 1.2;
  animation: fadeInRight 1s ease forwards;
}

.featured-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.featured-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 30px;
}

/* Button */
.featured-btn {
  display: inline-block;
  padding: 14px 26px;
  background: #222;
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  animation: popIn 1.2s ease forwards;
}

.featured-btn:hover {
  background: #444;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fix Poster Section Side Spacing on Mobile */
@media (max-width: 768px) {
  .featured-book-section {
    padding: 30px 0;
    /* no side padding */
    height: auto;
    width: 100%;
  }

  .featured-book-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* full width */
    max-width: 100%;
    /* prevent overflow */
    margin: 0 auto;
    text-align: center;
    overflow-x: hidden;
    /* force hide any extra width */
  }

  .featured-book-left,
  .featured-book-right {
    width: 100%;
    max-width: 100%;
  }

  .book-image img {
    width: 200px;
    /* control size */
    max-width: 90%;
    /* respect viewport */
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .signature-image img {
    width: 110px;
    margin: 12px auto 0;
    display: block;
  }

  .featured-book-right {
    padding: 0 15px;
    /* safe inner spacing */
  }

  .featured-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .featured-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .featured-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ✅ Prevent horizontal scroll site-wide */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}



/* faq question section */
.faq-section {
  width: 100%;
  /* full width */
  padding: 80px 20px;
  font-family: "Poppins", sans-serif;
  background-color: white;
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  font-weight: 600;
  animation: fadeInDown 1s ease;
}

/* Container (2 equal columns) */
.faq-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

.faq-column {
  flex: 1;
  width: 100%;
}

/* FAQ Item */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
  cursor: pointer;
  animation: fadeInUp 1s ease;
}

/* Question row */
.faq-question {
  display: flex;
  justify-content: space-between;
  /* text left, + right */
  align-items: center;
  /* vertical center */
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

/* Icon */
.faq-icon {
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

/* Answer (hidden by default) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  line-height: 1.5;
  color: #555;
}

/* Active state */
.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  margin-top: 12px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  /* turns + into x */
}

/* ===========================
   FAQ Section Responsive
   =========================== */

/* 📌 Laptop / Tablet (≤1024px) */
@media (max-width: 1024px) {
  .faq-section {
    padding: 60px 30px;
  }

  .faq-container {
    gap: 30px;
  }

  .faq-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }
}

/* 📌 Mobile (≤768px) */
@media (max-width: 768px) {
  .faq-section {
    padding: 40px 20px;
  }

  .faq-container {
    flex-direction: column;
    /* stack columns */
    gap: 20px;
  }

  .faq-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
  }

  .faq-item {
    padding: 12px 0;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .faq-answer {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}




/* blog section */
.blog-section {
  padding: 150px;
  width: 100%;
  margin: auto;
  font-family: "Poppins", sans-serif;
  background-color: white;
}

/* Header */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.blog-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  animation: fadeInLeft 1s ease;
}

.blog-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #222;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 5px;
  text-decoration: none;
  margin-left: 135px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  animation: fadeInRight 1s ease;
}

.blog-btn:hover {
  background: #444;
}



/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Blog Card */
.blog-card {
  font-family: playfair display, serif;
  font-size: 2.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: fadeInUp 1s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);

}

/* Image */
.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

/* Category */
.blog-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Content */
.blog-content {
  padding: 18px;
}

.blog-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 10px 0;
}

.blog-content h3 a {
  text-decoration: none;
  color: #222;
  transition: color 0.3s ease;
}

.blog-content h3 a:hover {
  color: #666;
}

/* Meta */
.blog-meta {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.blog-meta i {
  font-size: 0.9rem;
  color: #999;
}

/* Excerpt */
.blog-excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Blog Section Responsive
   =========================== */

/* 📌 Laptop / Tablet (≤1024px) */
@media (max-width: 1024px) {
  .blog-section {
    padding: 80px 40px;
    /* reduce padding */
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns */
    gap: 30px;
  }

  .blog-header h2 {
    font-size: 1.8rem;
  }

  .blog-content h3 {
    font-size: 1rem;
  }

  .blog-content p {
    font-size: 0.9rem;
  }
}

/* 📌 Mobile (≤640px) */
@media (max-width: 640px) {
  .blog-section {
    padding: 50px 20px;
    /* tighter padding */
  }

  .blog-grid {
    grid-template-columns: 1fr;
    /* single column */
    gap: 20px;
  }

  .blog-header {
    flex-direction: column;
    /* stack title + button */
    text-align: center;
    gap: 15px;
  }

  .blog-header h2 {
    font-size: 1.5rem;
  }

  .blog-content {
    padding: 15px;
    text-align: center;
    /* center text for mobile */
  }

  .blog-content h3 {
    font-size: 0.95rem;
  }

  .blog-content p {
    font-size: 0.85rem;
  }

}


/* Footer section */
.footer-section {
  background: #222d32;
  color: #fff;
  font-family: "Poppins", sans-serif;
  padding: 60px 20px 0;
}

/* Footer Main */
.footer-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 50px auto;
  gap: 40px;
  padding: 50px;
  text-align: center;
}

.footer-main h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.footer-main p,
.footer-main a {
  font-size: 0.9rem;
  color: #ddd;
  text-decoration: none;
  display: block;
  margin: 6px 0;
  transition: color 0.3s ease;
}

.footer-main a:hover {
  color: #fff;
}

/* Footer Bottom */
.footer-bottom {
  background: #1a2327;
  padding: 15px 20px;
  margin-top: 40px;
}

.footer-bottom .bottom-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #aaa;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-social a:hover {
  color: #fff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Footer Section Responsive
   =========================== */

/* 📌 Laptop / Tablet (≤1024px) */
@media (max-width: 1024px) {
  .footer-newsletter {
    flex-direction: column;
    /* stack title + form */
    text-align: center;
    gap: 25px;
    padding: 60px 30px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    /* 2 columns instead of 3 */
    gap: 30px;
    padding: 40px 20px;
    text-align: center;
  }

  .footer-main div {
    margin: 0 auto;
  }

  .footer-bottom .bottom-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* 📌 Mobile (≤768px) */
@media (max-width: 768px) {
  .footer-newsletter {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 40px 20px;
  }

  .footer-form {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .footer-form input[type="email"] {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    /* single column */
    text-align: center;
    gap: 20px;
    padding: 30px 20px;
  }

  .footer-main h2 {
    margin-bottom: 10px;
  }

  .footer-bottom .bottom-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
}