:root {
  --kadence-header-height: 100px;
}

body.resume-editor {
  background-color: #f5f5f5;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: #333;
  padding-top: var(--kadence-header-height);
}

@media screen and (max-width: 768px) {
  body.resume-editor {
    padding-top: 140px;
  }
}

.resume-editor-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: calc(100vh - 80px);
  margin-top: var(--kadence-header-height, 80px);
}

.resume-sidebar {
  width: 240px;
  background: #f3f4f6;
  padding: 20px;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resume-sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.resume-sidebar button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background-color: #ff7f33;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.resume-sidebar button:hover {
  background-color: #e65c00;
}

.resume-main {
  flex-grow: 1;
  padding: 30px;
  background-color: #fff;
  overflow-y: auto;
}

.resume-main h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.resume-pages-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resume-page {
  width: 816px;
  height: 1056px;
  padding: 48px;
  padding-top: 0px;
  padding-bottom: 0px;
  box-sizing: border-box;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  position: relative;
}

.section-title {
  page-break-after: avoid;
  break-after: avoid-page;
  margin-bottom: 0.3rem;
}

body {
  background: #f3f4f6;
}

.resume-block {
  break-inside: avoid;
  page-break-inside: avoid;
}

.resume-page:not(:last-child)::after {
  content: "";
  display: block;
  height: 16px;
  background: repeating-linear-gradient(
    to bottom,
    #ccc,
    #ccc 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.3;
}

.resume-page > *:first-child {
  margin-top: 0 !important;
}

.resume-page > *:last-child {
  margin-bottom: 0 !important;
}

.resume-block {
  break-inside: avoid;
  page-break-inside: avoid;
}