/* Main CSS for Biblion Website */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --biblion-blue: #0E194D;
  --biblion-orange: #FF6600;
  --biblion-yellow: #FFEA00;
  --biblion-pink: #FD62FF;
  --biblion-font: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--biblion-font);
  background-color: #f8f9fa;
  color: #333333;
}

/* Header General Style */
.biblion-header {
  background-color: var(--biblion-blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  min-height: 80px;
}

/* Logo Alignment */
.header-logo img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}
.header-logo img:hover {
  transform: scale(1.02);
}

/* Custom Yellow Button 'ACESSE' */
.btn-acesse {
  background-color: var(--biblion-yellow);
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}
.btn-acesse:hover {
  background-color: #e5d200; /* Darker yellow */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 234, 0, 0.3);
}
.btn-acesse:active {
  transform: translateY(0);
}

/* Nav Icons */
.nav-icon-link {
  color: #ffffff;
  font-size: 1.25rem;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border-radius: 50%;
}
.nav-icon-link:hover {
  color: var(--biblion-yellow);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Language Switcher */
.lang-link {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  transition: var(--transition-smooth);
  border-radius: 4px;
}
.lang-link:hover {
  color: var(--biblion-yellow);
  background-color: rgba(255, 255, 255, 0.1);
}
.lang-link.active {
  color: var(--biblion-orange);
  border-bottom: 2px solid var(--biblion-orange);
}

/* Custom Search Box */
.search-group {
  border: 1.5px solid #ffffff;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--biblion-blue);
  transition: var(--transition-smooth);
  max-width: 180px;
}
.search-group:focus-within {
  border-color: var(--biblion-orange);
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.4);
}
.search-input {
  background: transparent;
  border: none;
  color: var(--biblion-orange);
  font-family: var(--biblion-font);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  width: 100px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-input::placeholder {
  color: var(--biblion-orange);
  opacity: 0.8;
}
.search-btn {
  background: transparent;
  border: none;
  border-left: 1.5px solid #ffffff;
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}
.search-group:focus-within .search-btn {
  border-left-color: var(--biblion-orange);
}
.search-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--biblion-orange);
}

/* Mobile Menu Icon */
.btn-menu-toggle {
  background: transparent;
  border: none;
  color: var(--biblion-orange);
  font-size: 1.8rem;
  padding: 0 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}
.btn-menu-toggle:hover {
  transform: scale(1.1);
  color: #ff8533;
}
.btn-menu-toggle:focus {
  outline: none;
}

/* Responsive Mobile Navigation Drawer (Offcanvas) */
.biblion-offcanvas {
  background-color: var(--biblion-blue);
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.biblion-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.biblion-offcanvas .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
}
.biblion-offcanvas .nav-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}
.biblion-offcanvas .nav-link:hover {
  color: var(--biblion-orange);
  padding-left: 8px;
}

/* ==========================================================================
   Video Background Slider
   ========================================================================== */

#biblionSlider {
  height: 85vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #000000;
}

#biblionSlider .carousel-inner,
#biblionSlider .carousel-item {
  height: 100%;
  width: 100%;
}

/* Background Video styling */
.slider-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Dark filter overlay (60% opacity) */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.60);
  z-index: 2;
}

/* Centered Container for Text Content (Aligned at the Bottom) */
.slider-content-container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Bottom alignment */
  padding-bottom: 8vh;   /* Push up slightly from the bottom edge */
}

