/* ---------- powered by designaspects.digital-------------- */

/* Base header styling */
header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 40px;
  background: linear-gradient(to right, #f4a300, #fff);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-family: "Open Sans", sans-serif;
  line-height:0px!important;
}


.logo-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-title img {
  width: 55px;
  height: auto;
}


/* Right-side content (menu + language) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Desktop menu layout */
nav.menu ul.nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav.menu ul.nav-list li a {
  text-decoration: none;
  color: #2b1b0f;
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
}

/* Hover + Active */
nav.menu ul.nav-list li a:hover {
  color: #c96514;
}

.nav-list a.active {
  font-weight: 700;
  color: #fff;
  background-color: #c96514;
  border-radius: 8px;
  padding: 6px 14px;
  border-bottom: 2px solid #e0a96d;
}

/* Language selector */
select.language {
  padding: 4px 6px;
  border: 1px solid #c96514;
  border-radius: 4px;
  background-color: #fff4e0;
  font-weight: 500;
  color: #2b1b0f;
}

/* ---------------- Top Navigation ---------------- */
.topnav {
  overflow: hidden;
}

.topnav a {
  float: left;
  display: block;
  color: #2b1b0f;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.3s ease, color 0.3s ease;
}

.topnav a:hover {
  background-color: #ffd392;
  color: #c96514;
}

.topnav a.active {
  background-color: #c96514;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
}

.topnav .icon {
  display: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2b1b0f;
  margin: 0;
}

.logo-text span {
  font-size: 0.95rem;
  color: #444;
  margin-top: 2px;
}
/* ---------------- Mobile (max 600px) ---------------- */
@media screen and (max-width: 600px) {
  header.navbar {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    position: relative;
  }

  .logo-title img {
    width: 60px;
  }

  .logo-title h1,
  .logo-title span {
    font-size: 1rem;
  }

  /* 🟠 Space between dropdown and hamburger */
 /* Align language dropdown to right with clean spacing */
select.language {
  order: 3;
  position: absolute;
  right: 70px;         /* clean gap before hamburger */
  top: 50%;
  transform: translateY(-50%);  /* vertically center it */
  background-color: #fff4e0;
  border: 1px solid #c96514;
  border-radius: 4px;
  padding: 4px 6px;
  font-weight: 500;
  color: #2b1b0f;
  z-index: 1003;
}


  .topnav a {
    display: none;
  }

  .topnav a.icon {
    display: block;
    position: relative;
    top: 0;
    right: 0;
    margin-left: auto;
    width: 35px;
    height: 35px;
    background-image: url(../images/Hamburger_icon.png);
    background-repeat: no-repeat;
    background-size: 65%;
    background-position: center;
    z-index: 1002;
  }

  .topnav.responsive {
    position: absolute;
    left: 0;
    top: 70px;
    background-color: #ffd392;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-top: 1px solid #e0a96d;
    animation: slideDown 0.3s ease forwards;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    padding: 12px 20px;
    font-size: 16px;
    color: #2b1b0f;
    background: transparent;
    border-radius: 6px;
  }

  .topnav.responsive a:hover {
    background: #f2c178;
    color: #2b1b0f;
  }

  .topnav.responsive a.active {
    background-color: #c96514;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    border-bottom: 2px solid #e0a96d;
  }

  @keyframes slideDown {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}

/* ---------------- Tablet / Small Laptop (max 1024px) ---------------- */
@media screen and (max-width: 1024px) {
  .subtitle { display: none; }
  .topnav a { font-size: 13px; }
}

/* ---------- DeepDive Layout & Sidebar ---------- */

body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
  margin: 0;
}

/* Two-column layout (TOC + content) */
.deepdive-container {
  display: flex;
  gap: 10px;
}

/* ===== Left TOC (sidebar) ===== */
.toc {
  width: 280px;
}

.content-viewer {
  flex: 1;
}

/* TOC heading + list styling */
.toc h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #333;
  text-align: center;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin: 6px 0;
}

