/* TOC Page Specific Styles */
.toc-page {
    background-color: #f7f2e4;
    padding: 40px 20px;
  }
  
  .toc-main-title {
    font-family: 'Bangers', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  }
  
  .toc-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
  }
  
  .toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 20px;
    gap: 10px; /* Reduce gap between grid items */
    padding: 10px; /* Less padding around the grid */
  }
  
  .toc-item {
    background-color: #86b6c6;
    border: 3px solid #000;
    padding-bottom: 20px;
    position: relative;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
    max-width: 320px; /* Reduce from whatever it is currently */
    height: auto; /* Allow height to adjust naturally */
    padding: 15px; /* Slightly reduce padding */
    margin: 10px; /* Add some margin between items */
  }
  

  .toc-item:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
  }
  
  .toc-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 70px;
    height: 70px;
    background-color: #d95e40;
    color: #fff;
    font-family: 'Bangers', cursive;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
  }
  .topic-icon {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border: 2px solid #000;
    margin: 8px 0 10px;
    display: block;
  }
  
  .topic-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  
  /* Individual topic icons - you can use background images or SVGs */
  .system-prompt-icon {
    background-color: #86b6c6;
    background-image: url('../assets/icons/system-prompt.svg');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .excessive-agency-icon {
    background-color: #9a7bb8;
    background-image: url('../assets/icons/excessive-agency.svg');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  /* Continue for all 10 topics */
  
  .topic-title {
    font-family: 'Bangers', cursive;
    font-size: 24px;
    margin: 0 0 10px;
    text-align: center;
  }
  
  .topic-desc {
    font-size: 14px;
    text-align: center;
    margin: 0;
  }
  
  .reading-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .start-reading-btn {
    font-family: 'Bangers', cursive;
    font-size: 24px;
    background-color: #e6a74c;
    color: #000;
    padding: 10px 30px;
    border: 3px solid #000;
    text-decoration: none;
    margin-bottom: 20px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  
  .start-reading-btn:hover {
    transform: translateY(-3px);
    background-color: #d95e40;
    color: #fff;
  }
  
  .reading-mode {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .mode-btn {
    background-color: #f2e7c9;
    border: 2px solid #000;
    padding: 5px 15px;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .mode-btn.active {
    background-color: #d95e40;
    color: #fff;
  }
  
  /* Responsive design */
  @media (max-width: 768px) {
    .toc-grid {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .toc-main-title {
      font-size: 2.5rem;
    }
  }

/* Smaller number badge — less overlap with illustration title */
.toc-number {
  width: 44px !important;
  height: 44px !important;
  font-size: 16px !important;
  top: -8px !important;
  left: -8px !important;
  bottom: auto !important;  /* cancel any bottom value from earlier */
}