/* ==========================================================
   SMART CYBER CAFE — CONTENT & LEGAL PAGES STYLESHEET (v2 Modern Redesign)
   Palette: Royal Blue (#1a3566), Accent (#2563eb), Gold (#d97706), Emerald (#10b981), Slate
   Style: Minimalist, Airy, High-Performance, Sticky Gliding Sidebar, WCAG AA Accessible
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --royal: #1a3566;
  --royal-dark: #122549;
  --royal-light: #2563eb;
  --accent: #2563eb;
  --accent-light: rgba(37, 99, 235, 0.08);
  
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-bg: #fef3c7;
  
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.08);
}

/* ── ROOT & PAGE BASE (Using overflow-x: clip so sticky works natively) ── */
html {
  overflow-x: clip;
  max-width: 100vw;
  box-sizing: border-box;
}

body.content-page-body {
  background-color: var(--slate-50);
  color: var(--slate-800);
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ── AMBIENT BACKGROUND GLOWS ── */
.cp-bg-decor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cp-bg-decor .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
  will-change: transform;
  pointer-events: none;
}

.glow-royal {
  top: -10%;
  left: -8%;
  width: 48vw;
  height: 48vw;
  max-width: 580px;
  max-height: 580px;
  background: radial-gradient(circle, rgba(26, 53, 102, 0.26) 0%, rgba(37, 99, 235, 0.08) 60%, transparent 100%);
}

.glow-gold {
  top: 15%;
  right: -8%;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.16) 0%, rgba(245, 158, 11, 0.04) 60%, transparent 100%);
}

.glow-emerald {
  bottom: -10%;
  left: 25%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

/* ── TOP BREADCRUMB BAR ── */
.cp-breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 12px 0;
  position: relative;
  z-index: 5;
  width: 100%;
  box-sizing: border-box;
}

.cp-breadcrumb-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 500;
  box-sizing: border-box;
  word-break: break-word;
}

.cp-breadcrumb-inner a {
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cp-breadcrumb-inner a:hover {
  color: var(--royal);
}

.cp-breadcrumb-sep {
  color: var(--slate-300);
  font-size: 13px;
}

.cp-breadcrumb-inner span:last-child {
  color: var(--royal-dark);
  font-weight: 700;
}

/* ── HERO BANNER ── */
.cp-hero {
  padding: 44px 0 36px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.cp-hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  min-width: 0;
}

.cp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 53, 102, 0.08);
  border: 1px solid rgba(26, 53, 102, 0.14);
  color: var(--royal);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  box-sizing: border-box;
}

.cp-badge-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.cp-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-align: left;
  width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cp-hero-title-highlight {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cp-hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.75;
  color: var(--slate-600);
  margin: 0 0 22px;
  max-width: 820px;
  width: 100%;
  text-align: left;
  word-break: break-word;
}

.cp-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cp-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  max-width: 100%;
  word-break: break-word;
  box-sizing: border-box;
}

.cp-meta-pill svg {
  color: var(--royal);
  flex-shrink: 0;
}

/* ── MAIN SECTION & LAYOUT (Preserves Sticky Sidebar Scrolling Context) ── */
.cp-main-section {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 80px;
  box-sizing: border-box;
  min-width: 0;
}

.cp-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cp-layout > * {
  min-width: 0;
  max-width: 100%;
}

/* ── STICKY SIDEBAR NAVIGATION (Glides with page scroll) ── */
.cp-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  z-index: 10;
}

.cp-sidebar-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 14px;
  padding-left: 8px;
}

.cp-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.cp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.35;
  word-break: break-word;
  min-width: 0;
  border-left: 3.5px solid transparent;
}

.cp-nav-link:hover {
  background: var(--slate-100);
  color: var(--royal);
  transform: translateX(3px);
}

.cp-nav-link.active,
.cp-nav-link.is-active {
  background: #eff6ff !important;
  color: #2563eb !important;
  font-weight: 700;
  border-left-color: #2563eb !important;
  padding-left: 12px;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.cp-nav-num {
  font-family: 'JetBrains Mono', 'DM Mono', monospace, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-400);
  background: var(--slate-100);
  padding: 2px 7px;
  border-radius: 6px;
  min-width: 24px;
  text-align: center;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.cp-nav-link:hover .cp-nav-num {
  background: var(--royal);
  color: var(--white);
}

.cp-nav-link.active .cp-nav-num,
.cp-nav-link.is-active .cp-nav-num {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Sidebar Assistance CTA */
.cp-sidebar-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--slate-200);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.cp-sidebar-cta p {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin: 0 0 12px;
  font-weight: 500;
}

.btn-sidebar-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--royal) 0%, #1e4080 100%);
  color: var(--white);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(26, 53, 102, 0.2);
  box-sizing: border-box;
}

