:root {
  --c-bg: #F5F5F5;
  --c-bg-main: #ffffff;
  --c-text-primary: #1a2a3a;
  --c-text-secondary: #4a5a6a;
  --c-text-muted: #8a9aa0;
  --c-border: #dbe4ea;
  --c-shadow-main: 0 10px 40px -10px rgba(0, 119, 182, 0.1);
  --c-shadow-card: 0 5px 20px -5px rgba(0, 119, 182, 0.08);
  --c-shadow-hover: 0 20px 40px -5px rgba(0, 119, 182, 0.15);
  --grad-main-blue: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
  --color-main-blue: #0077b6;
}
[data-theme="dark"] {
  --c-bg: #0f172a;
  --c-bg-main: #1e293b;
  --c-text-primary: #f1f5f9;
  --c-text-secondary: #cbd5e1;
  --c-text-muted: #94a3b8;
  --c-border: #334155;
  --c-shadow-main: 0 10px 30px rgba(0, 0, 0, 0.3);
  --c-shadow-card: 0 5px 15px rgba(0, 0, 0, 0.2);
  --c-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.5);
  --grad-main-blue: linear-gradient(135deg, #023e8a 0%, #0077b6 100%);
  --color-main-blue: #00b4d8;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Kanit', sans-serif;
  line-height: 1.7;
  background-color: var(--c-bg);
  color: var(--c-text-primary);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.container-fluid {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}
.main-container {
  background: var(--c-bg-main);
  border-radius: 24px;
  box-shadow: var(--c-shadow-main);
  margin: 20px auto;
  max-width: 1200px;
  border: 1px solid var(--c-border);
  overflow: hidden;
}
.content-section {
  padding: 50px;
}
.page-title-container {
  text-align: center;
  position: relative;
  margin-bottom: 60px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.title-decoration-icon {
  font-size: 4rem;
  background: var(--grad-main-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(0, 180, 216, 0.2));
}
.page-main-title {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  color: var(--c-text-primary);
  line-height: 1.3;
}
.page-title-decorator {
  width: 80px;
  height: 6px;
  background: var(--grad-main-blue);
  border-radius: 50rem;
  margin: 0 auto;
}
.section-card {
  background: var(--c-bg-main);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--c-shadow-card);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border-left: 6px solid transparent;
}
.section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--c-shadow-hover);
}
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  color: var(--c-text-primary);
  border-bottom: 2px solid var(--c-border);
  padding-bottom: 15px;
  gap: 15px;
}
.section-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-right: 0;
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.2);
  transform: rotate(-5deg);
  transition: 0.3s;
  flex-shrink: 0;
}
.section-card:hover .section-icon {
  transform: rotate(0deg) scale(1.1);
}
.theme-teal, .theme-gold, .theme-purple, .theme-red {
  border-left-color: var(--color-main-blue);
  --spine-fade-color: var(--color-main-blue);
}
.theme-teal .section-icon, .theme-gold .section-icon, .theme-purple .section-icon, .theme-red .section-icon {
  background: var(--grad-main-blue);
}
.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--spine-fade-color), transparent 40%);
  opacity: 0.05;
  pointer-events: none;
}
.intro-text {
  font-size: 1.1rem;
  color: var(--c-text-secondary);
  margin-bottom: 0;
  line-height: 1.8;
}
.highlight-text {
  background: rgba(0, 180, 216, 0.1);
  color: var(--color-main-blue);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid rgba(0, 119, 182, 0.15);
}
.theme-purple .highlight-text, .theme-teal .highlight-text {
  color: var(--color-main-blue);
  background: rgba(0, 180, 216, 0.1);
  border-color: rgba(0, 119, 182, 0.15);
}
.duty-item {
  background: var(--c-bg);
  border-radius: 16px;
  padding: 20px;
  height: auto;
  min-height: 110px;
  margin-bottom: 24px;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
}
.duty-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 119, 182, 0.15);
  background: var(--c-bg-main);
  border-color: transparent;
}
.duty-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-main-blue) !important;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
  transition: 0.3s;
  flex-shrink: 0;
}
.duty-content {
  font-size: 1.05rem;
  color: var(--c-text-secondary);
  font-weight: 400;
}
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--grad-main-blue);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(0, 119, 182, 0.4);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 180, 216, 0.6);
}
@media (max-width: 768px) {
  .content-section {
    padding: 30px 20px;
  }
  .section-card {
    padding: 25px;
  }
  .page-main-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.5rem;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .section-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .duty-item {
    flex-direction: row;
    gap: 15px;
  }
  .main-container {
    margin: 10px;
    border-radius: 16px;
  }
  .container-fluid {
    padding-bottom: 0;
  }
}