/* Reset default browser spacing */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #000000;
}

/* Wrapper flex column */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #fff;
    text-align: center;
    padding: 0; 
}

header .logo {
    max-width: 1500px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Nav bar */
nav {
    background-color: #000;
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    padding: 10px 20px;
    position: relative;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

.nav-links a.active {
    background-color: white;
    color: black;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #6e6e6e;
}

/* Social icons in nav */
.nav-socials {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 25px;       
}

.nav-socials a {
    color: white;
    font-size: 26px; 
    text-decoration: none;
}

.nav-socials a:hover {
    color: #838383;
}

.nav-socials a.youtube:hover {
    color: rgb(227, 16, 16);
}

/* Main content area */
main {
    flex: 1;
    display: flex;
    justify-content: center; 
    align-items: flex-start;    
    padding: 20px;
    margin: 15px;
    background-color: white;
    border-radius: 5px;
}

/* Content container for image + text */
main .content {
    display: flex;
    align-items: center;
    gap: 60px; 
}

/* Image */
main .content img {
    max-width: 300px; 
    height: auto;
}

/* Text container */
main .content .text {
    max-width: 500px; 
    font-size: 18px;  
}

/* Headings */
main .content .text h2 {
    font-size: 32px;
}

main .content .text h3 {
    font-size: 24px;
}

/* Lists */
ul {
    list-style-type: square;
    padding-left: 20px;
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 10px;
}

footer i {
    font-size: 24px;
    margin: 0 10px;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #838383;
}

footer a.youtube i {
    color: white;
}

footer a.youtube:hover i {
    color: rgb(227, 16, 16);
}

footer p {
    font-size: 10px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* JS slide animations */
.slide-left { 
    transform: translateX(-100%); 
    opacity: 0; 
    transition: 0.8s; 
}

.slide-right { 
    transform: translateX(100%); 
    opacity: 0; 
    transition: 0.8s; 
}

.show { 
    transform: translateX(0); 
    opacity: 1; 
}

/* FAQ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;   
  padding: 20px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #7a7a7a;        
  color: #000000;             
  border: none;
  padding: 15px 20px;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 5px;
}

.faq-question:hover {
  background: #949494;        
}

.faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  background: #f5f4f4;        
  color: #000000;             
  padding: 0 20px;         
  transition: max-height 0.2s ease-out, padding 0.2s ease-out;
  border-left: 3px solid #000000;
}

.faq-answer p {
  margin: 10px 0;
}

/* This class is toggled via JS to open the box */
.faq-answer.active {
  max-height: 500px;       
  padding: 10px 20px;
}

/* FAQ item entrance animation */
.faq-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Used for the entrance animation only */
.faq-item.entry-show {
  opacity: 1;
  transform: translateY(0);
}

.description a {
    color: #696969;      /* grey color */
    text-decoration: none; /* remove underline */
}

.description a:hover {
    color: #333;      /* slightly darker on hover */
    text-decoration: underline; /* optional */
}


/* Books container overrides */
.books-list {
  display: flex;              /* row layout */
  flex-wrap: wrap;            /* allow wrapping on small screens */
  gap: 40px;                  /* space between books */
  margin-top: 30px;
  justify-content: center;    /* center books horizontally */
}

.book-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  flex: 1 1 400px;           /* grow/shrink, minimum 400px per book */
  max-width: 500px;
}

.book-cover {
  width: 150px;
  height: auto;
  border-radius: 5px;
}

.book-text h3 {
  margin: 0 0 8px 0;
  font-size: 24px;
}

.book-text p {
  margin: 0;
  line-height: 1.4;
}

/* Fade-in animation (already exists) */
.fade-in-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.1s ease, transform 0.1s ease;
}

.fade-in-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .book-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    width: 120px;
  }
}

.book-cover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-link:hover .book-cover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.book-link {
  text-decoration: none;
  color: #000000; /* grey */
}

.book-link:hover {
  color: #525252; /* darker grey on hover */
}

.book-link img {
  cursor: pointer;
}
