/* ============================================
   BRANISLAV KOLENIČ – CV (podľa PDF originálu)
   Farby: bledomodrá + bledozelená
   Fonty: Oswald (nadpisy) + Source Sans 3 (text)
   ============================================ */

:root {
  /* Sidebar – teal-blue gradient */
  --left-top:      #4fa8c0;
  --left-bottom:   #3d8fa6;
  --left-bg:       #4399b0;

  /* Akcentová zelená pre pravý stĺpec */
  --accent:        #3a9e7e;
  --accent-light:  #e6f5f0;
  --accent-mid:    #2d8268;

  /* Text */
  --white:         #ffffff;
  --white-dim:     rgba(255,255,255,0.80);
  --white-faint:   rgba(255,255,255,0.50);
  --text:          #1c2b35;
  --text-mid:      #3d5060;
  --text-light:    #6b8090;
  --border:        #dce8ec;

  /* Layout */
  --left-w:        258px;

  --font:          'Source Sans 3', 'Segoe UI', sans-serif;
  --font-head:     'Oswald', 'Arial Narrow', sans-serif;
}

/* ============================================ RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: #e8eef1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

/* ============================================ PAGE */
.page {
  display: flex;
  width: 794px;
  min-height: 1123px;
  margin: 2.5rem auto;
  background: #fff;
  box-shadow: 0 6px 50px rgba(0,0,0,0.18);
}

/* ============================================
   LEFT COLUMN
   ============================================ */
.left {
  width: var(--left-w);
  min-width: var(--left-w);
  background: linear-gradient(175deg, var(--left-top) 0%, var(--left-bottom) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* --- Photo --- */
.photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.12);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-placeholder {
  display: none;           /* shown by JS onerror */
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.55;
}

/* --- Name block --- */
.name-block {
  padding: 1.2rem 1.1rem 1.1rem;
  border-bottom: 1px solid var(--white-faint);
}

.name {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.job-title {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--white-dim);
  letter-spacing: 0.03em;
}

/* --- Left sections --- */
.left-section {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--white-faint);
}
.left-section:last-child { border-bottom: none; }

.left-heading {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 0.6rem;
}

.left-text {
  font-size: 0.78rem;
  color: var(--white-dim);
  line-height: 1.65;
}
.left-text strong { color: var(--white); font-weight: 700; }

/* Bullet list */
.dot-list li {
  position: relative;
  font-size: 0.78rem;
  color: var(--white-dim);
  padding: 0.17rem 0 0.17rem 0.9rem;
  line-height: 1.45;
}
.dot-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.50);
}

/* Contact list */
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--white-dim);
  padding: 0.2rem 0;
  word-break: break-word;
}

.c-icon {
  width: 13px;
  min-width: 13px;
  height: 13px;
  fill: rgba(255,255,255,0.65);
  margin-top: 1px;
  flex-shrink: 0;
}

/* ============================================
   RIGHT COLUMN
   ============================================ */
.right {
  flex: 1;
  padding: 1.6rem 1.7rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* --- Sections --- */
.r-section {
  margin-bottom: 1.3rem;
}

.r-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0.85rem;
}

/* --- Entry (work exp) --- */
.r-entry {
  margin-bottom: 0.95rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.r-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.r-entry-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.35rem;
}

.r-role {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.r-where {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.05rem;
}

.r-period {
  font-weight: 400;
  color: var(--text-light);
}

/* Bullets */
.r-bullets {
  list-style: none;
}

.r-bullets li {
  position: relative;
  font-size: 0.8rem;
  color: var(--text-mid);
  padding: 0.12rem 0 0.12rem 0.9rem;
  line-height: 1.5;
}

.r-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Education --- */
.r-edu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.r-edu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.r-edu-item:last-child { border-bottom: none; }

.r-edu-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.r-edu-where {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.77rem;
  color: var(--accent);
  font-weight: 600;
}

.r-edu-year {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  align-self: center;
}

/* --- Projects --- */
.r-project-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.r-project-sub {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.82rem;
}

.r-project-desc {
  font-size: 0.79rem;
  color: var(--text-mid);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.r-link {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-mid);
  border-bottom: 1px solid rgba(58,158,126,0.3);
  margin-top: 0.3rem;
  transition: color 0.2s, border-color 0.2s;
}
.r-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- Footer --- */
.r-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.71rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.5;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  body { background: white; }
  .page {
    margin: 0;
    width: 100%;
    box-shadow: none;
    min-height: 100vh;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 820px) {
  .page {
    flex-direction: column;
    width: 100%;
    margin: 0;
  }
  .left {
    width: 100%;
    min-width: 100%;
  }

  /* Photo: malý kruh namiesto veľkého bloku */
  .photo-wrap {
    aspect-ratio: unset;
    height: auto;
    background: none;
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 0;
  }

  .photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }

  .photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
  }

  .name-block {
    text-align: center;
    padding: 0.9rem 1rem 1rem;
  }

  .name {
    font-size: 1.5rem;
  }
}
