
@font-face {
  font-family: Satoshi;
  src: url(../Assets/Fonts/Satoshi.ttf);
}


/* General reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1 {

  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
}

body {
  font-family: Satoshi, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #222222;
}

li {
  list-style-type: none;
  padding: 8px;
}

a {
  text-decoration: none;
  color: #222222;
}

/* ======= GLOBAL STYLES ======= */
html {
  scroll-behavior: smooth;
}

.center-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.black-btn {
  display:flex;
  gap:10px;
  background-color: #222222;
  color:white;
  padding:8px 20px;
  width:fit-content;
  border-radius: 56px;
  border: #222222 solid 3px;
  font-size: 18px;
  font-weight: 700;
}

.black-btn:hover {
  background-color: black;
  border: white solid 3px;
  filter: invert(100%);
}

.outline-btn {
  display:flex;
  gap:10px;
  color:#222222;
  padding:8px 20px;
  width:fit-content;
  border-radius: 56px;
  border: #222222 solid 3px;
  font-size: 18px;
  font-weight: 600;
}

.outline-btn:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

footer {
  background-color: black;
  color: white;
  width:100%;
  padding:5% 10%;
  display:flex;
  gap:10%;
  font-size: 16px;
}

footer a {
  color:white;
}

footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
}

.footer-div {
  display: flex;
  gap:10%;
  width:100%;

}

.footer-links-div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width:100%;

}

/* ======= HEADER NAVIGATION ======= */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  color: #222222;
  padding: 0px 10%;
  border-bottom: 3px solid #D2D2D2;
  
}

.logo {
  font-weight: bold;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-button,
.nav-link {
  background: none;
  border: none;
  color: #222222;
  font-size: 16px;
  font-weight: 400;
  font-family: Satoshi, sans-serif; 
  cursor: pointer;
  position: relative;
  padding: 30px 12px;
  text-decoration: none;
}

.nav-button {
  display: flex;
  justify-content: center;
  gap: 8px;
}

button {
    font-family: Satoshi, sans-serif;
}

.arrow-icon {
  margin-left: 5px;
  vertical-align: middle;
  fill: white;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  color: pink;
  min-width: 110%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  z-index: 10;
  border-radius: 0 0 12px 12px;
  padding: 8px;
}

.dropdown-menu li {
  padding: 10px 14px;
  cursor: pointer;
}

.dropdown-menu li:hover {
  background-color: #dddddd;
  color:#eeeeee;
  border-radius: 8px;
}

.dropdown-menu li:hover a {
  color: black;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}

/* ======= SIDEBAR ======= */
.container {
  display: flex;
  flex: 1;
  width: 100%;
}

.sidebar {
  width: 250px;
  background-color: #f4f4f4;
  border-right: 1px solid #ddd;
  padding: 20px;
  position: sticky;
  top: 64px; /* Adjusted for header height */
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.category {
  margin-bottom: 10px;
}

.category-header {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
  padding: 10px;
  cursor: pointer;
  background-color: #e0e0e0;
}

.category-content {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fafafa;
}

.category-content li {
  padding: 8px 15px;
  cursor: pointer;
}

.category-content li:hover {
  background-color: #ddd;
}

/* Active page style */
.category-content li.active {
  background-color: #c5cae9;
  font-weight: bold;
}

/* ======= MAIN CONTENT ======= */

.main-container {
  display: grid;
	grid-template-columns: 1fr 15em;
	max-width: 100em;
	width: 90%;
	margin-left:10%;
  padding: 5% 0%;
  gap:10%;
}

.main-container > nav {
	position: sticky;
	top: 2rem;
	align-self: start;
}

.content {
  flex: 1;
  padding: 1%;
  gap: 10px
  
}

.accordion-section {
    display:flex;
    flex-direction: column;
    gap:1.5em;
    margin-bottom: 0.8em;

}

.section-title {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 0.8em;
    margin-top: 1.1em;
}

.accordion-item {
    outline: #cccccc solid 1px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2)
}

.accordion {

  cursor: pointer;
  padding: 24px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 15px;
  transition: 0.4s;
  background-color: white;
  border-radius: 12px;

}


.panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}


 /* Customize the label (the container) */
.container {
  display: block;
  position: relative;
  padding-left: 5%;
  cursor: pointer;
  font-size: 20px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: white;
  border-radius: 12%;
  outline: solid black 1px;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: white;
}

/* When the checkbox is checked, add a black background */
.container input:checked ~ .checkmark {
  background-color: black;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
} 

.accordion.active .expand-arrow {
  transform: rotate(180deg);
}

.checkbox-item-title {

  display: flex;
  justify-content: start;
  align-items: center;
  height:fit-content;
  font-family: Satoshi,sans-serif;

}

.panel-text {
    padding: 2.5% 4% 4.5% 4.5%;
    height:fit-content;
}

#intro {
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin-bottom: 3em;
}

#intro li {
  list-style-type: disc;
  list-style-position: inside;
}

/*===== STYLING PANEL TEXT =====*/
.panel-section {
    display:flex;
    flex-direction: column;
    gap:0.5em;
    margin-bottom: 2em;
}

.panel-header {
    font-weight: bold;
    font-size: 16px;
}

.panel-section ul li {
    list-style: disc;
    margin-left: 1.1em;
}

.panel-section ol li {
    list-style: decimal;
    margin-top:1em;
    margin-left: 1.1em;
    font-family: Satoshi,sans-serif;
    font-weight: 400;
    line-height: 0.25em;
}

.panel-section a {
    text-decoration: underline;
    text-decoration-color: #606367;
    text-decoration-thickness: 1px;
}

.w3c-banner {
  outline: solid 1px black;
  border-radius: 12px;
  padding: 24px;
  margin: 5% 0%;
}

.w3c-banner a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #606367;
}

nav {
    position: sticky;
    top: 10em;
    
}

#toc h4 {
    color: #606367;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 18px;
}

#toc ul {
    display: block;
}

#toc li {
    border-left: solid 1px #DDDDDD;
    padding-left: 20px;
    
}

#toc li a {
    color: #606367;
}


#toc li.active > a {
	color: #333;
	font-weight: 700;
}

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