body {
  font-family: 'Fira Code', monospace;
  margin: 0;
  background: #0f0f0f;
  color: #ffffff;
  background: url('https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExc2k4dHNpOGx2M2IzYnZoejhubzU5MXY3bHN2aWluc3hjbjNqdXJ6ZyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/4rZA5D22301iMgrUNd/giphy.gif') no-repeat center center fixed;
  background-size: cover;
}

.container {
  display: flex;
  height: 100vh;
}

* {
  font-family: 'Fira Code', monospace;
}

.sidebar {
  width: 240px;
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(6px);
  padding: 20px;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.search-bar input {
  width: 100%;
}

.search-bar input:focus {
  width: 350px;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ff2d55;
}

.menu {
  list-style: none;
  padding: 0;
}

.menu li {
  margin-bottom: 10px;
}

.dropdown-btn {
  background: none;
  border: none;
  color: #ff375f;
  font-size: 1em;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
}

.dropdown-content {
  list-style: none;
  padding-left: 15px;
  display: none;
}

.dropdown-content li a::before {
  content: "\27A4";
  color: #ff375f;
  margin-right: 8px;
  font-size: 0.7em;
  vertical-align: middle;
}

.dropdown-content li a {
  display: flex;
  align-items: center;
  padding-left: 8px;
  color: #ff9f0a;
  text-decoration: none;
}

.content-area {
  display: flex;
  flex-grow: 1;
  height: 100vh;
  overflow: hidden;
}

.main-content {
  flex: 1;
  padding: 10px 60px;
  overflow-y: auto;
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(6px);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

#searchBar {
  flex-grow: 1;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #1c1c1e;
  color: #fff;
}

.tag-sidebar {
  width: 280px;
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(6px);
  padding: 20px;
  flex-shrink: 0;
  overflow-y: auto;
}

.filter-group {
  margin-bottom: 11px;
}

.filter-toggle {
  background: none;
  border: none;
  font-weight: bold;
  padding: 6px 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: #ff9f0a;
  font-size: 1em;
}

.filter-options {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-left: 16px;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: #fff;
}

input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #ff2d55;
  border-radius: 3px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

input[type="checkbox"]:checked {
  background-color: #ff2d55;
  border-color: #ff2d55;
}

input[type="checkbox"]:hover {
  box-shadow: 0 0 3px #ff2d55aa;
  transform: scale(1.05);
}


.filter-options input[type='checkbox'] {
  accent-color: #ff2d55;
}

.filter-group.active .filter-options {
  display: flex;
}


.filter-toggle::after {
  content: '▸';
  float: right;
  transition: transform 0.2s;
}

.filter-group.active .filter-toggle::after {
  transform: rotate(90deg);
}

.hidden {
  display: none !important;
}

.article-card {
  background-color: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid #2a2a2d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease-in-out;
  position: relative;
}

.article-card .date {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 0.75em;
  color: #aaa;
}

.article-card:hover {
  box-shadow: 0 0 10px #ff2d55;
}

.article-card h3 {
  margin-bottom: 10px;
}

.article-card h3 a {
  text-decoration: none;
  color: #ff375f;
}

.article-card p {
  margin-bottom: 10px;
  color: #ccc;
}

.tag {
  display: inline-block;
  background-color: #ff375f33;
  color: #ff375f;
  border-radius: 4px;
  padding: 5px 10px;
  margin: 5px 5px 0 0;
  font-size: 0.85em;
}

.main-content {
  flex: 1;
  padding: 40px 60px;
  overflow-y: auto;
}


.section-title {
  color: #ff2d55;
  margin-bottom: 20px;
}

.centered-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-banner {
  text-align: center;
  margin-bottom: 40px;
}

.typed-title {
  font-size: 2.5em;
  color: #ff2d55;
  margin-bottom: 10px;
}

.hero-subtext {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 20px;
}

.btn-primary {
  background: #ff2d55;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 10px #ff2d55aa;
  transform: scale(1.05);
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.content-area {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  max-height: 100vh;
  padding: 40px 60px;
}

.main-content::-webkit-scrollbar {
  width: 3px;
}

.main-content::-webkit-scrollbar-thumb {
  background-color: #ff2d5522;
  border-radius: 10px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.main-content {
  scrollbar-width: thin;
  scrollbar-color: #ff2d5522 transparent;
}


.search-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ff2d55, transparent);
  opacity: 0.4;
  border-radius: 2px;
  margin-top: 40px;
  margin-bottom: 30px;
}


.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.article-card.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#no-results {
  opacity: 0;
  transition: opacity 0.4s ease;
}

#no-results.visible {
  opacity: 1;
}

.medium-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.medium-lightbox-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.97);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.terminal-block {
  background: rgba(28, 28, 30, 0.85);
  border: 1px solid rgba(255, 45, 85, 0.2);
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  margin: 25px 0;
  overflow-x: auto;
  box-shadow: 0 0 15px rgba(255, 45, 85, 0.05);
}

.terminal-header {
  background-color: #1c1c1e;
  color: #ff9f0a;
  padding: 8px 12px;
  font-size: 0.85em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-block pre {
  margin: 0;
  padding: 14px 20px 12px 20px;
  color: #f5f5f5;
  font-size: 0.88em;
  white-space: pre-wrap;
  text-align: left;
}

.terminal-block code {
  font-family: 'Fira Code', monospace;
  color: #dddd;
}

.typed-terminal-line {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  color: #dddd;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

p code,
li code,
span code {
  background-color: rgba(255, 159, 10, 0.1);
  color: #ff9f0a;
  font-family: 'Fira Code', monospace;
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

p.divider-fancy {
  text-align: center;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #ffcc99;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  position: relative;
}

p.divider-fancy::before,
p.divider-fancy::after {
  content: "";
  display: inline-block;
  width: 25%;
  height: 1px;
  background-color: #ccc;
  vertical-align: middle;
  margin: 0 0.8rem;
}

.article-certificate img,
.medium-style-zoom {
  cursor: zoom-in;
}
.article-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.article-card.visible {
  opacity: 1;
  transform: translateY(0);
}

