/* ================= HEADER ================= */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #f5efe3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

/* ================= BUTTONS ================= */
.dropbtn,
.navbtn {
  background-color: #8b6f47;
  color: white;
  padding: 10px 14px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropbtn:hover,
.navbtn:hover {
  background-color: #7a5f3a;
}

/* ================= DROPDOWN ================= */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background-color: #f5efe3;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.dropdown-content a {
  color: #3a2f1d;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #e6dcc8;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ================= INDEX PAGE ================= */
.index-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px; /* space between columns and main content */
  margin-top: 30px;
  width: 100%;
}

.side-column {
  width: 250px;
  background-color: #f5efe3;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  text-align: center;
  color: #3a2f1d;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.index-content {
  max-width: 700px;
  width: 100%;
}

/* Side column text & lists */
.side-column h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.side-column p,
.side-column li {
  font-size: 16px;
  line-height: 1.5;
}

.side-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-column hr {
  width: 70%;
  height: 2px;
  background: linear-gradient(to right, transparent, #b89f74, transparent);
  border: none;
  margin: 25px auto;
}

.side-column .side-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ================= BODY & SECTIONS ================= */
body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  text-align: center;
  background-color: #d2b48c;
  color: #3a2f1d;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  max-width: 700px;
  width: 90%;
  margin: 30px auto;
  padding: 30px;
  background-color: #f5efe3;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

/* ================= BOOKS PAGE ================= */
.book {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f5efe3;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  flex-wrap: wrap;
}

.book-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-img {
  width: 150px;
  height: auto;
  border-radius: 8px;
}

.book-info {
  flex: 1;
  text-align: left;
}

.buy-btn {
  display: inline-block;
  padding: 10px 18px;
  background-color: #8b6f47;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.buy-btn:hover {
  background-color: #7a5f3a;
}

/* ================= FOOTER ================= */
.page-container {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

#footer {
  width: 100%;
  background-color: #f5efe3;
  text-align: center;
  padding: 20px 10px;
  border-top: 3px solid #b89f74;
  margin-top: auto;
}

footer {
  width: 100%;
  z-index: 1000;
  background-color: #f5efe3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px;
}

/* ================= MOBILE STYLING ================= */
@media (max-width: 900px) {
  .side-column {
    display: none;
  }
  .index-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .index-content {
    width: 100%;
    max-width: 700px;
  }
}


/*========other==========*/

/* ================= SPACING BETWEEN COLUMNS ================= */
.index-wrapper {
  gap: 30px;           /* space between left column, main content, and right column */
  margin-bottom: 50px; /* space below columns before footer */
}

/* ================= SPACING BELOW LAST SECTION ================= */
.index-content section:last-child {
  margin-bottom: 50px; /* extra space between last content and footer */
}



