

.black-ribbon {  position: fixed;  z-index: 9999;  width: 70px;}@media only all and (min-width: 768px) {  .black-ribbon {    width: auto;  }}.stick-left { left: 0; }.stick-right { right: 0; }.stick-top { top: 0; }.stick-bottom { bottom: 0; }


.eds_news_Ozone.eds_subCollection_news .edn_article.edn_listArticle2 .edn_articleTitle {
    font-size: 20px;
    font-family: "Sarabun";
}

.eds_news_NewsMagazine span, .eds_news_NewsMagazine a, .eds_news_NewsMagazine li, .eds_news_NewsMagazine td, .eds_news_NewsMagazine table {
    font-family: inherit;
    font-family: "Sarabun";
    color: inherit;
    line-height: inherit;
    font-size: inherit;
}

.eds_news_Ozone.eds_subCollection_news {
  line-height: 1.3;
  font-size: 13px;
  color: #504e4e;
  font-family: "Sarabun";
}

.eds_news_Ozone.eds_subCollection_news .edn_article.edn_articleDetails .edn_articleTitle {
  margin-bottom: 20px;
  font-family: "Sarabun";
}

.eds_news_Ozone.eds_style_custom_sxvwmfzege8.eds_subCollection_news.eds_templateGroup_listArticleListBox3 .edn_article.edn_articleInBox.edn_articleInBox3 > section .edn_boxContent h2.edn_articleTitle a {
    font-size: 18px;
    font-family: "Sarabun";
}


.eds_box14 .eds_boxContent2 {
    background-color: #6c757d;
}




/* ตั้งค่าให้แท็กลิงก์รองรับตำแหน่งของเส้นใต้ */
.chula-hover-link {
  position: relative;
  text-decoration: none !important; /* ปิดเส้นใต้แบบธรรมดาที่ติดมากับเบราว์เซอร์ */
  display: inline-block;
  padding-bottom: 2px;             /* ระยะห่างระหว่างข้อความกับเส้นวิ่ง */
}

/* สร้างเส้นจำลองใต้ตัวหนังสือซ่อนเตรียมเอาไว้ */
.chula-hover-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;                     /* ความหนาของเส้นวิ่งใต้ข้อความ */
  bottom: 0;
  left: 0;
  background-color: #ffffff;       /* สีของเส้นวิ่ง (ปรับเปลี่ยนรหัสสีได้ตามธีมเว็บบอร์ด) */
  
  /* บีบเส้นตามแกนนอนให้เหลือศูนย์ เพื่อซ่อนในตอนแรก */
  transform: scaleX(0);            
  
  /* ตัวกำหนดทิศทาง: สั่งให้เส้นวิ่งเริ่มกางและหดตัวจากฝั่งซ้ายสุด */
  transform-origin: bottom left;   
  
  /* ความนุ่มนวลในการเล่นอนิเมชันตอนเคลื่อนไหว */
  transition: transform 0.3s ease-out; 
}

/* เอฟเฟกต์เมื่อผู้ใช้ลากเมาส์มาวาง (Hover) */
.chula-hover-link:hover::after {
  transform: scaleX(1);            /* ดึงเส้นให้ยืดเต็มความกว้าง 100% ทันที */
}

/* ===== Modern Carousel Container ===== */
.modern-carousel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 32px 64px -12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

/* ===== Image Wrapper - รักษาขนาดรูปภาพเต็ม ===== */
.carousel-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 30px;
  min-height: 450px;
}

.carousel-image-wrapper a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modern-carousel .carousel-item img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.6s ease;
}

.modern-carousel:hover .carousel-item img {
  transform: scale(1.02);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== Modern Inner Container ===== */
.modern-inner {
  border-radius: 24px;
  overflow: hidden;
}

/* ===== Smooth Slide Transition ===== */
.modern-carousel .carousel-item {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Modern Indicators ===== */
.modern-indicators {
  bottom: 24px;
  margin-bottom: 0;
  z-index: 15;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  margin-left: 0;
  margin-right: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modern-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a7f3d0;
  border: none;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  opacity: 1;
}

.modern-indicators li.active {
  width: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
}

.modern-indicators li:hover:not(.active) {
  background: #6ee7b7;
  transform: scale(1.3);
}

/* ===== Modern Control Arrows ===== */
.modern-control {
  width: 70px;
  opacity: 0;
  transition: all 0.4s ease;
}

.modern-carousel:hover .modern-control {
  opacity: 1;
}

.modern-control-prev {
  left: 20px;
}

.modern-control-next {
  right: 20px;
}

.control-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modern-control:hover .control-icon-wrapper {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: scale(1.12);
  box-shadow: 0 12px 35px rgba(4, 120, 87, 0.35);
}

.modern-control .carousel-control-prev-icon,
.modern-control .carousel-control-next-icon {
  width: 22px;
  height: 22px;
  background-size: 100%;
  filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(500%) hue-rotate(180deg);
  transition: filter 0.35s ease;
}

.modern-control:hover .carousel-control-prev-icon,
.modern-control:hover .carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

/* ===== Decorative Elements ===== */
.modern-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #047857, #059669, #10b981, #047857);
  background-size: 300% 100%;
  animation: gradientMove 4s ease infinite;
  z-index: 20;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Bottom Accent Line ===== */
.modern-carousel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #047857 20%, 
    #059669 50%, 
    #047857 80%, 
    transparent 100%);
  z-index: 20;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .modern-carousel {
    border-radius: 20px;
  }
  
  .carousel-image-wrapper {
    padding: 25px;
    min-height: 380px;
  }
  
  .modern-carousel .carousel-item img {
    max-height: 60vh;
    border-radius: 12px;
  }
  
  .modern-indicators {
    gap: 6px;
    padding: 8px 16px;
  }
  
  .modern-indicators li {
    width: 8px;
    height: 8px;
  }
  
  .modern-indicators li.active {
    width: 26px;
  }
}

