@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');



@font-face {
  font-family: 'DMSansVariable';
  src: url('./DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; /* กรณีเป็น variable font มีน้ำหนักตั้งแต่ 100 ถึง 900 */
  font-style: normal;
  font-display: swap; /* ช่วยให้โหลดฟอนต์ได้เร็ว */
}


body, h1, h2, h3, h4, h5, h6 , span ,ol ,li{
  font-family: 'DMSansVariable', "Sarabun", 'sans-serif';
  font-weight: 400; /* เลือกน้ำหนักฟอนต์ที่ต้องการใช้ */
}





.mg-hr {
    width: 25px;
}

.logo-nav img {
    width: 100px;
}

.banner-home {
  height: 800px;
  width: 100%;
  background-position: center;
  background-size: cover;
}

.banner-digital-art {
  height: 800px;
  width: 100%;
  background-position: center;
  background-size: cover;
}

.navbar-header {
  /* background-image: url('/images/banner-1.jpg'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  top: 0;
  position: fixed;
  z-index: 3;
  left: 0;
}

.navbar-header.active {
  background-color: #f1592a7a;
}

.navbar-header nav {
  padding-right: 0;
}

.overlay {
  background-color: rgb(255 255 255 / 50%);
  backdrop-filter: blur(4px);
  width: 100%;
  position: relative;
  z-index: 2;
}

.logo-nav img {
  max-height: 60px;
}

.nav-link {
  font-weight: bold;
  color: black;
}

.nav-link.active {
  color: orangered !important;
}

.dropdown-menu {
  background-color: #f1f1f1;
  border-radius: 6px;
  border: none;
  padding: 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 12px 20px;
  font-weight: bold;
  color: black;
}

.dropdown-item:hover {
  background-color: #e2e2e2;
}

.search-bar-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.search-form input {
  height: 42px;
  width: 100%;
  border-radius: 50px;
  border: none;
  padding-left: 40px; /* เผื่อระยะไอคอน */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 940px;
}

.search-form button {
    position: absolute;
    height: 80%;
    width: 91px;
    right: -40px;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 40px;
    background: #000;
    color: #fff;
    border: 0;
    outline: none !important;
    opacity: 0;
    transition: 0.15s;
}

        .search-form input:focus + button,
        .search-form input:focus ~ button,
        .search-form:focus-within button {
            opacity: 1;
        }

.search-icon-left {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: black;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: black;
}

.search-center-wrapper {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  flex-wrap: wrap;
  width: 100%;
  gap: 25px;
}

.dropdown .btn-light {
  height: 42px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-width: 100px;
  width: 140px;
}


.dropdown .fa-chevron-down {
  font-size: 12px;
}



.footer {
  background-color: #111; /* ดำเข้ม */
  padding: 40px 0;
}

.footer-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  text-decoration: none !important;
}

.footer a:hover {
  text-decoration: underline;
}

.social-icons a {
  font-size: 20px;
  margin-right: 15px;
  color: #fff;
}

.social-icons {
    display: flex;
    position: relative;
    /* left: 87px; */
    justify-content: center;
}

.navbar-nav .nav-link:not(:has(img)) {
  color: #000 !important;
}

.navbar-nav .nav-link:not(:has(img)):hover {
  color: #ff4500 !important;
}






.subscribe-section {
  background-color: #333; /* เทาเข้ม */
  padding: 30px 20px;
  color: white;
  font-size: 16px;
}

.subscribe-section p {
    font-size: 19px;
}

.subscribe-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #ff4500; /* สีปุ่มส้ม */
  color: white;
  padding: 10px 50px;
  font-size: 21px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
  background-color: #e03e00;
  text-decoration: none !important;
  color: #fff;
}

.gallery-item {
   position: relative;
   overflow: hidden;
}

.favorite-icon {
   position: absolute;
   top: 10px;
   right: 10px;
   display: flex;
   align-items: center;
   gap: 4px;
   padding: 4px 8px;
   border-radius: 20px;
   background: #00000057;
}

