@charset "UTF-8";
/* CE SSRU Academic Activities Archive Stylesheet (v1.0.9) — Froala & Bootstrap-3 Safe */

@keyframes ceActFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ceActBodyReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ceActRowIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ceActPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.34);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(185, 28, 28, 0);
  }
}

/* ===== Root Container ===== */
.ce-act-wrap {
  --ce-ink: #172030;
  --ce-muted: #526075;
  --ce-navy: #1e3a8a;
  --ce-navy-mid: #2563eb;
  --ce-navy-soft: #eff4ff;
  --ce-crimson: #b91c1c;
  --ce-crimson-soft: #fef2f2;
  --ce-border: #dce3ee;
  --ce-surface: #f7f9fc;
  --ce-paper: #ffffff;

  font-family: "IBM Plex Sans Thai", "Sarabun", "Helvetica Neue", Helvetica, Arial, sans-serif;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 14px 36px;
  color: var(--ce-ink);
  background-color: var(--ce-paper);
  line-height: 1.65;
  text-align: left;
  box-sizing: border-box;
  interpolate-size: allow-keywords;
}

.ce-act-wrap *,
.ce-act-wrap *::before,
.ce-act-wrap *::after {
  box-sizing: border-box;
}

/* ===== Editorial Header ===== */
.ce-act-wrap .ce-act-header {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--ce-navy);
  animation: ceActFadeUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-act-wrap .ce-act-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--ce-muted);
}

.ce-act-wrap .ce-act-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--ce-navy-soft);
  border: 1px solid #c7d7fe;
  color: var(--ce-navy);
  font-size: 13px;
  font-weight: 600;
}

.ce-act-wrap .ce-act-kicker::before {
  content: "\1F4C5";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.ce-act-wrap .ce-act-span {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--ce-muted);
}

.ce-act-wrap .ce-act-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ce-ink);
}

.ce-act-wrap .ce-act-desc {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ce-muted);
}

/* ===== Section Divider for Previous Years ===== */
.ce-act-wrap .ce-act-archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 26px 0 12px;
  padding: 0 2px;
  animation: ceActFadeUp 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.ce-act-wrap .ce-act-archive-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ce-ink);
}

.ce-act-wrap .ce-act-archive-hint {
  font-size: 13px;
  color: var(--ce-muted);
}

/* ===== Year Accordion Card (<details>) ===== */
.ce-act-wrap .ce-act-year {
  margin-bottom: 12px;
  border: 1px solid var(--ce-border);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--ce-paper);
  box-shadow: 0 2px 8px rgba(23, 32, 48, 0.04);
  transition:
    border-color 0.24s ease,
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  animation: ceActFadeUp 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-act-wrap .ce-act-year:nth-of-type(1) { animation-delay: 0.04s; }
.ce-act-wrap .ce-act-year:nth-of-type(2) { animation-delay: 0.12s; }
.ce-act-wrap .ce-act-year:nth-of-type(3) { animation-delay: 0.17s; }
.ce-act-wrap .ce-act-year:nth-of-type(4) { animation-delay: 0.22s; }

.ce-act-wrap .ce-act-year:hover {
  border-color: #b4c6e7;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.08);
}

.ce-act-wrap .ce-act-year[open] {
  border-color: #93b4f5;
  box-shadow: 0 10px 26px rgba(30, 58, 138, 0.1);
}

.ce-act-wrap .ce-act-year.ce-act-latest {
  border-color: #bfd3f8;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.08);
}

.ce-act-wrap .ce-act-year.ce-act-latest[open] {
  border-color: #608df0;
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.12);
}

/* Smooth Native <details> Expand/Collapse */
.ce-act-wrap .ce-act-year::details-content {
  block-size: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    block-size 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    content-visibility 0.36s allow-discrete;
}

.ce-act-wrap .ce-act-year[open]::details-content {
  block-size: auto;
  opacity: 1;
}

/* ===== Accordion Summary Bar ===== */
.ce-act-wrap .ce-act-summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background-color: var(--ce-surface);
  font-size: 17px;
  font-weight: 700;
  color: var(--ce-ink);
  cursor: pointer;
  outline: none;
  list-style: none;
  user-select: none;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.15s ease;
}