/* Custom Bottom Content block (No background, centered) */
.slider-bottom-content {
  width: min(850px, 92vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: #ffffff;
  opacity: 0; /* Animated dynamically */
}

/* Slide Content Animation (lasts 6 seconds to match slide interval) */
.carousel-item.active .slider-bottom-content {
  animation: slideContentAnimation 6s ease-in-out forwards;
}

/* 6 seconds animation: entrance, solid period, fade out at the end */
@keyframes slideContentAnimation {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  12% { /* at 0.72s */
    opacity: 1;
    transform: translateY(0);
  }
  88% { /* at 5.28s */
    opacity: 1;
    transform: translateY(0);
  }
  100% { /* at 6.00s */
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Typography inside Bottom Content */
.slider-bottom-content h2 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.75);
}

.slider-bottom-content p {
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-bottom: 1.75rem;
  opacity: 0.95;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
}

/* Custom CTA Button: Yellow background (#FFEA00) and Black text (#000000) */
.btn-acesse-slider {
  background-color: var(--biblion-yellow) !important;
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  padding: 0.75rem 2.2rem;
  border-radius: 8px;
  border: 2px solid var(--biblion-yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

/* Hover: Black background (#000000) and Yellow text (#FFEA00) */
.btn-acesse-slider:hover {
  background-color: #000000 !important;
  color: var(--biblion-yellow) !important;
  border-color: var(--biblion-yellow);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn-acesse-slider:active {
  transform: translateY(0);
}

/* Custom Indicators (dots) */
#biblionSlider .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  margin: 0 6px;
}

#biblionSlider .carousel-indicators .active {
  background-color: var(--biblion-yellow);
  transform: scale(1.2);
}

/* ==========================================================================
   Highlight Cards Section (Destaques)
   ========================================================================== */

.highlight-section {
  background-color: #8000FF; /* Vibrant Purple */
  padding: 4.5rem 0;
}

.highlight-inner-container {
  background-color: rgba(255, 255, 255, 0.15); /* Light translucent purple overlay */
  border-radius: 16px;
  padding: 2.5rem;
}

/* Card Style */
.highlight-card {
  height: 340px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

/* Background Zoom Effect on Hover */
.highlight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: var(--transition-smooth);
}

.highlight-card.card-1::before {
  background-image: url('../img/destaque-1.png');
}

.highlight-card.card-2::before {
  background-image: url('../img/destaque-2.png');
}

.highlight-card.card-3::before {
  background-image: url('../img/destaque-3.png');
}

.highlight-card:hover::before {
  transform: scale(1.05);
}

/* Card content container on top of zoom background */
.highlight-card .card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Alignments */
.highlight-card.card-1 .card-content,
.highlight-card.card-2 .card-content {
  justify-content: flex-start;
  align-items: center;
}

.highlight-card.card-3 .card-content {
  justify-content: flex-end;
  align-items: center;
}

/* Titles */
.highlight-card .card-title {
  font-family: var(--biblion-font);
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  font-weight: 500;
  text-align: center;
  margin: 0;
  text-decoration: underline;
  text-underline-offset: 6px;
  line-height: 1.25;
  transition: var(--transition-smooth);
}

/* Specific Card Title Colors */
.highlight-card.card-1 .card-title,
.highlight-card.card-3 .card-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.highlight-card.card-2 .card-title {
  color: #0E194D;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Subtle Hover Effect for Titles */
.highlight-card:hover .card-title {
  text-underline-offset: 8px;
}

/* ==========================================================================
   Comece a Ler Section (Pink Background)
   ========================================================================== */

.comece-section {
  background-color: var(--biblion-pink);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.carousel-container-outer {
  position: relative;
  padding: 0 4rem; /* Leave space for the floating nav arrows */
}

.carousel-window-comece {
  overflow: hidden;
  width: 100%;
}

.carousel-track-comece {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.comece-card-wrapper {
  padding: 0 1rem;
}

.comece-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: transparent;
  border: none;
  text-decoration: none !important;
  user-select: none;
  width: 100%;
}

/* Responsive columns for track items */
@media (min-width: 992px) {
  .carousel-track-comece .comece-card-wrapper {
    flex: 0 0 33.333333%;
  }
}
@media (max-width: 991.98px) {
  .carousel-track-comece .comece-card-wrapper {
    flex: 0 0 100%;
  }
}

.comece-card img {
  max-width: 260px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.comece-card:hover img {
  transform: translateY(-6px) scale(1.02);
}

.comece-card h3 {
  color: var(--biblion-blue);
  font-family: var(--biblion-font);
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  line-height: 1.35;
  margin: 0;
  transition: var(--transition-smooth);
}

.comece-card:hover h3 {
  text-underline-offset: 9px;
  color: #000000;
}

/* Floating Navigation Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--biblion-blue);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav-btn:hover {
  background-color: #000000;
  color: var(--biblion-yellow);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn.prev-btn {
  left: 0;
}

.carousel-nav-btn.next-btn {
  right: 0;
}

/* ==========================================================================
   Programação Section (Schedule/Events)
   ========================================================================== */

.programacao-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.btn-saiba-mais {
  background-color: var(--biblion-yellow) !important;
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.5rem;
  border-radius: 8px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  display: inline-block;
}

.btn-saiba-mais:hover {
  background-color: #000000 !important;
  color: var(--biblion-yellow) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.subtitle-teal {
  color: #00C6FF; /* Teal / Light Blue */
  font-family: var(--biblion-font);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subtitle-dark-blue {
  color: var(--biblion-blue);
  font-family: var(--biblion-font);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Programação Card Grid Style */
.programacao-card {
  background-color: #ffffff;
  border: 1px solid rgba(14, 25, 77, 0.08);
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
}

.programacao-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  border-color: rgba(14, 25, 77, 0.15);
}

.programacao-card .card-img-wrapper {
  height: 280px; /* Fixed height as requested */
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #ffffff; /* White background to frame the book cover beautifully */
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(14, 25, 77, 0.05);
}

.programacao-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* DO NOT CROP book covers */
  transition: var(--transition-smooth);
}

.programacao-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.programacao-card .card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.programacao-card .card-title {
  color: var(--biblion-blue);
  font-size: 1.05rem;
  font-weight: 500; /* Font weight 500 per user instructions */
  line-height: 1.4;
  margin-bottom: 0.75rem;
  /* Truncate long titles to exactly 3 lines to maintain grid alignment */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em; /* Ensures cards are aligned even with shorter text */
  transition: var(--transition-smooth);
}

.programacao-card:hover .card-title {
  color: #000000;
}

.programacao-card .card-date {
  color: #666666;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.programacao-card .card-cta {
  color: var(--biblion-orange);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
  margin-top: auto;
}

.programacao-card .card-cta i {
  transition: var(--transition-smooth);
}

.programacao-card:hover .card-cta {
  color: #ff8533;
}

.programacao-card:hover .card-cta i {
  transform: translateX(4px);
}

/* ==========================================================================
   A BibliON tá ON Section (Blue Background)
   ========================================================================== */

.tabion-section {
  background-color: #193B9E; /* Vibrant Medium Blue */
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.carousel-container-outer-tabion {
  position: relative;
  padding: 0 4rem; /* Leave space for the chevrons nav buttons */
}

.carousel-window-tabion {
  overflow: hidden;
  width: 100%;
}

.carousel-track-tabion {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.tabion-card-wrapper {
  padding: 0 1rem;
}

.tabion-card {
  display: block;
  text-decoration: none !important;
  border: none;
  background-color: transparent;
  user-select: none;
  width: 100%;
  transition: var(--transition-smooth);
}

/* Responsive columns for story cards */
@media (min-width: 992px) {
  .carousel-track-tabion .tabion-card-wrapper {
    flex: 0 0 25%; /* 4 items per view */
  }
}
@media (max-width: 991.98px) and (min-width: 576px) {
  .carousel-track-tabion .tabion-card-wrapper {
    flex: 0 0 50%; /* 2 items per view on tablets */
  }
}
@media (max-width: 575.98px) {
  .carousel-track-tabion .tabion-card-wrapper {
    flex: 0 0 100%; /* 1 item per view on mobile */
  }
}

.tabion-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.tabion-card:hover img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Yellow double chevrons navigation */
.carousel-nav-btn-tabion {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--biblion-yellow); /* Yellow chevrons */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  padding: 0.5rem;
}

.carousel-nav-btn-tabion:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.15);
}

.carousel-nav-btn-tabion:active {
  transform: translateY(-50%) scale(0.9);
}

.carousel-nav-btn-tabion.prev-btn {
  left: 0;
}

.carousel-nav-btn-tabion.next-btn {
  right: 0;
}

/* ==========================================================================
   Por Que Usar Section (Dark Blue Background)
   ========================================================================== */

.porque-section {
  background-color: var(--biblion-blue); /* Dark Blue */
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.carousel-container-outer-porque {
  position: relative;
  padding: 0 4rem; /* Leave space for chevrons nav buttons */
}

.carousel-window-porque {
  overflow: hidden;
  width: 100%;
}

.carousel-track-porque {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.porque-card-wrapper {
  padding: 0 1rem;
}

.porque-card {
  display: block;
  text-decoration: none !important;
  border: none;
  background-color: transparent;
  user-select: none;
  width: 100%;
  transition: var(--transition-smooth);
}

/* Responsive columns for porque cards */
@media (min-width: 992px) {
  .carousel-track-porque .porque-card-wrapper {
    flex: 0 0 33.333333%; /* 3 items per view */
  }
}
@media (max-width: 991.98px) and (min-width: 576px) {
  .carousel-track-porque .porque-card-wrapper {
    flex: 0 0 50%; /* 2 items per view on tablets */
  }
}
@media (max-width: 575.98px) {
  .carousel-track-porque .porque-card-wrapper {
    flex: 0 0 100%; /* 1 item per view on mobile */
  }
}

.porque-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

.porque-card:hover img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Yellow double chevrons navigation */
.carousel-nav-btn-porque {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--biblion-yellow); /* Yellow chevrons */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  padding: 0.5rem;
}

.carousel-nav-btn-porque:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.15);
}

.carousel-nav-btn-porque:active {
  transform: translateY(-50%) scale(0.9);
}

.carousel-nav-btn-porque.prev-btn {
  left: 0;
}

.carousel-nav-btn-porque.next-btn {
  right: 0;
}

/* ==========================================================================
   Perguntas Frequentes (FAQ Section)
   ========================================================================== */

.faq-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.faq-accordion {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(14, 25, 77, 0.08);
  padding-bottom: 1rem;
}

.faq-trigger {
  cursor: pointer;
  outline: none !important;
}

.faq-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.faq-trigger:hover .faq-icon {
  transform: scale(1.08);
}

.faq-trigger .faq-icon-expanded {
  display: inline-block;
  color: #193B9E;
}

.faq-trigger .faq-icon-collapsed {
  display: none;
}

.faq-trigger.collapsed .faq-icon-expanded {
  display: none;
}

.faq-trigger.collapsed .faq-icon-collapsed {
  display: inline-block;
  color: #193B9E;
}

.faq-question {
  color: var(--biblion-blue);
  font-family: var(--biblion-font);
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  font-weight: 500; /* Font weight 500 per instructions */
  transition: var(--transition-smooth);
}

.faq-trigger:hover .faq-question {
  color: #000000;
}

/* Align answer indent with the question text */
.faq-answer-wrapper {
  padding-left: 2.9rem;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.faq-answer {
  color: #193B9E; /* Blue text color for answers */
  font-family: var(--biblion-font);
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0;
}

.faq-answer ol, 
.faq-answer ul {
  color: #193B9E;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
}

.faq-answer a {
  color: var(--biblion-orange);
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.faq-answer a:hover {
  color: #ff8533;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

/* Band 1 - Dark Blue Social & Logos */
.footer-band-dark-blue {
  background-color: var(--biblion-blue); /* #0E194D */
  padding: 3rem 0;
  text-align: center;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}

.footer-social-icons a {
  color: var(--biblion-orange); /* #FF6600 */
  font-size: 2.2rem;
  transition: var(--transition-smooth);
  display: inline-flex;
}

.footer-social-icons a:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.footer-logos-ruler {
  width: 100%;
}

.footer-logos-ruler img {
  width: 100%;
  height: auto;
  opacity: 0.95;
  transition: var(--transition-smooth);
}

.footer-logos-ruler img:hover {
  opacity: 1;
}

/* Band 2 - Orange Category Links */
.footer-band-orange {
  background-color: var(--biblion-orange); /* #FF6600 */
  padding: 3rem 0;
  color: #ffffff;
  font-family: var(--biblion-font);
  font-size: 0.82rem;
  line-height: 1.5; /* Tightened line height */
  letter-spacing: 0.3px;
}

.footer-band-orange p {
  margin-bottom: 0.4rem; /* Reduced line margins */
  text-transform: uppercase;
}

.footer-band-orange p:last-child {
  margin-bottom: 0;
}

.footer-band-orange a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.footer-band-orange a:hover {
  border-bottom-color: #ffffff;
}

.footer-band-orange strong {
  font-weight: 700;
}

.footer-divider-double {
  margin: 0 0.6rem;
  font-weight: 300;
  opacity: 0.8;
}

.footer-divider-single {
  margin: 0 0.4rem;
  font-weight: 300;
  opacity: 0.8;
}

/* Band 3 - Solid Black Navigation Links */
.footer-band-black {
  background-color: #000000;
  padding: 3.5rem 0;
  color: #ffffff;
  text-align: center;
  font-family: var(--biblion-font);
}

.footer-band-black h5 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-band-black ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-band-black ul li {
  margin-bottom: 0.75rem;
}

.footer-band-black ul li:last-child {
  margin-bottom: 0;
}

.footer-band-black ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  opacity: 0.85;
}

.footer-band-black ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==========================================================================
   Programação Detalhe Page (Detail view)
   ========================================================================== */

/* Top Banner Block (White Background) */
.detalhe-hero-section {
  background-color: #ffffff;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(14, 25, 77, 0.06);
}

.detalhe-cover-wrapper {
  max-width: 320px;
  width: 100%;
  aspect-ratio: 9 / 12;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(14, 25, 77, 0.05);
  background-color: #ffffff; /* Frame empty spots in white */
}

.detalhe-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Always show 100% of the image, no cuts */
}

.detalhe-info-wrapper {
  padding-left: 2rem;
}

@media (max-width: 991.98px) {
  .detalhe-info-wrapper {
    padding-left: 0;
    margin-top: 2.5rem;
    text-align: center;
  }
}

.detalhe-info-category {
  color: #193B9E; /* Medium Blue */
  font-family: var(--biblion-font);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: capitalize;
}

.detalhe-info-title {
  color: var(--biblion-blue); /* #0E194D */
  font-family: var(--biblion-font);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 2rem;
}

.btn-inscrever-detalhe {
  background-color: var(--biblion-blue); /* #0E194D */
  color: #ffffff !important;
  font-family: var(--biblion-font);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 2.5rem;
  border-radius: 4px;
  border: 2px solid var(--biblion-blue);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(14, 25, 77, 0.2);
}

.btn-inscrever-detalhe:hover {
  background-color: transparent;
  color: var(--biblion-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(14, 25, 77, 0.3);
}

/* Detail Body Section (Beige Background) */
.detalhe-body-section {
  background-color: #F5EFE6; /* Warm cream/beige background matching the print */
  padding: 4rem 0 5rem 0;
  color: #333333;
  font-family: var(--biblion-font);
}

.detalhe-content-box {
  max-width: 960px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  line-height: 1.7;
}

.detalhe-metadata-item {
  margin-bottom: 0.5rem;
}

.detalhe-metadata-item strong {
  font-weight: 700;
  color: var(--biblion-blue);
}

.detalhe-section-title {
  color: var(--biblion-blue);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.detalhe-content-box p {
  margin-bottom: 1.25rem;
}

.detalhe-content-box a {
  color: #193B9E;
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.detalhe-content-box a:hover {
  color: var(--biblion-orange);
}

.btn-inscrever-detalhe-large {
  background-color: var(--biblion-blue); /* #0E194D */
  color: #ffffff !important;
  font-family: var(--biblion-font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 4px;
  border: 2px solid var(--biblion-blue);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(14, 25, 77, 0.2);
  margin-top: 2.5rem;
}

.btn-inscrever-detalhe-large:hover {
  background-color: transparent;
  color: var(--biblion-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(14, 25, 77, 0.3);
}

/* Page Header for General Internal Pages */
.interna-header-section {
  background-color: #8000FF;
  color: #ffffff;
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
}

.interna-header-section h1 {
  font-family: var(--biblion-font);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  margin: 0;
}

.interna-header-section img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

/* Quem Somos (About Us) Page Grid Layout */
.quem-somos-grid-section .block-image-col {
  padding: 0;
  overflow: hidden;
}

.quem-somos-grid-section .block-fit-img {
  object-fit: cover;
  min-height: 520px;
  width: 100%;
  display: block;
}

.quem-somos-grid-section .about-text-block-blue {
  background-color: #0E194D;
  color: #ffffff;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 520px;
}

.quem-somos-grid-section .about-text-block-yellow {
  background-color: #FFE600;
  color: #0E194D;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 520px;
}

.quem-somos-grid-section .about-text-block-blue .btn:hover {
  background-color: #ffffff !important;
  color: #0E194D !important;
  transform: translateY(-2px);
}

.quem-somos-grid-section .about-text-block-yellow .btn:hover {
  background-color: #ffffff !important;
  color: #0E194D !important;
  border: 1px solid #0E194D;
  transform: translateY(-2px);
}

.quem-somos-grid-section .about-text-block-orange {
  background-color: #FF5E00; /* vibrant orange */
  color: #ffffff;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 520px;
}

.quem-somos-grid-section .about-text-block-orange .btn:hover {
  background-color: #ffffff !important;
  color: #0E194D !important;
  transform: translateY(-2px);
}

.quem-somos-grid-section .block-video-col {
  position: relative;
  min-height: 520px;
  padding: 0;
  background-color: #000000;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .quem-somos-grid-section .about-text-block-blue,
  .quem-somos-grid-section .about-text-block-yellow,
  .quem-somos-grid-section .about-text-block-orange {
    padding: 3rem 1.5rem;
    min-height: auto;
  }
  .quem-somos-grid-section .block-fit-img,
  .quem-somos-grid-section .block-video-col {
    min-height: 350px;
  }
}

/* Links in Dynamic Page Content */
.pagina-conteudo-section .content-body a {
  color: var(--biblion-orange);
  text-decoration: none;
}

.pagina-conteudo-section .content-body a:hover {
  text-decoration: underline;
}

/* Quill WYSIWYG Alignment Helpers */
.ql-align-center {
  text-align: center;
}
.ql-align-right {
  text-align: right;
}
.ql-align-justify {
  text-align: justify;
}
.ql-align-left {
  text-align: left;
}

/* Session Promo Popup Styles */
.session-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 25, 77, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.session-popup-content {
  position: relative;
  max-width: 550px;
  width: 100%;
  background: transparent;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: popupScaleIn 0.3s ease-out;
}

.session-popup-link img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.session-popup-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px;
  height: 36px;
  background-color: #FF6600;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 20px;
  line-weight: 30px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  z-index: 10;
}

.session-popup-close-btn:hover {
  transform: scale(1.1);
  background-color: #0E194D;
}

@keyframes popupScaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}