.favorite-icon img {
   width: 18px;
   height: 18px;
   filter: brightness(1000%);
}

.like-count {
   color: white;
   font-size: 17px;
   font-weight: 500;
}


.favorite-btn {
   background: transparent;
   border: none;
   padding: 0;
   cursor: pointer;
}

.favorite-btn img {
   width: 22px;
   height: 22px;
}

.d-none {
   display: none;
}



.gallery {
  padding: 40px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 คอลัมน์ */
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}


.gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hover-overlay-home {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: rgba(0, 0, 0, 0.726);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  color: white;
  line-height: 35px;
}

.art-box-home:hover .hover-overlay-home {
  opacity: 1;
}




/* Overlay item */
.overlay-item .overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.overlay-item .top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.overlay-item .top-right i {
  color: white;
}

.overlay-item .bottom-content h5 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.overlay-item .bottom-content p {
  font-size: 13px;
  margin: 5px 0;
}

.download-btn {
  background: white;
  color: black;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 8px;
}



.about-us {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: #111;
  padding: 60px 53px;
  max-width: 1100px;
  margin: auto;
  margin-bottom: 150px;
}

.about-us-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.about-image {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.about-image img {
  width: 100%;
  background-color: #e5e5e5;
  border-bottom: 3px solid #ff4500; /* เส้นใต้รูป */
}

.about-text {
  flex: 2;
  min-width: 300px;
  position: relative;
}

.head-us {
  text-align: center;
  margin-top: 50px;
}

.head-us h2 {
  font-size: 37px;
  font-weight: 500;
}

.head-us p {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.about-text h4 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 400;
}

.about-text a {
    text-decoration: none !important;
}

.more-btn {
  display: inline-block;
  padding: 1px 13px;
  border: 1px solid #000;
  border-radius: 50px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.3s;

  position: relative;
  top: 50px;
}

.more-btn:hover {
  background-color: #000;
  color: #fff;
}




.contact-section {
  text-align: center;
  background: #e5e5e5;
  padding-bottom: 130px;
  padding-top: 80px;
}

h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
}

.contact-hd {
  margin-bottom: 30px;
  margin-top: 10px;
}

.contact-hd h2 {
  font-size: 37px;
  font-weight: 600;
}

.contact-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px;
  background: white;
  border: 1px solid #ff7a00;
  border-radius: 40px;
}

