/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  src: url(/static/fonts/gyByhwUxId8gMEwYGFWfOw.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  src: url(/static/fonts/gyByhwUxId8gMEwSGFWfOw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  src: url(/static/fonts/gyByhwUxId8gMEwcGFU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary-color: #1a73e8;
  --primary-hover: #3ea6ff;
  --secondary-color: #333;
  --accent-color: #1a73e8;
  --link-color: #065fd4;
  --bg-color: #ffffff;
  --surface-color: #f8f9fa;
  --text-color: #333333;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --header-bg: #fff;
  --header-text: #333;
  --dropdown-bg: #ffffff;
  --dropdown-text: #333333;
  --dropdown-hover: #f1f1f1;
  --accent-hover: #f5faff;
}

[data-theme="dark"] {
  --primary-color: #1d7fff;
  --primary-hover: #3ea6ff;
  --secondary-color: #1a1a1a;
  --accent-color: #1a73e8;
  --link-color: #1d7fff;
  --bg-color: #0f0f0f;
  --surface-color: #1e1e1e;
  --text-color: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
  --header-bg: #0f0f0f;
  --header-text: #ffffff;
  --dropdown-bg: #2d2d2d;
  --dropdown-text: #f5f5f5;
  --dropdown-hover: #3d3d3d;
  --accent-hover: #000000;

}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Open Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;

}

html,
body {
  height: 100%;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition);
}

p {
  margin-bottom: 1rem;
}

h1 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

ul,
ol {
  list-style: inside;
}

.main-content {
  padding: 0 0.5rem;
}

.model_page_link {
  font-weight: 500;
}

/* Footer styles */
.site-footer {
  width: 100%;
  background-color: var(--surface-color);
  padding: 1rem 1.5rem;
  margin-top: auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-nav {
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary-hover);
}

.footer-brand {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--primary-hover);
}

.footer-copyright {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-divider {
  color: var(--border-color);
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  /* No background */
  color: var(--text-secondary);
  transition: color 0.2s, transform 0.2s;
  font-size: 1.2rem;
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: none;
}

.footer-social-link:hover,
.footer-social-link:focus {
  color: var(--primary-color);
  transform: translateY(-2px) scale(1.12);
  background: none;
  box-shadow: none;
}

.footer-social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
  transition: fill 0.2s;
  background: none;
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
  .footer-social {
    gap: 10px;
  }

  .footer-social-link {
    width: 32px;
    height: 32px;
  }

  .footer-social-link svg {
    width: 20px;
    height: 20px;
  }
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
  .footer-social {
    gap: 10px;
  }

  .footer-social-link {
    width: 36px;
    height: 36px;
  }

  .footer-social-link svg {
    width: 20px;
    height: 20px;
  }
}

/* Main content styles */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.container a:hover {
  color: var(--primary-hover);
}

/* Breadcrumb styles */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0px;
  list-style: none;
  overflow-x: auto;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  padding: 0 0.5rem;
  color: var(--text-secondary);
}

.breadcrumb-item a {
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

.breadcrumb-wrapper {
  padding: 0 0.5rem;
}

/* rom details page styles */
.download-list li {
  list-style: none;
  margin-bottom: 0.5rem;
}

.download-list a {
  color: var(--link-color);
}

.download-list {
  margin-bottom: 1.5rem;
}

/* ROM Button Styles */
.btn-download {
  background-color: var(--accent-color);
  color: #fff;
  padding: .8rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition);
}

.btn-download:hover {
  background-color: var(--primary-hover);
}

.btn-download .icon-download {
  margin-right: 0.5em;
  vertical-align: middle;
  transition: transform 0.2s;
}

.btn-download:hover .icon-download {
  animation: bounce 0.5s;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(0);
  }

  70% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}

/* 404 Page Styles */
.error-404-container {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 10px;
}

