/* Toggle Button for References */
.cv-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: var(--cv-bg-accent, #e6f0fa);
  color: var(--cv-primary-color, #2563eb);
  border: none;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 0.5em 1.2em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,40,80,0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin-bottom: 0.5em;
}
.cv-toggle-btn:hover, .cv-toggle-btn:focus {
  background: var(--cv-primary-color, #2563eb);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,40,80,0.13);
}
.cv-toggle-arrow {
  font-size: 1.2em;
  transition: transform 0.2s;
}
  --cv-date-bg-light: #e0f2fe;
  --cv-date-color-light: #0369a1;
  --cv-date-bg-dark: #1e293b;
  --cv-date-color-dark: #38bdf8;
html[data-theme="dark"] {
  --cv-date-bg: var(--cv-date-bg-dark);
  --cv-date-color: var(--cv-date-color-dark);
}

:root {
  --cv-date-bg: var(--cv-date-bg-light);
  --cv-date-color: var(--cv-date-color-light);
}
/* Date outside entry box for work, education, volunteering */
/* Date outside entry box for work, education, volunteering */
.cv-date-outside {
  color: var(--cv-date-color);
  font-weight: 700;
  font-size: 1.18rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.04em;
  background: var(--cv-date-bg);
  border-radius: 8px;
  padding: 0.22em 1.1em;
  margin-left: 1.1em;
  margin-top: 0.2em;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 6px rgba(14,165,233,0.07);
  transition: background 0.2s, color 0.2s;
}
@media (max-width: 600px) {
  .cv-date-outside {
    display: block;
    margin-left: 0;
    margin-top: 0.5em;
    text-align: left;
  }
}
/* CV Template Styles */
.cv-container {
  max-width: 1000px;
  margin: 0 auto;
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Header Styles */
.cv-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #f2f2f2;
  padding-bottom: 1rem;
}

.cv-header h1 {
  margin-bottom: 0.5rem;
  color: #2a7ae2;
}


/* Responsive horizontal grid for all main sections */
.cv-work, .cv-education, .cv-volunteering {
  display: block;
}
.cv-work .cv-item, .cv-education .cv-item, .cv-volunteering .cv-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
  text-decoration: none;
}

.cv-profile-item a:hover {
  text-decoration: underline;
}

/* Section Styles */
.cv-section {
  margin-bottom: 2rem;
}

.cv-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 2.5rem 0 1.5rem 0;
  position: relative;
  padding: 1.2rem 0;
  background: linear-gradient(90deg, #1e40af 0%, #6366f1 100%);
  box-shadow: 0 8px 32px -8px rgba(30,40,80,0.18);
  z-index: 10;
  width: 100%;
  border-radius: 0;
  text-align: center;
  letter-spacing: 0.01em;
  display: block;
  overflow: visible;
}

.cv-section h2::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
}
}

/* Item Styles */
.cv-item {
  margin-bottom: 1.5rem;
  width: 98%;
  min-width: 520px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;

.cv-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cv-item-title {
  font-weight: bold;
  font-size: 1.1rem;
}

.cv-item-date {
  color: #666;
}

.cv-item-subtitle {
  color: #666;
  margin-bottom: 0.5rem;
}

.cv-item-summary {
  margin-bottom: 0.5rem;
}

.cv-item-highlights {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.cv-item-highlights li {
  margin-bottom: 0.25rem;
}

.cv-item-courses ul {
  margin-top: 0.25rem;
  padding-left: 1.5rem;
}

.cv-item-courses li {
  margin-bottom: 0.25rem;
}

/* Skills Styles */
.cv-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cv-skill-category h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.cv-skill-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-skill-keyword {
  background-color: #f2f2f2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Project Styles */
.cv-project-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cv-project-keyword {
  background-color: #e6f3ff;
  color: #2a7ae2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Languages Styles */
.cv-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cv-language {
  display: flex;
  flex-direction: column;
}

.cv-language-name {
  font-weight: bold;
}

.cv-language-fluency {
  color: #666;
  font-size: 0.9rem;
}

/* Interests Styles */
.cv-interests {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cv-interest h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.cv-interest-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-interest-keyword {
  background-color: #f9f9f9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* References Styles */
.cv-references {
  font-style: italic;
  color: #666;
}

/* Print Styles */
@media print {
  .cv-container {
    max-width: 100%;
  }
  
  .cv-header {
    border-bottom-color: #ccc;
  }
  
  .cv-section h2 {
    border-bottom-color: #ccc;
  }
  
  .cv-skill-keyword,
  .cv-project-keyword,
  .cv-interest-keyword {
    border: 1px solid #ccc;
    background-color: transparent;
  }
}
