body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #111;
    color: white;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ffffff #1a1a1a;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

.wrapper {
    display: flex;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.sidebar_b {
    width: 250px;
    flex-shrink: 0;
    padding-right: 30px;
    position: sticky;
    top: 40px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    padding-right: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 0.85rem;
    color: #999;
    margin: 20px 0 10px;
    text-transform: uppercase;
}

.sidebar a.button {
    display: block;
    background-color: #1a1a1a;
    color: #00ffc3;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.sidebar a.button:hover {
    background-color: #333;
}

.sidebar .button.active {
  background-color: #333 !important;
  color: #00ffc3 !important;
  font-weight: bold;
  border-left: 9px solid #00ffc3 !important;
}

.help-link {
    color: #00ffc3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.help-link:hover {
    color: white;    
}

.content {
    flex: 1;
    max-width: 800px;
    padding: 0 30px;
}

.content h1 {
    font-size: 2rem;
    margin-top: 0;
}

.content h2 {
    font-size: 1.4rem;
    color: white;
    margin-top: 40px;
}

.content h1, .content h2 {
    position: relative;
    cursor: pointer;
    transition: color 0.2s;
}

.content h1::after, .content h2::after {
    content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #00ffc3;
    -webkit-mask: url('copy.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask: url('copy.svg') no-repeat center;
    mask-size: contain;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-right: 8px;
}

.content h1:hover::after, .content h2:hover::after {
    opacity: 1;
}

.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(0, 0, 0, 0);
    color: #00ffc3;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.content p {
    font-size: 1rem;
    color: #ccc;
}

.content a {
    color: #00ffc3;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.right-panel-wrap {
    width: 200px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.right-panel {
    position: sticky;
    top: 40px;
    padding-left: 30px;
    height: fit-content;
}

.right-panel a {
    position: relative;
    display: inline-block;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.right-panel a.active {
    color: white;
    transform: translateX(4px);
}

.right-panel a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00ffc3;
    transform: translateY(-50%) scale(0);
    transition: transform 0.2s ease;
}

.right-panel a.active::before {
    transform: translateY(-50%) scale(1);
}

.right-panel h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: white;
}

.right-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.right-panel li {
    margin-bottom: 8px;
}

.right-panel a {
    color: #bbb;
    text-decoration: none;
}

.right-panel a:hover {
    color: white;
    text-decoration: underline;
}

::selection {
    background: #002c22;
    color: #00ffc3;
}

img::selection {
    background: rgba(0, 161, 123, 0.5);
    color: #00ffc3;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a00;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffffff, #ffffff);
    border-radius: 10px;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffffff, #ffffff);
}

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #111;
    border-bottom: 1px solid #333;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 10px;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #111;
    z-index: 1000;
    padding: 20px;
    border-bottom: 1px solid #333;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.7);
    animation: slideDown 0.3s ease forwards;
}

.hidden {
    display: none;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    float: right;
    cursor: pointer;
    margin-bottom: 10px;
    margin-top: -7px;
    margin-right: 40px;
}

@keyframes slideDown {
    from {
    opacity: 0;
    transform: translateY(-10%);
    }
    to {
    opacity: 1;
    transform: translateY(0%);
    }
}

@media (max-width: 1024px) {
    .wrapper {
    flex-direction: column;
    padding: 20px;
    }

    #sidebar-container,
    .right-panel {
    display: none;
    }

    .content {
    flex: 1;
    max-width: 800px;
    padding: 0 30px;
    margin: 0 auto;
    margin-top: 60px;
    }

    .mobile-header {
    display: flex;
    }
}

#mobile-sidebar-content.sidebar {
    width: 100% !important;
    padding-right: 0;
    border-right: none;
}

.video {
  display: grid;
  border-radius: 12px;
  margin-bottom: 40px;
  width: 50%;
  box-sizing: border-box;
}

.video_line {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;  
}

.video-item.horizontal {
  flex-direction: row;
  align-items: center;
  height: 130px;
  padding: 10px;
  box-sizing: border-box;
}

.video-item.horizontal img {
  width: 200px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border-right: none;
}

.video-item.horizontal .video-title {
  padding: 0 16px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.video-block {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

.video-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease;
}

.video-item:hover {
  transform: scale(1.02);
}

.video-item img {
  width: 100%;
  height: auto;
  display: block;
}

.video-title {
  padding: 10px;
  font-size: 0.95rem;
  color: white;
}

.image-block {
  width: 100%;
  max-width: 600px;
  margin-bottom: 40px;
}

.image-block img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.image-block .caption {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #ccc;
}

.member {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}

.member-avatar {
  width: 130px;
  height: 130px;
  border-radius: 4px;
  margin-right: 16px;
}

.member-info {
  display: flex;
  flex-direction: column;
}

.member-name {
  font-weight: bold;
  margin-bottom: 8px;
  margin-top: 8px;
}

.member-name img {
  width: 32px;
  height: 32px;
  margin-bottom: -6px;
}

.member-links a {
  color: #00ffc3;
  text-decoration: none;
  font-size: 1rem;
}

.member-links a:hover {
  color: white;
}

.member-description p{
  margin-top: 10px;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-image {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

.modal-caption {
  color: white;
  margin-top: 15px;
  font-size: 1.1rem;
  text-align: center;
  max-width: 80%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
  justify-items: center;
}

.member-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card img {
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
}

hr {
  width: 300px;
  margin: 30px auto;
  border: 1px solid rgba(255,255,255,0.1)
}

.empty-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #00ffc3;
  border-radius: 12px;
}

.empty-icon {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #00ffc3;
  color: #00ffc3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.empty-text {
  font-size: 0.95rem;
}

.empty-text a {
  color: #00ffc3;
  text-decoration: none;
}

.empty-text a:hover {
  text-decoration: underline;
}
