﻿/* ========== Base Reset & Typography ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #F5E6C8;
  background-color: #0C1D0E;
  background-image: url('images/Bookshelves.png');
  background-position: center;
  background-repeat: repeat;
  background-size: cover;
}

/* For index (Option A: BrownBG + Bookshelves) */
.home-body {
  background-image: url('images/BrownBG.png'), url('images/Bookshelves.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Generic layout helpers */

main {
  min-height: calc(100vh - 140px);
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ========== Navbar ========== */

.navbar {
  width: 100%;
  background-color: #09220B;
  color: lightgreen;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav li a {
    background-color: lightgreen;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
  color: #8B5A2B; /* warm, bright parchment tone */
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  font-size: 0.98rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav li a:hover {
  border-color: #E2B13E;
  color: #E2B13E;
}

@media screen and (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

 }

/* ========== Hero / Index Layout ========== */

.hero {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.hero-text {
  flex: 1 1 280px;
  color: #F5E6C8;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  color: #E2B13E;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 32rem;
}

.hero-card {
  flex: 0 1 320px;
  background-color: rgba(12, 29, 14, 0.9);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
}

.hero-cardB {
    flex: 2 1 320px;
    background-color: #362A0E;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 0 18px rgba(0,0,0,0.45);
}

.hero-card h2 {
  margin-bottom: 0.75rem;
  color: #E2B13E;
}

.hero-card p {
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-photo {
  flex: 1 1 340px;
  background-color: rgba(12, 29, 14, 0.9);
  border-radius: 10px;
  padding: .25rem;
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
}

.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}



@media screen and (max-width: 768px) {
  .hero {
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }
}

/* ========== Generic Cards / Panels ========== */

.panel {
  background-color: rgba(12, 29, 14, 0.88);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
  margin-bottom: 2rem;
}

.panel h1,
.panel h2 {
  color: #E2B13E;
  margin-bottom: 0.75rem;
}

.panel p {
  line-height: 1.7;
  font-size: 1.02rem;
}

/* ========== Buttons ========== */

.btn,
.back-button,
.summary-buttons a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #AC7F15;
  color: #000;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.35);
  transition: opacity 0.25s ease, transform 0.1s ease;
  cursor: pointer;
}

.btn:hover,
.back-button:hover,
.summary-buttons a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Centered back button */

.back-button {
  width: 250px;
  margin: 2rem auto;
  text-align: center;
}

/* ========== About Author ========== */

.about-wrapper {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  
}

.about-text {
  flex: 1 1 320px;
}

.about-text p {
  line-height: 1.7;
  font-size: 1.02rem;
}

.about-photo {
  flex: 0 1 320px;
  background-color: rgba(12, 29, 14, 0.9);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Swiper container on About page */

.about-swiper {
  margin-top: 1.5rem;
}

/* ========== My Books Grid ========== */

.books-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: rgba(12, 29, 14, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
}

.books-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.books-header h1 {
  color: #E2B13E;
  margin-bottom: 0.5rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.75rem;
}

.book-card {
  background-color: #0C1D0E;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.book-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.book-card h2 {
  font-size: 1.05rem;
  color: #E2B13E;
  margin-bottom: 0.5rem;
}

.book-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.book-card .book-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
/* Base button (if not already defined) */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  background-color: #0C1D0E;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background-color: #163322;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Purchase Options section */
.purchase-options {
  margin-top: 1.5rem;
  text-align: center;
}

.purchase-options h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #f5f5f5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.purchase-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Purchase buttons */
.purchase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.purchase-btn .price {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Color coding */
.purchase-ebook {
  background-color: #4F7FBF; /* soft blue */
  color: #ffffff;
}

.purchase-paperback {
  background-color: #8B5A2B; /* warm brown */
  color: #ffffff;
}

.purchase-hardcover {
  background-color: #1F4D2B; /* forest green */
  color: #ffffff;
}

.purchase-comingsoon {
  background-color: #777777; /* muted gray */
  color: #eeeeee;
  cursor: default;
  pointer-events: none;
}

/* Hover effects */
.purchase-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.3);
}


/* ========== Sample Pages (Swiper Layout) ========== */

.sample-header {
  text-align: center;
  padding: 1rem;
  background-color: rgba(60, 30, 10, 0.85);
  color: #E2B13E;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.sample-header h1 {
  margin: 0.5rem 0;
  font-size: 2rem;
}

.sample-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.sample-cover {
  max-width: 250px;
  background: #0C1D0E;
  padding: 10px;
  border: 2px solid #0C1D0E;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.sample-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Swiper core */

.swiper {
  width: 650px;
  max-width: 100%;
  height: 400px;
  max-height: 45vh;
  background: #0C1D0E;
  border: 2px solid #0C1D0E;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.about-swiper,
.about-swiper .swiper {
  width: 500px;        /* narrower */
  max-width: 100%;
  height: 300px;       /* smaller height */
  max-height: 40vh;
  background: #0C1D0E;
  border-radius: 14px; /* rounded corners */
  overflow: hidden;    /* ensures images follow the rounded shape */
  border: 2px solid #0C1D0E;
  box-shadow: 0 0 18px rgba(0,0,0,0.35);
}



.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

/* Swiper navigation buttons */

.swiper-button-next,
.swiper-button-prev {
  color: #E2B13E;
}

@media screen and (max-width: 768px) {
  .sample-container {
    flex-direction: column;
    align-items: center;
  }

  .swiper {
    height: 500px;
  }
}

/* ========== Book Summary Pages ========== */

.summary-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: rgba(12, 29, 14, 0.85);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  color: #E2B13E;
}

.summary-header {
  text-align: center;
  margin-bottom: 2rem;
}

.summary-header h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #E2B13E;
}

    .summary-header h1Subtitle {
        margin: 0;
        font-size: 2.0rem;
        color: #E2B13E;
    }

    .summary-header h2Subtitle {
        margin: 0;
        font-size: 1.8rem;
        color: #E2B13E;
    }

.summary-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.summary-cover {
  max-width: 250px;
  background: #0C1D0E;
  padding: 10px;
  border: 2px solid #0C1D0E;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.summary-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.summary-text {
  flex: 1 1 250px;
  color: #F5E6C8;
  line-height: 1.6;
  font-size: 1.05rem;
}

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

.summary-buttons a {
  background-color: #8B5A2B; /* warm brown */
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.summary-buttons a:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.3);
}

.book-buttons {
    background-color: #8B5A2B; /* warm brown */
  color: #fff;
  padding: 0.6rem 0.6rem;
}

@media screen and (max-width: 768px) {
  .summary-flex {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .nav a {
    font-size: 1.1rem;
  }
}
.fb-comments {
    flex: 1 1 250px;
    color: #8B5A2B;
    line-height: 1.6;
    font-size: 1.05rem;
}
/* ========== Footer ========== */
footer {
    text-align: center;
    padding: 1rem 0;
    color: #F5E6C8;
    font-size: 0.9rem;
    background-color: rgba(9, 34, 11, 0.95);
    margin-top: 2rem;
}
    footer          hid  {
        text-align: right;
        padding: 1rem 0;
        color: grey;
        font-size: 0.7rem;
        
    }
/* ========== Comment Pages ========== */
.comment-wrapper {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    background-color: #f8f5dd;
    color: black;
    font-weight: 800;
}

.comment-text {
    flex: 2 1 320px;
    font-weight: 800;
}

    .about-text p {
        line-height: 1.7;
        font-size: 1.02rem;
    }

.comment-photo {
    flex: 0 1 320px;
    background-color: rgba(12, 29, 14, 0.9);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 0 18px rgba(0,0,0,0.45);
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: black;
}
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 2rem 0;
}

/* --- Book Series Section --- */

#book-series {
    padding: 50px 20px;
    background-color: rgba(214, 181, 103, 0.01);
    border-radius: 12px;
    margin-top: 5px;
}

.section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
    font-weight: 700;
}









.series-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.series-card {
    flex: 1 1 280px;
    max-width: 320px;
    background-color: #0C1D0E;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .series-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    }

    .series-card img {
        width: 100%;
        max-width: 180px;
        height: auto;
        margin: 0 auto 15px;
        border-radius: 8px;
        background: #eee;
    }

    .series-card h3 {
        margin: 10px 0;
        color: #E2B13E;
        font-size: 1.3rem;
    }

    .series-card p {
        font-size: 0.95rem;
        color: white;
        margin-bottom: 15px;
    }

.series-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #6d5314;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

    .series-btn:hover {
        background: #3c5f4b;
    }

/* --- Series Page Layout --- */

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header */
.series-header {
    text-align: center;
    margin-bottom: 40px;
}

    .series-header h1 {
        font-size: 2.6rem;
        color: white; 
        margin-bottom: 10px;
    }

.series-tagline {
    font-size: 2.4rem;
    color: white;
}

/* Intro Section */
.series-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.series-intro-text {
    flex: 1 1 400px;
}

    .series-intro-text h2 {
        color: #E2B13E;
        margin-bottom: 10px;
    }

    .series-intro-text p {
        font-size: 1.2rem;
        color: #F0E4C8;
        line-height: 1.6;
    }

.series-intro-image {
    flex: 2 1 300px;
    text-align: center;
}

    .series-intro-image img {
        width: 100%;
        height: auto;
        max-width: 800px;
       
    }

/* Divider */
.divider {
    border:ridge;
    border-top: 3px ridge #bbb;
    margin: 40px 0;
}
.bevel-divider {
    border: 0;
    border-top: 6px ridge #6B531C; /* raised bevel */
    margin: 30px 30px ;
    margin-top: 40px;
    margin-bottom: -50px;
}

.comment-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fafafa;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

    .comment-section h2 {
        margin-bottom: 0.8rem;
        font-size: 1.8rem;
        color: #333;
    }

    .comment-section p {
        font-size: 1.05rem;
        color: #555;
        line-height: 1.6;
    }

.cusdis-wrapper {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}