.ce-act-wrap .ce-act-latest > .ce-act-summary {
  background: linear-gradient(135deg, #f3f7ff 0%, #eef4ff 100%);
  color: var(--ce-navy);
}

.ce-act-wrap .ce-act-summary::-webkit-details-marker {
  display: none;
}

.ce-act-wrap .ce-act-summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--ce-navy);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-act-wrap .ce-act-latest > .ce-act-summary::before {
  background: linear-gradient(180deg, var(--ce-crimson) 0%, var(--ce-navy) 100%);
}

.ce-act-wrap .ce-act-summary:hover {
  background-color: #edf2fb;
}

.ce-act-wrap .ce-act-summary:hover::before,
.ce-act-wrap .ce-act-year[open] > .ce-act-summary::before {
  transform: scaleY(1);
}

.ce-act-wrap .ce-act-summary:active {
  transform: scale(0.996);
}

.ce-act-wrap .ce-act-summary:focus-visible {
  outline: 2px solid var(--ce-navy);
  outline-offset: -2px;
}

.ce-act-wrap .ce-act-summary-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.ce-act-wrap .ce-act-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: var(--ce-crimson);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: ceActPulse 2.4s ease-in-out infinite;
}

.ce-act-wrap .ce-act-new-badge::before {
  content: "\2728";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.ce-act-wrap .ce-act-count {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: #e4ebf7;
  color: var(--ce-navy);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.ce-act-wrap .ce-act-year[open] > .ce-act-summary .ce-act-count {
  background-color: var(--ce-navy);
  color: #ffffff;
}

/* Toggle Indicator */
.ce-act-wrap .ce-act-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ce-navy);
  flex-shrink: 0;
}

.ce-act-wrap .ce-act-toggle::before {
  content: "คลิกเพื่อดูประกาศ";
}

.ce-act-wrap .ce-act-year[open] > .ce-act-summary .ce-act-toggle::before {
  content: "คลิกเพื่อซ่อน";
}

.ce-act-wrap .ce-act-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--ce-navy);
  font-size: 10px;
  line-height: 1;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s ease,
    color 0.22s ease;
}

.ce-act-wrap .ce-act-year[open] > .ce-act-summary .ce-act-chevron {
  transform: rotate(180deg);
  background-color: var(--ce-navy);
  color: #ffffff;
}

/* ===== Accordion Body & Rows ===== */
.ce-act-wrap .ce-act-body {
  padding: 12px 14px;
  border-top: 1px solid #e4ebf5;
  background-color: var(--ce-paper);
}

.ce-act-wrap .ce-act-year[open] > .ce-act-body {
  animation: ceActBodyReveal 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-act-wrap .ce-act-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ce-act-wrap .ce-act-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px 13px 17px;
  border-radius: 10px;
  border: 1px solid #e8eef7;
  background-color: #fbfcfe;
  color: var(--ce-ink) !important;
  text-decoration: none !important;
  overflow: hidden;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-act-wrap .ce-act-year[open] .ce-act-row {
  animation: ceActRowIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-act-wrap .ce-act-year[open] .ce-act-row:nth-child(1) { animation-delay: 0.03s; }
.ce-act-wrap .ce-act-year[open] .ce-act-row:nth-child(2) { animation-delay: 0.07s; }
.ce-act-wrap .ce-act-year[open] .ce-act-row:nth-child(3) { animation-delay: 0.11s; }
.ce-act-wrap .ce-act-year[open] .ce-act-row:nth-child(4) { animation-delay: 0.15s; }

.ce-act-wrap .ce-act-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--ce-navy-mid);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-act-wrap .ce-act-row:hover,
.ce-act-wrap .ce-act-row:focus-visible {
  background-color: #f3f7ff;
  border-color: #9bb7f2;
  transform: translateX(3px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.08);
  outline: none;
  text-decoration: none !important;
}

.ce-act-wrap .ce-act-row:hover::before,
.ce-act-wrap .ce-act-row:focus-visible::before {
  transform: scaleY(1);
}

.ce-act-wrap .ce-act-row:active {
  transform: translateX(1px) scale(0.997);
}

.ce-act-wrap .ce-act-row-left {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  flex: 1 1 auto;
  min-width: 0;
}

/* Date Badge */
.ce-act-wrap .ce-act-date {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: var(--ce-navy-soft);
  border: 1px solid #d4e0fa;
  color: var(--ce-navy);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.ce-act-wrap .ce-act-row:hover .ce-act-date,
.ce-act-wrap .ce-act-row:focus-visible .ce-act-date {
  background-color: #e0ebff;
  border-color: #a9c4fa;
}

.ce-act-wrap .ce-act-info {
  flex: 1 1 auto;
  min-width: 0;
}

.ce-act-wrap .ce-act-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ce-ink);
  line-height: 1.5;
  overflow-wrap: break-word;
  transition: color 0.2s ease;
}

