/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f9fc;
    /* Light background for a soft reading experience */
    color: #333;
    /* Dark gray text for good readability */
    line-height: 1.6;
    /* Comfortable line spacing */
    padding: 20px;
    margin: 0;
}



/* Headings */
h1 {
    color: #0056b3;
    /* Blue for main title */
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    text-align: center;
    width: 100%;
    background-color: darkslategrey;
    color: #f0f4f8;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h3 {
    color: #003366;
    /* Darker blue for section headings */
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    text-transform: capitalize;

}

/* Add horizontal line under each h3 */
h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0056b3;
    /* Same color as the main title for consistency */
    margin-top: 8px;
    margin-bottom: 15px;
}

/* Lists */
ul,
ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

/* List Items */
ul li,
ol li {
    margin-bottom: 10px;
}

/* Blockquotes or Emphasized Text */
em {
    color: #d9534f;
    /* Red for emphasis */
    font-style: italic;
}

/* Links */
a {
    color: #0056b3;
    /* Blue links */
    text-decoration: none;
}

/* Definition Lists */
dl dt {
    font-weight: bold;
    margin-top: 10px;
    color: #0056b3;
}

dl dd {
    margin-left: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Block Styling for better clarity */
div {
    background-color: #ffffff;
    /* White background for notes */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    page-break-inside: avoid;
}

span {
    color:forestgreen;
}

.open {
    /*background-color: rgb(240, 243, 231);*/
    border-style: dashed;
}

/* Make text inside lists stand out */
ul li,
ol li {
    padding: 5px;
    background-color: #f0f4f8;
    /* Subtle background to separate list items */
    border-radius: 5px;
}

p {
    margin-bottom: 15px;
}

pre {
    border-radius: 10px; /* Adjust the value for the roundness you want */
    overflow: hidden;
    font-size: large;
    text-align: left;
   
    
}

code {
    display: inline-block;
    text-align: left;
    white-space: pre;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th, td {
    text-align: left;
    padding: 12px 15px;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.collapsible-content {
    display: none; /* Content starts hidden */
  }
  
/* Arrow functionality for h2 headers */
h2.collapsible-header {
    position: relative; /* Ensure the pseudo-element positions relative to the h2 */
  }
  
  h2.collapsible-header::before {
    content: '\25B6'; /* Right-pointing triangle for collapsed state */
    position: absolute; /* Position relative to the h2 */
    left: 10px; /* Adjust spacing to position arrow close to text */
    top: 50%; /* Center the arrow vertically */
    transform: translateY(-50%); /* Proper vertical alignment */
    font-size: 1.2em; /* Arrow size for h2 */
    color: #f0f4f8; /* Match h2 text color */
    transition: transform 0.3s ease; /* Smooth rotation for expanded state */
  }
  
  h2.collapsible-header.active::before {
    content: '\25BC'; /* Downward-pointing triangle for expanded state */
  }
  
  /* Arrow functionality for h3 headers */
h3.collapsible-header {
    position: relative; /* Ensure the pseudo-element positions relative to the text */
  }
  
  h3.collapsible-header::before {
    content: '\25B6'; /* Right-pointing triangle for collapsed state */
    position: absolute; /* Position relative to the h3 element */
    left: -20px; /* Adjust spacing to position arrow close to text */
    top: 50%; /* Center vertically with the text */
    transform: translateY(-50%); /* Correct vertical alignment */
    font-size: 1em; /* Slightly smaller size for h3 */
    color: #003366; /* Match h3 text color */
    transition: transform 0.3s ease; /* Smooth animation for arrow */
  }
  
  h3.collapsible-header.active::before {
    content: '\25BC'; /* Downward-pointing triangle for expanded state */
  }
  
  

/* Optional: Change font size for mobile readability */
@media (max-width: 768px) {
    body {
        font-size: 1.1em;
    }

    h1,
    h3 {
        font-size: 1.5em;
    }
}
