
body {
    padding-top: 100px; /* หรือมากกว่านี้ ขึ้นอยู่กับความสูงของ navbar */
  }
a {text-decoration: none;}
.hrefHead{text-decoration: underline;}
.bg-color-1 {
  background-color: #004040;
}

.bg-color-2 {
  background-color: #c2e81a;
}
.logo-site {
  height: 50px;
}
.dropdown-menu{
  background-color: #c2e81a;
}
.dropdown-menu li {
  position: relative;
}
.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
  }
  .dropdown-menu .dropdown-submenu-left {
  right: 100%;
  left: auto;
  }
  .dropdown-menu > li:hover > .dropdown-submenu {
  display: block;
  }
.dropdown-submenu {
    position: absolute;
    top: 100% !important;
    left: 0;
    background-color: #c2e81a;
    margin-top: -30px;
    padding:30px;
    max-height: 60vh;
    width:max-content;
    overflow-y: auto;
    z-index: 1000;
}
.dropdown-submenu > li > a {
  color: #000;
}
.dropdown-submenu > li > a:hover {
  color: #555552;
}

.image-card {
  overflow: hidden;
}

.image-title {
  position: static;
  bottom: 10px;
  left: 10px;
  background-color: #fff;
  color: #000;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.9rem;
  text-align:center;
}

.image-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5); /* พื้นหลังโปร่ง */
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
}

.image-card img {
  transition: transform 0.3s ease;
}

.image-card:hover img {
  transform: scale(1.05); /* ขยาย 5% */
}

.responsive-title {
  font-size: clamp(1.5rem, 5vw, 3rem); /* เล็กสุด 1.5rem, ใหญ่สุด 3rem, ปรับตามความกว้างจอ */
  font-weight: 700;
}

.custom-grid {
  display: grid;
  /*place-items: center;  ทั้งแนวตั้งและแนวนอน */
  align-items: top;     /* แนวตั้ง */
  justify-items: left;   /* แนวนอน */
  grid-template-columns: 1fr; /* เริ่มต้น 1 คอลัมน์ */
  gap: 1rem;
}

.grid-item {
  background-color: #fff;
  padding: 1rem;
}
.social-share {
  margin-top: 20px;
}
.social-share a {
  margin-right: 10px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  color: white;
}

.btn-download {
  display: block;
  width: 100%;
  /*display: inline-flex;*/
  align-items: center;
  margin: 20px 0px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: #1967d2;
  border: 1px solid #dadce0;
  border-radius: 24px;
  text-decoration: none;
  transition: background-color 0.3s, box-shadow 0.2s;
}

.btn-download:hover {
  background-color: #e8f0fe;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
  color: #1967d2;
}

.btn-download i {
  font-size: 16px;
}

.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 10px #000;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

/* สไตล์สำหรับแถบยอมรับคุกกี้ */
     #cookieConsent {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 20px;
        display: none;
        z-index: 1000;
    }
    #cookieConsent button {
        background-color: #4CAF50;
        color: #fff;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
        margin-left: 15px;
    }
    #cookieConsent button:hover {
        background-color: #45a049;
    }

#backToTop {
        display: none; /* ซ่อนปุ่มไว้ในตอนเริ่มต้น */
        position: fixed;
        bottom: 120px;
        right: 20px;

  
  background-color: #c2e81a;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
 
    }


@media (max-width: 320px) {
  .image-title {
    font-size: 0.7rem;
  }
}
@media (max-width: 992px) {
  .navbar-nav {
    padding-left:20px;
  }
  .dropdown-menu{
    margin-left: 20px;
  }
  .dropdown-submenu {
    position: static;
    left: 0;
    background-color: #bfbcbc;
    width:100%;
    margin-left: 30px;
    margin-top: 0px;
}
  .dropdown-menu .dropdown-submenu {
    display: none;
    position: static;
    left: 0;
    }
}
@media (min-width: 768px) {
  .custom-grid {
    grid-template-columns: repeat(2, 1fr); /* เปลี่ยนเป็น 2 คอลัมน์เมื่อหน้าจอ >= 768px */
  }
}
@media (min-width: 1440px) {
 
}




 