@media (max-width: 768px) {
  .modern-carousel {
    border-radius: 16px;
  }
  
  .carousel-image-wrapper {
    padding: 20px;
    min-height: 300px;
  }
  
  .modern-carousel .carousel-item img {
    max-height: 50vh;
    border-radius: 10px;
  }
  
  .control-icon-wrapper {
    width: 46px;
    height: 46px;
  }
  
  .modern-control .carousel-control-prev-icon,
  .modern-control .carousel-control-next-icon {
    width: 18px;
    height: 18px;
  }
  
  .modern-indicators {
    padding: 6px 14px;
    bottom: 18px;
    gap: 5px;
  }
  
  .modern-indicators li {
    width: 7px;
    height: 7px;
  }
  
  .modern-indicators li.active {
    width: 22px;
  }
  
  .modern-control {
    opacity: 1;
    width: 55px;
  }
  
  .modern-control-prev {
    left: 10px;
  }
  
  .modern-control-next {
    right: 10px;
  }
}

@media (max-width: 576px) {
  .modern-carousel {
    border-radius: 12px;
  }
  
  .carousel-image-wrapper {
    padding: 15px;
    min-height: 240px;
  }
  
  .modern-carousel .carousel-item img {
    max-height: 42vh;
    border-radius: 8px;
  }
  
  .control-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .modern-control .carousel-control-prev-icon,
  .modern-control .carousel-control-next-icon {
    width: 14px;
    height: 14px;
  }
  
  .modern-indicators {
    padding: 5px 10px;
    bottom: 12px;
    gap: 4px;
  }
  
  .modern-indicators li {
    width: 6px;
    height: 6px;
  }
  
  .modern-indicators li.active {
    width: 18px;
  }
  
  .modern-control-prev {
    left: 6px;
  }
  
  .modern-control-next {
    right: 6px;
  }
}

/* ===== Focus States for Accessibility ===== */
.modern-control:focus .control-icon-wrapper {
  outline: 3px solid rgba(4, 120, 87, 0.5);
  outline-offset: 3px;
}

.modern-indicators li:focus {
  outline: 2px solid rgba(4, 120, 87, 0.5);
  outline-offset: 2px;
}

/* ===== Optional: Dark Theme Variant ===== */
@media (prefers-color-scheme: dark) {
  .carousel-image-wrapper {
    background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  }
  
  .modern-carousel {
    background: #022c22;
    box-shadow: 
      0 32px 64px -12px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  
  .modern-carousel .carousel-item img {
    box-shadow: 
      0 20px 50px rgba(0, 0, 0, 0.4),
      0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  .modern-indicators {
    background: rgba(6, 78, 59, 0.9);
  }
  
  .modern-indicators li {
    background: #065f46;
  }
  
  .modern-indicators li:hover:not(.active) {
    background: #059669;
  }
  
  .control-icon-wrapper {
    background: rgba(6, 78, 59, 0.95);
  }
  
  .modern-control .carousel-control-prev-icon,
  .modern-control .carousel-control-next-icon {
    filter: brightness(0) invert(0.7);
  }
}























/* ===== SWU Carousel Container ===== */
.swu-carousel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 32px 64px -12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

/* ===== Image Box - รักษาขนาดรูปภาพเต็ม ===== */
.swu-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 30px;
  min-height: 450px;
}

.swu-image-box a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swu-carousel .carousel-item img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.6s ease;
}

