/* ==========================================================================
   VIP CV Maker - Resume Templates CSS
   Includes Modern (Attractive Color Accent), Simple (Minimalist B&W), and Executive
   ========================================================================== */

/* Theme Color Variable Injection */
.a4-page {
  --theme-color: var(--accent-color, #2563eb);
}

/* ==========================================================================
   1. MODERN / ATTRACTIVE TEMPLATE
   ========================================================================== */
.template-modern {
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  background: #ffffff;
}

/* Header Banner */
.template-modern .modern-header {
  background: linear-gradient(135deg, var(--theme-color) 0%, #0f172a 100%);
  color: #ffffff;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.template-modern .header-photo-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.template-modern .header-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-modern .header-text-block {
  flex: 1;
}

.template-modern .name-title h1 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.template-modern .name-title h2 {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.template-modern .contact-grid-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.template-modern .contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.template-modern .contact-item i {
  color: #ffffff;
  opacity: 0.9;
  font-size: 11px;
}

/* Two-Column Body Layout */
.template-modern .modern-body {
  display: grid;
  grid-template-columns: 32% 68%;
  flex: 1;
  padding: 28px 32px;
  gap: 28px;
}

/* Sidebar Column */
.template-modern .modern-sidebar {
  border-right: 1px solid #e2e8f0;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.template-modern .sidebar-section-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--theme-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-modern .sidebar-section-title i {
  font-size: 12px;
}

.template-modern .skills-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-modern .skill-pill {
  font-size: 11px;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #1e293b;
  padding: 4px 10px;
  border-radius: 4px;
  border-left: 3px solid var(--theme-color);
}

.template-modern .lang-item {
  font-size: 12px;
  color: #334155;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.template-modern .lang-item i {
  color: var(--theme-color);
  font-size: 8px;
}

/* Main Column */
.template-modern .modern-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.template-modern .main-section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
  border-bottom: 2px solid var(--theme-color);
  padding-bottom: 4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-modern .main-section-title i {
  color: var(--theme-color);
}

.template-modern .summary-p {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.6;
}

/* Timeline Experience & Education Cards */
.template-modern .timeline-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.template-modern .timeline-item {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid #cbd5e1;
}

.template-modern .timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--theme-color);
  border: 2px solid #ffffff;
}

.template-modern .item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.template-modern .role-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.template-modern .company-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-color);
}

.template-modern .date-badge {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.template-modern .item-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin-top: 4px;
  white-space: pre-line;
}

/* ==========================================================================
   2. SIMPLE / PROFESSIONAL TEMPLATE (Minimalist Black & White)
   ========================================================================== */
.template-simple {
  padding: 40px 44px;
  font-family: var(--font-serif);
  color: #111827;
  background: #ffffff;
  line-height: 1.5;
}

.template-simple .simple-header {
  text-align: center;
  border-bottom: 2px solid #111827;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.template-simple .simple-name {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
  margin-bottom: 4px;
}

.template-simple .simple-title {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #374151;
  margin-bottom: 10px;
}

.template-simple .simple-contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-main);
  font-size: 11px;
  color: #4b5563;
}

.template-simple .simple-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.template-simple .simple-contacts span:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: #9ca3af;
}

.template-simple .simple-section {
  margin-bottom: 18px;
}

.template-simple .simple-section-title {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
  border-bottom: 1px solid #000000;
  padding-bottom: 2px;
  margin-bottom: 10px;
}

.template-simple .simple-summary {
  font-size: 12px;
  color: #1f2937;
  line-height: 1.6;
}

.template-simple .simple-item {
  margin-bottom: 12px;
}

.template-simple .simple-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-main);
}

.template-simple .simple-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}

.template-simple .simple-item-sub {
  font-size: 12px;
  font-style: italic;
  color: #374151;
}

.template-simple .simple-item-date {
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
}

.template-simple .simple-item-desc {
  font-size: 12px;
  color: #1f2937;
  margin-top: 3px;
  line-height: 1.5;
  white-space: pre-line;
}

.template-simple .simple-skills-list {
  font-family: var(--font-main);
  font-size: 12px;
  color: #1f2937;
  line-height: 1.6;
}

/* ==========================================================================
   3. EXECUTIVE CONTEMPORARY TEMPLATE
   ========================================================================== */
.template-executive {
  padding: 0;
  font-family: var(--font-main);
  background: #ffffff;
}

.template-executive .exec-top-bar {
  background-color: var(--dark-slate);
  color: #ffffff;
  padding: 24px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-executive .exec-name-block h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.template-executive .exec-name-block h2 {
  font-size: 13px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.template-executive .exec-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.template-executive .exec-body {
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.template-executive .exec-section-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-slate);
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: #f1f5f9;
  padding: 6px 12px;
  border-left: 4px solid var(--theme-color);
  margin-bottom: 12px;
}
