/* ! List Section */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 5%;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-title span {
  background: var(--primary-color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Quick Menu */
.quick-menu {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.menu-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  text-align: center;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: var(--text-color);
  border: 2px solid #e5e5e5;
  border-radius: 50px;
  font-family: "Open Sans", "Noto Sans Thai", "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-button:hover,
.menu-button.active {
  background: var(--primary-color-gradient);
  color: var(--text-color-alt);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209, 29, 35, 0.25);
}

.menu-button:hover .menu-icon,
.menu-button.active .menu-icon {
  filter: brightness(0) invert(1);
}

/* Content Sections */
.content-section {
  margin-bottom: 80px;
  scroll-margin-top: 80px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.content-section:nth-child(3) {
  animation-delay: 0.3s;
}
.content-section:nth-child(4) {
  animation-delay: 0.4s;
}
.content-section:nth-child(5) {
  animation-delay: 0.5s;
}
.content-section:nth-child(6) {
  animation-delay: 0.6s;
}

.section-header {
  margin-bottom: 35px;
}

.section-label {
  display: inline-block;
  background: rgba(209, 29, 35, 0.1);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.section-description {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.7;
}

/* Link Cards Grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.link-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 30px 25px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color-gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.link-card:hover::before {
  transform: scaleY(1);
}

.link-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(209, 29, 35, 0.15);
}

.link-icon {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  padding: 20px;
  border: 2px solid rgba(209, 29, 35, 0.08);
}

.link-icon img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

.link-card:hover .link-icon {
  transform: scale(1.05);
  background: linear-gradient(
    135deg,
    rgba(226, 39, 45, 0.1),
    rgba(209, 29, 35, 0.05)
  );
  border-color: var(--primary-color);
}

.link-card:hover .link-icon img {
  filter: none;
}

.link-content {
  flex: 1;
  width: 100%;
}

.link-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.link-card:hover .link-title {
  color: var(--primary-color);
}

.link-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  color: #ccc;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.link-card:hover .link-arrow {
  color: var(--primary-color);
  transform: translate(4px, -4px);
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 10px auto 60px;
  padding: 0 1rem;
}

.search-wrapper {
  position: relative;
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.search {
  width: 100%;
  padding: 18px 50px 18px 24px;
  font-size: 1rem;
  font-family: "Open Sans", "Noto Sans Thai", "Noto Sans JP", sans-serif;
  border: 2px solid #e5e5e5;
  border-radius: 50px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search:focus {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(209, 29, 35, 0.15);
}

.search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.search:focus + .search-icon {
  color: var(--primary-color);
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  font-size: 1.1rem;
}

/* ! Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ! Responsive */
@media (max-width: 768px) {
  /* List Section */
  .page-container {
    padding: 80px 5%;
  }

  .hero-section h1 {
    font-size: 30px;
  }

  .hero-section p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .quick-menu {
    padding: 25px 20px;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-button {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .content-section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .link-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  /* List Section */
  .link-card {
    padding: 25px 20px;
  }

  .link-icon {
    width: 100px;
    height: 100px;
    padding: 18px;
  }

  .link-title {
    font-size: 1rem;
  }

  .link-description {
    font-size: 0.85rem;
  }
}
