:root {
  --c-bg: #F5F5F5;
  --c-bg-main: #F5F5F5;
  --c-text-primary: #1a2a3a;
  --c-text-secondary: #4a5a6a;
  --c-text-muted: #8a9aa0;
  --c-border: #dbe4ea;
  --c-shadow-main: 0 10px 40px -10px rgba(0, 50, 100, 0.1);
  --c-shadow-hover: 0 20px 50px -10px rgba(0, 50, 100, 0.15);
  --c-shadow-glow: 0 0 25px rgba(0, 156, 255, 0.25);
  --c-theme-primary: #0077b6;
  --c-theme-secondary: #00b4d8;
  --c-theme-gradient: linear-gradient(135deg, #0077b6, #00b4d8);
  --c-nav-bg: rgba(255, 255, 255, 0.95);
  --c-nav-border: rgba(255, 255, 255, 0.8);
  --c-nav-blur: 20px;
  --grad-gold: linear-gradient(135deg, #f1c40f, #f39c12);
  --grad-red: linear-gradient(135deg, #e74c3c, #c0392b);
  --grad-purple: linear-gradient(135deg, #9b59b6, #8e44ad);
  --grad-green: linear-gradient(135deg, #2ecc71, #27ae60);
  --grad-pink: linear-gradient(135deg, #e91e63, #c2185b);
  --grad-orange: linear-gradient(135deg, #e67e22, #d35400);
  --grad-blue: linear-gradient(135deg, #3498db, #2980b9);
  --c-color-red: #e74c3c;
  --c-color-blue: #3498db;
  --c-color-purple: #9b59b6;
  --c-color-green: #27ae60;
  --c-color-yellow: #f39c12;
  --c-color-pink: #e91e63;
  --c-color-grey: #95a5a6;
  --c-color-teal: #1abc9c;
  --c-color-indigo: #3f51b5;
  --c-color-orange: #e67e22;
}
[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.4);
  --c-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.6);
  --c-nav-bg: rgba(30, 41, 59, 0.95);
  --c-nav-border: rgba(255, 255, 255, 0.1);
}
body {
  font-family: 'Kanit', sans-serif;
  line-height: 1.7;
  background-color: var(--c-bg);
  background-image: none;
  color: var(--c-text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: background 0.3s ease;
}
[data-theme="dark"] body {
  background-image: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}
.main-container {
  background: var(--c-bg-main);
  border-radius: 24px;
  box-shadow: var(--c-shadow-main);
  margin: 0 auto;
  max-width: 1200px;
  border: 1px solid var(--c-border);
  overflow: hidden;
  min-height: 100vh;
  margin-top: 110px;
  padding-bottom: 100px;
}
@media (min-width: 992px) {
  .main-container {
    margin-top: 190px !important;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
}
.content-section {
  padding: 60px 0;
}
.modern-nav {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1020;
  width: 90%;
  max-width: 800px;
  background: var(--c-nav-bg);
  backdrop-filter: blur(var(--c-nav-blur));
  -webkit-backdrop-filter: blur(var(--c-nav-blur));
  border: 1px solid var(--c-nav-border);
  border-radius: 50rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 5px;
}
.modern-menu {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  flex-wrap: wrap;
}
.menu-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 50rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.menu-item i {
  margin-right: 8px;
  font-size: 1.1rem;
}
.menu-item:hover {
  background: rgba(0, 119, 182, 0.1);
  color: var(--c-theme-primary);
  transform: translateY(-2px);
}
.menu-item.active {
  background: var(--c-theme-gradient);
  color: white !important;
  box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
}
.more-menu {
  background: var(--c-bg-main);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  padding: 10px;
  min-width: 240px;
  margin-top: 15px;
}
.more-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--c-text-primary);
  font-weight: 500;
  transition: 0.2s;
}
.more-menu-item:hover {
  background: #e0f7fa;
  transform: translateX(5px);
}
[data-theme="dark"] .more-menu-item:hover {
  background: #334155;
}
.more-menu-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  background: var(--icon-bg);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.section-title {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-text-primary);
  margin-bottom: 50px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--c-border);
  scroll-margin-top: 250px;
}
.section-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  background: var(--c-theme-gradient);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  font-size: 1.2rem;
}
#general-info .section-icon-wrapper {
  background: var(--grad-blue);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}
#general-info {
  border-bottom-color: var(--c-color-blue);
}
#symbol .section-title .section-icon-wrapper {
  background: var(--grad-gold);
  box-shadow: 0 6px 15px rgba(241, 196, 15, 0.3);
}
#symbol .section-title {
  border-bottom-color: var(--c-color-yellow);
}
#flag .section-title .section-icon-wrapper {
  background: var(--grad-red);
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}
#flag .section-title {
  border-bottom-color: var(--c-color-red);
}
#motto .section-title .section-icon-wrapper {
  background: var(--grad-purple);
  box-shadow: 0 6px 15px rgba(155, 89, 182, 0.3);
}
#motto .section-title {
  border-bottom-color: var(--c-color-purple);
}
#district-motto .section-title .section-icon-wrapper {
  background: var(--c-theme-gradient);
  box-shadow: 0 6px 15px rgba(0, 180, 216, 0.3);
}
#district-motto .section-title {
  border-bottom-color: var(--c-theme-secondary);
}
#map .section-title .section-icon-wrapper {
  background: var(--grad-blue);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}
