/* Editorial-Minimal Portfolio Style */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --editorial-bg: #f3f3f1;
  --editorial-text: #222222;
  --editorial-muted: #8c8c8c;
  --editorial-serif: 'Playfair Display', serif;
  --editorial-sans: 'Inter', sans-serif;
}

.editorial-page {
  background-color: var(--editorial-bg) !important;
  color: var(--editorial-text) !important;
  font-family: var(--editorial-sans) !important;
}

.hero-editorial {
  padding: 4rem 0 2rem 0;
  display: flex;
  flex-direction: column;
}

.hero-identity {
  max-width: 400px;
  margin-bottom: 4rem;
}

.hero-identity .role-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  color: var(--editorial-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-identity .name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-identity .small-profile-pic {
  width: 100px;
  height: 100px; /* Square shape */
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
  display: block;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.3s ease;
}

.hero-identity .identity-links {
  display: flex;
  gap: 15px;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.hero-identity .identity-links a {
  color: var(--editorial-text);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.hero-identity .identity-links a:hover {
  opacity: 1;
}

.hero-identity .identity-email {
  font-size: 0.9rem;
  color: var(--editorial-muted);
  margin-bottom: 1rem;
  font-family: var(--editorial-sans);
}

.hero-identity .small-profile-pic:hover {
  filter: grayscale(0%);
}

.hero-identity .affiliation {
  font-size: 0.85rem;
  color: var(--editorial-muted);
}

.hero-intro {
  max-width: 800px;
  z-index: 2;
}

.hero-intro h1 {
  font-family: var(--editorial-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  color: var(--editorial-text);
  text-align: left !important;
  text-transform: none !important;
  border-bottom: none !important;
}

.hero-intro p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--editorial-text);
  margin-bottom: 2rem;
}

.hero-intro strong {
  font-weight: 600;
}

/* Sidebar/Nav adjustments for editorial style */
.editorial-page .navbar {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  margin-bottom: 4rem !important;
}

.editorial-page .navbar-link {
  font-family: var(--editorial-sans);
  font-weight: 500;
  color: var(--editorial-muted) !important;
}

.editorial-page .navbar-link:hover,
.editorial-page .navbar-link.active {
  color: var(--editorial-text) !important;
}

/* Section styling for editorial feel */
.editorial-page .docs-section {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 6rem 0;
}

.editorial-page h4 {
  font-family: var(--editorial-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 2.4rem;
  color: var(--editorial-text);
  margin-bottom: 4rem;
  text-align: left !important;
}

.editorial-page .paper,
.editorial-page .course {
  background: transparent !important;
  border: none !important;
  padding-left: 0;
  padding-right: 0;
}

.editorial-page .paper:hover,
.editorial-page .course:hover {
  transform: none;
  box-shadow: none;
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero-editorial {
    padding: 2rem;
  }
  .hero-intro h1 {
    font-size: 2.5rem;
  }
}

/* Experience List (Vitae) - LinkedIn-inspired */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1120px;
  margin-top: 2rem;
}

.experience-item {
  display: grid;
  grid-template-columns: 56px 1fr; /* Reduced from 78px */
  column-gap: 22px;
  align-items: flex-start;
  min-height: 56px;
}

.experience-item img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.experience-item .content-col {
  display: flex;
  flex-direction: column;
}

/* Grouped Roles Styling */
.experience-item .role-group {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.experience-item .role-entry {
  margin-bottom: 1.5rem;
  position: relative;
}

.experience-item .role-entry:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -28px; /* Alignment with logo center roughly */
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: #e0e0e0;
  display: none; /* Keep it clean as per "no dividers" request, but can be enabled if requested */
}

.experience-item .title-line {
  font-family: "Inter", "SF Pro Display", -apple-system, sans-serif;
  font-size: 22px; /* Adjusted slightly for better harmony with smaller logos */
  line-height: 1.2;
  font-weight: 400;
  color: #1f1f1f;
  margin-bottom: 4px;
}

.experience-item .title-line .company {
  font-weight: 700;
  color: #151515;
}

.experience-item .meta-line {
  font-family: "Inter", "SF Pro Text", -apple-system, sans-serif;
  font-size: 19px; /* Adjusted slightly */
  line-height: 1.35;
}

.experience-item .meta-line .location {
  font-weight: 400;
  color: #1f1f1f;
}

.experience-item .meta-line .dates {
  font-weight: 400;
  color: #9b9b9b;
  margin-left: 8px;
}

@media (max-width: 750px) {
  .experience-item .title-line {
    font-size: 20px;
  }
  .experience-item .meta-line {
    font-size: 18px;
  }
  .experience-item {
    grid-template-columns: 60px 1fr;
    column-gap: 15px;
  }
  .experience-item img {
    width: 60px;
    height: 60px;
  }
}
