/* GLOBAL */

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f4f9f6;
  margin: 0;
  color: #222;
  line-height: 1.6;
}


/* HEADER */

header {
  background: linear-gradient(135deg,#159d82,#239b55);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

header h1 {
  max-width: 850px;
  margin: 0 auto .8rem auto;
  font-size: 2.1rem;
  line-height: 1.3;
}

.brand {
  font-size: 2.2rem;
  font-weight: bold;
  margin: .5rem 0;
}

header p {
  margin: .4rem 0;
  font-size: 1.1rem;
}


/* MAIN */

main {
  max-width: 1000px;
  margin: auto;
  padding: 2.5rem 2rem 3rem 2rem;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}


/* SECTIONS */

section {
  margin: 3rem 0;
}


/* HEADINGS */

h2 {
  color: #184d38;
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

h3 {
  color: #239b55; /* global green */
  font-size: 1.3rem;
}


/* SPECIAL BLACK HEADING FOR QR SECTION */

.qr-title {
  color: #000 !important;
  margin-top: 10px !important;
  margin-bottom: 5px !important;
}


/* BOOK COVER */

.book-container {
  text-align: center;
  margin-bottom: 2.5rem;
}

.book-container img {
  width: 100%;
  max-width: 750px;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0,0,0,.22);
}


/* ORDER BOXES */

.pricing-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

/* THIS is the only pricing-box definition now */
.pricing-box {
  background: linear-gradient(145deg,#2ecc71,#27ae60);
  color: white;
  padding: .5rem;          /* smaller padding */
  border-radius: 8px;
  width: 140px;            /* 50% smaller */
  min-height: 90px;        /* smaller height */
  text-align: center;
  box-shadow: 0 5px 12px rgba(0,0,0,.12);
  transition: .3s;
}

.pricing-box:hover {
  transform: translateY(-5px);
  text-decoration: none;
  color: white;
}

.pricing-box strong {
  font-size: .85rem;       /* smaller text */
}

.price {
  font-size: 1rem;         /* smaller price text */
  font-weight: bold;
  margin: .4rem 0;
}


/* AMAZON BUTTONS */

.amazon-button {
  display: inline-block;
  background: #176f3d;
  color: white;
  padding: .35rem .6rem;   /* smaller button */
  border-radius: 7px;
  font-size: .75rem;       /* smaller text */
  font-weight: bold;
  text-decoration: none;
  margin-top: .3rem;
  border: 2px solid #176f3d;
  transition: .3s;
}

.amazon-button:hover {
  background: white;
  color: #176f3d;
  border: 2px solid white;
}


/* QR CODE BLOCK */

.qr-block {
  text-align: center;
  margin-top: 10px;
}

.qr-block img {
  width: 120px;   /* 50% smaller */
  height: auto;
  margin-top: 5px;
}


/* AUTHOR */

.author-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.author-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}


/* TABLE OF CONTENTS */

.toc-preview a {
  color: #239b55;
  font-weight: bold;
}


/* NAVIGATION BUTTONS */

.nav-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* NAVIGATION BUTTON STYLE */

.nav-button {
  background: #239b55;
  color: white;
  padding: .8rem 1.2rem;
  border-radius: 7px;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: .3s;
}

.nav-button:hover {
  background: #176f3d;
  transform: translateY(-3px);
}


/* ORDER MY BOOK TODAY BUTTON */

.book-button {
  background: #ff6600;
  color: white;
  font-weight: bold;
  animation: pulse 1.5s infinite;
  box-shadow:
    0 0 8px rgba(255,102,0,.8),
    0 0 18px rgba(255,102,0,.7),
    0 0 30px rgba(255,102,0,.5);
}

.book-button:hover {
  background: #ff7f24;
}


@keyframes pulse {

  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }

}