@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/NotoSans-Regular.woff2') format('woff2'),
       url('fonts/NotoSans-Regular.woff') format('woff');
  font-display: swap; 
}

@font-face {
  font-family: 'Noto Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/NotoSans-Italic.woff2') format('woff2'),
       url('fonts/NotoSans-Italic.woff') format('woff');
  font-display: swap; 
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/NotoSans-Bold.woff2') format('woff2'),
       url('fonts/NotoSans-Bold.woff') format('woff');
  font-display: swap; 
}

body {
  font-family: "Noto Sans", sans-serif;
  margin: 0;
  padding: 0;
}

body.sidebar-open {
  overflow: hidden;
}

h3 {
  font-size: 32px;
  margin-top: 0;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 20px;
  box-shadow: 0 1px 4px #aeaeae;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-left h2 {
  font-size: 20px;
  color: #333;
  margin-right: 20px;
}

.home-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.home-link:hover {
  opacity: 0.8;
}

#main-logo {
  height: 32px;
  margin-right: 10px;
}

.language-selector-button {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.language-selector-button:hover {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.language-selector-button i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.language-selector-button.active i {
  transform: rotate(180deg);
}

.nav-right {
  display: flex;
  align-items: center;
}

.language-selector {
  margin-right: 15px;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #ffffff;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.language-selector:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: none;
}

.main-content {
  display: flex;
  flex: 1;
  margin-left: 300px;
}

.sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 300px;
  height: calc(100vh - 80px);
  background-color: #ffffff;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 1px 0 4px #aeaeae;
  box-sizing: border-box;
  z-index: 500;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 17px;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  box-sizing: border-box;
  user-select: none;
}

.title-container:hover {
  background-color: #f0f0f0;
}

.title-container .fa {
  margin-left: auto;
  margin-right: 10px;
}

.sidebar ul li.category-item img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border: 2px solid #00B3A0;
  border-radius: 50%;
  background-color: #00B3A0;
}

.sublist {
  list-style: none;
  padding-left: 30px;
  display: none;
  width: 100%;
  overflow: hidden;
}

.subitem {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  margin: 5px 0 0 20px;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  user-select: none;
}

.subitem:hover {
  background-color: #E5F6F4;
}

.subitem.active {
  background-color: #00B3A0;
  color: #ffffff;
}

.content {
  flex: 1;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  margin-bottom: 20px;
}

#popular-topics-header {
  margin-top: 32px;
  position: relative;
  z-index: 0;
}

#popular-topics-header::before {
  content: "";
  position: absolute;
  left: 15%;
  bottom: 2px;
  width: 150px;
  height: 14px;
  transform: skew(-12deg) translateX(-50%);
  background: #E5F6F4;
  z-index: -1;
}

.popular-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 30px auto;
  max-width: 900px;
  padding: 0 20px;
}

.topic-card {
  flex: 1 1 calc(50% - 20px);
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;  
  box-sizing: border-box;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
}

.topic-card:hover {
  border-color: #00B3A0;
  transform: translateY(-5px);
}

.topic-card img {
  width: 65px;
  height: 65px;
}

.topic-card h4 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.topic-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

.topic-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: #f4f4f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.topic-card:hover .topic-icon {
  background: #E5F6F4;
}

.topic-icon img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s;
}

.topic-card:hover .topic-icon img {
  transform: scale(1.1);
}

.promotional-content {
  width: 100%;
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.promo-card {
  display: flex;
  justify-content: space-between;
  background-color: #efefef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 820px;
  margin: 20px 20px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 15px;
}

.promo-card img {
  width: 30%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
}

.promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.promo-content h3,
.promo-content p {
  margin: 0 0 10px;
}

.promo-content h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  
}

.promo-content p {
  color: #666;
  font-size: 16px;
}

.promo-button {
  align-self: flex-start;
  background-color: #007bff;
  color: white;
  padding: 10px 40px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 16px;
  text-align: center;
}

.promo-button:hover {
  background-color: #0056b3;
}