.btn-sidebar-contact:hover {
  background: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 53, 102, 0.3);
}

/* ── ARTICLE CONTAINER & CARDS ── */
.cp-article {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.cp-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.cp-card h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  letter-spacing: -0.02em;
  word-break: break-word;
  line-height: 1.3;
}

.cp-card h2 svg,
.cp-card h2 span.icon-wrapper {
  color: var(--royal);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.cp-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-800);
  margin: 24px 0 10px;
  word-break: break-word;
  line-height: 1.35;
}

.cp-card h4 {
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 6px;
  word-break: break-word;
}

.cp-card p {
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--slate-600);
  margin: 0 0 16px;
  word-break: break-word;
}

.cp-card p:last-child {
  margin-bottom: 0;
}

.cp-card strong {
  color: var(--slate-800);
  font-weight: 700;
}

.cp-card ul, .cp-card ol {
  margin: 0 0 18px 20px;
  padding: 0;
  color: var(--slate-600);
  word-break: break-word;
}

.cp-card li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-size: 0.975rem;
}

.cp-card li strong {
  color: var(--slate-800);
}

/* ── CALLOUT BOXES & HIGHLIGHTS ── */
.cp-highlight-box {
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 20px 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.cp-highlight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--royal);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cp-alert-warning {
  background: #fffbeb;
  border: 1.5px solid #fef3c7;
  border-left: 4px solid var(--gold);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 20px 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.cp-alert-warning .cp-highlight-title {
  color: #b45309;
}

.cp-alert-warning p {
  color: #92400e;
  word-break: break-word;
  font-size: 0.95rem;
}

.cp-alert-success {
  background: #ecfdf5;
  border: 1.5px solid #d1fae5;
  border-left: 4px solid var(--emerald);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 20px 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.cp-alert-success .cp-highlight-title {
  color: #065f46;
}

.cp-alert-success p {
  color: #047857;
  word-break: break-word;
  font-size: 0.95rem;
}

/* ── FEATURE & SERVICE GRID ── */
.cp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 22px 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.cp-feature-card {
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.cp-feature-card:hover {
  background: var(--white);
  border-color: var(--royal);
  box-shadow: 0 8px 20px rgba(26, 53, 102, 0.06);
  transform: translateY(-2px);
}

.cp-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--royal);
}

.cp-feature-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  word-break: break-word;
}

/* ── TABLES (Safe Contained Horizontal Scroll) ── */
.cp-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1.5px solid var(--slate-200);
  border-radius: 16px;
  box-sizing: border-box;
  display: block;
}

.cp-table-wrap::-webkit-scrollbar {
  height: 6px;
}
.cp-table-wrap::-webkit-scrollbar-track {
  background: var(--slate-100);
  border-radius: 8px;
}
.cp-table-wrap::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 8px;
}
.cp-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}

.cp-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  display: table;
}

.cp-table th {
  background: var(--slate-100);
  color: var(--slate-700);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1.5px solid var(--slate-200);
  white-space: nowrap;
}

.cp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-600);
  vertical-align: top;
  line-height: 1.6;
}

.cp-table tr:last-child td {
  border-bottom: none;
}

.cp-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.775rem;
  font-weight: 700;
  white-space: nowrap;
}

.cp-tag-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--royal-light);
}

.cp-tag-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-dark);
}

.cp-tag-amber {
  background: var(--gold-bg);
  color: var(--gold);
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .cp-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
  }

  .cp-sidebar {
    position: static;
    top: auto;
  }

  .cp-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .cp-breadcrumb-inner {
    padding: 0 16px;
  }

  .cp-hero {
    padding: 32px 0 24px;
  }

  .cp-hero-container {
    padding: 0 16px;
  }

  .cp-main-section {
    padding: 0 16px 60px;
  }

  .cp-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .cp-feature-grid {
    grid-template-columns: 1fr;
  }

  .cp-nav-list {
    grid-template-columns: 1fr;
  }

  .cp-table th, .cp-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .cp-hero h1 {
    font-size: 1.65rem;
  }

  .cp-hero-subtitle {
    font-size: 0.925rem;
    line-height: 1.65;
  }

  .cp-hero-badge {
    font-size: 0.725rem;
    padding: 5px 12px;
  }

  .cp-card {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .cp-card h2 {
    font-size: 1.2rem;
  }

  .cp-sidebar {
    padding: 16px 12px;
    border-radius: 16px;
  }
}