.contact-box h3 {
  text-align: left;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-box p {
  text-align: left;
  font-size: 17px;
  font-weight: 400;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* ระยะห่างระหว่าง form-row */
}

.form-row {
  display: flex;
  flex-direction: column;
}

.two-col {
  flex-direction: row;
  gap: 20px;
}

.two-col .form-group {
  flex: 1;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #333;
  border-radius: 12px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none !important;
}

.form-textarea {
  height: 160px;
  resize: none;
}

.submit-btn {
  width: 100%;
  background: #1a1a1a;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #ff7a00;
}

.footer-info {
    display: flex;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-left {
  text-align: left;
  width: 90%;
}

.footer-left strong {
  font-size: 17px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.footer-left p {
  font-size: 14px;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

.social-icons-2 {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 23%;
  gap: 8px;
}

.social-icons-2 a {
  text-decoration: none !important;
  display: flex;
  font-size: 14px;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons-2 a:hover {
  color: #111;
}

.social-icons-2 a i {
  margin-right: 8px;
  font-size: 30px;
  vertical-align: middle;
  transition: color 0.3s ease;
}

/* เฉพาะ icon เปลี่ยนสีเมื่อ hover */
.social-icons-2 a:hover i {
  color: #ff7a00;
}




.subscribe-group {
  min-height: 73vh;
  box-sizing: border-box;
  margin-top: 170px;
}

.subscribe-group h1 {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.sb-group {
  width: 100%;
  margin: 0 auto;
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 40px 32px;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
}

.form-header {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 4px;
}

.signin-link {
  font-size: 14px;
  margin-bottom: 25px;
}

.signin-link a {
  color: orangered;
  text-decoration: none;
  font-weight: 500;
}

.form-spacing {
  margin-bottom: 30px; /* ปรับความห่างในอนาคตได้ง่าย */
      color: inherit !important; /* ใช้สีเดิมจาก parent element */
    text-decoration: none !important; /* ไม่มีขีดเส้นใต้ */
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 15px 16px;
  cursor: pointer;
  font-size: 17px;
  background-color: #fff;
  transition: background-color 0.2s ease;
  color: inherit !important;
  text-decoration: none !important;
}

.auth-btn img {
  width: 30px;
  margin-right: 10px;
}

.auth-btn:hover {
  background-color: #f9f9f9;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  text-align: left;
}

.checkbox input {
  margin-right: 10px;
  margin-top: 3px;
  accent-color: orangered;
}

.checkbox strong {
  color: #000;
  font-size: 17px;
}

.checkbox small {
  color: #888;
  display: block;
  font-size: 14px;
  margin-top: 2px;
}




.sign-in-group {
  background: url('/images/bg-sing.jpg') no-repeat center center/cover;
  width: 100%;
}

.group-sign {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  min-height: 100vh;
}

.left-side h2 {
  flex: 1;
  color: #fff;
  font-size: 59px;
  font-weight: bold;
  text-align: left;
  line-height: 1.3;
  max-width: 380px;
}

.right-side {
  display: flex;
  justify-content: right;
  align-items: center;
  flex: 1;
  padding: 20px;
}

.sign-in-box {
    background-color: #fff;
    width: 100%;
    max-width: 440px;         /* 👈 ปรับจาก 380px เป็น 440px */
    padding: 48px 36px;       /* 👈 เพิ่ม padding ให้กล่องดูโปร่งขึ้น */
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
}



.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  margin-bottom: 20px;
  text-decoration: none !important;
    color: inherit !important;
}

.google-btn img {
  width: 20px;
}

.divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ccc;
}

.divider span {
  background: #fff;
  position: relative;
  padding: 0 10px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.form-label-row label {
  font-weight: 500;
  font-size: 17px;
}

.label-left span {
  font-weight: 500;
  font-size: 17px;
}

.label-right {
  width: 50%;
  display: flex;
  justify-content: right;
  gap: 5px;
}


.checkbox-inline {
  display: flex;
  align-items: baseline;  /* 👈 แนวเดียวกันกับ label ซ้าย */
  gap: 6px;
  font-size: 14px;
  line-height: 1;
}


.form-group input , .form-group select{
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #000000;
  margin-top: 6px;
  outline: none !important;
}

.remember-me {
  font-size: 12px;
  margin-top: 8px;
  display: block;
}


.forgot {
  font-size: 13px;
  color: orangered;
  text-decoration: none;
}

.submit-btn {
  width: 100%;
  background: rgb(0, 0, 0);
  color: white;
  padding: 17px;
  border: none;
  font-weight: bold;
  font-size: 17px;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 25px;
}

.bottom-text {
  margin-top: 20px;
  font-size: 14px;
}

.bottom-text a {
  color: orangered;
  text-decoration: none;
}

.policy-note {
  font-size: 11px;
  color: #888;
  margin-top: 20px;
}
.policy-note a {
  color: orangered;
  text-decoration: none;
}


.tag-section {
  background-color: #ff4500; /* พื้นหลังสีส้ม */
  padding: 30px 0;
  text-align: center;
}

.tag-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tag-container a {
  text-decoration: none !important;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: white;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.tag:hover {
  background: white;
  color: #ff4500;
}




.digital-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 40px 16px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-left h2 {
  font-size: 28px;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.header-left h2 {
  font-size: 39px;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-button span {
  font-size: 17px;
  font-weight: 600;
}

.filter-button i {
  font-size: 20px;
}

.header-right .sort-select {
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #333;
  background-color: #fff;
  color: #000;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 160px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23000' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
}



#contributors{
  position: relative;
  top: -200px;
  z-index: -1;
}



.art-box {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 400px;
}

.art-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.art-box:hover img {
  transform: scale(1.05);
}

.hover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px; /* เฉพาะครึ่งล่าง */
  background: rgba(0, 0, 0, 0.726);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  text-decoration: none !important;
}

.art-box:hover .hover-overlay {
  opacity: 1;
}

.overlay-content {
  color: white;
  width: 100%;
}

.overlay-content h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.overlay-content p {
  font-size: 14px;
  margin-bottom: 10px;
  height: 38px;
  overflow: hidden;
}

.download-btn {
  text-decoration: none !important;
}

.download-btn {
  display: inline-block;
  padding: 0px 18px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.download-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-color: #fff;
}


.download-btn-custom {
  display: inline-block;
  padding: 5px 18px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  background: transparent;
}


.download-btn-custom:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-color: #fff;
}



.download-group {
  padding-bottom: 150px;
  margin-top: 10rem;
}

.breadcrumb-custom {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
}

.breadcrumb-custom a {
  text-decoration: none;
  color: #111;
  font-weight: 400;
  text-decoration: none !important;
}

.breadcrumb-custom a:hover {
  color: #000;
}

.breadcrumb-custom a.current {
  font-weight: 500;
}

.breadcrumb-custom .divider {
  color: #888;
}



.art-image-wrapper {
  width: 100%;
  min-height: 500px;
  background: no-repeat;
  background-size: cover;
  background-position: center;
}

.art-image {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.download-btn-block {
  display: inline-block;
  max-width: 370px;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  border: 1px solid #000;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
  margin-top: 20px;
  text-decoration: none !important;
}

.download-btn-block:hover {
  background-color: #000;
  color: #fff;
}

.text-orange {
  color: #f25c05;
  text-decoration: none !important;
}

.text-orange:hover {
  color: #f25c05;
}

.share-icons {
  display: flex;
  gap: 10px;
}


.gap-5 {
  gap: 5px;
}



.view-all-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 600px;
  margin-top: 50px;
}

.tag-view {
  display: inline-block;
  border: 1px solid #000;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 19px;
  color: #000;
  text-decoration: none;
  transition: background 0.2s ease;
  text-decoration: none !important;
}

.tag-view:hover {
  background-color: #f0f0f0;
  color: #e03e00;
}

.view-all {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  color: #000;
  text-decoration: none !important;
}

.view-all span {
  margin-right: 4px;
  font-size: 18px;
  line-height: 1;
}


.similar-works {
  font-family: sans-serif;
}

.similar-header {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.similar-header h2 {
  font-size: 42px;
  margin: 0;
}

.similar-header a {
  text-decoration: none !important;
  color: #000;
  font-size: 17px;
}

.similar-header a:hover {
  color: #000;
}

.download-more-img {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.download-more-img img {
  width: 356px;
  height: 300px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.text-details-ac span {
  font-size: 17px;
}



.font-desige-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 40px 16px 16px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 20px;
}


.download-btn-font-design {
  display: inline-block;
  padding: 5px 50px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
  top: 15px;
}

.download-btn-font-design:hover {
  color: #000;
  background: #fff;
}

.art-box-font-design {
  position: relative;
  width: 100%;
  padding-top: 100%; /* จัตุรัส */
  overflow: hidden;
}

.img-fluid-font-design {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .hover-overlay {
  position: absolute;
  top: 370px; 
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.art-box-font-design:hover .hover-overlay {
  opacity: 1;
} */

.custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: sans-serif;
  padding-bottom: 100px;
}

.custom-pagination .page-number {
  text-decoration: none;
  color: #000;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 5px;
  transition: 0.2s ease-in-out;
}

.custom-pagination .page-number:hover,
.custom-pagination .arrow:hover {
  background-color: #f0f0f0;
}

.custom-pagination .page-number.active {
  background-color: #000;
  color: #fff;
  font-weight: bold;
}

.hover-overlay-font-design {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  height: 150px;
}

.art-box-font-design:hover .hover-overlay-font-design {
  opacity: 1;
}

.overlay-content-font-design {
  color: white;
  width: 100%;
  padding: 20px;
}

.overlay-content-font-design h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.overlay-content-font-design p {
  font-size: 14px; 
  margin-bottom: 10px; 
  height: 38px; 
  overflow: hidden;
}

.fw-bold {
  padding-top: 15px;
}

.fw-bold {
  font-weight: 600;
  font-size: 20px;
  padding: 0;
}


.download-stack-img {
  display: flex;
  flex-direction: column;  /* แนวตั้ง */
  align-items: center;     /* จัดกึ่งกลางแนวนอน */
  gap: 20px;               /* ระยะห่างระหว่างรูป */
  padding: 20px 80px;
}

.download-stack-img img {
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}


.about-section {
  min-height: 100vh;
  margin-top: 100px;
}

.about-section {
  padding: 60px 15px;
}

.about-section h2 {
  font-weight: bold;
}

.about-image-hd {
  width: 100%;
  max-width: 460px;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.btn-ab-group {
  margin-top: 90px;
}

.btn-about {
  display: inline-block;
  padding: 4px 30px;
  font-size: 17px;
  color: #000;
  text-decoration: none;
  border: 1px solid #999;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
  text-decoration: none !important;
}

.btn-about:hover {
  background-color: #f0f0f0;
  color: #000;
}

.about-icons-group {
  display: flex;
  width: 100%;
  text-align: center;
  align-items: center;
  margin-top: 80px;
}

.about-us-item {
  width: 25%;
  padding: 15px;
}

.about-us-item img {
  width: 55%;
}

.ab-text-hd {
  margin-top: 60px;
  margin-bottom: 80px;
}

.ab-text-hd h2 {
  font-size: 38px;
  font-weight: 500;
}




.contributors-section {
  text-align: center;
  padding: 40px 20px;
  background-color: #dcdcdc;
  font-family: sans-serif;
}

.title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: auto;
}

.carousel-track {
  display: flex;
  gap: 40px;
  transition: transform 0.3s ease-in-out;
  
}

.contributor-card {
  /* background: white; */ /* เอาออก */
  background: transparent; /* หรือใช้ค่านี้แทน */
  border-radius: 12px;
  padding: 20px;
  margin: auto;
  box-sizing: border-box;
  text-align: center;
}
.profile-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  
}

.content h4 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.content p {
  font-size: 12px;
  color: #333;
  line-height: 1.4;
  text-align: left;
}

.icons-ab {
  margin-top: 15px;
  text-align: left;
}

.icons-ab img {
  width: 20px;
  margin: 0 8px;
  vertical-align: middle;
}

.arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.arrow.left {
  left: 0px;
}

.arrow.right {
  right: 0px;
}

.user-ab {
  text-align: left;
}




.terms-list {
  max-width: 700px;
}

.terms-list.allowed li {
  border: 1px solid #F1592A;
  border-radius: 999px;
  padding: 10px 20px;
  color: #f1908c;
  margin-bottom: 10px;
  text-align: left;
  font-size: 14px;
  height: 62px;
}

.terms-list.not-allowed li {
  border: 1px solid #999;
  border-radius: 999px;
  padding: 10px 20px;
  color: #000;
  margin-bottom: 10px;
  text-align: left;
  font-size: 14px;
  height: 62px;
}

.privacy-scroll {
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
  text-align: justify;
  max-width: 700px;
}

.subscribe-footer {
  background: #111;
}


.terms-conditions {
  margin-top: 150px;
} 

.text-center-hd {
  font-size: 32px;
  text-align: center;
  font-weight: 700;
}

.text-center-hd-2 {
  font-size: 32px;
  text-align: center;
  font-weight: 700;
}

.text-center-hd-text {
  text-align: center;
  margin-top: 50px;
}

.text-center-wh {
  text-align: center;
  font-size: 19px;
  font-weight: 500;
}

.privacy-policy-text-details {
  padding: 20px 50px 0px 50px;
  margin-bottom: 50px;
}

.subscribe-footer {
  background-color: #333;
  text-align: center;
  padding: 40px 20px;
  color: #fff;
}

.subscribe-text {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 20px;
}

.subscribe-btn-policy {
  display: inline-block;
  margin-top: 20px;
  background-color: #ff4500; /* สีปุ่มส้ม */
  color: white;
  padding: 10px 45px;
  font-size: 17px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.subscribe-btn-policy:hover {
  background-color: #e03e00;
  text-decoration: none !important;
  color: #fff;
}



.terms-list {
  max-width: 700px;
}

.terms-list li {
  display: flex;
  align-items: center; /* ทำให้ทุก item align ตรงกลาง */
  border: 1.5px solid #ccc;
  border-radius: 999px;
  padding: 12px 20px;
  margin-bottom: 12px;
  font-size: 14px;
  transition: all 0.2s ease;
  min-height: 56px; /* 🔍 เพิ่มความสูงขั้นต่ำให้ทุกบรรทัดสม่ำเสมอ */
}


.terms-list li .icon {
  width: 20px;
  height: 20px;
  margin-right: 15px;
  flex-shrink: 0;
  object-fit: contain;
}

.terms-list li .text {
  text-align: left;
  line-height: 1.4;
}

.terms-list.allowed li {
  border-color: #ff5722;
  color: #ff5722;
}

.terms-list.not-allowed li {
  border-color: #999;
  color: #000;
}





.manage-your-profile {
  font-family: Arial, sans-serif;
  margin-top: 150px;
  padding: 40px 20px;
}

.profile-header .avatar-container {
  position: relative;
  display: inline-block;
}

.avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}

.edit-avatar {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: black;
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 10px;
  cursor: pointer;
}

.profile-name {
  font-size: 32px;
  font-weight: 600;
  margin: 30px 0;
}

.profile-nav {
  margin-top: 50px;
}

.profile-nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none !important;
}

.profile-nav a.active {
  color: #ff4500;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none !important;
}

.section-title {
  color: #ff4500;
  font-weight: 600;
  font-size: 32px;
  margin: 30px 0 20px;

}

.form-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  background: #fff;
  font-family: Arial, sans-serif;
  margin-bottom: 35px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group small {
  font-weight: normal;
  font-size: 12px;
}

.form-control-group {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 50%;
  padding-bottom: 5px;
}

.form-control-group input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #999;
  font-size: 14px;
}

.form-control-group button {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid #000;
  background-color: #fff;
  cursor: pointer;
}

 .success-message {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

select {
  width: 220px;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #999;
  border-radius: 20px;
  appearance: none;
  background-color: #fff;
  outline: none !important;
}

.info-box {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
  margin-bottom: 35px;
}

.btn-circle {
  border: 1px solid #000;
  padding: 6px 16px;
  border-radius: 20px;
  background: white;
  font-weight: bold;
  cursor: pointer;
  background-color: transparent;
  outline: none !important;
}

.hover-danger:hover {
  background-color: #e03e00;
  color: #fff;
  border-color: #e03e00;
}


.btn-danger {
/*   
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  border: none;
  font-weight: bold;
  cursor: pointer; */
}

.note {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-top: 25px;
}


.delete-account {
  margin-bottom: 100px;
}

.custom-line {
  border: none;
  height: 1px;
  background-color: #aaa; /* สีเทา */
  margin: 20px 0;
}


.info-box .sub-title {
  font-weight: bold;
  font-size: 14px;
}

.info-box p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.4;
  max-width: 600px;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(22px);
}






.download-history {
  margin-top: 150px;
}

.hd-text-download-story {

}

.hd-text-download-story h3 {
  color: #ff4500;
  font-weight: 600;
  font-size: 32px;
  margin: 30px 0 20px;
}


.downloaded-group {
  margin: 30px auto;
  font-family: Arial, sans-serif;
  border: 1px solid #ccc;
  border-radius: 20px;
  overflow: hidden;
}

.downloaded-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 20px 30px 10px;
  font-weight: bold;
}

.downloaded-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.downloaded-header .count {
  font-size: 40px;
  font-weight: 600;
  position: relative;
  right: 100px;
}

.downloaded-table {
  width: 100%;
}

.table-header {
  display: flex;
  justify-content: space-between;
  background: #efefef;
  font-weight: bold;
  padding: 10px 30px;
  font-size: 14px;
}

.downloaded-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  border-top: 1px solid #eee;
  align-items: center;
}

.col-details {
  display: flex;
  gap: 16px;
  flex: 1;
  align-items: center;
}

.col-details img {
  width: 60px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.col-details p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  max-width: 500px;
}

.col-date {
  width: 120px;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;

}



.favorites-group {
  margin-top: 150px;
  min-height: 1000px;
}

.favorites-text-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.favorites-text-hd-im img {
  width: 80%;
}

.favorites-text-hd h3 {
  font-size: 32px;
  font-weight: 700;
}


.favo-delete-group {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-delete-1 {
  width: 140px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-weight: bold;
  font-size: 16px;
  border: 1.5px solid #000;
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-delete-1:hover {
  background-color: #191919;
  color: #fff;
}

.btn-delete-1 .icon {
  width: 20px;
  height: 20px;
  transition: filter 0.2s;
}

.btn-delete-1:hover .icon {
  filter: brightness(0) invert(1); /* ทำให้รูปสีขาว */
}

.btn-delete-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-weight: bold;
  font-size: 16px;
  border: 1.5px solid #000;
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-delete-outline:hover {
  background-color: #191919;
  color: #fff;
}

.btn-delete-outline .icon {
  width: 20px;
  height: 20px;
  transition: filter 0.2s;
}

.btn-delete-outline:hover .icon {
  filter: brightness(0) invert(1); /* ทำให้รูปสีขาว */
}




.my-favorites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    margin-top: 50px;
}

.favorite-item {
  position: relative;
  overflow: hidden;
}

.favorite-item img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* วงกลมมุมขวาบน */
.check-circle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background-color: transparent;
  cursor: pointer;
}

.tags-slide .slick-slide {
    margin: 0 10px; /* gap 20px รวม (10px ซ้าย + 10px ขวา) */
}

.tags-slide .slick-list {
    margin: 0 -10px; /* ชดเชย margin ของ slide */
}

/* ตอนเลือกแล้ว */
.check-circle.active {
  background-color: #ffffff;
  border-color: #000;
}

.toggle-bar-btn{
  background-color: transparent;
  padding: 0;
  border: 0;
  outline: none !important;
  font-size: 25px;
}

 .mobile-nav {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.8);
      z-index: 1000;
  }

  .mobile-nav.show {
      display: block;
  }

  .mobile-nav-content {
      position: absolute;
      top: 0;
      right: 0;
      width: 280px;
      height: 100vh;
      background: white;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      overflow-y: auto;
  }

  .mobile-nav.show .mobile-nav-content {
      transform: translateX(0);
  }

  .mobile-nav-header {
      padding: 20px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .mobile-nav-close {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #333;
      cursor: pointer;
  }

  .mobile-nav-menu {
      padding: 0;
      margin: 0;
      list-style: none;
  }

  .mobile-nav-item {
      border-bottom: 1px solid #f0f0f0;
  }

  .mobile-nav-link {
      display: block;
      padding: 15px 20px;
      color: #333;
      text-decoration: none;
      transition: background-color 0.3s ease;
  }

  .mobile-nav-link:hover {
      background-color: #f8f9fa;
      color: #007bff;
      text-decoration: none;
  }

  .mobile-nav-link.active {
      color: #007bff;
      font-weight: 500;
  }

  /* Dropdown in Mobile */
  .mobile-dropdown {
      background: #f8f9fa;
  }

  .mobile-dropdown-item {
      display: block;
      padding: 12px 40px;
      color: #666;
      text-decoration: none;
      border-bottom: 1px solid #e9ecef;
  }

  .mobile-dropdown-item:hover {
      background: #e9ecef;
      color: #007bff;
      text-decoration: none;
  }

  .mobile-dropdown-toggle {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .dropdown-arrow {
      transition: transform 0.3s ease;
  }

  .dropdown-arrow.rotated {
      transform: rotate(180deg);
  }

  /* Header Container */
  .header-container {
      padding: 15px 20px;
      background: white;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  @media (min-width: 768px) {
      .header-container {
          padding: 20px;
      }
  }

  /* Desktop navbar styling */
  .navbar {
      padding: 0;
  }

  .nav-link {
      color: #333 !important;
      font-weight: 500;
      transition: color 0.3s ease;
  }

  .nav-link:hover {
      color: #007bff !important;
  }

  .nav-link.active {
      color: #007bff !important;
  }

  .mg-hr {
      width: 24px;
      height: 24px;
  }

#policyDownloadModal .modal-content{
  border: 2px solid #e64a27;
  padding-top: 20px;
  padding-bottom: 20px;
}

#policyDownloadModal  .custom-checkbox {
      position: relative;
      display: inline-flex;
      align-items: flex-start;
      cursor: pointer;
      font-size: 0.95rem;
      line-height: 1.4;
  }

#policyDownloadModal  .custom-checkbox input[type="checkbox"] {
      position: absolute;
      opacity: 0;
      cursor: pointer;
  }

#policyDownloadModal  .custom-checkbox .checkmark {
      position: relative;
      top: 2px;
      height: 20px;
      width: 20px;
      background-color: #fff;
      border: 2px solid #ddd;
      border-radius: 4px;
      margin-right: 12px;
      flex-shrink: 0;
      transition: all 0.2s ease;
  }

#policyDownloadModal  .custom-checkbox:hover input ~ .checkmark {
      border-color: #ff6b35;
  }

 #policyDownloadModal .custom-checkbox input:checked ~ .checkmark {
      background-color: #ff6b35;
      border-color: #ff6b35;
  }

#policyDownloadModal  .custom-checkbox .checkmark:after {
      content: "";
      position: absolute;
      display: none;
      left: 6px;
      top: 2px;
      width: 6px;
      height: 10px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
  }

#policyDownloadModal  .custom-checkbox input:checked ~ .checkmark:after {
      display: block;
  }

  /* Modal styling */
#policyDownloadModal  .modal-content {
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

 #policyDownloadModal .modal-body {
      padding: 2rem;
  }

  /* Download button */
#policyDownloadModal  .download-btn {
      background: linear-gradient(45deg, #ff6b35, #f7931e);
      border: none;
      border-radius: 25px;
      padding: 12px 30px;
      font-weight: 600;
      color: white;
      transition: all 0.3s ease;
      cursor: pointer;
  }

#policyDownloadModal  .download-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
      color: white;
  }

#policyDownloadModal  .download-btn:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
  }

  /* Links styling */
#policyDownloadModal  .policy-link {
      color: #ff6b35;
      text-decoration: none;
      font-weight: 500;
  }

#policyDownloadModal  .policy-link:hover {
      color: #e55a2b;
      text-decoration: underline;
  }

  /* Close button */
#policyDownloadModal  .btn-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #666;
      cursor: pointer;
  }