.topic-content {
  width: 100%;
  text-align: left;
  max-width: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.topic-content h4 {
  font-size: 24px;
  margin: 1rem 0 2rem;
  flex: 1;
  max-width: 80%;
}

.topic-content h3 {
  font-size: 20px;
  margin: 1rem 0;
  flex: 1;
  max-width: 80%;
}

.image-full,
.image-left, 
.image-200{
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-full {
  display: block;
  margin: 20px auto 40px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.image-left {
  display: block;
  margin: 20px 0 40px 0;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.image-200 {
  display: block;
  margin: 20px 0 40px 0;
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

.topic-content::after {
  content: "";
  display: table;
  clear: both;
}

.topic-content a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, border-bottom-color 0.3s;
}

.topic-content a:hover {
  color: #0056b3;
}

#copy-link-button {
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#copy-link-button i {
  font-size: 20px;
}

#copy-link-button.copied {
  background-color: #28a745;
}

blockquote {
  display: block;
  margin: 20px 0;
  background-color: #f9f9f9;
  border-left: 8px solid #007bff;
  color: #333;
  padding: 20px;
  font-style: italic;
  font-size: 18px;
  border-radius: 8px;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.show .modal-content {
  opacity: 1;
  transform: translateY(0);
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: #000;
}

.modal-content h2 {
  margin-top: 0;
  text-align: center;
  color: #333;
}

.language-options {
  list-style-type: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.language-options li {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.language-options li:hover {
  background-color: #f0f0f0;
  border-color: #007bff;
  outline: none;
}

@media (max-width: 940px) {
  .topic-card {
    flex: 1 1 100%;
  }

  .menu-toggle {
    display: block;
  }

  .main-content {
    margin-left: 0;
    flex-direction: column;
    margin-bottom: 70px;
    overflow: hidden;
  }

  .sidebar {
    position: fixed;
    width: 100%;
    top: 52px;
    bottom: 37px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    overflow-y: auto;
    padding-bottom: 86px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 998;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
  }

  .navbar {
    padding: 10px 10px;
  }

  .language-selector-button {
    margin-right: 10px;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    column-gap: 4px;

  }

  .bottom-nav .role-button {
    flex-direction: column;
  }

  .bottom-nav .role-button img {
    width: 30px;
    height: 30px;
  }

  .bottom-nav .role-name {
    font-size: 10px;
  }

  .role-buttons.desktop-only {
    display: none;
  }
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.content-header h4 {
  margin: 0;
  font-size: 24px;
  flex: 1;
}

.icon-active {
  display: none;
}

.role-buttons {
  display: flex;
  align-items: center;
}

.role-button {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  margin: 0 5px;
  border-radius: 10px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  text-align: left;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.role-button.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}


.role-button:hover {
  background-color: #f0f0f0;
}

.role-button.active {
  background-color: #00B3A0;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  animation: pulse 2s ease-in-out 0s 3;
}

.role-button.active .icon-default {
  display: none;
}

.role-button.active .icon-active {
  display: inline;
}

.role-button img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #00B3A0;
  border: 2px solid #00B3A0;
}

.role-button.active img {
  background-color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.role-button .role-name {
  font-size: 17px;
  color: inherit;
}

@media (max-width: 940px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    padding: 5px;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-left h2 {
    display: none;
  }

  #main-logo {
    margin-right: 20px;
  }

  .sidebar {
    top: 52px;
  }

  .bottom-nav .role-button {
    flex: 1;
    padding: 5px;
    margin: 0;
    background-color: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    min-width: 0;
    transition: background-color 0.3s;
  }

  .bottom-nav .role-button:hover {
    background-color: #f0f0f0;
  }

  .bottom-nav .role-button.active {
    background-color: #00B3A0;
    color: #ffffff;
    box-shadow: none;
    transform: none;
  }

  .bottom-nav .role-button img {
    display: none;
  }

  .bottom-nav .role-name {
    font-size: 14px;
    color: inherit;
    white-space: nowrap;
  }

  .role-buttons.desktop-only {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
  }
}

.youtube-video {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.youtube-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.category-item.active .title-container {
  background-color: #00B3A0;
  color: #ffffff;
}

.category-item.active .title-container:hover {
  background-color: #00B3A0;
}

.bold-numbers {
  counter-reset: list-counter;
  list-style: none; 
  padding-left: 1.5em;
}

.bold-numbers > li {
  position: relative;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  list-style: none;
}

.bold-numbers > li > ul {
  margin-top: 0.5em;
}


.bold-numbers > li::before {
  content: counter(list-counter) '. ';
  counter-increment: list-counter;
  position: absolute;
  left: -1.5em;
  font-weight: bold;
}

.bold-numbers ul {
  list-style-type: disc; 
  margin-left: 20px; 
  padding-left: 0;
  list-style-position: outside;
}

.bold-numbers ul li {
  margin-bottom: 8px; 
}

ul {
  list-style-type: disc;
}

ul li {
  margin-bottom: 10px;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 179, 160, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 179, 160, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 179, 160, 0);
  }
}

.language-options li.active {
  font-weight: bold;
  outline: 2px solid #007bff;
  background-color: #f0f0f0;
}

.highlighted-video {
  width: 100%;
  max-width: 820px;
  margin: 20px auto;
  text-align: center;
}

.highlighted-video h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.highlighted-video .youtube-video {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.highlighted-video .youtube-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.downloadables-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0 40px; 
}

.downloadable-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 2px solid #ddd;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.downloadable-item:hover {
  border-color: #00B3A0;
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  cursor: pointer;
}

.download-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #E5F6F4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #00B3A0;
}

.download-text {
  flex-grow: 1;
}

.download-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  display: block;
}

.download-description {
  font-size: 14px;
  color: #666;
  margin: 4px 0 0 0;
}