* 



{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Sarabun', sans-serif;
}
/*
body {
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
  */
  
header {
  background-color: #7a0026;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
header .logo-title {
  display: flex;
  align-items: center;
}
header img {
  height: 60px;
  margin-right: 15px;
}
header h1 {
  font-size: 1.5rem;
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
}









.gallery-section {
  padding: 60px 30px;
  background-color: #fff;
  text-align: center;
}

.gallery-title {
  font-size: 2rem;
  color: #7a0026;
  margin-bottom: 10px;
}

.gallery-divider {
  width: 60px;
  height: 4px;
  background-color: #ffc107;
  margin: 0 auto 40px auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-grid .gallery-item {
  overflow: hidden;
  border-radius: 10px;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-grid .gallery-item img:hover {
  transform: scale(1.1);
}
















@media screen and (max-width: 768px) {
  .desktop-contact {
    display: none !important;
  }
  .mobile-contact {
    display: flex !important;
    justify-content: center;
    gap: 15px;
  }
}



nav {
  background-color: #a20e34;
  padding: 10px 30px;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
nav ul li {
  position: relative;
  margin-right: 20px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: background 0.3s;
}
nav ul li a i {
  margin-right: 8px;
}
nav ul li a:hover {
  background-color: #c02e51;
  border-radius: 4px;
}
nav ul li:hover > ul {
  display: block;
}
nav ul ul {
  display: none;
  position: absolute;
  background-color: #d61f4e;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}
nav ul ul li {
  width: 100%;
}
nav ul ul li a {
  padding: 10px;
}
.slider-modern {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  height: 400px;
  margin: 30px auto;
}
.slider-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.slider-modern:hover img {
  transform: scale(1.05);
}
.slide-wrapper {
  display: flex;
  transition: transform 0.6s ease;
}
.slide-container {
  position: relative;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}
.prev { left: 10px; }
.next { right: 10px; }
.content-section {
  padding: 40px 30px;
  text-align: center;
}
.content-section h2 {
  color: #7a0026;
  margin-bottom: 20px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}
footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}
footer a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
  }
  nav ul.active {
    display: flex;
  }
  nav ul li {
    margin: 0;
  }
}
 body {
      font-family: 'Sarabun', sans-serif;
      margin: 0;
      padding: 0;
      scroll-behavior: smooth;
    }
    header, nav, footer {
      width: 100%;
    }
    @media screen and (max-width: 768px) {
      .slider-modern {
        width: 100vw;
        height: auto;
      }
      .slider-modern img {
        width: 100%;
        height: auto;
        object-fit: cover;
      }
     .slider-container {
  width: 100%;
  max-width: 1200px;   /* กันภาพใหญ่เกิน */
  margin: auto;
  position: relative;
  overflow: hidden;
}
  
      .slide {
        display: none;
        width: 100%;
      }
  
      .slide img {
  width: 100%;        /* ปรับให้กว้างพอดี */
  height: auto;       /* ให้สูงปรับตามสัดส่วน */
  display: block;
  object-fit: cover;  /* ครอบให้เต็ม */
  border-radius: 10px;
}
  
      .dot-container {
  text-align: center;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}
  
      .dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}
  
      .dot.active {
  background-color: #7a0026; /* สีหลักของเว็บ */
}
    
    .back-to-top {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #7a0026;
      color: white;
      padding: 12px 15px;
      border-radius: 50%;
      font-size: 20px;
      cursor: pointer;
      display: none;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
      z-index: 1000;
    }
    .chat-button {
      position: fixed;
      bottom: 80px;
      right: 20px;
      background: #00c300;
      color: white;
      padding: 12px 20px;
      border-radius: 25px;
      font-size: 16px;
      font-weight: bold;
      text-decoration: none;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      z-index: 1000;
    }
    iframe.map {
      width: 100%;
      height: 300px;
      border: none;
      margin-top: 20px;
    }
    .news-card a {
      transition: background-color 0.3s, transform 0.3s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .news-card a:hover {
      background-color: #ff9800;
      transform: scale(1.05);
    }
    .news-card a::after {
      content: '061'; /* fa-arrow-right */
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      font-size: 14px;
      transition: transform 0.3s;
    }
    .news-card a:hover::after {
      transform: translateX(4px);
    }
    .events-carousel {
      display: flex;
      gap: 20px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 10px;
    }
    .events-carousel .news-card {
      flex: 0 0 300px;
      scroll-snap-align: start;
    }
    .events-carousel::-webkit-scrollbar {
      height: 8px;
    }
    .events-carousel::-webkit-scrollbar-thumb {
      background-color: #ccc;
      border-radius: 10px;
    }
    
    .petal-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }
    .petal {
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url('https://cdn-icons-png.flaticon.com/512/766/766535.png'); /* รูปดอกกุหลาบสีชมพู */
  background-size: cover;
  background-repeat: no-repeat;
  animation: fall linear infinite;
  opacity: 0.8;
    }
    @keyframes fall {
      0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
      10% { opacity: 1; }
      100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
    }
<--->
    .info-box {
      background: white;
      border-radius: 10px;
      overflow: hidden;
      text-align: left;
      transition: transform 0.3s, box-shadow 0.3s;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    }
    .info-box:hover {
      transform: translateY(-6px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    .info-box a {
      transition: all 0.3s;
    }
    .info-box a:hover span {
      transform: translateX(4px);
      display: inline-block;
    }
    
  </style>