* {
  margin: 0;
  padding: 0;
}

li {
  list-style-type: none;
}

a {
  color: #333;
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: 'Roboto Condensed', sans-serif;
}

header {
  height: 100px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#headerInner {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#headerInner #logo {
  display: block;
}

#headerInner nav ul {
  display: flex;
  gap: 45px;
  padding-top: 10px;
}

#headerInner nav a {
  font-size: 16px;
  line-height: 1.5;
  font-weight: bold;
  transition: all 0.3s ease;
}

nav li:nth-child(-n+4) a:hover {

  color: #e76d08;
}

nav li:last-child {
  padding-top: 0;
}

nav li:last-child a {
  background-color: #06f57d;
  color: #fff;
  display: block;
  padding: 6px 40px;
  border: 2px solid #31f10a;
  margin-right: 0px;
  margin-top: 0;
  font-size: 1.1em;
  transition: all .3s ease;
  border-radius: 6px;
}

#mainPhoto {
  background-image: url(../../images/main.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  height: 400px;
  color: #fff;
  font-size: 3em;
  font-weight: normal;
  text-shadow: 1px 1px 5px #333;
  padding: 100px 15%;
}

#contents {
  width: 1200px;
  margin: 50px auto 100px;
  display: flex;
  gap: 50px;
}

#menu {
  width: 960px;
  margin: 0 auto;
}

#menu ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  justify-content: space-between;
}

#menu li {
  width: 30%;
  text-align: center;
  overflow: hidden; /* ซ่อนส่วนที่เกินกรอบ */
  position: relative;
}

#menu img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  transform-origin: center center; /* ตั้งจุดหมุนที่ตรงกลาง */
}
#menu figcaption {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

#menu a:hover img {
  opacity: 0.7;
}

#menu .new::before {
  content: "Poppular";
  color: #fff;
  background-color: #B01717;
  display: block;
  padding: 10px;
  position: absolute;
}

#info {
  background-color: #f8f3f0;
  width: 340px;
  padding: 30px;
}

#info ul {
  margin-top: 20px;
}

#info li {
  margin-bottom: 10px;
  line-height: 130%;
  border-bottom: 1px dashed #d0baa8;
}

#info span {
  color: #5a412d;
}

footer {
  background-color: #f0720b;
  padding: 20px 0;
}

footer p {
  color: #fff;
}

footer a {
  color: #fff;
}

#footerInner {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footerInner ul {
  display: flex;
}

#footerInner li {
  margin-left: 20px;
  background-image: url(../images/arrow.jpg);
  background-repeat: no-repeat;
  background-position: center left;
  padding-left: 15px;
}

.team-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #fff;
}

.team-header {
  text-align: center;
  margin-bottom: 40px;
}

.team-subtitle {
  text-transform: uppercase;
  color: #FF6600;
  letter-spacing: 5px;
  margin-bottom: 10px;
}

.team-title {
  font-size: 2.5em;
  margin: 0;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.team-card {
  width: 220px;
  background-color: #F2F1F8;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.team-img img {
  width: 100%;
  height: auto;
  display: block;
}

.team-info {
  padding: 20px;
}

.team-info h5 {
  margin-bottom: 5px;
  font-size: 18px;
}

.team-info p {
  margin: 0;
  color: #666;
}

/* ตกแต่งกล่องลงทะเบียน */
#Registration {
  padding: 60px 20px;
  background-color: #f1f1f1;
  font-family: 'Roboto Condensed', sans-serif;
}

.team-header {
  text-align: center;
  margin-bottom: 40px;
}

.team-subtitle {
  font-size: 1.2em;
  color: #6c757d;
}

.team-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #333;
}

.card {
  max-width: 500px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}



.card-body {
  background-color: #fff;
  padding: 30px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.btn {
  background-color: #08a858;
  color: #fff;
  font-size: 1.1em;
  padding: 15px;
  width: 100%;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #f0720b;
}

.card-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

#menu img:hover {
  transform: scale(1.1); /* ขยายภาพเล็กน้อยเมื่อเมาส์ไปโดน */
}