@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');



/* Reset some defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

a {
  color: #005185;
  text-decoration: none;    /* optional: remove underlines */
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-title {
  color: #fff;           /* white text, for example */
  text-decoration: none; /* no underline */
  font-weight: 500;
  font-size: 1.25rem;
  flex: 1;
}


body {
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

/* Header */
.site-header {
  background-color: #0A1C2B;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  position: fixed;   /* ← fix it */
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1;
}

.layout {
  display: flex;
  height: calc(100vh - 56px);  /* full viewport minus header height */
  margin-top: 56px;            /* drop below the header */
  overflow: hidden;
}

.menu-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.5rem;
  margin-right: 1rem;
}


.search-wrapper {
  position: relative;
  margin-right: 1rem;
}

.search-wrapper input[type="search"] {
  padding: 0.25rem 2.5rem 0.25rem 0.5rem;
  border: none;
  border-radius: 2px;
}

.search-icon {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.github-link {
  color: inherit;
  text-decoration: none;
  font-size: 1.5rem;
}

/* 4) Sidebar */
.sidebar {
  flex: 0 0 220px;       /* fixed width */
  background: #f9f9f9;
  border-right: 1px solid #ddd;
  padding: 1rem;
  overflow-y: auto;      /* scroll inside */
}
.sidebar.collapsed {
  flex: 0 0 0;
  padding: 0;
  overflow: hidden;
}
.sidebar-title {
  font-size: 1.1rem; margin-bottom: 1rem;
}
.sidebar-list {
  list-style: none;
}
.sidebar-list li + li {
  margin-top: 0.75rem;
}
.sidebar-list a {
  text-decoration: none; color: #005185;
}
.sidebar-list a:hover {
  text-decoration: underline;
}


/* Main content */
.content {
  padding-top: 40px;
  /* padding-right:0px; */
  overflow-y: auto;
  margin: 0.5rem 0 0 2rem;
  flex: 1 1 auto;                  /* grow AND shrink */
  min-width: 0;  
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.content p {
  margin-bottom: 1.5rem;
}

/* List styling */
.tutorial-list {
  list-style: none;

}

.tutorial-list li + li {
  margin-top: 0.5rem;
}

.github-icon {
  width: 60px;        /* or whatever fits your header */
  height: auto;       /* preserve aspect ratio */
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;   
}

.tutorial-list .subchapters {
  list-style: none;
  margin: 0.5rem 0 0 1.5rem;
  padding: 0;
  font-size: 0.9rem;
}
.tutorial-list .subchapters li + li {
  padding-top: 0px;
}
.tutorial-list .subchapters a {
  color: #005185;
}


/* On narrower screens, increase left/right padding */
@media (max-width: 800px) {
  .content {
    padding: 0rem 0rem;
    flex: 1 1 100%;    /* now 2rem all around */
  }
  .chapter {
    margin-top: 2rem;        /* space before each chapter */
    margin-bottom: 3rem;
    padding-right: 20px     /* space after each chapter */
  }
  .sidebar {
    padding: 2rem 2rem;
    flex: 1 1 100%; 
    z-index: 1001;   /* above main but below header */
  }
  .sidebar.collapsed {
    transform: translateX(0);
  }
}

.chapter {
  margin-top: 2rem;        /* space before each chapter */
  margin-bottom: 3rem;
  padding-right: 40px     /* space after each chapter */
}
