/* ── SECTION ── */
.pd-section {
  padding: 1.5rem 0 4rem;
}

/* ── PAGE TITLE ── */
.pd-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 2rem;
}

/* ── LAYOUT ── */
.pd-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── STYLE A: WHITE SIDEBAR ── */
.pd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 1.5rem;
}

/* category group */
.pd-cat {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

/* category header */
.pd-cat-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #f0f0f0;
}

.pd-cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-cat-icon svg {
  width: 15px;
  height: 15px;
  fill: var(--primary-color);
}

.pd-cat-name {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
}

/* tabs wrapper */
.pd-cat-tabs {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

/* tab links */
.pd-tab {
  display: block;
  padding: 8px 14px 8px 52px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  cursor: pointer;
}

.pd-tab:hover {
  background: #f8f9fb;
  color: var(--primary-color);
}

.pd-tab.active {
  color: var(--primary-color);
  background: var(--background-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

/* ── CONTENT AREA ── */
.pd-content-area {
  min-width: 0;
}

.pd-content {
  display: none;
}

.pd-content.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── DATE PILLS ── */
.pd-date-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pd-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #eee;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  font-family: inherit;
}

.pd-date-pill:hover {
  border-color: var(--background-color);
  background: var(--primary-color-light);
  color: var(--primary-color);
}

.pd-date-pill.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.pd-date-pill .icon {
  display: inline-flex;
  align-items: center;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.pd-date-pill .icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

/* ── PRODUCT ITEM ── */
.pd-item {
  display: none;
}

.pd-item.is-active {
  display: block;
}

/* ── PANEL CARD ── */
.pd-panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

/* ── IMAGE PRODUCT ── */
.pd-panel-img {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fb;
}

.pd-panel-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── DOCUMENT PRODUCT ── */
.pd-panel-doc {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.pd-doc-thumb {
  flex: 1;
  background: #f8f9fb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.pd-doc-thumb img {
  height: 100%;
  object-fit: contain;
  display: block;
}

.pd-doc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
}

.pd-doc-placeholder svg {
  width: 60px;
  height: 60px;
  fill: #d0d8e8;
}

.pd-doc-dl {
  border-top: 1px solid #f0f0f0;
  padding: 12px 16px;
  background: #fff;
}

.pd-doc-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: gap 0.12s;
}

.pd-doc-dl-link:hover { gap: 9px; }

.pd-doc-dl-link .icon svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-color);
}

/* ── CONTENT BLOCK ── */
.pd-panel-text {
  padding: 1.5rem;
  font-size: 14px;
  color: #444;
  line-height: 1.75;
}

/* ── PANEL FOOTER ── */
.pd-panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.pd-btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.pd-btn-view:hover {
  background: var(--primary-color);
  color: #fff;
}

.pd-btn-view .icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.pd-btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.pd-btn-dl:hover {
  opacity: 0.9;
  color: #fff;
}

.pd-btn-dl .icon svg {
  width: 13px;
  height: 13px;
}

.pd-panel-foot .button {
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  height: auto !important;
  padding: 5px 12px !important;
  border-color: #eee !important;
  color: #555 !important;
  background: #fff !important;
  transition: border-color 0.12s, color 0.12s !important;
}

.pd-panel-foot .button:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* ── DESCRIPTION ── */
.pd-description {
  padding: 1.25rem 1.5rem;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  border-top: 1px solid #f0f0f0;
}

.pd-description p { margin-bottom: 0.75rem; }
.pd-description p:last-child { margin-bottom: 0; }
.pd-description strong { color: #1a1a1a; }
.pd-description a { color: var(--primary-color); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pd-layout {
    grid-template-columns: 190px 1fr;
    gap: 1rem;
  }
  .pd-page-title { font-size: 20px; }
}

@media (max-width: 768px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }

  .pd-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pd-cat {
    flex: 1;
    min-width: 140px;
  }

  .pd-cat-hdr { padding: 8px 10px; }
  .pd-cat-name { font-size: 11px; }

  .pd-tab {
    padding: 7px 10px;
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 11px;
  }

  .pd-tab.active {
    border-left: none;
    border-bottom-color: var(--primary-color);
    background: var(--background-color);
  }

  .pd-page-title { font-size: 18px; }
  .pd-date-pill { font-size: 10px; padding: 5px 10px; }

  .pd-btn-dl,
  .pd-btn-view {
    width: 100%;
    justify-content: center;
  }

  .pd-panel-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .pd-page-title { font-size: 16px; }
  .pd-cat { min-width: 100%; }
}