
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  background: #f6f8fb;
  color: #1f2933;
  line-height: 1.6;
}

/* smoother text */
h1, h2, h3 {
  color: #0d66af;
  margin-top: 2rem;
}

p {
  margin: 1rem 0;
}



.content {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}


.content_index {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/*------------ Top Navigation Bar --------------*/
.site-header {
  background: linear-gradient(135deg, #07599C, #0d66af);
  color: white;
  padding: 1.2rem 2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

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

.site-title a {
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  display: inline-block; /* important so underline matches text width */
  position: relative;
}

/* underline only for title */


.site-title a::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.85);
  margin-top: 6px;
  border-radius: 2px;
  height: 4px;
  opacity: 0.9;
}

.site-title {
  margin: 0;
  line-height: 1.2;
}

.site-title a:hover {
  opacity: 0.9;
}



.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 3px 0;
  position: relative;
}

/* hidden underline */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.2s ease;
  left: 50%;
  transform: translateX(-50%);
}

/* show underline on hover */
.nav-links a:hover::after {
  width: 100%;
}

.site-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logos img {
  opacity: 0.95;
}

.cesga-logo {
  height: 60px;   
  width: auto;   
}
.quorum-logo {
  height: 80px;   
  width: auto;  
}




/*------------ Contents --------------*/



.notebook-wrapper {
    display: flex;
    flex-direction: row; /* Aligns items horizontally */
    gap: 30px; /* Space between sidebar and notebook */
    max-width: 100%;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;

  position: sticky;
  top: 20px;

  height: fit-content;   /* key change */
  overflow-y: auto;

  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Remove default bullet points and style links */
.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

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

.sidebar a {
  text-decoration: none;
  color: #0d66af;
  font-size: 14px;
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.sidebar a:hover {
  background-color: #e8f2fb;
}

.notebook-content {
  flex-grow: 1;
  min-width: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  padding: 1rem;
}

/* Ensure iframe fits perfectly */
#notebook-frame {
  width: 100%;
  height: 100vh;
  border: none;
  border-radius: 8px;
}

/* Mobile Responsive: Stack them on small screens */
@media (max-width: 768px) {
    .notebook-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        margin-bottom: 20px;
    }
}


/*------------ Site Fotter --------------*/
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9em;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center; /* Add this line to center horizontally */
  gap: 2rem;
  margin-top: 1rem; /* Optional: Adds a little space between the text and logos */
}

.cdti-logo {
  height: 60px;   
  width: auto;   
}
.pr-logo {
  height: 80px;   
  width: auto;  
}



hr {
  border: none;
  height: 2px;
  margin: 3rem 0 2rem 0;
  background: linear-gradient(to right, #0d66af, #07599C, #0d66af);
}

