/* Custom CSS unique to Betty's Books Download Page */
 
  .books-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  .books-title {
    color: var(--color-blue);
    font-size: 2.5rem;
    border-bottom: 3px solid var(--color-yellow);
    padding-bottom: 10px;
    margin-bottom: 40px;
  }

  .intro-box {
    margin-bottom: 50px;
    line-height: 1.8;
  }

  /* Instruction Step Grid Layout */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
  }
  .step-card {
    background: var(--color-blue);
    border-top: 5px solid var(--color-yellow);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  .step-num {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-green);
    margin-bottom: 10px;
  }

  /* Book Levels Display */
  .level-section {
    margin-bottom: 45px;
  }
  .level-header {
    font-size: 1.8rem;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  .lvl-1 { background: var(--color-blue); }
  .lvl-2 { background: var(--color-green); }
  .lvl-3 { background: var(--color-orange); }
  .lvl-4 { background: var(--color-red); }
  
  /* Downloadable Book Link Styles */
  .book-link {
    display: block;
    padding: 15px;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    text-decoration: none;
    color: #333333;
    font-weight: bold;
    transition: all 0.2s ease;
  }
  .book-link:hover {
    border-color: var(--color-blue);
    background: #FAF5FF;
    transform: translateY(-2px);
  }
  .book-source {
    display: block;
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: normal;
    margin-top: 4px;
  }
 
/* ==========================================================================
   ENHANCED 6-STEP GRAPHIC INSTRUCTION GRID
   ========================================================================== */
.graphic-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 40px;
  position: relative;
}

@media (min-width: 768px) {
  .graphic-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .graphic-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Enhancing Step Cards to hold textual instruction and graphics together */
.graphic-steps .step-card {
  background: #ffffff;
  border: 3px solid var(--color-blue);
  border-radius: 18px;
  padding: 25px 20px 20px 20px;
  position: relative;
  box-shadow: 5px 5px 0px var(--color-blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.graphic-steps .step-card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0px var(--color-yellow); /* Swaps to brand yellow on hover */
}

/* Playful big step counting indicators */
.graphic-steps .step-num {
  position: absolute;
  top: -20px;
  left: 15px;
  background: #EE4266; /* Vibrant Energetic Red */
  color: #ffffff;
  padding: 2px 12px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid var(--color-blue);
  box-shadow: 2px 2px 0px var(--color-blue);
}

.step-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 15px;
  margin-top: 5px;
}

/* Stylized Visual Graphic / Icon Container Box */
.step-graphic {
  background-color: #F8FAFC;
  border: 1px solid var(--color-red);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

/* Dynamic CSS Flow Arrows for Desktop Layouts */
@media (min-width: 1024px) {
  /* Add connecting arrows after cards 1, 2, 4, and 5 */
  .graphic-steps .step-card:not(:nth-child(3)):not(:nth-child(6))::after {
    content: "➔";
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #EE4266;
    z-index: 10;
    animation: arrowNudge 1.5s infinite ease-in-out;
  }
}

/* Smooth horizontal bouncing animation to draw the user's eyes forward */
@keyframes arrowNudge {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-50%) translateX(6px); }
}

/* ==========================================================================
   DYNAMIC TABS NAVIGATION INTERFACE
   ========================================================================== */
.level-tabs-container {
  margin: 40px 0 25px 0;
  text-align: center;
}

.tabs-instruction-heading {
  color: var(--color-green);
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

/* Flex Row grid array for responsive alignment */
.tabs-button-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;
}

/* Individual tab button styling */
.level-tab-btn {
  background-color: #ffffff;
  color: var(--color-blue);
  border: 3px solid var(--color-blue);
  padding: 14px 10px;
  font-size: 1.15rem;
  font-weight: bold;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--color-blue);
  transition: all 0.15s ease-in-out;
}

/* Hover feedback */
.level-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px var(--color-yellow);
}

/* Active Level Tab State - instantly pops into color view */
.level-tab-btn.active {
  background-color: var(--color-blue);
  color: #ffffff;
  box-shadow: 4px 4px 0px var(--color-yellow);
  transform: translateY(2px);
}

/* ==========================================================================
   INTERACTIVE REVEAL CONTAINER MECHANICS
   ========================================================================== */
.dynamic-tab-pane {
  display: none; /* Hide panels out of view by default */
  opacity: 0;
}

/* Active panel turns display on and uses a clean transition */
.dynamic-tab-pane.active {
  display: block;
  opacity: 1;
  animation: paneFadeIn 0.35s ease-in-out forwards;
}

@keyframes paneFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   LITERACY LEAGUE FORM DESIGNS
   ========================================================================== */
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group label {
  font-weight: bold;
  color: black;
  font-size: 0.95rem;
}

.form-field-group input[type="text"],
.form-field-group input[type="email"],
.form-field-group input[type="tel"],
.form-field-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 3px solid black;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem; 
  color: #111827;
  background-color: #ffffff;
  box-shadow: inset 2px 2px 0px rgba(0,0,0,0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field-group input:focus,
.form-field-group textarea:focus {
  outline: none;
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(84, 13, 110, 0.15);
}

/* Custom Large Form Submit Action Button */
.form-submit-btn {
  background-color: black;
  color: var(--color-yellow);
  border: 1px solid var(--color-yellow);
  padding: 16px 20px;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--color-yellow);
  text-align: center;
  margin-top: 15px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px var(--color-yellow);  
}

.form-submit-btn:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0px var(--color-blue);
}

