@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,600&display=swap');

:root {
  --font-main: 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --kc-blue-900: #0c2340;
  --kc-blue-800: #1e3a8a;
  --kc-blue-700: #1d4ed8;
  --kc-blue-600: #2563eb;
  --kc-blue-500: #3b82f6;
  --kc-blue-100: #dbeafe;
  --kc-red-600: #dc2626;
  --kc-red-700: #b91c1c;
  --kc-gold-500: #f59e0b;
}

body {
  font-family: var(--font-main);
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.55;
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.glass-dark {
  background: rgba(12, 35, 64, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Gradients */
.bg-kc-gradient {
  background: linear-gradient(135deg, #0c2340 0%, #1e3a8a 50%, #1e40af 100%);
}

.bg-kc-accent-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card Hover Animations */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Swiper Slider Enhancements */
.hero-swiper {
  border-radius: 1.5rem;
  padding-bottom: 48px !important;
}
.hero-swiper .swiper-slide {
  height: auto;
  display: flex;
}
.hero-swiper .swiper-button-prev {
  left: 6px;
}
.hero-swiper .swiper-button-next {
  right: 6px;
}
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: #fff;
  background: rgba(12, 35, 64, 0.75);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  top: 42%;
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: rgba(37, 99, 235, 0.95);
}
.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
  font-size: 14px;
  font-weight: bold;
}
.hero-swiper .swiper-pagination {
  bottom: 8px !important;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: #dc2626 !important;
  width: 24px;
  border-radius: 6px;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Mobile Offcanvas Drawer */
.mobile-drawer {
  transition: transform 0.3s ease-in-out;
}

/* Badge styles */
.badge-pulse {
  animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

/* Facebook Embed Responsive Container */
.fb-embed-container {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 450px;
  max-height: 480px;
  overflow: hidden;
}
.fb-embed-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 450px !important;
  height: 480px !important;
  border-radius: 1rem !important;
  border: none !important;
  box-shadow: none !important;
}
