/**
* Template Name: Impact
* Template URL: https://bootstrapmade.com/impact-bootstrap-business-website-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, apple-system, "Segoe UI", Roboto, 
  "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Montserrat",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
  --thai-font: "Sarabun", "Noto Sans Thai", sans-serif;
}


/* Origin color website: #33a86e;*/

  :root {
    --background-color: #f8f9fa; /* สีพื้นหลังอ่อน */
    --default-color: #1c1c1c; /* สีข้อความปกติ */
    --heading-color: #002244; /* สีหัวเรื่อง */
    --accent-color: #003366; /* สีไฮไลต์หลัก */
    --second-color: #247BA0; /* ใช้คู่ไฮไลต์ */
    --surface-color: #ffffff; /* สีพื้นของ card หรือกล่อง */
    --contrast-color: #dc6a4a; /* สีตรงข้ามไฮไลต์หลัก*/
    --cross-color:#DE4313;
    --hover-color: #e7e7e7;
    --gradient-bg: linear-gradient(135deg,#dc6a4a,#247BA0,#003366);
    --gradient-bg-soft: linear-gradient(135deg, #3b5d7e, #f36f4c); /* gradient รอง สีซอฟต์ */
    --gradient-accent: linear-gradient(135deg, #247BA0, #003366);
    --gradient-contrast: linear-gradient(45deg, #DE4313, #f36f4c);
  }
  
/*Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color:#ffffff ;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #222222;
  --nav-dropdown-hover-color: #003366;
  
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--cross-color);
  text-decoration: none;
  transition: 0.3s;
  font-family: var(--nav-font);
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 10%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  
}

p{
  font-family: var(--nav-font);
  margin-top: 0;
  margin-bottom: 1rem;
}

.background-box {
  background-color: var(--surface-color);
  border-radius: 16px;
  padding: 40px 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #333;
  max-width: 1000px;
  margin: 0 auto;
  font-size: 18px;
  font-family: var(--nav-font);
}

.background-text {
  padding: 0 70px 0;
}

.background-text p {
  margin-bottom: 1.2em;
  text-align: justify;
  text-indent: 1em;
  line-height: 1.7;
}

.image-wrapper {
  width: 100%;
  position: relative;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.container-image {
  width: 100%;
  height: 400px; 
  object-fit: cover; 
  object-position: right center; 
  display: block;
  border-radius: 0 0 16px 16px;
}

.image-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  height: 180px; 
  width: 100%;
  background: linear-gradient(to bottom,
              rgba(255, 255, 255, 0.95) 0%,
              rgba(255, 255, 255, 0.90) 30%,
              rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

.overlay-text {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
  z-index: 2;
}

@media (max-width: 768px) {
  .background-text {
    padding: 0 40px 0;
    font-size: 16px;
  }
  .overlay-text {
    font-size: 14px;
    left: 12px;
    bottom: 10px;
  }
  .container-image {
  height: 250px;
}
.image-fade-top {
  height: 100px;
}
}

@media (max-width: 480px) {
  .background-text {
    padding: 0 20px 0;
    font-size: 14px;
  }
  .overlay-text {
    font-size: 12px;
  }
    .container-image {
  height: 150px;
  object-position: right bottom;   
}
.image-fade-top {
  height: 50px;
}
}

.home{
  position: relative;
  background: linear-gradient(
    135deg,
    var(--surface-color) 50%,
    color-mix(in srgb, var(--contrast-color) 20%, var(--surface-color) 50%)
  );
  background-size: cover;
  background-position: center;
  overflow: hidden;
  width: 100%;
  z-index: 1;
}

.home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 -100px 80px -40px #f8f9fa,   /* bottom */
    inset -100px 0 80px -80px #f8f9fa,   /* left */
    inset 100px 0 80px -40px #f8f9fa;    /* right */
}

.home .container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  text-align:left;
}

.color-text {
  background: linear-gradient(185deg,var(--accent-color),var(--cross-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 40px;
}

.full-title {
  font-size: 50px;
  font-weight: 750;
  margin-top: 15px;
  color: var(--accent-color);
}

.logo-banner {
  /*background: linear-gradient(to right, #63b1d8, #a9dff5);*/
  background-color: #63b1d8;
  padding: 110px 0 20px;
  position: relative;
  /*display: flex;
  justify-content: flex-start;
  padding-left: 17%; */
  text-align: left;
  padding-left: 2%;
  /*text-align: center;*/
}

.logo-banner img {
  max-width: 600px;
  width: 100%;
  height: auto;
}

.Slogan {
  font-size: 24px;
  font-weight: 500;
  margin-top: 10px;
}

.date {
  font-size: 24px;
  color: var(--cross-color);
}

.location {
  margin-bottom: 30px;
  color: #333;
  font-weight: 400;
  font-size: 18px;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 500;
  font-size: 18px;
}

.btn-primary:hover {
  background-color: var(--contrast-color);
  border-color: var(--contrast-color);
}

.btn-outline-primary {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 500;
  font-size: 18px;
}

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}


.icon-box {
  margin-top: 20px;
  padding: 30px 30px;
  background: var(--surface-color);
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100px;
  justify-content: center;
  position: relative;
}

.icon-box a {
  color: color-mix(in srgb, var(--heading-color), transparent 0%);
  transition: 0.3s;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 0;
}

.icon-box .icon {
  margin-bottom: 8px;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  font-size: 30px;
  line-height: 1;
  color:var(--heading-color);
}

.icon-box:hover {
  box-shadow: var(--cross-color) 0px 0px 80px -50px inset;
}

.icon-box:hover .title a,
.icon-box:hover .icon {
  transform: translateY(-10px);
}

@media (max-width: 790px) {
  .logo-banner {
    padding: 80px 0 10px; 
  }

  .logo-banner img {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .home {
    padding: 120px 15px 20px;
  }
  .home .container {
    text-align: center;
    padding-top: 10px;
  
  }
  .color-text {
    font-size: 32px;
  }

  .full-title {
    font-size: 36px;
  }

  .Slogan {
    font-size: 22px;
  }

  .icon-box {
    padding: 25px;
  }

  .icon-box a {
    font-size: 20px;
  }

  .btn-primary,
  .btn-outline-primary {
    padding: 10px 20px;
    font-size: 18px;
  }
 
   .logo-banner {
    padding: 60px 0 10px;
    text-align: center;
  }

}


@media (max-width: 480px) {
  .home .container {
    padding-top: 0px;
  
  }
  .color-text {
    font-size: 24px;
  }

  .full-title {
    font-size: 28px;
  }

  .Slogan {
    font-size: 18px;
  }

  .date {
    font-size: 20px;
  }
  .location {
    font-size: 16px;
  }
  .icon-box {
    padding: 20px;
  }

  .icon-box a {
    font-size: 18px;
  }

  .btn-primary,
  .btn-outline-primary {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
  }
  
  .logo-banner {
    padding: 40px 0 0;
     
  }
}


/* important-dates----------------*/

.important-dates {
  padding: 30px 0;
}

.important-dates .container {
  max-width: 800px;
  margin: 0 auto;
}

.dates-list {
  background: var(--surface-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.date-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #ccc;
  padding-bottom: 10px;
}

.date-item:last-child {
  border-bottom: none;
}

.date-label {
  font-size: 18px;
  color: #003366;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nav-font);
}

.date-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--nav-font);
  color: #333;
}

@media (max-width: 768px) {
  .dates-list {
    padding: 20px;
  }

  .date-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .date-label,
  .date-value {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .important-dates {
    padding: 20px 10px;
  }

  .date-label,
  .date-value {
    font-size: 15px;
  }

  .dates-list {
    padding: 15px;
  }
}


/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --heading-color: #ffffff;
  color: var(--heading-color);
  transition: all 0.5s;
  z-index: 997;
  background:var(--gradient-bg)
}
.header .branding {
  min-height: 60px;
  padding: 10px 0;
}
.header .logo {
  line-height: 1;
}
.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}
.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}
.header .logo span {
  font-size: 32px;
  margin-left: 2px;
  color: var(--nav-hover-color);
}
.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 20px;
  position: relative;
  padding-top: 150px;
  padding-bottom: 0px;
}