/* Increase font size specifically for Hebrew */    
:lang(he) .form-submit-btn {
    font-family: 'Segoe UI', 'Arial', sans-serif !important;
    font-weight: 700 !important;     
    font-size: 1.45rem;  
    /* Force the browser to render using the Hebrew-supporting font glyphs */
    font-feature-settings: "kern" on;
}

/* ==========================================================================
   DIGITAL LIBRARY GRID & CARD DESIGNS
   ========================================================================== */

/* The outer grid wrapping your loop cards */
.book-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

/* Individual Book Card Link Configuration */
.book-link {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 3px solid var(--color-green); 
  border-radius: 16px;
  box-shadow: 4px 4px 0px var(--color-yellow);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover Accent Pops */
.book-link:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 0px var(--color-yellow); /* Highlights with master yellow */
}

/* Cover Wrapper Framework */
.book-cover-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4; /* Keeps card containers perfectly unified */
  background-color: #FFFBF7; /* Cozy cream color for empty fallbacks */
  border-bottom: 3px solid var(--color-green);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Images resize beautifully inside the constraint box */
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text Detail Content padding container */
.book-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.book-title {
  font-weight: 900;
  color: #540D6E;
  font-size: 1rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.book-source {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4B5563; /* Subtle slate grey for labels */
}

/* ==========================================================================
   LITERACY LEAGUE UNIQUE COMPONENT STYLES
   ========================================================================== */
.league-container { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 40px 20px;  
}

.program-hero-box {
  background-color: var(--color-cream); 
  border: 3px solid black; 
  padding: 2.5rem;
  border-radius: 24px;
  border-bottom: 6px solid black;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-text-content { 
  flex: 1 1 500px; 
  min-width: 280px; 
}

.hero-image-content { 
  flex: 1 1 300px; 
  max-width: 100%; 
}

.hero-image-content img { 
  width: 100%; 
  height: auto; 
  border: 4px solid black; 
  border-radius: 16px; 
  box-shadow: 5px 5px 0px #ffffff; 
  display: block; 
  max-height: 320px; 
  object-fit: cover; 
}

.intro-box { 
  background: rgba(255, 255, 255, 0.9); 
  border: 3px solid black; 
  padding: 20px; 
  border-radius: 16px; 
  box-shadow: 4px 4px 0px var(--color-blue); 
}

.benefits-grid { 
  margin-bottom: 50px; 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 25px; 
  padding: 10px; 
}

.benefit-card { 
  background: #ffffff; 
  border: 3px solid var(--color-blue); 
  padding: 25px; 
  border-radius: 16px; 
  box-shadow: 4px 4px 0px var(--color-blue); 
  position: relative; 
  overflow: hidden; 
}

.benefit-badge { 
  font-size: 1.5rem; 
  margin-bottom: 15px; 
  background: var(--color-yellow); 
  width: 45px; 
  height: 45px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 50%; 
  border: 2px solid var(--color-blue); 
}

/* Typography styles inside Benefit Grid Cards */
.benefit-card-content h4 { 
  margin: 0 0 10px 0; 
  color: var(--color-blue); 
  font-weight: 900; 
  font-size: 1.2rem; 
}

.benefit-card-content p { 
  margin: 0; 
  color: #4B5563; 
  line-height: 1.5; 
}

.benefit-card-content p.spacing-override { 
  margin-bottom: 12px; 
}

.benefit-card blockquote { 
  margin: 10px 0 0 0; 
  padding-left: 12px; 
  border-left: 4px solid var(--color-yellow); 
  font-style: italic; 
  font-size: 0.95rem; 
  color: #111827; 
  font-weight: 600; 
}

.form-section-wrapper { 
  max-width: 680px; 
  margin: 0 auto 50px auto; 
  background: #ffffff; 
  border: 4px solid black; 
  border-radius: 24px; 
  box-shadow: 6px 6px 0px var(--color-yellow); 
  overflow: hidden; 
}

.form-header-banner { 
  background-color: black;
  padding: 2rem; 
  color: #ffffff; 
  text-align: center; 
}

.form-body-content { 
  padding: 2.5rem 2rem; 
}

.impact-badge { 
  background-color: #F8FAFC; 
  border: 2px solid var(--color-yellow); 
  padding: 12px; 
  text-align: center; 
  border-radius: 12px; 
  font-weight: bold; 
  color: black; 
  margin-bottom: 30px; 
}

.league-form-grid { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}

.form-row-split { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 20px; 
}

.checkbox-field-group { 
  background: var(--color-cream); 
  border: 2px solid #E2E8F0; 
  padding: 15px; 
  border-radius: 12px; 
  display: flex; 
  align-items: flex-start; 
  gap: 12px; 
  margin-top: 5px; 
}

.checkbox-field-group input { 
  width: auto; 
  margin-top: 4px; 
  cursor: pointer; 
}

.checkbox-field-group label { 
  margin: 0; 
  font-weight: bold; 
  color: black; 
  cursor: pointer; 
}

 .donate-box {
  background: #EDF5FF;
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 60px;
  text-align: left;
  border: 3px solid  var(--color-blue);
}

.donate-box h3 {
  margin-top: 0; 
  font-size: 1.75rem; 
  color: var(--color-blue); 
  font-weight: 800;
}

/* Fixed the missing dot here */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

/* Made the full card surface behave like an interactive, classy button */
.donate-button-card {
  background: #FFFFFF;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  border: 3px solid #BFDBFE;
  box-shadow: 4px 4px 0px #BFDBFE;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-blue);
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.donate-button-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-blue);
  box-shadow: 5px 5px 0px var(--color-yellow);
}

.donate-button-card:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0px var(--color-blue);
}