 @page {
      size: A4;
      margin: 20mm;
    }

    body {
      margin: 0;
      padding: 0;
      background: #eaeaea;
      font-family: Arial, sans-serif;
    }

    .page {
      width: 210mm;
      min-height: 297mm;
      margin: 20px auto;
      padding: 20mm;
      background: white;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
      box-sizing: border-box;
      overflow: hidden;
    }

    h1, h2, h3 {
      margin-top: 0;
      color: #003366;
    }

    p {
      line-height: 1.6;
      font-size: 14px;
    }

    .section {
      margin-bottom: 15px;
    }

    /* Force page break when needed */
    .page-break {
      page-break-before: always;
    }

    /* Print cleanup */
    @media print {
      body {
        background: white;
      }
      .page {
        margin: 0;
        box-shadow: none;
        page-break-after: always;
      }
    }


h1 {
    color: darkblue;
    margin: 0;
    padding: 0;
}

h2 {
  font-size: 20px;          /* Adjust title size */
  color: #1a237e;           /* Dark blue text (change as you like) */
  margin: 10px 0;           /* Reduce vertical spacing */
  display: flex;            /* Align icon + text */
  align-items: center;      /* Vertical center */
  gap: 8px;                 /* Space between icon & text */
}
h2 i {
  color: #444;              /* Icon color */
  font-size: 22px;          /* Slightly bigger than text */
}
p {
    text-align: justify;
}
hr.dotted {
    border: none;   
    border-top: 2px dotted rgb(53, 16, 220); 
}

footer {
    background-color: rgba(203, 173, 186, 0.164);
}
.ctrjob {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:rgba(128, 128, 128, 0.092);
    padding: 5px;
}
.ctrjob h4,
.ctrjob p {
    margin: 0;
}
.ctrfooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
li.completed i {
  color: #2e7d32;   /* Green */
}

/* Ongoing education */
li.ongoing i {
  color: #f57c00;   /* Amber/Orange */
}
.industry h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 15px 0;
}

.industry-grid div {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.industry-grid div:hover {
  transform: translateY(-3px);
  background: #e3f2fd;
}

.industry-grid i {
  color: #1565c0;   /* Icon color */
  font-size: 20px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;

}

.skills-grid div {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0);
  transition: transform 0.2s ease, background 0.2s ease;
}

.skills-grid div:hover {
  transform: translateY(-3px);
  background: #e8f4fd;
}

.skills-grid i {
  color: #1565c0;   /* Blue icons */
  font-size: 18px;
}
.summary-box {
  background: #f9f9f9;
  border-left: 5px solid #1565c0;
  padding: 15px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  line-height: 1.6;
}

.summary-box p {
  margin: 8px 0;
  font-size: 15px;
  color: #333;
}
/* Header Layout */
.ctrtitle{
  display: grid;
  grid-template-columns: auto 1fr auto; /* Avatar | Name | Contact */
  align-items: center;
  gap: 12px 20px;
  padding: 16px 0 10px;
  border-bottom: 2px solid #e6e8ee;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Avatar Monogram */
.ctrtitle .avatar{
  background: #1565c0;         /* Brand color */
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Name + Title */
.ctrtitle .id-block h1{
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 750;
  color: #111827;
}

.ctrtitle .id-block h2{
  margin: 4px 0 0;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.3px;
}

/* Contact Section */
.ctrtitle .contact{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  color: #334155;
}

.ctrtitle .contact a{
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
}

.ctrtitle .contact a:hover{
  background: #f1f5f9;
}

.ctrtitle .contact i{ font-size: 14px; opacity: .9; }
.ctrtitle .sep{ opacity: .5; }

/* Mobile: stack */
@media (max-width: 640px){
  .ctrtitle{
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
  }
  .ctrtitle .contact{
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 4px;
  }
}
.skills-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.skill-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.skill-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1565c0;
}

.skill-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}
.experience-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
}

.job-card {
  background: #ffffff;
  border-left: 5px solid #1565c0;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.job-header h3 {
  font-size: 18px;
  margin: 0 0 5px;
  color: #0d47a1;
}

.job-header .company,
.job-header .period {
  display: block;
  font-size: 14px;
  color: #444;
  margin-bottom: 4px;
}

.job-body h4 {
  font-size: 16px;
  color: #1565c0;
  margin-top: 15px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 20px;
}

.projects li {
  font-size: 14px;
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.projects li i {
  color: #43a047;
}

.experience-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
}

.timeline {
  position: relative;
  margin-left: 20px;
  border-left: 3px solid #1565c0;
  padding-left: 25px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: -11px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: #1565c0;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #bbdefb;
}