.footer p {
  font-size: 20px;
  font-family: var(--nav-font);
  margin-bottom: auto;
}

.footer span{
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 5%);
    font-family: var(--thai-font);
}

.footer a:hover {
  color:var(--accent-color)

}

.footer a {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
  display: inline-block;
  line-height: 1;
  font-family: var(--thai-font);
}

.footer .copyright {
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

/* # Contact info*/

.info-container {
  height: 100%;
  padding: 10px;
  margin-top: 20px;
}

.info-container h4{
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 10px;
  background: linear-gradient(175deg,var(--accent-color),var(--cross-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.info-item {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 15px;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--second-color), transparent 90%);

}

.info-item i {
  font-size: 20px;
  color: var(--heading-color);
  background-color: color-mix(in srgb, var(--default-color), transparent 80%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.info-item h3 {
  color: var(--default-color);
  font-size: 20px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  text-align: left;
}

.info-item:hover i {
  background: var(--gradient-bg-soft);
  color: var(--surface-color);
}


@media (max-width: 768px) {
  .footer {
    padding-top: 100px;
  }
  .footer p {
    font-size: 16px;
  }
  .footer span {
    font-size: 13px;
  }
  .footer a {
    font-size: 11px;
  }
  .footer .copyright {
    text-align: left; /* จัดข้อความ copyright กลับไปทางซ้าย */
  }
  .info-container {
    padding: 20px;
    margin-top: 20px;
  }
  .info-container h4 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .info-item {
    padding: 12px;
    margin-bottom: 15px;
    flex-direction: row;
  }
  .info-item i {
    font-size: 18px;
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }
  .info-item h3 {
    font-size: 14px;
    margin-bottom: 5px;
  }
  .info-item p {
    font-size: 12px;
  }
}
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent ;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--surface-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  --default-color: #222222;
  color: var(--default-color);
  padding: 100px 0 10px 0;
  position: relative;
  text-align: center;
  margin-top: 20px;
}

.page-title h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.page-title :after {
  content:"";
  position: absolute;
  display: block;
  width: 80px;
  height: 5px;
  background: var(--gradient-contrast);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}


/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 40px 0;
  scroll-margin-top: 112px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 100px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-top: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  padding-bottom: 20px;
  position: relative;
}

.section-title :after {
  content:"";
  position: absolute;
  display: block;
  width: 80px;
  height: 5px;
  background: var(--gradient-contrast);
  left: 0;
  right: 0;
  bottom: 0px;
  margin: auto;
}

@media (max-width: 575px) {
/*page-title*/
  .page-title h1 {
    font-size: 24px;
    padding-bottom: 10px;
  }
  .page-title :after {
    width: 60px;
    height: 4px;
  }

/*section -title*/
  .section-title h2 {
    font-size: 22px;
    padding-bottom: 15px;
  }
  .section-title:after {
    width: 60px;
    height: 4px;
  }

/*speaker*/
  .Speaker .Speaker-item {
    padding: 20px;
    margin: 0px 10px;
  }
  .Speaker .Speaker-item h4 {
    font-size: 16px;
  }
  .Speaker .Speaker-item h3 {
    font-size: 14px;
  }
  .Speaker .Speaker-item span {
    font-size: 12px;
  } 
  .Speaker .Speaker-item .lecture-date {
    font-size: 10px;
    padding: 4px 9px;
  }


}

@media (min-width: 576px) and (max-width: 991px) {
/*page-title*/
  .page-title h1 {
    font-size: 28px;
    padding-bottom: 15px;
  }
  .page-title :after {
    width: 70px;
    height: 4px;
  }

/*section-title*/
  .section-title h2 {
    font-size: 26px;
    padding-bottom: 18px;
  }
  .section-title:after {
    width: 70px;
    height: 4px;
  }

/*speaker*/
  .Speaker .Speaker-item {
    padding: 25px;
    margin: 5px 12px;
  }
  .Speaker .Speaker-item h4 {
    font-size: 17px;
  }
  .Speaker .Speaker-item h3 {
    font-size: 15px;
  }
  .Speaker .Speaker-item span {
    font-size: 13px;
  }

}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about h3 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

.about .fst-italic {
  color: color-mix(in srgb, var(--default-color), var(--contrast-color) 50%);
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding: 0 0 10px 30px;
  position: relative;
}

.about .content ul i {
  position: absolute;
  font-size: 20px;
  left: 0;
  top: -3px;
  color: var(--accent-color);
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .pulsating-play-btn {
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  padding: 35px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  border-radius: 10px;
}

.services .service-item h3 {
  color: color-mix(in srgb, var(--heading-color), transparent 10%);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  font-size: 22px;
  position: relative;
  display: inline-block;
  border-bottom: 4px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  transition: 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  text-align:left;
  margin-top: 0;
}

.services .service-item:hover h3 {
  border-color: color-mix(in srgb,var(--contrast-color), transparent 5%);
  color: var(--heading-color);
}


/*--------------------------------------------------------------
# Speaker Section
--------------------------------------------------------------*/
.Speaker .Speaker-item {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  border-radius: 25px;
  padding: 30px;
  overflow: hidden;
  position: relative;
  margin: 10px 15px;
}

.Speaker .Speaker-item img {
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

.Speaker .Speaker-item .image-wrapper {
  position:relative;
}

.Speaker .Speaker-item .lecture-date {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #FFE156;
  color: #222222;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.Speaker .Speaker-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 5px 0 5px 0;
}

.Speaker .Speaker-item h4 {
  color: #0d45bc;
  text-align: left;
  font-weight: 800;
  margin-top: 0px;
  font-size: 16px;
  margin: 20px auto 15px auto;
}

.Speaker .Speaker-item span {
  font-style: italic;
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.Speaker .swiper-wrapper {
  height: auto;
}

.Speaker .swiper-pagination {
  margin-top: 20px;
  position: relative;
  
}

.Speaker .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.Speaker .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*@media (max-width: 767px) {
  .Speaker .Speaker-wrap {
    padding-left: 0;
  }

  .Speaker .Speaker-item {
    padding: 30px;
    margin: 15px;
  }

  .Speaker .Speaker-item .Speaker-img {
    position: static;
    left: auto;
  }
  
}

/*--------------------------------------------------------------
# professor-card  Section
--------------------------------------------------------------*/
.professor-card {
  padding: 20px 0 40px 0;
}

.professor-card .card-container {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.professor-card .image-container {
  position: relative;
  margin-right: 20px;
  flex-shrink: 0;
}

.professor-card .professor-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}


.professor-card .content-container {
  flex-grow: 1;
}

.professor-card .lecture-date {
  font-size: 13px;
  font-weight:400;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 5px;
}

.professor-card .topic {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #003366;
  text-shadow: 2px 2px 4px rgba(33, 37, 41, 0.03);
  line-height: 1.2;
  padding-bottom: 10px;
  padding-top: 5px;
  border-bottom: 2px solid color-mix(in srgb, var(--gd-text), transparent 80%);
  transition: 0.3s; 

}

.professor-card .pf-name {
  font-size: 20px;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  margin-bottom: 5px;
}

.professor-card .education {
  font-style: italic;
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .professor-card .card-container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .professor-card .image-container {
    margin: 0 0 15px 0;
  }

  .professor-card .professor-image {
    width: 120px;
    height: 120px;
  }

  .professor-card .topic {
    font-size: 18px;
  }

  .professor-card .pf-name {
    font-size: 18px;
  }

  .professor-card .education {
    font-size: 14px;
  }

  .professor-card .lecture-date {
    font-size: 12px;
  }
}

/*--------------------------------------------------------------
# program
-------------------------------------------------------------*/
.program-wrapper { 
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  margin-bottom: 40px;
}
.faq-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

.faq-item {
text-decoration: none;
}

.faq-item button {
width: 100%;
padding: 15px 0;
font-size: 22px;
font-weight: 600;
font-family: var(--nav-font);
color: var(--heading-color);
background-color: var(--surface-color);
border: 2px solid var(--contrast-color);
border-radius: 2px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item button:hover {
background-color: var(--contrast-color);
color: #ffffff;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Instraction */
.book-image {
width: 100%;
margin-bottom: 30px;
position: relative;
}
.book-image img {
width: 90%;
max-width: 800px;
height: auto;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
display: block;
margin: 0 auto;
}
.book-image a {
display: inline-block;
margin-top: 10px;
text-decoration: none;
color: #007bff;
font-size: 1rem;
font-weight: 500;
text-align: center;
}
.book-image a:hover {
text-decoration: underline;
}

/*--------------------------------------------------------------
    # paper
-------------------------------------------------------------*/ 
.paper-section {
width: 80%;
margin: auto;
background: #fff;
padding: 50px;
border-radius: 16px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
align-items: center;
text-align: center;
}
.paper-section img {
width: 100%; /* ปรับขนาดรูปภาพ */
max-width: 600px;
min-width: 250px;
height: auto;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
display: block;
margin: 0 auto;

}
.paper-section a {
display: inline-block;
margin-top: 10px;
margin-bottom: 20px;
text-decoration: none;
color: #007bff;
font-size: 1rem;
font-weight: 500;
}

.paper-section a:hover {
text-decoration: underline;
}

@media (max-width: 768px) {

.paper-section {
width: 95%;
padding: 20px;
}
.paper-image {
width: 70%;
max-width: 300px;
}
}

@media (max-width: 480px) {
.paper-image {
width: 80%; 
max-width: 250px;
}
}

/*--------------------------------------------------------------
    # pdf
-------------------------------------------------------------*/
.pdf-section {
max-width: 1000px;
width: 90%;
margin: 0 auto;
padding: 20px;
border-radius: 16px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
align-items: center;
text-align: center;
background: rgb(255, 255, 255);
margin-bottom: 60px;
}
.pdf-viewer {
width: 100%;
height: 120vh;
border: none;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}

/* Media Queries สำหรับหน้าจอขนาดต่าง ๆ */
@media (max-width: 768px) {
body {
padding: 40px 10px;
}
.pdf-section {
width: 95%;
padding: 15px;
}
.pdf-viewer {
height: 800px;
min-height: 350px;
max-height: 600px;
}
}


@media (max-width: 480px) {
.pdf-section {
  padding: 10px;
}

.pdf-viewer {
  height: 800px;
  min-height: 300px;
  max-height: 450px;
}
}

/*--------------------------------------------------------------
# registration-table
-------------------------------------------------------------*/ 
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.reg-table {
  width: 100%;
  max-width: 1000px;
  border-collapse: collapse;
  margin: 20px auto 70px;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  font-family: var(--nav-font);
}
.reg-table thead tr:nth-child(1) th {
  background-color: var(--surface-color);
  color: var(--heading-color);
  font-size: 18px;
  padding: 14px;
  font-weight: 610;
}
.reg-table thead tr:nth-child(2) th {
  font-weight: 400;
  background: var(--second-color);
  color: var(--surface-color);
}
.reg-table thead tr:nth-child(3) th {
  background-color: var(--surface-color);
  color: var(--accent-color);
  font-weight: 600;
}

.reg-table th, .reg-table td {
  border: 1px solid #ccc;
  text-align: center;
  padding: 12px;
}
.reg-table td:first-child {
  text-align: left;
  padding-left: 50px;
  background-color: var(--background-color);
  font-weight: 500;
}
.reg-table tbody tr:nth-child(even) td {
  background-color: var(--surface-color);
}

.reg-table caption {
  caption-side: bottom;
  font-size: 17px;
  font-weight: 500;
  margin-top: 50px;
  margin-left: 20px;
  font-family: var(--default-font);
  color: blue;
}

@media (max-width: 768px) {
  .reg-table {
    font-size: 14px;
  }
  .reg-table th, .reg-table td {
    padding: 10px;
  }
  .reg-table thead tr:nth-child(1) th {
    font-size: 16px;
    font-size: 420;
  }
  .reg-table td:first-child {
    padding-left: 30px;
  }
}

@media (max-width: 480px) {
  .reg-table {
    font-size: 12px;
  }
  .reg-table th, .reg-table td {
    padding: 6px;
  }
  .reg-table thead tr:nth-child(1) th {
    font-size: 14px;
  }
}
/*--------------------------------------------------------------
# submission
-------------------------------------------------------------*/
.submission-info {
  background-color: var(--surface-color);
  border-radius: 16px;
  padding: 40px 80px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #333;
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--default-font);
  font-size: 17px;
  line-height: 1.8;
}

.submission-info h4 {
  font-size: 23px;
}

.submission-info p {
  text-indent: 1em;
  
}

.submit-btn{
  text-align: center; 
  margin: 80px auto 50px;
}

.submit-abstract-btn {
  background: var(--gradient-accent);
  color:white;
  font-size: 18px;
  font-weight: 520;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.submit-abstract-btn:hover {
  background: var(--background-color);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .submission-info  {
    padding: 30px 30px;
    font-size: 15.5px;
  }
  .submission-info h4 {
    font-size: 20px;
  }
  .submit-abstract-btn {
    font-size: 16px;
    padding: 12px 24px;
  }
  .submit-btn {
    margin: 60px auto 40px;
  }
  
}
@media (max-width: 480px) {
  .submission-info  {
    padding: 20px 15px;
    font-size: 14px;
  }
  .submission-info h4 {
    font-size: 18px;
  }
  .submit-abstract-btn {
    font-size: 15px;
    padding: 10px 20px;
  }
  .submit-btn {
    margin: 50px auto 30px;
  }
  
}


/*--------------------------------------------------------------
# popup-overlay
--------------------------------------------------------------*/
.popup-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  display: inline-block;
  padding: 1rem;
  border-radius: 10px;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  overflow: hidden;
}

.popup-content img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 0.3rem;
  right: 2rem;
  font-size:2.8rem;
  color: var(--heading-color);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: var(--contrast-color);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  body {
    padding: 40px 10px;
  }
  
  .program-wrapper {
    width: 95%;
    padding: 20px;
  }
  
  .program-wrapper h1,
  .pdf-section h1 {
    font-size: 8vw;
    margin-bottom: 20px;
    margin-top: 20px;
  }
  
  .faq-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .faq-item button {
    font-size: 19px;
  }
  
  .book-image img {
    width: 80%;
    max-width: 500px;
  }
  
  .popup-content img {
    max-width: 500px;
  }
  

  .close-btn {
    font-size: min(max(1.5rem, 3cqw), 2.5rem);
    top: 0.3rem ;
    right: 1.2rem;
  }
}

@media (max-width: 480px) {
  .book-image img {
    width: 80%;
    max-width: 300px;
  }
  
  .popup-content img {
    max-width: 300px;
  }

  .close-btn {
    font-size: min(max(1.2rem, 2.5cqw), 2rem);
    top: 0.5rem;
    right: 1rem;
  }
}
/*--------------------------------------------------------------
# Cookie Consent Popup Styling
--------------------------------------------------------------*/
.cookie-popup {
  display: none;
  flex-direction: column;
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  max-width: 900px;
  width: 90%;
  z-index: 1000;
  font-family: var(--nav-font);
  gap: 10px;
  
}
  

.cookie-content-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-popup h5 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: bold;
  white-space: nowrap;
}


.cookie-popup p {
  margin: 0;
  font-size: 14px;
  color: #333;
  flex: 1;
  min-width: 250px;
}

.cookie-popup a {
  color: #007bff;
  text-decoration: none;
}

.cookie-popup a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /*justify-content: flex-end;*/
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.cookie-btn.accept {
  background:var(--gradient-accent);
  color: var(--hover-color);
}

.cookie-btn.accept:hover {
  background:var(--hover-color);
  color: var(--default-color);
}
.cookie-btn.decline {
  background: #979191;
  color: var(--hover-color);
}
.cookie-btn.decline:hover {
  background: var(--hover-color);
  color: var(--default-color);
}
/* Overlay for darkening background */
.cookie-overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.cookie-overlay.show {
  display: flexs;
}

/* Media Queries */
@media (max-width: 768px) {
  .cookie-popup {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    max-width: 500px;
  }

  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }

  .cookie-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .cookie-popup h5 {
    font-size: 16px;
  }

  .cookie-popup p {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .cookie-popup {
    max-width: 350px;
    padding: 10px;
  }
}