#map .section-title {
  border-bottom-color: var(--c-color-blue);
}
#tree .section-title .section-icon-wrapper {
  background: var(--grad-green);
  box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
}
#tree .section-title {
  border-bottom-color: var(--c-color-green);
}
#flower .section-title .section-icon-wrapper {
  background: var(--grad-pink);
  box-shadow: 0 6px 15px rgba(233, 30, 99, 0.3);
}
#flower .section-title {
  border-bottom-color: var(--c-color-pink);
}
#song .section-title .section-icon-wrapper {
  background: var(--grad-orange);
  box-shadow: 0 6px 15px rgba(230, 126, 34, 0.3);
}
#song .section-title {
  border-bottom-color: var(--c-color-yellow);
}
.info-card, .info-card-horizontal, .info-card-text, .plant-card, .plant-card-small, .song-card {
  background: var(--c-bg-main);
  border-radius: 20px;
  box-shadow: var(--c-shadow-main);
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-left-width: 6px;
  border-left-style: solid;
}
.info-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 220px;
  margin-bottom: 0;
}
.info-card:hover, .info-card-horizontal:hover, .info-card-text:hover, .plant-card:hover, .plant-card-small:hover, .song-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--c-shadow-hover);
}
.info-card::before, .info-card-horizontal::before, .info-card-text::before, .plant-card::before, .plant-card-small::before, .song-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--spine-color-fade), transparent 30%);
  opacity: 0.1;
  pointer-events: none;
}
.color-red {
  border-left-color: var(--c-color-red);
  --spine-color-fade: var(--c-color-red);
}
.color-blue {
  border-left-color: var(--c-color-blue);
  --spine-color-fade: var(--c-color-blue);
}
.color-purple {
  border-left-color: var(--c-color-purple);
  --spine-color-fade: var(--c-color-purple);
}
.color-green {
  border-left-color: var(--c-color-green);
  --spine-color-fade: var(--c-color-green);
}
.color-yellow {
  border-left-color: var(--c-color-yellow);
  --spine-color-fade: var(--c-color-yellow);
}
.color-pink {
  border-left-color: var(--c-color-pink);
  --spine-color-fade: var(--c-color-pink);
}
.color-grey {
  border-left-color: var(--c-color-grey);
  --spine-color-fade: var(--c-color-grey);
}
.dm-1 {
  border-left-color: #f1c40f;
  --spine-color-fade: #f1c40f;
}
.dm-1 h5, .dm-1 h5 i {
  color: #f39c12 !important;
}
.dm-2 {
  border-left-color: #2ecc71;
  --spine-color-fade: #2ecc71;
}
.dm-2 h5, .dm-2 h5 i {
  color: #27ae60 !important;
}
.dm-3 {
  border-left-color: #e67e22;
  --spine-color-fade: #e67e22;
}
.dm-3 h5, .dm-3 h5 i {
  color: #d35400 !important;
}
.dm-4 {
  border-left-color: #e91e63;
  --spine-color-fade: #e91e63;
}
.dm-4 h5, .dm-4 h5 i {
  color: #c2185b !important;
}
.dm-5 {
  border-left-color: #9b59b6;
  --spine-color-fade: #9b59b6;
}
.dm-5 h5, .dm-5 h5 i {
  color: #8e44ad !important;
}
.dm-6 {
  border-left-color: #3498db;
  --spine-color-fade: #3498db;
}
.dm-6 h5, .dm-6 h5 i {
  color: #2980b9 !important;
}
.dm-7 {
  border-left-color: #e74c3c;
  --spine-color-fade: #e74c3c;
}
.dm-7 h5, .dm-7 h5 i {
  color: #c0392b !important;
}
.dm-8 {
  border-left-color: #1abc9c;
  --spine-color-fade: #1abc9c;
}
.dm-8 h5, .dm-8 h5 i {
  color: #16a085 !important;
}
.ps-teal, .ps-teal i {
  color: var(--c-color-teal);
}
.ps-orange, .ps-orange i {
  color: var(--c-color-orange);
}
.ps-purple, .ps-purple i {
  color: var(--c-color-purple);
}
.ps-pink, .ps-pink i {
  color: var(--c-color-pink);
}
.icon-box {
  width: 70px;
  height: 70px;
  font-size: 2rem;
  color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transform: rotate(-5deg);
  transition: 0.3s;
}
.info-card:hover .icon-box {
  transform: rotate(0deg) scale(1.1);
}
.color-red .icon-box {
  background: var(--grad-red);
}
.color-blue .icon-box {
  background: var(--grad-blue);
}
.color-purple .icon-box {
  background: var(--grad-purple);
}
.color-green .icon-box {
  background: var(--grad-green);
}
.color-yellow .icon-box {
  background: var(--grad-gold);
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--c-text-primary);
}
.stat-title {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  font-weight: 500;
}
.stat-badge {
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 0.8rem;
}
.info-card-text {
  text-align: left;
  margin-bottom: 30px;
}
.info-card-text h4 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.icon-box-inline {
  width: 45px;
  height: 45px;
  background: var(--c-theme-gradient);
  color: white;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 156, 255, 0.3);
}
.info-card-text p, .info-card-text ul {
  font-size: 1.05rem;
  color: var(--c-text-secondary);
}
.info-card-text ul {
  padding-left: 20px;
  margin-top: 15px;
}
.info-card-text ul li {
  margin-bottom: 10px;
}
.info-card-text ul li::marker {
  color: var(--c-theme-primary);
  font-size: 1.2em;
}
.info-card-horizontal {
  margin-bottom: 30px;
}
.symbol-section {
  background: var(--c-bg-main);
  border-radius: 30px;
  padding: 40px;
  box-shadow: var(--c-shadow-main);
  border: 1px solid var(--c-border);
  margin-top: 40px;
}
.sub-section {
  padding: 0;
  box-shadow: none;
  border: none;
  background: transparent;
  margin-top: 0;
}
.logo-container {
  background: var(--c-bg);
  border-radius: 50%;
  padding: 40px;
  margin: 30px auto;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--c-border);
  max-width: 300px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
}
.logo-container.rect-logo {
  border-radius: 20px;
  aspect-ratio: auto;
  width: 100%;
  max-width: 500px;
}
.logo-container img {
  max-width: 100%;
  height: auto;
  drop-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}