.timeline-content {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.timeline-content h3 {
  font-size: 18px;
  color: #0d47a1;
  margin: 0 0 6px;
}

.timeline-content p,
.timeline-content span {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 15px;
  color: #1565c0;
  margin-top: 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-content ul {
  padding-left: 20px;
  margin: 0;
}

.timeline-content ul li {
  font-size: 14px;
  margin-bottom: 4px;
}
.others-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
}

.others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.others-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.others-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.others-card h3 {
  font-size: 16px;
  color: #0d47a1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.others-card p,
.others-card li {
  font-size: 14px;
  color: #444;
  margin: 4px 0;
}

.others-card ul {
  padding-left: 20px;
  margin: 0;
}

.highlight {
  color: #1565c0;
  font-weight: 600;
}
.certifications {
  margin: 2rem 0;
}

.certifications h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #003366;
  border-bottom: 2px solid #ddd;
  padding-bottom: .3rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: .7rem 1.2rem;
}

.cert-item {
  background: #f9f9f9;
  padding: .6rem 1rem;
  border-left: 4px solid #0077b6;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.cert-item i {
  color: #0077b6;
}
.education h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
}

.education h2 i {
  color: #0077b6;
  margin-right: 8px;
}

/* Grid */
.edu-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

/* Card Style */
.edu-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  border-radius: 16px;
  border: 1px solid #dbeafe;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease-in-out;

}

.edu-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  background: linear-gradient(135deg, #e0f7fa, #ffffff);
}

/* Icon Circle */
.edu-icon {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: #fff;
  padding: 1rem;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.4);
}

/* Text */
.edu-info h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #003366;
}

.edu-info p {
  margin: .2rem 0;
  font-size: .9rem;
  color: #444;
}

.edu-info .year {
  display: block;
  font-size: .85rem;
  color: #666;
  margin-top: .3rem;
}

.edu-info .grade {
  display: block;
  font-size: .85rem;
  color: #0077b6;
  font-weight: 600;
  margin-top: .2rem;
}

/* Ongoing Highlight */
.edu-card.ongoing {
  border-left: 5px solid #ffb703;
  background: linear-gradient(135deg, #fffaf0, #fff);
}
/* Right Side Logo */
.edu-right {
  flex-shrink: 0;
  margin-left: 1rem;


}

.edu-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  border: 1px solid #ddd;


}
.appreciation-section {
  margin: 2rem 0;
}

.appreciation-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #d7f4cd, #fff);
  border: 1px solid #f0c36d;
  border-left: 6px solid #f4a261;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appreciation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.app-icon {
  font-size: 2rem;
  color: #f4a261;
}

.app-info p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.app-info .highlight {
  font-weight: bold;
  color: #e76f51;
  font-size: 1.1rem;
}

.consultant {
  color: #0057b7; /* Blue shade */
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0, 87, 183, 0.1); /* soft highlight */
}

.client {
  color: #1f0a5a; /* Red shade */
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(141, 45, 8, 0.1);
}
.world-record {
  background: linear-gradient(90deg, #ffd700, #ffae00);
  color: #111;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 6px rgba(255, 170, 0, 0.6);
}
.section-title h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
}

.stars {
  color: #FFD700; /* gold color */
  margin-left: 8px; /* space after language */
}

.stars i {
  margin-right: 2px; /* small spacing between stars */
}

.others-card ul {
  list-style: none; /* remove bullets */
  padding-left: 0;
}

.others-card li {
  margin-bottom: 6px; /* space between items */
  font-size: 16px;
}
/* Print adjustments */
@media print{
  .ctrtitle{ border-bottom: 1px solid #cbd5e1; }
  .ctrtitle .contact a:hover{ background: none; }
}
@media print {
  body {
    background: white !important;
    padding: 10mm !important;
  }
  .others-card, iframe {
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  iframe {
    width: 100% !important;
    height: auto !important;
  }
}

    /* Simple layout */
    body { background:#1f2937; color:#fff; font-family:system-ui,Segoe UI,Roboto,Arial; margin:20px; }
    .list-inline { padding-left:0; margin:0; list-style:none; }
    .list-inline-item { display:inline-block; margin-right:12px; }
    a.text-white { color:#fff; text-decoration:none; }
    a.text-white:hover { text-decoration:underline; }

    /* Modal */
    #passwordModal { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.6); z-index:9999; }
    #passwordModal.hidden { display:none; }
    .modal-card { background:#fff; color:#111; width:340px; border-radius:10px; padding:18px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
    .modal-title { margin:0 0 8px; font-size:18px; }
    .field { position:relative; margin-top:8px; }
    .input { width:100%; padding:10px 42px 10px 10px; border-radius:6px; border:1px solid #cfcfcf; font-size:14px; }
    .toggle-btn {
      position:absolute; right:8px; top:50%; transform:translateY(-50%);
      border:none; background:transparent; cursor:pointer; font-size:18px; line-height:1;
    }
    .actions { display:flex; gap:8px; margin-top:12px; }
    .btn { padding:8px 12px; border-radius:6px; border:0; cursor:pointer; font-size:14px; }
    .btn-primary { background:#0d6efd; color:#fff; }
    .btn-secondary { background:#e6e6e6; color:#111; }
    .error { color:#b00020; margin-top:8px; min-height:18px; font-size:13px; }

    /* make modal visually separate if heavy page CSS exists */
    .modal-card * { box-sizing:border-box; }