.ce-act-wrap .ce-act-row:hover .ce-act-name,
.ce-act-wrap .ce-act-row:focus-visible .ce-act-name {
  color: var(--ce-navy);
}

.ce-act-wrap .ce-act-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.ce-act-wrap .ce-act-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background-color: #eef2f7;
  color: var(--ce-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.ce-act-wrap .ce-act-tag-intl {
  background-color: #fef3c7;
  color: #92400e;
}

.ce-act-wrap .ce-act-tag-en {
  background-color: #e0f2fe;
  color: #075985;
}

/* PDF Download Pill */
.ce-act-wrap .ce-act-pdf {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: var(--ce-paper);
  border: 1px solid #cbd7ec;
  color: var(--ce-navy);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-act-wrap .ce-act-pdf::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='m9.5 15.5 2.5 2.5 2.5-2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='m9.5 15.5 2.5 2.5 2.5-2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ce-act-wrap .ce-act-row:hover .ce-act-pdf,
.ce-act-wrap .ce-act-row:focus-visible .ce-act-pdf {
  background-color: var(--ce-navy);
  border-color: var(--ce-navy);
  color: #ffffff;
  transform: translateX(2px);
}

/* ===== Footer Note ===== */
.ce-act-wrap .ce-act-note {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background-color: var(--ce-surface);
  border: 1px solid var(--ce-border);
  font-size: 13.5px;
  color: var(--ce-muted);
}

.ce-act-wrap .ce-act-note::before {
  content: "\2139\FE0F";
  display: inline-block;
  margin-right: 0.45em;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .ce-act-wrap {
    padding: 12px 8px 28px;
  }

  .ce-act-wrap .ce-act-summary {
    padding: 13px 14px;
    font-size: 15.5px;
  }

  .ce-act-wrap .ce-act-toggle::before {
    display: none;
  }

  .ce-act-wrap .ce-act-body {
    padding: 10px;
  }

  .ce-act-wrap .ce-act-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 13px;
  }

  .ce-act-wrap .ce-act-row-left {
    flex-direction: column;
    gap: 7px;
  }

  .ce-act-wrap .ce-act-date {
    align-self: flex-start;
    min-width: auto;
    padding: 3px 9px;
  }

  .ce-act-wrap .ce-act-pdf {
    justify-content: center;
    width: 100%;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .ce-act-wrap .ce-act-header,
  .ce-act-wrap .ce-act-archive-head,
  .ce-act-wrap .ce-act-year,
  .ce-act-wrap .ce-act-year::details-content,
  .ce-act-wrap .ce-act-year[open] > .ce-act-body,
  .ce-act-wrap .ce-act-year[open] .ce-act-row,
  .ce-act-wrap .ce-act-new-badge {
    animation: none !important;
  }

  .ce-act-wrap .ce-act-year,
  .ce-act-wrap .ce-act-year::details-content,
  .ce-act-wrap .ce-act-summary,
  .ce-act-wrap .ce-act-summary::before,
  .ce-act-wrap .ce-act-count,
  .ce-act-wrap .ce-act-chevron,
  .ce-act-wrap .ce-act-row,
  .ce-act-wrap .ce-act-row::before,
  .ce-act-wrap .ce-act-date,
  .ce-act-wrap .ce-act-name,
  .ce-act-wrap .ce-act-pdf {
    transition: none !important;
  }
}