.error-404-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.error-404-title {
  font-size: 2rem;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.error-404-message {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5em;
  line-height: 1.7;
}

/* Main search bar container of front page with background image */
.main-search h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.main-search p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.main-search {
  padding: 1rem;
  background-color: var(--secondary-color);
  background-image: url("/static/images/hyperos.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 370px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.search-clear-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
}

.search-clear-btn.visible {
  opacity: 1;
  visibility: visible;
}

.search-form input[type="text"] {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50px 0px 0px 50px;
  font-size: 1rem;
  flex-grow: 1;
  width: 100%;
  transition: border-color 0.2s;
}

.main-search::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.main-search .search-form {
  display: flex;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.main-search input[type="text"] {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50px 0px 0px 50px;
  font-size: 1rem;
  max-width: 600px;
  transition: border-color 0.2s;
}

.main-search input[type="text"]:focus {
  border-color: var(--accent-color);
  outline: none;
}

.main-search button {
  padding: 0.5rem 1.2rem;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 0px 50px 50px 0px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.main-search button:hover {
  background-color: var(--primary-hover);
}

/* front search bar styles */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  z-index: 3;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  margin-top: 5px;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s;
  color: var(--text-color);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--surface-color);
}

.search-result-model {
  font-size: 0.8em;
  font-weight: bold;
}

.search-result-codename {
  color: var(--text-secondary);
  font-size: 0.9em;
}

.no-results {
  padding: 15px;
  text-align: center;
  color: var(--text-secondary);
}

/* search results styles */
.search-results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.device-card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.device-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.device-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
}

.device-info {
  flex-grow: 1;
}

.device-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--text-color);
}

.device-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.device-codename {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.device-codename code {
  background-color: var(--bg-color);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.85rem;
}

.device-region {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.device-actions {
  margin-top: auto;
}

.btn-view-rom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
  width: 100%;
}

.btn-view-rom:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

.btn-view-rom svg {
  width: 16px;
  height: 16px;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.no-results p:first-child {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.no-results .btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
}

/* front page features section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-color);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-color);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  background: linear-gradient(135deg, #82b8ff, #0056b3);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  transform: rotate(0deg);
}

.feature-card:hover .feature-icon {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.feature-card h4 {
  color: var(--text-color);
  margin: 0.8rem 0;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.feature-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-card svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.feature-card:hover svg {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .feature-card h4 {
    font-size: 1.15rem;
  }
}

/* Feature title styles */
.feature-title {
  text-align: center;

}

.main-title-highlight {
  color: #fff;
  font-weight: bold;
  background: linear-gradient(90deg, #fff, var(--primary-color), #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
  animation: shine 2.5s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* FAQ Section Styles */
.faq-section {
  margin: 32px auto 0 auto;
  padding: 0 16px;
}

.faq-item {
  background: var(--surface-color);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  padding: 24px 28px;
  border-left: 4px solid var(--primary-color, #007bff);
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.08);
  background: var(--accent-hover);
}

.faq-item h2 {
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--primary-color, #007bff);
  letter-spacing: 0.01em;
}

.faq-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 0 4px;
  }

  .faq-item {
    padding: 16px 10px;
  }

  .faq-item h2 {
    font-size: 1rem;
  }

  .faq-item p {
    font-size: 0.97rem;
  }
}

/* Model page List Links */
.model-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  list-style: none;

}

.model-links li {
  position: relative;
}

.model-links li:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -0.9rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.model-links a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
  padding: 0.3rem 0.5rem;
  border-radius: var(--border-radius);
}

.model-links a:hover {
  color: var(--primary-color);
  background-color: var(--surface-color);
  transform: translateY(-2px);
}

/* Recent Updates Section */
.recent-roms-title {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  position: relative;
  padding-left: 1rem;
}

.recent-roms-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.time {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

/* Download Statistics Section */
.download-stats-section {
  margin: 3rem 0;
  padding: 1.5rem 0;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--header-text);
  position: relative;
  padding-bottom: 1.25rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color, #4263eb), var(--accent-color, #6e8eff));
  border-radius: 2px;
}

.download-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.download-stat-card {
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  opacity: 0.8;
}

.download-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(66, 99, 235, 0.15);
}

