* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: white;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #111;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  flex-wrap: wrap;
  gap: 15px;
}

.left-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.logo-text {
  font-weight: bold;
  font-size: 24px;
  color: #0037ac;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 5px;
}

nav a:hover {
  color: #0037ac;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 300px;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 8px 15px 8px 40px;
  border-radius: 20px;
  border: none;
  background-color: #222;
  color: white;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  background-color: #333;
}

.search-icon {
  position: absolute;
  left: 15px;
  color: #777;
  font-size: 14px;
}

.main-content {
  margin-top: 120px;
}

.section {
  padding: 40px 20px;
  background-color: #000;
  position: relative;
  scroll-margin-top: 140px;
}

.section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #fff;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.card-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 5px;
  scrollbar-width: none;
}

.card-carousel::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 auto;
  width: 180px;
  background-color: #111;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card p {
  padding: 12px;
  margin: 0;
  text-align: center;
  font-size: 14px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0037ac;
  border: none;
  color: white;
  font-size: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.scroll-btn:hover {
  background-color: #1e4fd0;
  transform: translateY(-50%) scale(1.1);
}

.scroll-left {
  left: -15px;
}

.scroll-right {
  right: -15px;
}

.section-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-dot.active {
  background-color: #0037ac;
  transform: scale(1.3);
}

.nav-dot:hover {
  background-color: rgba(0, 55, 172, 0.7);
}

.nav-dot::after {
  content: attr(data-title);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.nav-dot:hover::after {
  opacity: 1;
}

@keyframes highlight {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 55, 172, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 55, 172, 0.7); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 55, 172, 0); }
}

.card.highlight {
  animation: highlight 1.5s ease-in-out 3;
  border: 2px solid #0037ac;
}

.search-error {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4444;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 2000;
  display: none;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  z-index: 1000;
  max-height: 350px;
  overflow-y: auto;
  margin-top: 5px;
  width: 100%;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #222;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #1a1a1a;
}

.search-result-image {
  width: 45px;
  height: 65px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 15px;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  overflow: hidden;
}

.search-result-title {
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-type {
  color: #888;
  font-size: 12px;
}

.search-no-results {
  padding: 15px;
  text-align: center;
  color: #888;
  font-style: italic;
  font-size: 14px;
}

.footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  color: #e0e0e0;
  padding: 50px 20px 0 20px;
  border-top: 1px solid #222;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
}

.footer-col {
  flex: 0 1 200px;
  min-width: 200px;
}

.footer-about {
  flex: 0 1 350px;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand {
  font-size: 26px;
  font-weight: bold;
  color: #0037ac;
  letter-spacing: 1px;
}

.footer-description {
  font-size: 15px;
  line-height: 1.6;
  color: #aaa;
  max-width: 100%;
}

.footer-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: #0037ac;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #0037ac;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 15px;
  word-break: break-all;
}

.footer-contact-item i {
  width: 24px;
  font-size: 22px;
  text-align: center;
  color: #0037ac;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: #0037ac;
}

.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link i {
  font-size: 26px;
  color: #0037ac;
  transition: opacity 0.2s ease;
}

.social-link:hover i {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding: 25px 0;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 14px;
  color: #777;
}

@media (max-width: 1024px) {
  .section-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px;
  }

  .left-header {
    width: 100%;
    justify-content: center;
  }

  .search-container {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
  }

  .main-content {
    margin-top: 160px;
  }

  .section {
    padding: 30px 15px;
    scroll-margin-top: 180px;
  }

  .card-carousel {
    padding: 10px 0;
  }

  .scroll-btn {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    align-items: center;
  }

  .footer-col, .footer-about {
    flex: 0 1 auto;
  }

  .footer-logo-wrapper {
    justify-content: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .left-header {
    flex-direction: column;
    gap: 10px;
  }

  nav {
    justify-content: center;
    width: 100%;
  }

  .main-content {
    margin-top: 180px;
  }
  
  .section {
    scroll-margin-top: 200px;
  }

  .section h2 {
    font-size: 24px;
  }

  .card {
    width: 140px;
  }

  .card img {
    height: 200px;
  }

  .footer {
    padding: 30px 15px 0 15px;
  }
}

@media (max-width: 360px) {
  .logo-text {
    font-size: 20px;
  }

  nav a {
    font-size: 14px;
  }

  .card {
    width: 120px;
  }

  .card img {
    height: 170px;
  }

  .card p {
    font-size: 12px;
    padding: 8px;
  }
}