/* CV Page Styles */

.cv-page {
  background-color: #fff;
}


.cv {
  min-height: 100vh;
  padding: 0;
}

.cv__container {
  background: #ffffff;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}


/* Content Grid - 3 Columns */
.cv__content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 2.5rem;
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.cv__column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cv__column--1 {
  grid-column: 1;
  grid-row: 2;
}

.cv__column--2 {
  grid-column: 2;
  grid-row: 2;
}

.cv__column--3 {
  grid-column: 3;
  grid-row: 2;
}

/* Header Section - Spans all columns in Row 1 */
.cv__section--header {
  grid-column: 1 / 4;
  grid-row: 1;
  margin-bottom: 0;
  padding-bottom: 1.5rem;
  border-bottom: 0px solid #000;
}



.cv__name {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 0.3rem 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.cv__title {
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
}

.cv__contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 300;
}

.cv__contact-item {
  color: #000;
  text-decoration: none;
  display: block;
  word-break: break-word;
  font-size: 0.8rem;
}

.cv__contact-item:hover {
  color: #000;
  text-decoration: underline;
}

/* Sections */
.cv__section {
  margin: 0;
}

.cv__section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 0.6rem 0;
  letter-spacing: 0.0em;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 0.3rem;
}

.cv__section-content {
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 300;
}

.cv__section-content p {
  margin: 0 0 0.5rem 0;
}

.cv__section-content p:last-child {
  margin-bottom: 0;
}

.cv__section-content strong {
  font-weight: 700;
  color: #000;
}

/* Experience & Education Entries */
.cv__entry {
  margin-bottom: 0.8rem;
  padding-bottom: 0rem;
  border-bottom: 0px solid #ccc;
}

.cv__entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cv__entry-header {
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #000;
  font-size: 0.8rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.cv__entry-desc {
  color: #000;
  line-height: 1.4;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  font-weight: 300;
}

/* Skills & Tools */
.cv__skill-group,
.cv__skill-line {
  margin-bottom: 0rem;
  line-height: 1.4;
  font-size: 0.8rem;
  font-weight: 300;
}

.cv__skill-item {
  display: inline;
}

.cv__skill-sep {
  color: #666;
  font-weight: 700;
}

/* Actions */
.cv__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border-top: 1px solid #e0e0e0;
}

.cv__btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid #000;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv__btn--print {
  background: #000;
  color: #fff;
}

.cv__btn--print:hover {
  background: #000;
}

.cv__btn--secondary {
  background: #fff;
  color: #000;
}

.cv__btn--secondary:hover {
  background: #000;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cv__content {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .cv__section--header {
    grid-column: 1 / 3;
  }

  .cv__column--1 {
    grid-column: 1;
    grid-row: 2;
  }

  .cv__column--2 {
    grid-column: 2;
    grid-row: 2;
  }

  .cv__column--3 {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .cv__name {
    font-size: 1.8rem;
  }

  .cv__title {
    font-size: 1.8rem;
  }

  .cv__section-title {
    font-size: 1.8rem;
  }

  .cv__section-content {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .cv {
    min-height: auto;
  }

  .cv__container {
    height: auto;
  }

  .cv__content {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .cv__section--header {
    grid-column: 1;
    grid-row: 1;
  }

  .cv__column--1,
  .cv__column--2,
  .cv__column--3 {
    grid-column: 1;
    grid-row: auto;
  }

  .cv__name {
    font-size: 1.8rem;
  }

  .cv__title {
    font-size: 1.8rem;
  }

  .cv__section-title {
    font-size: 1.8rem;
  }

  .cv__section-content {
    font-size: 0.8rem;
  }

  .cv__actions {
    flex-direction: column;
  }

  .cv__btn {
    width: 100%;
    text-align: center;
  }
}

/* Print Styles - A4 Single Page */
@media print {
  @page {
    size: A4;
    margin: 0.5cm;
  }

  * {
    box-sizing: border-box;
  }

  body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header,
  .cv__actions {
    display: none !important;
  }

  .cv {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    page-break-after: avoid;
  }

  .cv__container {
    width: 100% !important;
    height: auto !important;
    padding: 0.5cm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: block !important;
    page-break-after: avoid;
  }

  .cv__content {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: auto 1fr !important;
    gap: 0.8rem !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    page-break-inside: avoid;
  }

  .cv__column {
    page-break-inside: avoid;
  }

  .cv__section--header {
    grid-column: 1 / 4 !important;
    grid-row: 1 !important;
  }

  .cv__column--1 {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .cv__column--2 {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .cv__column--3 {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  .cv__section {
    page-break-inside: avoid;
  }

  .cv__entry {
    page-break-inside: avoid;
  }

  /* Compact everything for print */
  .cv__section-content {
    margin: 0 !important;
  }

  .cv__section-content p {
    margin: 0 0 0.3rem 0 !important;
  }

  .cv__entry {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .cv__skill-group,
  .cv__skill-line {
    margin-bottom: 0.3rem !important;
  }

  .cv__section--header {
    padding-bottom: 1rem !important;
    margin-bottom: 0 !important;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  /* Prevent page breaks in sections */
  .cv__section--profile,
  .cv__section--skills,
  .cv__section--tools,
  .cv__section--languages,
  .cv__section--experience,
  .cv__section--education {
    page-break-inside: avoid !important;
  }
}

