/* General Styles */
body {
  overflow-wrap: break-word;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a; /* Slightly lighter dark */
  color: #f0f0f0; /* Off-white for better contrast */
  line-height: 1.7; /* Increased line-height for readability */
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure full viewport height */
  transition: background-color 0.3s ease; /* Smooth background transition */
}

/* Container and Header */
.container {
  max-width: 1200px; /* Wider container */
  margin: 0 auto;
  padding: 0 3s0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header {
  background: #252525; /* Slightly lighter header background */
  padding: 1em 0; /* Increased header padding */
  border-bottom: 1px solid #333; /* Darker border */
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  transition: background-color 0.3s ease;
}
.header-menu ul {
  list-style: none;
  padding-right: 3rem;
  margin: 0;
  display: flex;
}
@media (max-width: 1060px) {
  .header-menu ul {
    list-style: none;
    padding-right: 10rem;
    margin: 0;
    display: flex;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 1200px; /* Wider container */
    margin: 0 auto;
    padding: 0 20px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .header-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.7rem;
  }
}

.header-menu li {
  margin-left: 20px; /* Increased margin for spacing */
}
.header-menu a {
  color: #f0f0f0; /* Off-white for better contrast */
  text-decoration: none;
  transition: color 0.3s ease; /* Smooth color transition */
}
.header-menu a:hover {
  color: #00bfff; /* Highlight color on hover */
}

header .brand {
  color: #fff;
  font-size: 1.5em; /* Slightly larger brand font */
  font-weight: 700;
  text-decoration: none;
}
.menu-button {
  text-justify: auto;
  background: transparent;
  border: none;
  font-size: 2em; /* Slightly larger menu button */
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease; /* Smooth button transition */
}
.menu-button:hover {
  transform: scale(1.1);
}

/* Side Panel Styles */
.side-panel {
  position: fixed;
  top: 62px; /* Position below header */
  left: 0;
  bottom: 50px; /* Position above footer*/
  width: 320px; /* Increased side panel width */
  background-color: #222; /* slightly lighter side panel bg*/
  padding: 25px; /* Increased side panel padding*/
  overflow-y: auto;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow */
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition with cubic bezier */
  transform: translateX(-100%); /* Initially hidden */
}
.side-panel.open {
  transform: translateX(0);
}
.panel-content {
  padding: 15px; /* Increased panel content padding */
}

.side-panel .section {
  margin-bottom: 30px; /* increased spacing between sections */
  margin-top: 60px;
}

.side-panel .header {
  margin-bottom: 12px; /* Increased spacing between header and content */
  border-bottom: 1px solid #444;
  padding-bottom: 8px; /* Increased header padding bottom */
}
.side-panel .header h2 {
  margin-bottom: 8px;
  font-size: 1.6em;
}
.side-panel .header p {
  font-size: 0.9em;
  margin-bottom: 0;
  color: #999;
  font-style: italic;
}
/* Table of Contents Styling */
.toc {
  margin-top: 15px; /* Increased margin */
}
.toc ul {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.toc li {
  margin-bottom: 0.8em;
  list-style-type: none;
}

.toc a {
  font-weight: bold;
  display: block;
  color: #ddd;
  padding: 0.5em 0.3em;
  text-decoration: none;
  border-bottom: 1px dotted #555;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toc a:hover {
  background-color: #444;
  color: #eee;
}
/* Main content area */
.content-area {
  margin-left: 0;
  /*margin-top: 70px;*/
  padding: 20px;
  background-color: #000;
  flex: 1;
  transition: margin-left 0.3s ease; /* Smooth margin left transition */
}
main {
  color: #f0f0f0;
  padding: 2.5em; /* Increased main padding */
  border-radius: 10px;
}

h1,
h2 {
  color: #fff;
  margin-bottom: 0.9em;
  border-bottom: 1px solid #444;
  padding-bottom: 0.4em;
}
h3 {
  margin-bottom: 0.6em;
  color: #aaa;
}
p {
  margin-bottom: 1.2em;
}
section {
  margin-bottom: 2.5em;
}
.content-section {
  display: none;
}

ul {
  padding-left: 25px;
  margin-bottom: 1.2em;
}
ul li {
  margin-bottom: 0.6em;
  list-style-type: square;
}

a {
  color: #00bfff; /* Highlighted link color */
  text-decoration: underline;
  transition: color 0.3s ease; /* Smooth transition on link color */
}

a:hover {
  text-decoration: none;
  color: #0080ff;
}
footer {
  background: #252525; /* Slightly lighter footer background */
  text-align: center;
  border-top: 1px solid #333; /* Darker border */
  color: #888;
  font-size: 0.8em;
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  transition: background-color 0.3s ease;
}

/* Responsive Design */
@media (min-width: 768px) {
  .content-area {
    margin-left: 320px;
  }
  .side-panel {
    transform: translateX(0);
  }
  .side-panel {
    top: 62px;
  }
  .menu-button {
    display: none; /* Hide menu button on larger screens */
  }
}
@media (max-width: 768px) {
  main {
    color: #f0f0f0;
    padding: 0.5em; /* Increased main padding */
    border-radius: 5px;
  }
  .side-panel {
    width: 100%;
    padding-left: 0;
  }
  .content-area {
    margin-left: 0;
    font-size: 0.85rem;
  }
  .side-panel {
    top: 62px;
  }
}

/* Language Flags Capsule Container */
/* Language Flags Capsule Container (Large Screens) */
.language-capsule-large {
  display: flex; /* Changed to flexbox */
  flex-direction: column; /* Arrange items vertically */
  background-color: transparent;
  border-radius: 25px;
  padding: 5px 0px; /* Added some padding */
  position: fixed;
  top: 9px;
  right: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1005;
  transition: all 0.3s ease;
}

.language-capsule-large ul {
  padding: 0; /* Remove default padding on ul */
  margin: 0; /* Remove default margin on ul */
  list-style: none; /* Removes bullet points */
  display: flex; /* Make the list a flexbox */
  flex-direction: column; /* Arrange list items vertically */
  align-items: center; /* Center items horizontally within container */
}

.language-capsule-large ul a {
  text-decoration: none; /* Remove default underline from link */
  width: 100%; /* Take up available width for border to work */
}
.language-capsule-large .language-flag {
  cursor: pointer;
  font-size: 2.2em;
  margin: 10px 0; /* Equal top and bottom margin for spacing*/
  display: flex; /* Use flexbox to align content */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  border: white 0.5px solid;
  width: 32px;
  height: 25px;

  text-align: center;
}

.language-capsule-large .language-flag:hover {
  color: #007bff;
}

.language-capsule-large .language-flag span {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.f1 {
  line-height: 0px;
}

@media (max-width: 1500px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 9px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 35px;
    height: 26px;
    text-align: center;
  }
}
@media (max-width: 1400px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 9px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 35px;
    height: 26px;
    text-align: center;
  }
}
@media (max-width: 1300px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 18px;
    right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}
@media (max-width: 1200px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 25px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}
@media (max-width: 1100px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 22px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}
@media (max-width: 1000px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 20px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}
@media (max-width: 900px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 18px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}
@media (max-width: 800px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 16px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}

@media (max-width: 700px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 35px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}
@media (max-width: 600px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 35px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}
@media (max-width: 500px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 35px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}
@media (max-width: 460px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 35px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}
@media (max-width: 380px) {
  .language-capsule-large {
    border-radius: 25px;
    padding: 5px 0px; /* Added some padding */
    position: fixed;
    top: 35px;
    right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  .language-capsule-large .language-flag {
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px 0; /* Equal top and bottom margin for spacing*/
    display: flex; /* Use flexbox to align content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    border: white 0.5px solid;
    width: 30px;
    height: 22px;

    text-align: center;
  }
}

/*  Aspect Ratio Targeting  (More Reliable) */

/* Portrait Mode (Phones & Smaller Tablets) - Most iPhones/Android Phones */
@media (max-width: 767px) and (orientation: portrait) {
  .language-capsule-large {
    top: 4em; /* Adjust for notch/status bar */
    right: 10px;
  }

  .language-capsule-large .language-flag {
    font-size: 1.8em;
    width: 25px;
    height: 18px;
    margin: 5px 0;
  }
}

/* Landscape Mode (Phones) - Often smaller screens */
@media (max-height: 480px) and (orientation: landscape) {
  .language-capsule-large {
    top: 10px;
    right: 10px;
  }
  .language-capsule-large .language-flag {
    font-size: 1.6em;
    width: 24px;
    height: 18px;
    margin: 3px 0;
  }
}

/* iPad Portrait or Near-Square Aspect Ratio  */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Basic iPad range */
  .language-capsule-large {
    top: 20px;
    right: 20px;
  }
  .language-capsule-large .language-flag {
    font-size: 2em;
    width: 32px;
    height: 24px;
  }
}

/* Large Tablets and Desktops  -  Wider screens */
@media (min-width: 1025px) {
  .language-capsule-large {
    top: 10px;
    right: 20px;
  }
  .language-capsule-large .language-flag {
    font-size: 2.2em;
    width: 30px;
    height: 23px;
  }
}

/* Landscape mode on iPads  - Wider view */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .language-capsule-large {
    top: 10px; /* different top if desired */
    right: 20px;
  }
}