.logo-container:hover img {
  transform: scale(1.05);
}
.meaning-box, .motto-box {
  background: rgba(0, 156, 255, 0.03);
  border-radius: 16px;
  padding: 25px;
  border-left: 5px solid var(--c-theme-primary);
}
.motto-box h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-theme-primary);
  margin: 0;
  font-style: italic;
}
.motto-list {
  display: grid;
  gap: 20px;
}
.district-motto {
  margin-bottom: 0;
  padding: 20px;
}
.district-motto h5 {
  font-size: 1.1rem;
}
.district-motto p {
  font-size: 1rem;
  margin: 0;
}
.plant-card h4, .song-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.plant-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 5px;
  font-weight: 700;
}
.small-text {
  font-size: 1rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
}
.song-detail-box {
  background: rgba(0, 0, 0, 0.02);
  padding: 15px;
  border-radius: 12px;
  height: 100%;
  border-left: 3px solid transparent;
}
.song-detail-box.color-blue {
  border-color: var(--c-color-blue);
}
.song-detail-box.color-green {
  border-color: var(--c-color-green);
}
.song-detail-box.color-yellow {
  border-color: var(--c-color-yellow);
}
.lyrics-box {
  background: #f8fbfe;
  padding: 25px;
  border-radius: 20px;
  position: relative;
}
[data-theme="dark"] .lyrics-box {
  background: rgba(255, 255, 255, 0.05);
}
.lyrics-content {
  font-size: 1.1rem;
  line-height: 2;
  text-align: center;
  color: var(--c-text-primary);
  font-style: italic;
}
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--c-theme-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(0, 156, 255, 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, 156, 255, 0.6);
}
@media (max-width: 992px) {
  .modern-nav {
    width: 95%;
    top: 70px;
  }
  .menu-item span {
    display: none;
  }
  .menu-item i {
    margin: 0;
    font-size: 1.2rem;
  }
}
@media (max-width: 768px) {
  .modern-nav {
    top: auto;
    bottom: 20px;
    width: 90%;
    padding: 10px 0;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    z-index: 1100;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  }
  [data-theme="dark"] .modern-nav {
    background: rgba(30, 41, 59, 0.98);
  }
  .main-container {
    margin-top: 110px !important;
    margin-bottom: 100px !important;
    border-radius: 16px;
    margin-left: 10px;
    margin-right: 10px;
  }
  .modern-menu {
    justify-content: space-around;
    padding: 0 10px;
  }
  .menu-item {
    padding: 12px;
    border-radius: 50%;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .content-section {
    padding: 30px 0;
  }
  .info-card-horizontal .row > div {
    margin-bottom: 15px;
    text-align: center;
  }
  .text-center-mobile {
    text-align: center !important;
  }
  .map-mobile-fix {
    margin-top: 50px !important;
  }
}