body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f8f8f8;
    padding-top: 130px;
}

.container {
    width: 90%;
    margin: auto;
}





.header {
    background: #003366;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header h1 {
    margin: 0;
    font-size: 24px;
}

.footer {
    background: #003366;
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 7px;
}

.second-header-wrapper {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.second-header {
    background: #eaf1ff;
    color: #003366;
    padding: 10px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.horizontal-header {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.horizontal-header h2 {
    font-size: 1rem;
    color: #003366;
    margin: 0;
    padding: 0.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

.horizontal-header h2:hover {
    border-bottom: 2px solid #003366;
}








h1 {
    text-align: center;
}

h2 {
    text-align: center;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.5;
    text-transform: none;
    margin: 1rem 10rem;
    padding: 0 10rem;
    text-align: justify;
}

.navigation {
    display: flex;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab, .default-link, .contact-link {
    background: #0055aa;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.tab.active {
    background: #ffaa00;
    color: black;
}

.tab:hover, .default-link:hover, .contact-link:hover {
    background: #0077cc;
    color: white;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: bold;
}

a.styled-link {
    color: #fff;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
}

a.styled-link:hover {
    text-decoration: none;
}

a.styled-link-v2 {
    color: #000000;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
}

a.styled-link-v2:hover {
    text-decoration: none;
}

p {
    text-align: center;
    padding: 0 5%;
}





html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}














.toc-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.toc {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border-radius: 12px;
    background-color: #f4f4f4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.toc details {
    margin-bottom: 15px;
    border: 2px solid #003366;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

.toc summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 12px 16px;
    background-color: #eaf1ff;
    border-bottom: 1px solid #003366;
    list-style: none;
}

.toc summary::-webkit-details-marker {
    display: none;
}

.toc summary::before {
    content: "➕ ";
    margin-right: 5px;
}

.toc details[open] summary::before {
    content: "➖ ";
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
}

.toc li {
    margin: 8px 0;
    padding: 8px 12px;
    background-color: #fdfdfd;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.toc li a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}

.toc li a:hover {
    font-weight: bold;
}











.header-spacer {
  height: 130px;
}

@media (max-width: 850px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .button-group {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .header-spacer {
    height: 50px;
  }

  h1, h2 {
    font-size: 1.2rem;
    text-align: center;
  }

  h3 {
    margin: 1rem 2rem;
    padding: 0 1rem;
  }

  .container {
    width: 95%;
  }

  .toc {
    padding: 16px;
  }

  .toc li {
    font-size: 0.9rem;
  }

  .horizontal-header {
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem;
  }

  .horizontal-header h2 {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 18px;
  }

  .second-header {
    padding: 6px;
  }

  .horizontal-header h2 {
    font-size: 0.85rem;
    padding: 0.4rem;
  }

  h3 {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}