/* ==========================================================
   Kazimah Binti Khuzaimi — Profile Site (Desktop / PC)
   Design tokens carried over from the resume design.
   ========================================================== */
:root {
  --blue: #5B8DB8;
  --blue-light: #8FB8DA;
  --navy: #1F3864;
  --sidebar-bg: #EDEFF2;
  --cream: #F6F4EF;
  --text-grey: #444444;
  --white: #FFFFFF;
  --border: #DDE1E6;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(31, 56, 100, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Calibri, Arial, sans-serif;
  background: var(--cream);
  color: var(--text-grey);
}

.page-wrap {
  max-width: 1100px;
  margin: 40px auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- Banner ---------- */
.banner {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  padding: 32px 44px;
  color: var(--white);
}

.banner .photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.6);
  object-fit: cover;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.banner .photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.banner .id-block { flex: 1; }

.banner h1 {
  margin: 0 0 4px;
  font-size: 34px;
  letter-spacing: 0.5px;
  font-weight: 800;
}

.banner .role {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #EAF2F8;
}

.contact-block {
  min-width: 300px;
  font-size: 14px;
  line-height: 1.9;
}

.contact-block a { color: var(--white); text-decoration: underline; }
.contact-block .icon { display: inline-block; width: 20px; }

/* ---------- Body layout: sidebar + main ---------- */
.body-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
}

.sidebar {
  background: var(--sidebar-bg);
  padding: 28px 26px;
}

.main {
  padding: 28px 34px;
}

h2.section-title {
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 6px;
  margin: 0 0 12px;
}

.sidebar .section { margin-bottom: 26px; }
.main .section { margin-bottom: 26px; }

.overview-text {
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

ul.plain-list {
  margin: 0;
  padding-left: 18px;
}
ul.plain-list li { margin-bottom: 6px; font-size: 14px; }

.cred-item, .cert-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.cred-item .dot, .cert-item .dot {
  color: var(--blue);
  margin-top: 2px;
}
.cred-item .sub, .cert-item .sub {
  display: block;
  color: #777;
  font-size: 12.5px;
}

.cert-item a.view-cert {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--blue);
  padding: 2px 10px;
  border-radius: 20px;
}
.cert-item a.view-cert:hover { background: var(--blue); color: var(--white); }

/* Education */
.edu-item { margin-bottom: 16px; }
.edu-item .period {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy);
}
.edu-item .degree { font-style: italic; font-size: 14.5px; margin: 2px 0; }
.edu-item .institution { color: var(--blue); font-size: 14px; }

/* Experience */
.job-block { margin-bottom: 20px; }
.job-block .job-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}
.job-block .job-title .place { color: var(--blue); font-weight: 700; }
.job-block .period {
  font-style: italic;
  font-size: 13px;
  color: #777;
  margin: 2px 0 8px;
}
.job-block ul { margin: 0; padding-left: 18px; }
.job-block ul li { font-size: 14px; margin-bottom: 6px; }

footer.site-footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- Certificate viewer modal ---------- */
.cert-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,30,45,0.75);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.cert-modal-overlay.open { display: flex; }
.cert-modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  padding: 16px;
  position: relative;
}
.cert-modal-box img, .cert-modal-box iframe {
  max-width: 80vw;
  max-height: 78vh;
  display: block;
}
.cert-modal-close {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 22px;
  cursor: pointer;
  color: var(--navy);
  background: none;
  border: none;
}