.swu-carousel:hover .carousel-item img {
  transform: scale(1.02);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== Inner Container ===== */
.swu-inner {
  border-radius: 24px;
  overflow: hidden;
}

/* ===== Smooth Slide Transition ===== */
.swu-carousel .carousel-item {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== SWU Indicators ===== */
.swu-indicators {
  bottom: 24px;
  margin-bottom: 0;
  z-index: 15;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  margin-left: 0;
  margin-right: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.swu-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a7f3d0;
  border: none;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  opacity: 1;
}

.swu-indicators li.active {
  width: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
}

.swu-indicators li:hover:not(.active) {
  background: #6ee7b7;
  transform: scale(1.3);
}

/* ===== SWU Navigation Arrows ===== */
.swu-nav {
  width: 70px;
  opacity: 0;
  transition: all 0.4s ease;
}

.swu-carousel:hover .swu-nav {
  opacity: 1;
}

.swu-nav-prev {
  left: 20px;
}

.swu-nav-next {
  right: 20px;
}

.swu-nav-btn {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.swu-nav:hover .swu-nav-btn {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: scale(1.12);
  box-shadow: 0 12px 35px rgba(4, 120, 87, 0.35);
}

.swu-nav .carousel-control-prev-icon,
.swu-nav .carousel-control-next-icon {
  width: 22px;
  height: 22px;
  background-size: 100%;
  filter: brightness(0) saturate(100%) invert(30%) sepia(10%) saturate(500%) hue-rotate(180deg);
  transition: filter 0.35s ease;
}

.swu-nav:hover .carousel-control-prev-icon,
.swu-nav:hover .carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

/* ===== Decorative Top Line ===== */
.swu-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #047857, #059669, #10b981, #047857);
  background-size: 300% 100%;
  animation: swuGradientMove 4s ease infinite;
  z-index: 20;
}

@keyframes swuGradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== Decorative Bottom Line ===== */
.swu-carousel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #047857 20%, 
    #059669 50%, 
    #047857 80%, 
    transparent 100%);
  z-index: 20;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .swu-carousel {
    border-radius: 20px;
  }
  
  .swu-image-box {
    padding: 25px;
    min-height: 380px;
  }
  
  .swu-carousel .carousel-item img {
    max-height: 60vh;
    border-radius: 12px;
  }
  
  .swu-indicators {
    gap: 6px;
    padding: 8px 16px;
  }
  
  .swu-indicators li {
    width: 8px;
    height: 8px;
  }
  
  .swu-indicators li.active {
    width: 26px;
  }
}

@media (max-width: 768px) {
  .swu-carousel {
    border-radius: 16px;
  }
  
  .swu-image-box {
    padding: 20px;
    min-height: 300px;
  }
  
  .swu-carousel .carousel-item img {
    max-height: 50vh;
    border-radius: 10px;
  }
  
  .swu-nav-btn {
    width: 46px;
    height: 46px;
  }
  
  .swu-nav .carousel-control-prev-icon,
  .swu-nav .carousel-control-next-icon {
    width: 18px;
    height: 18px;
  }
  
  .swu-indicators {
    padding: 6px 14px;
    bottom: 18px;
    gap: 5px;
  }
  
  .swu-indicators li {
    width: 7px;
    height: 7px;
  }
  
  .swu-indicators li.active {
    width: 22px;
  }
  
  .swu-nav {
    opacity: 1;
    width: 55px;
  }
  
  .swu-nav-prev {
    left: 10px;
  }
  
  .swu-nav-next {
    right: 10px;
  }
}

@media (max-width: 576px) {
  .swu-carousel {
    border-radius: 12px;
  }
  
  .swu-image-box {
    padding: 15px;
    min-height: 240px;
  }
  
  .swu-carousel .carousel-item img {
    max-height: 42vh;
    border-radius: 8px;
  }
  
  .swu-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .swu-nav .carousel-control-prev-icon,
  .swu-nav .carousel-control-next-icon {
    width: 14px;
    height: 14px;
  }
  
  .swu-indicators {
    padding: 5px 10px;
    bottom: 12px;
    gap: 4px;
  }
  
  .swu-indicators li {
    width: 6px;
    height: 6px;
  }
  
  .swu-indicators li.active {
    width: 18px;
  }
  
  .swu-nav-prev {
    left: 6px;
  }
  
  .swu-nav-next {
    right: 6px;
  }
}

/* ===== Focus States for Accessibility ===== */
.swu-nav:focus .swu-nav-btn {
  outline: 3px solid rgba(4, 120, 87, 0.5);
  outline-offset: 3px;
}

.swu-indicators li:focus {
  outline: 2px solid rgba(4, 120, 87, 0.5);
  outline-offset: 2px;
}

/* ===== Dark Theme Variant ===== */
@media (prefers-color-scheme: dark) {
  .swu-image-box {
    background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  }
  
  .swu-carousel {
    background: #022c22;
    box-shadow: 
      0 32px 64px -12px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  
  .swu-carousel .carousel-item img {
    box-shadow: 
      0 20px 50px rgba(0, 0, 0, 0.4),
      0 8px 20px rgba(0, 0, 0, 0.3);
  }
  
  .swu-indicators {
    background: rgba(6, 78, 59, 0.9);
  }
  
  .swu-indicators li {
    background: #065f46;
  }
  
  .swu-indicators li:hover:not(.active) {
    background: #059669;
  }
  
  .swu-nav-btn {
    background: rgba(6, 78, 59, 0.95);
  }
  
  .swu-nav .carousel-control-prev-icon,
  .swu-nav .carousel-control-next-icon {
    filter: brightness(0) invert(0.7);
  }
}
