/* =========================================================
   ThaiPUL 40 Years Promo Banner
   ใช้กับ HTML แบนเนอร์ประชาสัมพันธ์งานสัมมนา ThaiPUL 40 ปี
   File: /css/custom40year.css
   ========================================================= */

.thaipul40-promo{
  width:100%;
  margin:28px auto 34px;
  padding:0 10px;
  font-family:Tahoma, Arial, sans-serif;
  box-sizing:border-box;
}

.thaipul40-promo *,
.thaipul40-promo *:before,
.thaipul40-promo *:after{
  box-sizing:border-box;
}

.thaipul40-promo-card{
  position:relative;
  max-width:1050px;
  margin:0 auto;
  overflow:hidden;
  border-radius:24px;
  border:1px solid rgba(12,95,168,.24);
  background:
    radial-gradient(circle at 8% 18%, rgba(246,183,60,.20), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(0,162,214,.18), transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f3faff 55%,#fff8e8 100%);
  box-shadow:0 20px 48px rgba(7,59,122,.14);
}

.thaipul40-promo-card:before{
  content:"";
  position:absolute;
  inset:10px;
  border:1px dashed rgba(0,162,214,.48);
  border-radius:18px;
  pointer-events:none;
}

.thaipul40-promo-inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:150px minmax(0,1fr) auto;
  gap:24px;
  align-items:center;
  padding:28px 34px;
}

/* =========================================================
   Logo Image
   ใช้รูป: /image/thaipul40year.png
   ========================================================= */

.thaipul40-logo-wrap{
  width:145px;
  height:145px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:unset !important;
  border-radius:28px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(234,246,255,.96));
  border:1px solid rgba(12,95,168,.16);
  box-shadow:0 14px 32px rgba(7,59,122,.14);
  overflow:hidden;
  padding:10px;
}

/* ปิด pseudo-element โลโก้เดิมที่เคยสร้าง 40 / ThaiPUL ด้วย CSS */
.thaipul40-logo-wrap:before,
.thaipul40-logo-wrap:after{
  content:none !important;
  display:none !important;
}

.thaipul40-logo-img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border:0;
}

/* =========================================================
   Content
   ========================================================= */

.thaipul40-promo-content{
  min-width:0;
}

.thaipul40-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  padding:5px 13px;
  border-radius:999px;
  background:#eaf6ff;
  color:#0c5fa8;
  font-size:14px;
  line-height:1.4;
  font-weight:700;
}

.thaipul40-promo-title{
  margin:0;
  color:#073b7a;
  font-size:30px;
  line-height:1.28;
  font-weight:800;
  letter-spacing:-.2px;
}

.thaipul40-promo-subtitle{
  margin:9px 0 0;
  color:#445d76;
  font-size:16px;
  line-height:1.7;
}

.thaipul40-promo-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:13px;
}

.thaipul40-promo-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 11px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid #dbe7f1;
  color:#0b3b75;
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  box-shadow:0 4px 10px rgba(7,59,122,.05);
}

/* =========================================================
   CTA
   ========================================================= */

.thaipul40-promo-action{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:10px;
  min-width:190px;
}

.thaipul40-new-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  background:#f6b73c;
  color:#073b7a;
  font-size:12px;
  line-height:1.2;
  font-weight:800;
  box-shadow:0 8px 18px rgba(246,183,60,.28);
}

.thaipul40-promo-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:12px 22px;
  border-radius:999px;
  background:linear-gradient(135deg,#0c5fa8,#073b7a);
  color:#ffffff !important;
  text-decoration:none !important;
  font-size:16px;
  line-height:1.3;
  font-weight:800;
  box-shadow:0 12px 26px rgba(12,95,168,.28);
  white-space:nowrap;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.thaipul40-promo-button:hover,
.thaipul40-promo-button:focus{
  color:#ffffff !important;
  text-decoration:none !important;
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(12,95,168,.34);
  filter:brightness(1.05);
}

.thaipul40-promo-button span{
  display:inline-block;
  font-size:20px;
  line-height:1;
  margin-top:-1px;
}

.thaipul40-promo-note{
  color:#5f7287;
  font-size:13px;
  line-height:1.45;
  text-align:right;
}

/* =========================================================
   Responsive: Tablet
   ========================================================= */

@media (max-width:900px){
  .thaipul40-promo{
    margin:24px auto 30px;
  }

  .thaipul40-promo-inner{
    grid-template-columns:140px minmax(0,1fr);
    gap:20px;
    padding:26px 24px;
  }

  .thaipul40-logo-wrap{
    width:135px;
    height:135px;
    border-radius:24px;
  }

  .thaipul40-promo-title{
    font-size:26px;
  }

  .thaipul40-promo-action{
    grid-column:1 / -1;
    align-items:flex-start;
    min-width:0;
    padding-left:160px;
  }

  .thaipul40-promo-note{
    text-align:left;
  }
}

/* =========================================================
   Responsive: Mobile
   ========================================================= */

@media (max-width:620px){
  .thaipul40-promo{
    margin:18px auto 26px;
    padding:0 8px;
  }

  .thaipul40-promo-card{
    border-radius:20px;
  }

  .thaipul40-promo-card:before{
    inset:8px;
    border-radius:15px;
  }

  .thaipul40-promo-inner{
    grid-template-columns:1fr;
    text-align:center;
    gap:16px;
    padding:24px 18px;
  }

  .thaipul40-logo-wrap{
    width:150px;
    height:150px;
    border-radius:26px;
  }

  .thaipul40-eyebrow{
    justify-content:center;
    font-size:13px;
  }

  .thaipul40-promo-title{
    font-size:24px;
  }

  .thaipul40-promo-subtitle{
    font-size:15px;
    line-height:1.65;
  }

  .thaipul40-promo-tags{
    justify-content:center;
  }

  .thaipul40-promo-action{
    align-items:center;
    padding-left:0;
    min-width:0;
  }

  .thaipul40-promo-button{
    width:100%;
    max-width:320px;
    text-align:center;
  }

  .thaipul40-promo-note{
    text-align:center;
  }
}

/* =========================================================
   Very Small Mobile
   ========================================================= */

@media (max-width:380px){
  .thaipul40-promo-inner{
    padding:22px 14px;
  }

  .thaipul40-logo-wrap{
    width:135px;
    height:135px;
  }

  .thaipul40-promo-title{
    font-size:22px;
  }

  .thaipul40-promo-button{
    font-size:15px;
    padding:11px 18px;
  }
}