/* Override Zoho's inline hero height styles - Desktop */
[data-element-id].zphero {
  height: 85.00vh !important;
  min-height: 85.00vh !important;
  max-height: 85.00vh !important;
}

/* Override Zoho's inline hero height styles - Tablet */
@media (max-width: 768px) {
  [data-element-id].zphero {
    height: 85.00vh !important;
    min-height: 85.00vh !important;
    max-height: 85.00vh !important;
  }
}

/* Override Zoho's inline hero height styles - Mobile */
@media (max-width: 460px) {
  [data-element-id].zphero {
    height: 85.00vh !important;
    min-height: 85.00vh !important;
    max-height: 85.00vh !important;
  }
}

/* Fix hero background images for mobile */
.zpslider-img {
  background-size: cover !important;
  background-position: center !important;
}

/* Remove fixed attachment on mobile - causes scaling issues */
@media (max-width: 768px) {
  .zpslider-img {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }
  
  /* Also target the specific class if needed */
  .zpbackground-attachment-fixed {
    background-attachment: scroll !important;
  }
}

/* For very small screens */
@media (max-width: 460px) {
  .zpslider-img {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}


/* Force background on header - multiple selectors for specificity */
[data-header="zptheme-data-header-transparent"].theme-header.zpdark-header-portion {
  background: rgba(52, 73, 94, 0.7) !important;
}

/* Also target via data attribute */
[data-header="zptheme-data-header-transparent"][data-dark-part-applied="true"] {
  background: rgba(52, 73, 94, 0.7) !important;
}

/* Nuclear option - target the container */
[data-megamenu-content-container][data-header="zptheme-data-header-transparent"] {
  background: rgba(52, 73, 94, 0.7) !important;
}


/* Generic fix for all hero content on mobile */
@media (max-width: 768px) {
  /* Reduce top margins on rows inside hero sliders */
  .zphero-slider-container .zprow {
    margin-block-start: 60px !important;
  }
  
  /* Reduce top margins on columns inside hero sliders */
  .zphero-slider-container .zpelem-col {
    margin-block-start: 20px !important;
  }
}

@media (max-width: 460px) {
  .zphero-slider-container .zprow {
    margin-block-start: 40px !important;
  }
  
  .zphero-slider-container .zpelem-col {
    margin-block-start: 10px !important;
  }
}



/* Book List Stuff */

/* Table of Contents Styling */
#table-of-contents {
  background-color: hsla(218.18, 37.29%, 23.14%, 0.75);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

#table-of-contents h2 {
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid white;
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#table-of-contents ul {
  list-style: none;
  padding-left: 0;
}

#table-of-contents li {
  margin-bottom: 10px;
}

#table-of-contents li:before {
  content: "•";
  color: white;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  padding-right: 0.5em;
}

#table-of-contents a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

#table-of-contents a:hover {
  color: hsla(18, 100%, 50%, 0.75);
  text-decoration: underline;
}

/* Section Headers */
.section-title {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid white;
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: hsla(18, 100%, 50%, 0.75);
}

/* Section Divider */
.section-divider {
  border: none;
  border-top: 2px solid #ddd;
  margin: 40px 0;
}

/* Optional: Add box shadow to your existing .book-item */
.book-item {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px; /* Add to the item itself, not just the cover */
}


/* General Styling for the Book Collection */
.book-collection {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Default single column */
  gap: 20px;
  justify-items: center;
}

/* For larger screens, switch to 3 columns */
@media (min-width: 768px) {
  .book-collection {
    grid-template-columns: repeat(4, 1fr); /* Three columns for tablets and larger */
    gap: 30px;
  }
}

/* Individual book styling */
.book-item {
  position: relative;
  width: 200px; /* Adjust to your preferred size */
  height: 300px; /* Adjust to your preferred size */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.book-item:hover {
  transform: scale(1.05);
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s;
}

/* Summary only appears on hover */
.book-summary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark overlay */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  font-size: 14px;
}

.book-item:hover .book-summary {
  opacity: 1;
}

/* Link styling for the entire book cover */
.book-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

/* Constrain Book List to 66.67% width (2/3) */
#book-list {
  max-width: 66.67%;
  margin-left: auto;
  margin-right: auto;
}

/* Optional: Make full width on mobile for better usability */
@media (max-width: 768px) {
  #table-of-contents,
  #book-list {
    max-width: 100%;
  }
}