@media (max-width: 768px) {
    #table-of-contents {
      width: 95%; /* Nearly full width */
      padding: 0.8rem; /* Reduce padding */
      font-size: 0.9rem; /* Adjust font size for smaller screens */
      margin: 1rem auto; /* Center TOC */
    }
  
    #table-of-contents h2 {
      font-size: 1.2rem; /* Smaller heading for better fit */
    }
  }
  
  @media (max-width: 480px) {
    #table-of-contents {
      width: 100%; /* Full width for very small screens */
      padding: 0.5rem; /* Minimal padding */
      font-size: 0.85rem; /* Smaller text size */
    }
  
    #table-of-contents h2 {
      font-size: 1rem; /* Even smaller heading */
    }
  }

main section {
    width: 85%; /* Take full width by default */
    max-width: 800px; /* Center content in a specific width */
    margin: 2rem auto; /* Center horizontally and add vertical spacing */
    padding: 1rem;
    background-color: #f9f9f9; /* Optional: Add background for clarity */
    border-radius: 5px; /* Optional: Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Subtle shadow for modern look */
    
  }

  blockquote {
    font-style: italic;
    color: #555;
    border-left: 4px solid #ccc;
    padding: 10px 20px;
    margin: 20px 0;
    background: #f9f9f9;
  }

  blockquote {
    transition: all 0.3s ease;
  }
  
  blockquote:hover {
    background: #e8f5e9;
    border-left-color: #2E7D32;
  }
  
/* Responsive Design Adjustments */
@media (max-width: 768px) {
    main section {
      width: 90%; /* Use almost full width for better fit */
      padding-top: calc(85px + 0.5rem); /* Header height + spacing */
      padding: 0.8rem; /* Reduce padding */
      box-shadow: none; /* Simplify design for mobile */
    }
  
    blockquote {
      padding: 8px 15px; /* Adjust padding */
      margin: 15px 0; /* Reduce vertical spacing */
      font-size: 0.9rem; /* Slightly smaller text */
    }
  }
  
  @media (max-width: 480px) {
    main section {
      width: 90%; /* Full width for very small screens */
      padding-top: calc(85px + 0.5rem); /* Adjust padding for small screens */
      padding: 0.5rem; /* Further reduce padding */
      margin: 1rem auto; /* Smaller vertical spacing */
      line-height: 1.5; /* Slightly tighter line spacing */
    }
  
    blockquote {
      font-size: 0.85rem; /* Further reduce text size */
      padding: 5px 10px; /* Compact padding */
    }
  }

  main.toc {
    width: 90%; /* Responsive width */
    max-width: 800px; /* Restrict maximum width */
    margin: 1rem auto; /* Center on the page */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 1rem;
    padding-top: calc(85px + 1rem);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional subtle shadow */
    box-sizing: border-box; /* Prevent overflow */
    overflow-x: hidden; /* Hide horizontal overflow */
  }
  
  main.toc h2 {
    font-size: 1.5rem; /* Adjust size */
    margin-bottom: 1rem;
  }
  
  main.toc ul {
    list-style: none; /* Remove bullets */
    padding: 0;
  }
  
  main.toc li {
    margin-bottom: 0.5rem;
  }
  
  main.toc a {
    text-decoration: none; /* Remove underline */
    color: #0073e6; /* Link color */
    font-weight: bold;
  }
  
  main.toc a:hover {
    text-decoration: underline; /* Add underline on hover */
  }
  
  /* Responsive adjustments for TOC */
  @media (max-width: 768px) {
    main.toc {
      width: 95%; /* Nearly full width */
      padding: 0.8rem;
      font-size: 0.9rem;
    }
  
    main.toc h2 {
      font-size: 1.2rem; /* Adjust heading size */
    }
  }
  
  @media (max-width: 480px) {
    main.toc {
      width: 100%; /* Full width */
      padding: 0.5rem;
      font-size: 0.85rem; /* Adjust font size */
    }
  
    main.toc h2 {
      font-size: 1rem; /* Smaller heading */
    }
  }

  #back-to-top {
    position: fixed;
    bottom: 20px; /* Distance from the bottom of the screen */
    right: 20px; /* Distance from the right of the screen */
    display: none; /* Hidden by default */
    width: 50px; /* Button width */
    height: 50px; /* Button height */
    background-color: #333; /* Background color */
    color: #fff; /* Icon color */
    text-align: center; /* Center the icon */
    line-height: 50px; /* Align the icon vertically */
    font-size: 24px; /* Icon size */
    border-radius: 50%; /* Make it circular */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Add shadow */
    cursor: pointer;
    z-index: 1000; /* Ensure it appears above other elements */
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in/out */
  }
  
  #back-to-top:hover {
    background-color: #555; /* Darken on hover */
  }
  
 
  