/**
 * Andaman Techspace 2026 — Agenda CSS
 *
 * ใช้สำหรับเว็บ A (static PHP) — wrapper หลักคือ .agenda-box
 * (ตัด #sec__agenda / .bg-agenda / .sty__intro-agenda ออก เพราะเว็บนี้มี
 *  .agenda-section / .agenda-title ของตัวเองอยู่แล้ว ไม่ต้องใช้ของชุดนี้ซ้ำ)
 *
 * วิธีใช้:
 *   1. เพิ่ม Google Font ใน <head>:
 *      <link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
 *   2. Link ไฟล์นี้ใน header.php:
 *      <link rel="stylesheet" href="css/agenda.css">
 */

/* ==========================================================================
   CSS VARIABLES — Andaman 2026 color tokens
   ========================================================================== */

:root {
  --andaman-cl-primary:     #0834a3;
  --andaman-cl-secondary:   #ff772f;
  --andaman-cl-tertiary:    #67c871;
  --andaman-cl-tx-body:     #000000;
  --andaman-cl-tx-header:   #0834a3;
  --andaman-cl-tx-subtitle: #67c871;
  --andaman-cl-tx-position: #58595b;
  --andaman-ff-th:          'Prompt', sans-serif;
}

#sec__agenda { background-color: #fff; border-radius: 0px; box-shadow: 3px 8px 17.5px 1px #00000033; }
#sec__agenda .container { padding: 30px; }
#sec__agenda .container .sty__intro-agenda { display: none; }


/* ==========================================================================
   AGENDA BOX (เดิมชื่อ .sty__agenda-table) — wrapper หลักของกล่องตาราง
   ========================================================================== */

