/* ====== GLOBAL RESETS ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ====== GENERAL STYLING ====== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ====== SITE HEADER ====== */
.site-header {
  background-color: #2f2f2f;
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Branding / Logo */
.branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.branding img.logo {
  height: 120px;
  width: auto;
  margin-bottom: 0.1rem;
}

@media (max-width: 600px) {
  .branding img.logo {
    height: 90px;
  }
}

.title-group h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

.title-group .highlight {
  color: #facc15;
}

.title-group .tagline {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-style: italic;
  color: #444;
}

/* Baybayin + English Subtitle */
.baybayin-text {
  font-family: 'Noto Sans Baybayin', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #a3d65c;
  margin-top: 0.75rem;

    /* Simulate black stroke using multiple shadows */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

@media (max-width: 600px) {
  .baybayin-text {
    font-size: 1.2rem;
  }
}

.baybayin-translation {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #444;
  margin-top: 0.25rem;
}

/* ====== HOME FEATURED SECTION ====== */
.home-featured-carousel-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  flex-wrap: nowrap;
}

/* Featured Books Section */
.featured-books {
  flex: 1;
  max-width: 50%;
  background-color: #f8f8f8;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.featured-books h2 {
  font-size: 1.8em;
  color: #333;
  font-weight: bold;
  border-bottom: 2px solid #888;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* Each featured book container */
.featured-book {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

/* Book image */
.featured-book img {
  flex-shrink: 0;
  width: 120px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Book details text */
.featured-book-details {
  text-align: left;
  flex-grow: 1;
}

.featured-book-details h3 {
  font-size: 1.2em;
  color: #222;
  margin-bottom: 4px;
}

.featured-book-details h4 {
  font-size: 1em;
  color: #555;
  margin-bottom: 10px;
  font-style: italic;
}

.featured-book-details p {
  font-size: 0.95em;
  color: #444;
  line-height: 1.4;
}

/* Carousel Section */
.carousel-section {
  flex: 1;
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.styled-box {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.featured-books,
.carousel-and-below {
  flex: 1;
  max-height: 100%;
  max-width: 50%;
  overflow: visible;
}

/* ====== NAVIGATION BAR ====== */
.main-nav {
  background-color: #2f2f2f;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* Search + Hamburger layout */
.nav-top.full-width {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background-color: #2f2f2f;
  max-width: 100%; 
  box-sizing: border-box;
}

.nav-top.full-width > .search-bar {
  flex: 1;
  margin-right: 1rem;
}

.search-bar::placeholder {
  color: #ccc;
}

.hamburger {
  width: 44px;
  height: 44px;
  font-size: 22px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-wrapper .search-bar {
  padding: 0 1rem;
  height: 44px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #444;
  color: #fff;
  outline: none;
}

.nav-search-wrapper .search-bar:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.4);
}

.nav-search-wrapper .search-icon {
  position: absolute;
  right: 0.75rem;
  font-size: 1rem;
  color: #888;
  pointer-events: none;
}

/* Navigation Tabs */
.nav-columns {
  background-color: #2f2f2f;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  list-style: none;
  gap: 2rem;
}

.nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nav-col li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px; /* Adjust this value based on your "Contact & Support" button */
  height: 44px;
  background-color: #444;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

.nav-col li a:hover {
  background-color: #555;
  color: #facc15;
}

/* Make buttons flexible and centered on smaller screens */
@media (max-width: 768px) {
  .nav-columns {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-col {
    width: 100%;
    align-items: center;
  }

  .nav-col li a {
    width: 90%;
    max-width: 320px;
    height: 48px;
    font-size: 1rem;
  }
}

/* Make navigation links look like buttons */
.nav-columns a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #3b3b3b;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
}

.nav-columns a:hover {
  background-color: #555;
  transform: translateY(-2px);
}

.nav-columns a:active {
  background-color: #444;
  transform: translateY(0);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
  .home-featured-section {
    flex-direction: column;
    align-items: center;
  }

  .featured-books,
  .carousel-section {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .featured-book img {
    width: 120px;
    height: auto;
  }

  .featured-book-details {
    padding: 0 10px;
  }

  .featured-book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .featured-book-details {
    margin-top: 10px;
  }

  .nav-top {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-columns {
    flex-direction: column;
    align-items: center;
  }
}

/* Align nav-top with nav-columns */
.main-nav,
.nav-top.full-width,
.nav-columns {
  max-width: 1000px;
  margin: 0 auto;
}

/* Author's Desk */
.author-desk {
  background-color: #c0ffa6;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 4px solid #333;
  border-bottom: 4px solid #333;
  text-align: left;
}

.author-desk h2 {
  font-size: 1.8em;
  color: #333;
  font-weight: bold;
  border-bottom: 2px solid #888;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.author-content {
  max-width: 900px;
  margin: 0 auto;
}

.author-note {
  font-family: 'Segoe Script', cursive;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

.author-signature-block {
  text-align: right;
  margin-top: 20px;
}

.signature-image {
  max-width: 250px;
  margin-bottom: 5px;
}

/* Testimonials */
.testimonials {
  background-color: #fff;
  padding: 50px 20px;
  margin-top: 40px;
  width: 100%;
}

.testimonials h2 {
  font-family: 'Cambria', serif;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.testimonial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.testimonial.reverse {
  flex-direction: row-reverse;
}

.testimonial-photo {
  text-align: center;
  width: 150px;
}

.testimonial-photo img {
  width: 64px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.commenter-name {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
  color: #555;
}

.commenter-name-title {
  margin-top: -5px; /* optional adjustment */
  font-size: 0.9em;
  color: #555;
}

.testimonial-text {
  flex: 1;
  font-family: 'Georgia', serif;
  font-size: 16px;
  font-style: italic;
  color: #333;
  line-height: 1.6;
  max-width: 600px;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .testimonial {
    flex-direction: column;
    text-align: center;
  }

  .testimonial.reverse {
    flex-direction: column;
  }

  .testimonial-text {
    max-width: 100%;
  }
}
