@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Sans+Thai:wght@300;400;500&display=swap');

/* ── variables ── */
:root {
  --g100: #fdfaf3;
  --g200: #f9e9b8;
  --g400: #f5c842;
  --g600: #d4a017;
  --g800: #b8860b;
  --dark: #1a1005;
  --mid:  #2a1b05;
}

.dd-body { font-family: 'IBM Plex Sans Thai', sans-serif; }
.dd-serif { font-family: 'Cormorant Garamond', serif; }

/* ── gold line ── */
.dd-gold-line {
  width: 40px; height: 3px; border-radius: 9999px;
  background: linear-gradient(90deg, var(--g400), var(--g800));
  margin-bottom: 10px;
}

/* ── button ── */
.dd-btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px; border-radius: 8px;
  background: var(--g400); color: #fff;
  font-size: 14px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  transition: background .2s, transform .15s;
}
.dd-btn-gold:hover  { background: var(--g600); transform: translateY(-2px); }
.dd-btn-gold:active { background: var(--g800); transform: translateY(0); }

.dd-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px;
  border: 1.5px solid var(--g400); color: var(--g800);
  font-size: 14px; font-weight: 500;
  text-decoration: none; background: transparent;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  transition: all .2s;
}
.dd-btn-outline:hover { background: rgba(245,200,66,.1); }

.dd-btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 9999px;
  border: 1.5px solid rgba(245,200,66,.4);
  background: rgba(245,200,66,.08); color: var(--g400);
  font-size: 13px; text-decoration: none;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  transition: all .2s;
}
.dd-btn-back:hover { background: rgba(245,200,66,.18); transform: translateX(-2px); }

/* ── chip ── */
.dd-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 4px 14px; border-radius: 9999px;
  border: 1px solid rgba(245,200,66,.45);
  background: rgba(245,200,66,.12); color: var(--g800);
}

/* ── card ── */
.dd-card {
  background: #fff;
  border: 1px solid rgba(245,200,66,.22);
  border-radius: 16px; padding: 24px;
  transition: box-shadow .25s, border-color .25s;
}
.dd-card:hover {
  border-color: rgba(245,200,66,.5);
  box-shadow: 0 6px 24px rgba(245,200,66,.12);
}

/* ── tab ── */
.dd-tab {
  padding: 9px 22px; border-radius: 9999px;
  font-size: 13px; font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer; background: transparent;
  color: #6b7280; transition: all .2s;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}
.dd-tab.active, .dd-tab:hover {
  border-color: var(--g400);
  background: rgba(245,200,66,.1);
  color: var(--g800);
}

/* ── tab pane ── */
.dd-pane { display: none; }
.dd-pane.active { display: block; }

/* ── related card ── */
.dd-rel-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(245,200,66,.2);
  border-radius: 14px;
  text-decoration: none;
  transition: all .25s;
}
.dd-rel-card:hover {
  border-color: var(--g400);
  box-shadow: 0 6px 20px rgba(245,200,66,.15);
  transform: translateY(-2px);
}

/* ── fade-up ── */
.dd-fu {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.dd-fu.vis { opacity: 1; transform: translateY(0); }

/* ── Hero ── */
.dd-hero {
  position: relative; overflow: hidden;
  background: var(--dark); min-height: 420px;
  display: flex; align-items: flex-end;
}
.dd-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: transform 8s ease;
}
.dd-hero:hover .dd-hero-bg { transform: scale(1.03); }
.dd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26,16,5,.96) 0%,
    rgba(26,16,5,.75) 45%,
    rgba(26,16,5,.25) 100%
  );
}

/* ── Decorations ── */
.dd-deco-dots {
  position: absolute; pointer-events: none; z-index: 1;
  background-image: radial-gradient(circle, rgba(245,200,66,.3) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.dd-deco-circle {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 1;
}
.dd-accent-bar {
  position: absolute; left: 0; top: 15%; bottom: 15%;
  width: 3px; border-radius: 9999px; z-index: 6;
  background: linear-gradient(to bottom, transparent, var(--g400) 30%, var(--g400) 70%, transparent);
}

/* ── Stat box ── */
.dd-stat {
  text-align: center; padding: 14px 20px;
  background: rgba(245,200,66,.07);
  border: 1px solid rgba(245,200,66,.2);
  border-radius: 12px; flex: 1; min-width: 80px;
  transition: all .2s;
}
.dd-stat:hover { border-color: var(--g400); background: rgba(245,200,66,.12); }

/* ── Timeline (ประวัติการศึกษา) ── */
.dd-timeline-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding-bottom: 20px; position: relative;
}
.dd-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute; left: 17px; top: 36px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(245,200,66,.4), transparent);
}
.dd-tl-dot {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  background: rgba(245,200,66,.15); color: var(--g800);
  border: 1.5px solid rgba(245,200,66,.4);
}

/* ── Award card ── */
.dd-award {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(245,200,66,.2);
  border-radius: 12px; background: #fff;
  transition: all .2s;
}
.dd-award:hover { border-color: var(--g400); }
.dd-award-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: rgba(245,200,66,.12);
}

/* ── CTA dark banner ── */
.dd-cta {
  background: linear-gradient(135deg, var(--dark), var(--mid));
  border: 1px solid rgba(245,200,66,.3);
  border-radius: 20px; padding: 40px 36px;
  position: relative; overflow: hidden;
}
.dd-cta::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,66,.18) 0%, transparent 70%);
}

@media (max-width: 1024px) {
  .dd-main-grid { grid-template-columns: 1fr !important; }
  aside { position: static !important; }
}
@media (max-width: 640px) {
  .dd-hero-content { padding: 2rem 1rem 2.5rem; }
  .dd-stats-row { flex-wrap: wrap; }
}