.stat-icon-container {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(66, 99, 235, 0.1);
  border-radius: 50%;
  margin-right: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.stat-icon-container svg {
  width: 30px;
  height: 30px;
}

.stat-details {
  flex-grow: 1;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--header-text);
  margin-bottom: 0.5rem;
  line-height: 1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.stat-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  background-color: var(--primary-color, #4263eb);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .download-stats-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 992px) {
  .download-stat-card {
    padding: 1.75rem;
  }

  .stat-value {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
  }

  .download-stats-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .download-stat-card {
    padding: 1.5rem;
  }

  .stat-icon-container {
    width: 60px;
    height: 60px;
    margin-right: 1.25rem;
  }

  .stat-icon-container svg {
    width: 26px;
    height: 26px;
  }

  .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .download-stats-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .download-stat-card {
    padding: 1.25rem;
  }

  .stat-icon-container {
    width: 54px;
    height: 54px;
    margin-right: 1rem;
  }

  .stat-icon-container svg {
    width: 24px;
    height: 24px;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
}

/* Header styles */
.site-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 0.5rem 1.5rem;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.site-link {
  text-decoration: none;
  color: var(--header-text);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.right-controls {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.site-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  position: relative;
  margin-left: 1.5rem;
}

.navbar a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Dropdown styles */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--dropdown-bg);
  box-shadow: var(--shadow);
  z-index: 1;
  border-radius: 4px;
  width: max-content;
  padding: 5px;
}

.dropdown-content a {
  font-size: 14px;
  color: var(--dropdown-text);
  padding: 5px 20px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:hover {
  background-color: var(--dropdown-hover);
  text-decoration: none;
  color: var(--text-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown>a::after {
  content: "▼";
  display: inline-block;
  font-size: 0.7em;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  cursor: pointer;
}

.menu-icon{
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-header {
  display: none;
}

@media (max-width: 768px) {

  .site-header {
    padding: 0.4rem;
  }

  .menu-button {
    display: block;
  }

  .header-container {
    padding: 0 0.5rem;
  }

  .header-controls {
    flex: 1;
    justify-content: flex-end;
  }

  .navbar {
    display: block;
    position: static;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: var(--header-bg);
    padding: 0.5rem;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s;
    box-shadow: var(--shadow);
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
  }

  .navbar ul.active {
    display: flex;
    left: 0;
    opacity: 1;
    pointer-events: auto;
    animation: slideInMenu 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .navbar ul.closing {
    left: -250px;
    opacity: 0;
    pointer-events: none;
    animation: slideOutMenu 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  }

  @keyframes slideInMenu {
    from {
      left: -250px;
      opacity: 0;
    }

    to {
      left: 0;
      opacity: 1;
    }
  }

  @keyframes slideOutMenu {
    from {
      left: 0;
      opacity: 1;
    }

    to {
      left: -250px;
      opacity: 0;
    }
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
  }

  .close-menu {
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.5rem;
    cursor: pointer;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .menu-overlay.active {
    display: block;
  }

  .navbar li {
    margin: 0px;
    padding: 0.5rem 1rem;
    border-bottom: solid 1px var(--border-color);
  }

  .dropdown-content {
    position: static;
    background-color: rgba(124, 124, 124, 0.1);
    box-shadow: none;
  }

  .dropdown-content a {
    color: var(--header-text);
    padding: 8px 12px;
    border-bottom: solid 1px var(--border-color);
  }

  .dropdown-content a:last-child {
    border-bottom: none;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }

  .dropdown.active>a::after {
    transform: rotate(180deg);
  }
}

/* Theme toggle button styles */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--header-text);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.light-icon,
.dark-icon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

[data-theme="dark"] .light-icon,
:root:not([data-theme="dark"]) .dark-icon {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .dark-icon,
:root:not([data-theme="dark"]) .light-icon {
  opacity: 0;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    margin-right: 10px;
  }

  .mobile-menu-theme-toggle {
    margin-right: 0;
  }
}

/* media style for mobile desiggn */

@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }

  .container {
    margin: 0.5rem auto;
    padding: 0.5rem 0.5rem;

  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 1.2rem;

  }

  .breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 0px;
  }

  .main-search h1 {
    font-size: 2.5rem;
  }

  .main-search p {
    font-size: 0.7rem;
  }

}