/* ==============================
   GLOBAL
   ============================== */
* {
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  margin: 0;
  background: #e5e7eb;
  display: flex;
  justify-content: center;
  padding: 30px;
}

/* ==============================
   PAGE LAYOUT
   ============================== */
.page {
  width: 900px;
  min-height: 1500px;
  background: white;
  display: flex;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

/* ==============================
   SIDEBAR
   ============================== */
.sidebar {
  width: 250px;
  background: #eef1f2;
  padding: 20px;
  flex-shrink: 0;
}

.sidebar-section {
  margin: 24px 0;
}

.sidebar h3 {
  margin: 0;
  color: #013b61;
  font-size: 18px;
}

.divider {
  height: 1px;
  background: #c8c8c8;
  margin: 6px 0 10px;
}

.info-row {
  font-size: 11px;
  margin-bottom: 8px;
}

/* ==============================
   SKILLS / DOTS
   ============================== */
.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 8px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8c8c8;
}

.dot.active {
  background: #013b61;
}

/* ==============================
   MAIN CONTENT
   ============================== */
.content {
  flex: 1;
  padding: 30px;
}

.section {
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  color: #013b61;
  font-size: 19px;
}

.job {
  margin-top: 14px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: bold;
}

.company {
  font-size: 11px;
  color: #013b61;
  margin-top: 4px;
}

.desc {
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.4;
}

ul {
  margin: 6px 0 0 16px;
  font-size: 11px;
  padding: 0;
}

/* ==============================
   BULLET LIST
   ============================== */
.bullet-list {
  list-style: none;
  margin: 8px 0 0;
  padding-left: 14px;
}

.bullet-list li {
  position: relative;
  margin-bottom: 6px;
  line-height: 1.4;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: -12px;
  color: #013b61;
  font-weight: bold;
}

/* ==============================
   PHOTO
   ============================== */
.photo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.photo-container img {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #013b61;
}

/* ==============================
   PROJECT LINKS (CRITICAL)
   ============================== */
.project-links {
  padding-left: 18px;
  margin: 0;
}

.project-links li {
  margin-bottom: 6px;
  font-size: 13px;
}

.project-links a {
  color: #1f2937;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

/* ==============================
   SNAPSHOT ICONS
   ============================== */
.snapshot img {
  width: 25px;
  height: 25px;
  object-fit: cover;
  border-radius: 12px;
}

/* ==============================
   QUALIFICATIONS
   ============================== */
.qualification-header,
.qualification-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 1.5fr;
  gap: 6px;
  font-size: 13px;
}

.qualification-header {
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.qualification {
  margin-bottom: 6px;
}

.sidebar-list {
  padding-left: 18px;
  margin: 0;
  font-size: 13px;
}

.sidebar-list li {
  margin-bottom: 6px;
}

/* ==============================
   PRINT / PDF (FINAL & CLEAN)
   ============================== */
@media print {

  body {
    background: white;
    margin: 0;
    padding: 0;
    display: block;
  }

  /* Lock A3 canvas */
  .page {
    width: 1123px;       /* A3 width @ 96 DPI */
    min-height: 1587px;  /* A3 height */
    margin: 0 auto;
    box-shadow: none;
    display: flex;
    flex-direction: row;
  }

  /* Preserve two-column layout */
  .sidebar {
    width: 250px;
    flex-shrink: 0;
  }

  .content {
    flex: 1;
  }

  /* CLICKABLE LINKS FIX */
  a {
    pointer-events: auto !important;
    color: #013b61 !important;
    text-decoration: underline !important;
  }

  .project-links,
  .project-links li {
    overflow: visible;
  }

  /* Prevent PDF annotation loss */
  * {
    transform: none !important;
    filter: none !important;
  }

  /* Page setup */
  @page {
    size: A3;
    margin: 10mm;
  }

  .no-print {
    display: none !important;
  }
}