.toc a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.toc a:hover {
  background: #f2f2f2;
  color: #e57c1f; /* orange hover */
}

.toc a.active {
  background: #e57c1f;
  color: #fff;
  font-weight: bold;
}

/* ===== Topic Content Styling ===== */
#topic-content {
  max-width: 900px;
  margin: auto;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

#topic-content h1,
#topic-content h2,
#topic-content h3 {
  color: #4a2c0a;
  margin-top: 1em;
}

/* ===== Pagination Buttons ===== */
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.pagination button {
  background: #e57c1f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.pagination button:hover {
  background: #c96514;
}

/* ===== Sidebar Toggle (Expand / Collapse Topics) ===== */
#toggleNavBtn ul {
  padding: 10px;
}

#toggleNavBtn ul li {
  list-style: none;
  text-align: left;
  padding: 5px;
  line-height: 30px;
}

#toggleNavBtn ul li a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

#showNav a.active {
  background-color: #c96514;
  color: white;
  font-weight: bold;
  display: block;
  text-indent: 5px;
}

#showNav {
  display: none;
}

.hidden {
  display: none;
}

/* ===== Responsive Behavior ===== */
@media screen and (min-width: 400px) {
  #toggleNavBtn {
    background-color: #ffd392;
    border: none;
    position: absolute;
  }
}

@media screen and (min-width: 1020px) {
  #showNav {
    display: block;
  }

  .hidden {
    display: block;
  }

  #toggleNavBtn {
    background-color: #ffd392;
    border: none;
    position: relative;
  }

  #showNav ul {
    padding: 10px;
  }

  #showNav ul li {
    list-style: none;
    text-align: left;
    padding: 5px;
    line-height: 30px;
  }

  #showNav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
  }

  #showNav a.active {
    background-color: #c96514;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
  }
}

/* Smooth hide animation for sidebar */
.deepdive-sidebar.hidden {
  transform: translateX(-100%);
}

/* ---------------- Mobile (max 600px) ---------------- */
@media screen and (max-width: 600px) {
  header.navbar {
    display: flex;
    flex-wrap: wrap; /* ✅ allows wrapping to prevent overlap */
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    position: relative;
  }

  /* ✅ Logo smaller on mobile */
  .logo-title img {
    width: 55px;
  }

  .logo-title h1,
  .logo-title span {
    font-size: 1rem;
  }

  /* ✅ Group the right-side icons neatly */
  .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
  }

  /* ✅ Keep language dropdown visible, not overlapped */
  select.language {
    position: relative;   /* no absolute positioning */
    right: auto;
    top: auto;
    transform: none;
    background-color: #fff4e0;
    border: 1px solid #c96514;
    border-radius: 4px;
    padding: 4px 6px;
    font-weight: 500;
    color: #2b1b0f;
    z-index: 1003;
  }

  /* ✅ Hamburger icon aligned cleanly next to dropdown */
  .topnav a.icon {
    display: block;
    width: 35px;
    height: 35px;
    background-image: url(../images/Hamburger_icon.png);
    background-repeat: no-repeat;
    background-size: 65%;
    background-position: center;
    cursor: pointer;
    z-index: 1002;
  }

  /* Hide regular menu links */
  .topnav a {
    display: none;
  }

  /* ✅ Responsive dropdown menu (when opened) */
  .topnav.responsive {
    position: absolute;
    left: 0;
    top: 65px;
    background-color: #ffd392;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #e0a96d;
    animation: slideDown 0.3s ease forwards;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    padding: 12px 20px;
    font-size: 16px;
    color: #2b1b0f;
    background: transparent;
    border-radius: 6px;
  }

  .topnav.responsive a:hover {
    background: #f2c178;
    color: #2b1b0f;
  }

  .topnav.responsive a.active {
    background-color: #c96514;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    border-bottom: 2px solid #e0a96d;
  }

  @keyframes slideDown {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}
