/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

  @media screen and (max-width: 768px) {
    .mobile-navbar {
      display: block !important;
    }
    .desktop-navbar {
      display: none !important;
    }
  }
  


.w3-bar {
  height: 60px !important; /* force W3.CSS override */
  align-items: center;
  display: flex;
}

.w3-bar-item {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  font-size: 16px;
}

  body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  overflow-x: hidden;
  padding-top: 80px; /* <-- adjust based on your nav height */
}

footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: black;
  color: white;
  padding: 20px 20px;
}

  
  .wrapper {
  flex: 1;
}


.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.book-item {
  flex: 0 1 150px;
  display: flex;
  justify-content: center;
}

.book-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.book-link:hover {
  transform: scale(1.05);
}

.book-cover {
  width: 140px;
  height: 200px;
  background: linear-gradient(to right, #f3eacb, #f8f5e9);
  border: 4px solid #e0e6e5;
  border-radius: 6px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-family: sans-serif;
}

.book-title {
  font-size: 13px;
  font-weight: bold;
  color: #1e3a8a;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.book-subtitle {
  font-size: 11px;
  font-weight: bold;
  color: #944d26;
  text-transform: uppercase;
  border-top: 1px solid #944d26;
  padding-top: 4px;
}


  .responsive-select-tag {
    width: 200px;
  }

  @media (max-width: 768px) {
    .responsive-select-tag {
      width: 100%;
    }
  }


.pagination {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 0.5rem;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.pagination a,
.pagination span,
.pagination em {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.pagination em {
  background-color: #007bff;
  color: #fff;
  font-style: normal;
}

.pagination .disabled {
  color: #aaa;
  border-color: #ddd;
  cursor: not-allowed;
}


@media (max-width: 576px) {
  .pagination {
    gap: 0.25rem;
  }

  .pagination a,
  .pagination span,
  .pagination em {
    padding: 6px 10px;
    font-size: 0.85rem;
    min-width: 32px;
  }
}

.custom-flash {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
  color: white;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  animation: fadeOut 3.5s ease-out forwards;
}

/* Color types */
.custom-flash.notice {
  background-color: #198754; /* Bootstrap success */
}

.custom-flash.alert,
.custom-flash.error {
  background-color: #dc3545; /* Bootstrap danger */
}

@keyframes fadeOut {
  0%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}


/* home */

/* --- Global / shared --- */

.start-btn {
  background-color: #009688;     /* teal color */
  color: #fff !important;
  border: none;
  border-radius: 30px;           /* smooth rounded button */
  text-decoration: none !important;
  display: inline-block;
}

.start-btn:hover {
  background-color: #007f73;     /* slightly darker teal */
  color: #fff !important;
  text-decoration: none !important;
}


.small-logo {
  max-height: 70px;
}

/* Headings & text */
.main-heading {
  font-weight: 700;
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.sub-heading {
  color: #555;
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

/* Links & buttons */
.know-more-link {
  text-decoration: none;
  font-size: 0.98rem;
}

.know-more-link:hover {
  text-decoration: underline;
}

.arrow-down {
  font-size: 0.9rem;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* use brand teal for “dark” text helper */
.text-dark {
  color: #009688 !important;
}

/* --- Hero section layout --- */
.hero-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero-section .main-heading {
  font-size: 2.6rem;
  line-height: 1.3;
}

.hero-section .sub-heading {
  font-size: 1.1rem;
}

/* Illustration sizing */
.hero-section .hero-image {
  max-width: 100%;
  height: auto;
}

/* CTA button tweaks (Bootstrap btn-warning override if needed) */
.hero-section .btn.btn-warning {
  background-color: #ffb300;
  border-color: #ffb300;
  color: #fff;
  border-radius: 999px;
}

.hero-section .btn.btn-warning:hover {
  background-color: #ffa000;
  border-color: #ffa000;
}

/* “Go Premium” link color (teal brand) */
.hero-section .know-more-link {
  color: #009688;
}

.hero-section .know-more-link i {
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (min-width: 576px) {
  .hero-section .main-heading {
    font-size: 2.8rem;
  }
  .hero-section .sub-heading {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) {
  .hero-section .main-heading {
    font-size: 3.1rem;
  }
  .hero-section .sub-heading {
    font-size: 1.35rem;
  }
}

@media (min-width: 992px) {
  .hero-section .main-heading {
    font-size: 3.6rem;
  }
  .hero-section .sub-heading {
    font-size: 1.6rem;
  }
  .hero-section .hero-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  /* Reduce space above heading */
  .hero-section {
    padding-top: 1.5rem !important;
    margin-top: 0 !important;
  }

  .hero-section .main-heading {
    margin-top: 1.5rem !important;
    padding-top: 0 !important;
    font-size: 1.9rem !important;  /* slightly smaller for mobile */
    line-height: 1.3 !important;
  }

  /* Add spacing BELOW the button */
  .hero-section .start-btn {
    margin-bottom: 1.5rem !important;
  }

  /* Reduce spacing under sub-heading */
  .hero-section .sub-heading {
    margin-bottom: 1.2rem !important;
  }
}