/* ============================================
   PAGE DETAIL — page-detail.css
   Vardana Solusi — Ocean Deep Theme
   ============================================ */

/* ===== Force Navbar Solid ===== */
body:has(.pg-hero) .navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ===== PAGE HERO ===== */
.pg-hero {
  padding: 120px 0 40px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.pg-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.pg-hero__breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.pg-hero__breadcrumb a:hover {
  color: var(--teal);
}

.pg-hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.2;
}

.pg-hero__desc {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.pg-hero__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 8px;
}

.pg-hero__meta svg {
  opacity: 0.6;
}

/* ===== CONTENT ===== */
.pg-content {
  padding: 48px 0 80px;
}

/* Layout: main + sidebar */
.pg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Full width mode */
.pg-main--full {
  max-width: 800px;
}

/* Thumbnail */
.pg-main__thumb {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.pg-main__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== PROSE (reuse from portfolio-detail, extended) ===== */
.pg-content .prose {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--gray-700);
}

.pg-content .prose h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

.pg-content .prose h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 36px 0 12px;
}

.pg-content .prose h3:first-child,
.pg-content .prose h2 + h3 {
  margin-top: 0;
}

.pg-content .prose h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 24px 0 8px;
}

.pg-content .prose p {
  margin-bottom: 16px;
}

.pg-content .prose ul,
.pg-content .prose ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.pg-content .prose li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.pg-content .prose li strong {
  color: var(--gray-800);
}

.pg-content .prose strong {
  color: var(--gray-800);
}

.pg-content .prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pg-content .prose a:hover {
  color: var(--mid-blue);
}

.pg-content .prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--teal);
  background: var(--pale-cyan);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gray-600);
}

.pg-content .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.pg-content .prose table th,
.pg-content .prose table td {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.pg-content .prose table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-800);
}

.pg-content .prose table tr:hover {
  background: var(--pale-cyan);
}

/* ===== SIDEBAR ===== */
.pg-sidebar__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.pg-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.pg-sidebar__title svg {
  color: var(--teal);
}

/* Legal Pages Navigation */
.pg-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-sidebar__link {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

.pg-sidebar__link:hover {
  background: var(--pale-cyan);
  color: var(--teal);
}

.pg-sidebar__link--active {
  background: var(--light-cyan);
  color: var(--teal);
  font-weight: 700;
}

/* CTA Card */
.pg-sidebar__card--cta {
  background: linear-gradient(135deg, var(--deep-blue), var(--teal));
  border: none;
  color: white;
  text-align: center;
  padding: 28px 24px;
}

.pg-sidebar__card--cta h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pg-sidebar__card--cta p {
  font-size: 13.5px;
  opacity: 0.8;
  margin-bottom: 20px;
  line-height: 1.5;
}

.pg-sidebar__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px;
  background: white;
  color: var(--deep-blue);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.pg-sidebar__cta-btn:hover {
  background: #25D366;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* ===== PAGES LISTING ===== */
.pg-listing {
  padding: 48px 0 80px;
}

.pg-listing__section {
  margin-bottom: 48px;
}

.pg-listing__section:last-child {
  margin-bottom: 0;
}

.pg-listing__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.pg-listing__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.pg-listing__icon--legal {
  background: var(--light-cyan);
  color: var(--teal);
}

.pg-listing__icon--info {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.pg-listing__title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.pg-listing__subtitle {
  font-size: 13.5px;
  color: var(--gray-400);
}

.pg-listing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* Page Card */
.pg-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.pg-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(0, 151, 167, 0.1);
  transform: translateY(-2px);
}

.pg-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--light-cyan);
  color: var(--teal);
  flex-shrink: 0;
  transition: all 0.25s;
}

.pg-card__icon--info {
  background: rgba(245, 158, 11, 0.08);
  color: #F59E0B;
}

.pg-card:hover .pg-card__icon {
  background: linear-gradient(135deg, var(--mid-blue), var(--teal));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 151, 167, 0.25);
}

.pg-card:hover .pg-card__icon--info {
  background: linear-gradient(135deg, #F59E0B, #F97316);
}

.pg-card__body {
  flex: 1;
  min-width: 0;
}

.pg-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pg-card__desc {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 10px;
}

.pg-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  transition: gap 0.2s;
}

.pg-card:hover .pg-card__link {
  gap: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pg-layout {
    grid-template-columns: 1fr;
  }

  .pg-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .pg-sidebar__card {
    margin-bottom: 0;
  }

  .pg-sidebar__card--cta {
    grid-column: 1 / -1;
  }

  .pg-listing__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pg-hero {
    padding: 100px 0 32px;
  }

  .pg-hero__title {
    font-size: 26px;
  }

  .pg-content {
    padding: 32px 0 60px;
  }

  .pg-sidebar {
    grid-template-columns: 1fr;
  }

  .pg-listing {
    padding: 32px 0 60px;
  }

  .pg-card {
    padding: 18px;
  }
}
