#links_page {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 20px 20px 40px 20px;
  min-height: 100vh;
}
#links_page .container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
#links_page h1 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}
.link-section {
  margin-bottom: 40px;
}
.link-section h2 {
  font-size: 20px;
  color: #34495e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  position: relative;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
.link-section h2::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("https://via.placeholder.com/24") no-repeat center;
  margin-right: 10px;
}
.link-section h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, #3498db, #1abc9c);
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.link-item {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  background: linear-gradient(145deg, #fff, #f0f0f0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.link-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.link-item img {
  width: 36px;
  height: 36px;
  margin-right: 15px;
  border-radius: 8px;
  object-fit: contain;
}
.link-info {
  flex: 1;
}
.link-info h3 {
  font-size: 16px;
  color: #2c3e50;
  margin: 0;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
.link-info p {
  font-size: 14px;
  color: #7f8c8d;
  margin: 5px 0;
  transition: opacity 0.3s ease;
}
.link-info span {
  font-size: 12px;
  color: #3498db;
  word-break: break-all;
}
.link-item .arrow {
  font-size: 20px;
  color: #bdc3c7;
  transition: color 0.3s ease;
}
.link-item:hover .arrow {
  color: #3498db;
}
.fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.carousel-section {
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  background: #e6f0fa;
}
.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide {
  min-width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}
.carousel-dot.active {
  background: #3498db;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  .container {
    padding: 15px;
  }
  h1 {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .link-section h2 {
    font-size: 14px;
  }
  .link-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
  }
  .link-item {
    padding: 8px;
  }
  .link-item img {
    width: 24px;
    height: 24px;
  }
  .carousel-section {
    max-width: 100%;
    margin: 20px 0;
  }
  .carousel-slide {
    height: 80px;
  }
  .carousel-dot {
    width: 8px;
    height: 8px;
  }
}
@media (max-width: 480px) {
  .link-grid {
    grid-template-columns: 1fr;
  }
}
