@charset "UTF-8";

/* ====================
 * CSS Reset & Base Styles
 * ==================== */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
  margin-bottom: 0;
}

ul, ol {
  padding-left: 0;
  margin-top: 0;
  list-style: none;
  margin-bottom: 1em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* ====================
 * Typography
 * ==================== */
h1 {
  font-size: 2.4rem;
  margin-bottom: 0.2em;
  font-weight: bold;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 0.2em;
  font-weight: bold;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2em;
  font-weight: bold;
}

p {
  margin-bottom: 1em;
  text-align: left;
}

/* ====================
 * Header Styles
 * ==================== */
header {
  width: 100%;
  background-color: #000;
  padding: 15px 20px;
  box-sizing: border-box;
  color: #fff;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

header .site-logo img {
  max-height: 50px;
  width: auto;
}

#global-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

#global-nav li {
  margin-left: 25px;
}

#global-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
  transition: color 0.3s ease;
}

#global-nav a:hover {
  color: #90ee90;
}

/* ====================
 * Main Content Styles
 * ==================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

article {
  margin-bottom: 40px;
}

main section {
  margin-bottom: 45px;
}

main section:last-of-type {
  margin-bottom: 0;
}

figure {
  margin: 1em auto;
  max-width: fit-content;
}

figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

figcaption {
  text-align: left;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #666;
}

p.image-caption {
  text-align: left;
  margin: 0.5em auto 1.5em;
  max-width: fit-content;
}

.table-of-contents {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.table-of-contents h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.table-of-contents ul {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 0;
}

.table-of-contents li {
  margin-bottom: 8px;
}

.table-of-contents a {
  color: #007bff;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.faq-section {
  background-color: #f0f8ff;
  padding: 25px;
  border-radius: 8px;
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  font-size: 1.1rem;
  color: #0056b3;
  margin-bottom: 0.2em;
}

.faq-item p {
  padding-left: 1.5em;
}

/* ====================
 * Footer Styles
 * ==================== */
footer {
  background-color: #000 !important;
  color: #fff;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
  width: 100%;
}

.footer-col-1,
.footer-col-2,
.footer-col-3 {
  flex: 1;
  padding: 0 15px;
}

footer .site-logo img {
  max-height: 60px;
  width: auto;
}

footer h3 {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #eee;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li:last-child {
  margin-bottom: 0;
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #90ee90;
}

.copyright {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.copyright p {
  text-align: center;
  font-size: 0.85em;
  color: #ccc;
  margin-bottom: 0;
}

/* ====================
 * Column Layouts (Common Styles)
 * ==================== */
.three-column-container,
.two-column-container,
.four-column-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

.column {
  flex: 1;
  text-align: center;
}

.column img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

.column .column-comment {
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  margin-top: 0;
  margin-bottom: 1em;
}

h1 + .three-column-container,
h2 + .three-column-container,
h3 + .three-column-container,
h4 + .three-column-container,
h5 + .three-column-container,
h6 + .three-column-container,
h1 + .two-column-container,
h2 + .two-column-container,
h3 + .two-column-container,
h4 + .two-column-container,
h5 + .two-column-container,
h6 + .two-column-container,
h1 + .four-column-container,
h2 + .four-column-container,
h3 + .four-column-container,
h4 + .four-column-container,
h5 + .four-column-container,
h6 + .four-column-container {
    margin-top: 20px;
}

p.section-end-cta {
  margin-bottom: 50px;
}

/* ====================
 * 2 Column Content Layout
 * ==================== */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
}

.main-content {
    flex: 3;
    min-width: 60%;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.sidebar h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #007bff;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* ====================
 * Mobile Responsiveness (Max-width: 768px)
 * ==================== */
@media (max-width: 768px) {
  /* Header Mobile */
  header .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  header #global-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
  }

  header #global-nav li {
    margin: 5px 10px;
  }

  header #global-nav a {
    white-space: normal;
  }

  /* Main Content Mobile */
  main {
    padding: 15px;
  }

  main section {
    margin-bottom: 35px;
  }

  /* Typography Mobile */
  h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2em;
  }

  h2 {
    font-size: 1.4rem;
    margin-bottom: 0.2em;
  }

  h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2em;
  }

  /* Footer Mobile */
  footer {
    padding: 30px 15px 15px;
  }

  footer .footer-inner {
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
  }

  footer .footer-col-1,
  footer .footer-col-2,
  footer .footer-col-3 {
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
  }

  footer .footer-col-1 {
    order: -1;
  }

  .copyright {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding: 0 15px;
  }
  .copyright p {
    text-align: center;
  }

  /* Column Layouts Mobile */
  .three-column-container,
  .two-column-container,
  .four-column-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .column {
    width: 90%;
    margin: 0 auto;
  }

  h1 + .three-column-container,
  h2 + .three-column-container,
  h3 + .three-column-container,
  h4 + .three-column-container,
  h5 + .three-column-container,
  h6 + .three-column-container,
  h1 + .two-column-container,
  h2 + .two-column-container,
  h3 + .two-column-container,
  h4 + .two-column-container,
  h5 + .two-column-container,
  h6 + .two-column-container,
  h1 + .four-column-container,
  h2 + .four-column-container,
  h3 + .four-column-container,
  h4 + .four-column-container,
  h5 + .four-column-container,
  h6 + .four-column-container {
      margin-top: 15px;
  }

  p.section-end-cta {
    margin-bottom: 30px;
  }

  .three-column-container .column .column-comment,
  .two-column-container .column .column-comment,
  .four-column-container .column .column-comment {
    font-size: 1.1rem !important;
  }

  /* 2 Column Content Layout Mobile Adjustments */
  .content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .main-content,
  .sidebar {
    flex: none;
    width: 100%;
    min-width: unset;
  }
}