:root {
  --primary-color: #00b8a9;
  --secondary-color: #f8f3d3;
  --accent-color: #f6416c;
  --dark-color: #2c3333;
  --light-color: #f9f9f9;
  --text-dark: #2c3333;
  --text-light: #666;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}
.modal-content {
  position: relative;
  background-color: white;
  margin: 2% auto;
  width: 90%;
  max-width: 900px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.modal-header h2 {
  font-size: 1.8rem;
  margin: 0;
  font-family: 'Playfair Display', serif;
}
.close {
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.modal-body {
  padding: 2rem;
}
.modal-image {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-details {
  line-height: 1.6;
}
.modal-details h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.modal-details p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}
.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.modal-info-item {
  background: var(--light-color);
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}
.modal-info-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}
.modal-highlights,
.modal-tips {
  margin: 2rem 0;
}
.modal-highlights h4,
.modal-tips h4 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.modal-highlights ul,
.modal-tips ul {
  list-style: none;
  padding: 0;
}
.modal-highlights li,
.modal-tips li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 2rem;
}
.modal-highlights li::before {
  content: '★';
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 0.8rem;
}
.modal-tips li::before {
  content: '💡';
  position: absolute;
  left: 0;
  top: 0.8rem;
}
.modal-highlights li:last-child,
.modal-tips li:last-child {
  border-bottom: none;
}
@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .modal-content {
    margin: 5% auto;
    width: 95%;
  }
  .modal-header {
    padding: 1.5rem;
  }
  .modal-body {
    padding: 1.5rem;
  }
  .modal-image {
    height: 200px;
  }
  .modal-info-grid {
    grid-template-columns: 1fr;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Prompt', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-optical-sizing: auto;
  font-display: swap;
}
/* Typography with better fallbacks */
h1, h2, h3, .hero h1, .section-title h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-display: swap;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ffffff, var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}
/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom/cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ffffff, var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s both;
}
.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  animation: fadeInUp 1s ease-out 0.6s both;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(246, 65, 108, 0.4);
}
/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 3rem;
}
nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 25px;
  transition: var(--transition);
  position: relative;
}
nav a:hover, nav a.active {
  color: var(--primary-color);
  background: rgba(0, 184, 169, 0.1);
}
nav span {
  margin-left: 10px;
}
/* Slideshow */
.slideshow-section {
  padding: 100px 0;
  background: var(--light-color);
}
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}
.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  background: white;
  height: 500px;
  transform-style: preserve-3d;
  perspective: 1200px;
  animation: containerGlow 4s ease-in-out infinite;
}
.slideshow-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      rgba(0, 184, 169, 0.1),
      rgba(255, 111, 97, 0.1),
      rgba(139, 69, 19, 0.1));
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slideshow-container::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
      var(--primary-color),
      var(--accent-color),
      var(--primary-color));
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  animation: gradientShift 8s ease infinite;
  transition: opacity 0.6s ease;
}
.slideshow-container:hover::before {
  opacity: 1;
}
.slideshow-container:hover::after {
  opacity: 0.3;
}
.slideshow-container:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(0, 184, 169, 0.2);
}
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1.1) rotate(2deg);
  filter: blur(2px) brightness(0.8);
}
.slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1) rotate(0deg);
  filter: blur(0) brightness(1);
}
.slide.fade-out {
  opacity: 0;
  transform: scale(0.95) rotate(-1deg);
  filter: blur(3px) brightness(0.6);
}
.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: all 0.8s ease;
  filter: brightness(0.9) saturate(1.2) contrast(1.1);
  transform-origin: center;
}
.slide picture {
  width: 100%;
  height: 100%;
  display: block;
}
.slide picture img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: all 0.8s ease;
  filter: brightness(0.9) saturate(1.2) contrast(1.1);
  transform-origin: center;
}
.slide:hover img,
.slide:hover picture img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.4) contrast(1.2);
}
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 4rem 2rem 2rem;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease;
  backdrop-filter: blur(15px);
  border-radius: 0 0 20px 20px;
}
.slide.active .slide-caption {
  transform: translateY(0);
  opacity: 1;
}
.slide-caption h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: none;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}
.slide.active .slide-caption h3 {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.3s;
}
.slide-caption p {
  opacity: 0;
  font-size: 1.1rem;
  transform: translateY(30px);
  animation: none;
  transition: all 0.8s ease;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}
.slide.active .slide-caption p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
}
.slideshow-container:hover .slide-nav {
  opacity: 0.8;
}
.slide-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.15) rotate(5deg);
  opacity: 1;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  color: var(--primary-color);
}
.slide-nav:active {
  transform: translateY(-50%) scale(0.95);
}
.slide-nav button {
  z-index: 11;
}
.prev {
  left: 20px;
  animation: navButtonFloat 3s ease-in-out infinite;
}
.next {
  right: 20px;
  animation: navButtonFloat 3s ease-in-out infinite reverse;
}
.slide-indicators {
  text-align: center;
  padding: 2rem;
}
.indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ddd, #ccc);
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}
.indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  transition: all 0.6s ease;
}
.indicator:hover {
  transform: scale(1.3) rotate(10deg);
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  box-shadow: 0 0 20px rgba(0, 184, 169, 0.4);
}
.indicator.active {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  transform: scale(1.4);
  box-shadow: 0 0 25px rgba(0, 184, 169, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
  animation: indicatorPulse 2s infinite;
}
.indicator.active::before {
  width: 120%;
  height: 120%;
}
/* Content Sections */
.main-content {
  padding: 100px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}
.content-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  transform: translateY(30px);
}
.content-card.show {
  opacity: 1;
  transform: translateY(0);
}
.content-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.content-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.content-card picture {
  width: 100%;
  height: 250px;
  display: block;
  overflow: hidden;
}
.content-card picture img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.content-card:hover picture img {
  transform: scale(1.05);
}
.card-content {
  padding: 2rem;
}
.card-content h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.card-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.card-info {
  margin-top: 1rem;
}
.card-info strong {
  color: var(--primary-color);
}
.learn-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 25px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
}
.learn-more:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}
/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%232c3333" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') bottom/cover no-repeat;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}
.footer-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}
/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Keyframes Animations */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: scale(1.1) rotate(2deg);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}
@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) rotate(-1deg);
    filter: blur(3px);
  }
}
@keyframes captionSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes indicatorPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 184, 169, 0.6);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(0, 184, 169, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 184, 169, 0);
  }
}
@keyframes navButtonFloat {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-3px);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes containerGlow {
  0%, 100% {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 25px 60px rgba(0, 184, 169, 0.1),
      0 35px 80px rgba(0, 0, 0, 0.2);
  }
}
@media (max-width: 960px) {
  .slideshow-section {
    padding: 50px 10px;
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  nav ul {
    gap: 1rem;
    padding: 1rem;
  }
  .content-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .slide img {
    height: 300px;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .slide-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .prev {
    left: 10px;
  }
  .next {
    right: 10px;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
  .card-content {
    padding: 1.5rem;
  }
  .main-content {
    padding: 50px 0;
  }
}
#modalInfo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}