:root {
  --primary-color: #00b5ff;
  --primary-dark: #006096;
  --primary-gradient: linear-gradient(135deg, #006096 0%, #0099cc 50%, #00b5ff 100%);
  --card-header-gradient: linear-gradient(135deg, #005082 0%, #007bb6 100%);
  --bg-color: #f0f4f8;
  --card-bg: #ffffff;
  --text-color: #2c3e50;
  --text-muted: #6c757d;
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -5px rgba(0, 181, 255, 0.15);
  --border-radius-lg: 20px;
  --border-radius-pill: 50px;
}
[data-theme="dark"] {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-color: #e2e8f0;
  --text-muted: #94a3b8;
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --card-header-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
body {
  font-family: 'Kanit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-hero {
  background: var(--primary-gradient);
  color: white;
  padding-top: calc(100px + 4rem);
  padding-bottom: 13.5rem;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  box-shadow: 0 20px 40px rgba(0, 96, 150, 0.2);
  z-index: 1;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
  background-size: 100% 100%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInDown 0.8s ease-out;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 5px 20px;
  border-radius: var(--border-radius-pill);
  backdrop-filter: blur(5px);
}
.main-content-wrapper {
  flex: 1 0 auto;
  margin-top: -5rem;
  position: relative;
  z-index: 10;
  padding-bottom: 4rem;
}
.breadcrumb-container {
  background: var(--card-bg);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  margin-bottom: 6rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.breadcrumb {
  margin: 0;
  padding: 0;
}
.breadcrumb-item a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.breadcrumb-item a:hover {
  color: var(--primary-color);
}
.breadcrumb-item.active {
  color: var(--text-muted);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #ccc;
}
.handbook-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  position: relative;
}
.handbook-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.card-header-custom {
  background: var(--card-header-gradient);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.card-header-custom::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(45deg);
}
.hb-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}
.card-title {
  margin: 0;
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  z-index: 1;
}
.card-body-custom {
  padding: 1.5rem;
}
.handbook-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.handbook-list li {
  margin-bottom: 0.8rem;
}
.handbook-list li a {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background-color: rgba(0, 181, 255, 0.03);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.handbook-list li a:hover {
  background-color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 181, 255, 0.15);
  transform: translateX(5px);
  color: var(--primary-dark);
}
.handbook-list li a::before {
  content: '\f15c';
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 2px;
  transition: transform 0.3s;
}
.handbook-list li a:hover::before {
  content: '\f019';
  font-weight: 900;
  transform: scale(1.2);
}
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .page-hero {
    border-radius: 0 0 30px 30px;
  }
}
@media (max-width: 768px) {
  .page-hero {
    padding-top: calc(80px + 3rem);
    padding-bottom: 13rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .main-content-wrapper {
    margin-top: -4rem;
  }
  .breadcrumb-container {
    width: 100%;
    justify-content: center;
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}