* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
  }

/* Header */
header {
  background: linear-gradient(90deg, #4db991, #054836);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Navigation */
  nav {
    background: linear-gradient(90deg, #4db991, #054836);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Logo */
  .nav-logo img.faculty-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
  }
  
  /* Links */
  .nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: background 0.3s, color 0.3s;
  }
  
  .nav-links a:hover {
    background-color: white;
    color: #6c096f;
  }

  @media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: center;
    }
  
    .nav-links {
      flex-direction: column;
      align-items: center;
      width: 100%;
      margin-top: 0.5rem;
    }
  
    .nav-links a {
      width: 100%;
      text-align: center;
    }
  }
  
  

.carousel {
  max-width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(15, 23, 42, 0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}
.carousel-slide {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.carousel-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(82, 116, 119, 0.5);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


section {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


h2 {
  margin-bottom: 1rem;
  color: #1e293b;
}

ul {
  list-style: none;
  padding-left: 1rem;
}

ul li::before {
  content: "\2022";
  color: #38bdf8;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.advisor-gallery {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.advisor-gallery div {
  text-align: center;
}

.advisor-card {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.advisor-gallery p {
  margin-top: 0.5rem;
  font-weight: bold;
}

footer {
  background: linear-gradient(90deg, #4db991, #054836);
  color: white;
  text-align: center;
  padding: 1rem;
}
body {
    background-image: url('image/pic05.png'); /* ใส่ภาพพื้นหลังที่คุณต้องการ */
    background-size: cover;                /* ปรับให้ภาพเต็มหน้าจอ */
    background-position: center;          /* จัดตำแหน่งภาพให้อยู่ตรงกลาง */
    background-attachment: fixed;         /* ทำให้ภาพพื้นหลังไม่เลื่อนตาม */
    background-repeat: no-repeat;         /* ไม่ต้องให้ภาพซ้ำ */
    color: #333;
  }

   main {
    background: rgba(255, 255, 255, 0.85); /* ขาวโปร่งใส อ่านง่าย */
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 1em auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
  } 

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* ม่านขาวบางๆ คลุมทั้งหน้า */
    z-index: -1;
  }
  
  .advisor-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
  }
  
  .advisor-card-wrapper {
    width: 100%;
    max-width: 300px;
  }
  
  .advisor-card-box {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .advisor-card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  
  .advisor-card-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
  }
  
  .advisor-name {
    padding: 1rem;
    font-weight: bold;
    color: #00796b;
  }

  .advisor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .advisor-btn {
    background-color: #ffffff;
    color: #088765;
    border: 2px solid #128570;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(155, 103, 149, 0.1);
    min-width: 280px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .advisor-btn:hover {
    background-color: #e1f3ef;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(27, 131, 119, 0.2);
  }
  
  @media (max-width: 992px) {
    .advisor-gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .advisor-gallery {
      grid-template-columns: 1fr;
    }
  }
  
  .student-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
  }
  
  .student-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #712671; /* ฟ้าอมเขียว */
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, transform 0.2s;
    min-width: 280px;
    
  }
  
  .student-btn:hover {
    background-color: #00897b;
    transform: translateY(-3px);
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .social-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .social-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background 0.3s, transform 0.2s;
  }
  
  .social-btn:hover {
    transform: translateY(-3px);
  }
  
  .facebook {
    background-color: #1877f2;
  }
  
  .line {
    background-color: #06c755;
  }
  
  .instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  }
  
  /* QR */
  .qr-section {
    text-align: center;
    margin-top: 2rem;
  }
  
  .qr-section h3 {
    margin-bottom: 1rem;
    color: #00796b;
  }
  
  .qr-code {
    max-width: 200px;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  /* Map */
  .map-container {
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  