.agenda-box {
  background: rgba(255, 255, 255,);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 40px 40px;
  box-shadow: 0 8px 40px rgba(0, 60, 120, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  text-align: left; /* override text-align: center ที่ตั้งไว้บน .agenda-section */
}
@media screen and (max-width: 480px) {
  .agenda-box {
    padding: 35px 20px 30px;
  }
}

.sty__agenda-table__list {
  display: flex;
  flex-direction: column;
}


/* ==========================================================================
   AGENDA ROW
   ========================================================================== */

.sty__agenda-table__row {
  display: grid;
  grid-template-columns: 150px 30px 1fr auto;
  align-items: baseline;
  gap: 0 12px;
  padding: 15px 16px 10px;
  border-bottom: 0px solid #fff;
  min-height: 52px;
  overflow: hidden;
}
@media screen and (max-width: 880px) {
  .sty__agenda-table__row {
    grid-template-columns: 120px 20px 1fr auto;
  }
}
@media screen and (max-width: 768px) {
  .sty__agenda-table__row {
    grid-template-columns: 100px 16px 1fr;
    grid-template-rows: auto auto;
  }
}
@media screen and (max-width: 480px) {
  .sty__agenda-table__row {
    padding: 5px 0px 10px;
    min-height: 30px;
  }
}
@media screen and (max-width: 430px) {
  .sty__agenda-table__row {
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto;
  }
}

.sty__agenda-table__row:last-child {
  border-bottom: none;
}

/* Row with detail (has moderator/speakers) */
.sty__agenda-table__row--has-detail {
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}
@media screen and (max-width: 480px) {
  .sty__agenda-table__row--has-detail {
    padding-top: 5px;
    padding-bottom: 8px;
  }
}
@media screen and (max-width: 430px) {
  .sty__agenda-table__row--has-detail {
    padding-bottom: 18px;
  }
}
.sty__agenda-table__row--has-detail .sty__agenda-table__dot {
  margin-top: 5px;
}


/* ==========================================================================
   TIME
   ========================================================================== */

.sty__agenda-table__time {
  font-weight: 500;
  color: var(--andaman-cl-tx-body);
  white-space: nowrap;
}
@media screen and (max-width: 430px) {
  .sty__agenda-table__time {
    grid-column: 2/3;
    grid-row: 1;
    color: var(--andaman-cl-primary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
  }
}


/* ==========================================================================
   DOT
   ========================================================================== */

.sty__agenda-table__dot {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 auto;
}
.sty__agenda-table__dot--green  { background: #e67e22; }
.sty__agenda-table__dot--blue   { background: var(--andaman-cl-secondary); }
.sty__agenda-table__dot--orange { background: #e67e22; }
.sty__agenda-table__dot--purple { background: #8b5cf6; }
.sty__agenda-table__dot--red    { background: #e74c3c; }

.sty__agenda-table__dot:after {
  content: "";
  position: absolute;
  width: 1px;
  background: var(--andaman-cl-secondary);
  left: calc(50% - 0.5px);
  top: -25px;
  bottom: -500px;
  z-index: 1;
}

.sty__agenda-table__dot-wrapper {
  position: relative;
  display: flex;
  align-items: baseline;
}
@media screen and (max-width: 430px) {
  .sty__agenda-table__dot-wrapper {
    grid-column: 1/2;
    grid-row: 1/3;
  }
}


/* ==========================================================================
   BADGE
   ========================================================================== */

.sty__agenda-table__badge {
  display: inline-block;
  padding: 6px 10px 3px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 1px;
  margin-bottom: 10px;
}
.sty__agenda-table__badge--registration {
  background: #e8f5e0;
  color: #5a9e2f;
  border: 1px solid #c5e3aa;
}
.sty__agenda-table__badge--opening {
  background: #e0ecf8;
  color: #2e6da4;
  border: 1px solid #aac9e8;
}
.sty__agenda-table__badge--panel {
  background: #ecf4ed;
  color: #7ab648;
  border: 1px solid #7ab648;
  padding: 5px 10px;
}
.sty__agenda-table__badge--break {
  background: #fff4e0;
  color: #c07000;
  border: 1px solid #f0d090;
}
.sty__agenda-table__badge--ideas {
  background: #e4f0ff;
  color: #2060c0;
  border: 1px solid #a0c4f0;
}
.sty__agenda-table__badge--tech {
  background: #ede8f8;
  color: #7040b0;
  border: 1px solid #c8b0e8;
}
.sty__agenda-table__badge--networking {
  background: #e0f4ec;
  color: #207850;
  border: 1px solid #90d4b4;
}
.sty__agenda-table__badge--reddot {
  background: #fde8e8;
  color: #c02020;
  border: 1px solid #f0a8a8;
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.sty__agenda-table__content {
  padding-top: 1px;
  
}
@media screen and (max-width: 430px) {
  .sty__agenda-table__content {
    grid-column: 2/3;
    grid-row: 2;
  }
}

.sty__agenda-table__session-title {
  font-weight: 500;
  margin-bottom: 5px;
}

.sty__agenda-table__session-meta {
  font-size: 12px;
  color: var(--andaman-cl-tx-position);
  line-height: 1.6;
}
.sty__agenda-table__session-meta strong {
  color: #434549;
  font-weight: 600;
}


/* ==========================================================================
   VIEW SPEAKERS BUTTON
   ========================================================================== */

.sty__agenda-table__speakers-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-end;
  gap: 3px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 3px;
  text-decoration: none;
  display: none;
}
@media screen and (max-width: 768px) {
  .sty__agenda-table__speakers-btn {
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    grid-column: 3 / 4;
    grid-row: 2;
    padding-top: 10px;
  }
}
@media screen and (max-width: 480px) {
  .sty__agenda-table__speakers-btn {
    gap: 5px;
  }
}
@media screen and (max-width: 430px) {
  .sty__agenda-table__speakers-btn {
    grid-column: 2 / 3;
    grid-row: 3;
    padding-top: 8px;
  }
}

.sty__agenda-table__speakers-btn-wrapper {
  display: flex;
  align-items: flex-end;
  align-self: end;
  height: auto;
}
@media screen and (max-width: 768px) {
  .sty__agenda-table__speakers-btn-wrapper {
    grid-column: 3/4;
    grid-row: 2;
    align-items: flex-start;
    padding-top: 10px;
  }
}
@media screen and (max-width: 430px) {
  .sty__agenda-table__speakers-btn-wrapper {
    grid-column: 2/3;
    grid-row: 3;
    align-items: flex-start;
    padding-top: 8px;
  }
}

.sty__agenda-table__speakers-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #7a8a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6a7e;
  transition: border-color 0.15s ease, color 0.15s ease;
}
@media screen and (max-width: 480px) {
  .sty__agenda-table__speakers-btn-icon {
    width: 25px;
    height: 25px;
  }
}
.sty__agenda-table__speakers-btn-icon img {
  width: 65%;
}
.sty__agenda-table__speakers-btn:hover .sty__agenda-table__speakers-btn-icon {
  border-color: #1a3a6b;
  color: #1a3a6b;
}

.sty__agenda-table__speakers-btn-label {
  font-size: 10px;
  color: #7a8a9a;
  white-space: nowrap;
  transition: color 0.15s ease;
}
@media screen and (max-width: 480px) {
  .sty__agenda-table__speakers-btn-label {
    margin-top: 4px;
  }
}
.sty__agenda-table__speakers-btn:hover .sty__agenda-table__speakers-btn-label {
  color: #1a3a6b;
}

@media screen and (max-width: 375px) {
  .sty__agenda-table__session-title--plain, .sty__agenda-table__session-title {
    font-size: 12px;
  }

  .sty__agenda-table__time {
      font-size: 14px;
  }

  .sty__agenda-table__session-meta, .sty__agenda-table__badge {
    font-size: 10px;
  }

}

/* ==========================================================================
   SMOOTH SCROLL
   ========================================================================== */

html {
  scroll-behavior: smooth;
}