/**
 * Professional Developer-Friendly Theme
 * Enhanced colors, typography, and styling for optimal readability
 */

/* ============================================
   COLOR PALETTE - Professional Blue Theme
   ============================================ */
:root {
  /* Primary Colors */
  --primary-color: #2563eb;
  --primary-color-dark: #1d4ed8;
  --primary-color-light: #3b82f6;
  --primary-hover: #1e40af;
  --primary-light: #dbeafe;
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Background Colors */
  --bg-primary: #fafafa;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #f0f0f0;
  --bg-code: #1e293b;
  --bg-code-light: #f8fafc;
  --bg-content: #ffffff;
  
  /* Border Colors */
  --border-color: #e2e8f0;
  --border-color-dark: #cbd5e1;
  
  /* Accent Colors */
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-error: #ef4444;
  --accent-info: #3b82f6;
  
  /* Selection */
  --selection-color: #60a5fa;
  --selection-bg: #dbeafe;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Typography */
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  --line-height-base: 1.75;
  --line-height-heading: 1.3;
}

/* ============================================
   GLOBAL IMPROVEMENTS
   ============================================ */

/* Better body styling */
body {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main content area - white background for readability */
.section {
  background-color: var(--bg-primary);
}

.container {
  background-color: transparent;
}

/* Improved text color */
p, .paragraph {
  color: var(--text-secondary);
  line-height: var(--line-height-base);
}

/* Better heading colors and spacing */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: var(--line-height-heading);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
}

h1:first-child, h2:first-child, h3:first-child {
  margin-top: 0;
}

/* ============================================
   BUTTONS - Professional Styling
   ============================================ */

.btn-primary {
  background: var(--primary-color) !important;
  color: #fff !important;
  border-color: var(--primary-color) !important;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:active,
.btn-primary:hover,
.btn-primary.focus,
.btn-primary.active {
  background: var(--primary-color-dark) !important;
  border-color: var(--primary-color-dark) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--primary-color);
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-primary:active,
.btn-outline-primary:hover,
.btn-outline-primary.focus,
.btn-outline-primary.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   LINKS - Better Visibility
   ============================================ */

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--primary-color-dark) !important;
  border-bottom-color: var(--primary-color-light);
}

.content a {
  color: var(--primary-color);
  border-bottom: 1px dotted var(--border-color-dark);
  font-weight: 500;
}

.content a:hover {
  color: var(--primary-color-dark) !important;
  border-bottom-color: var(--primary-color);
}

/* ============================================
   CODE BLOCKS - Developer-Friendly
   ============================================ */

/* Inline code */
code:not(pre code) {
  background: var(--bg-code-light);
  color: var(--primary-color-dark);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: var(--font-mono);
  border: 1px solid var(--border-color);
  font-weight: 500;
}

.content code:not(pre code) {
  background: var(--bg-code-light);
  color: #dc2626;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: var(--font-mono);
  border: 1px solid var(--border-color);
}

/* Code blocks */
pre {
  background: var(--bg-code) !important;
  color: #e2e8f0 !important;
  padding: 1.5rem !important;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color-dark);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

pre code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border: none !important;
  font-size: inherit;
  font-weight: normal;
}

/* Syntax highlighting improvements */
pre code .token.comment,
pre code .token.prolog,
pre code .token.doctype,
pre code .token.cdata {
  color: #64748b;
  font-style: italic;
}

pre code .token.punctuation {
  color: #cbd5e1;
}

pre code .token.property,
pre code .token.tag,
pre code .token.boolean,
pre code .token.number,
pre code .token.constant,
pre code .token.symbol {
  color: #60a5fa;
}

pre code .token.selector,
pre code .token.attr-name,
pre code .token.string,
pre code .token.char,
pre code .token.builtin {
  color: #34d399;
}

pre code .token.operator,
pre code .token.entity,
pre code .token.url,
pre code .language-css .token.string {
  color: #fbbf24;
}

pre code .token.atrule,
pre code .token.attr-value,
pre code .token.keyword {
  color: #a78bfa;
}

pre code .token.function,
pre code .token.class-name {
  color: #f472b6;
}

pre code .token.regex,
pre code .token.important,
pre code .token.variable {
  color: #fb7185;
}

/* ============================================
   CONTENT AREA - Enhanced Readability
   ============================================ */

.content {
  max-width: 100%;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.content p {
  margin-bottom: 1.25em;
  color: var(--text-secondary);
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: var(--line-height-heading);
}

.content h2 {
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--border-color);
  margin-top: 2.5em;
}

.content h3 {
  margin-top: 2em;
}

.content ul,
.content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.content ul li,
.content ol li {
  margin-bottom: 0.75em;
  line-height: 1.75;
}

.content ul li::before {
  background-color: var(--primary-color);
}

/* Blockquotes - Professional Style */
.content blockquote {
  border-left: 4px solid var(--primary-color) !important;
  background: var(--bg-secondary) !important;
  color: var(--text-secondary) !important;
  padding: 1.5rem 2rem !important;
  margin: 2rem 0 !important;
  border-radius: 0 8px 8px 0;
  font-size: 1.1em !important;
  font-weight: 400 !important;
  font-style: italic;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content blockquote p {
  margin-bottom: 0.5em;
}

.content blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables - Better Styling */
.content table {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content table thead {
  background: var(--bg-tertiary);
}

.content table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-color-dark);
}

.content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.content table tr:last-child td {
  border-bottom: none;
}

.content table tbody tr:hover {
  background: var(--bg-secondary);
}

/* ============================================
   NOTICES/ALERTS - Professional Colors
   ============================================ */

.content .notices {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content .notices.note p {
  border-top-color: var(--accent-info) !important;
  background: #eff6ff !important;
}

.content .notices.tip p {
  border-top-color: var(--accent-success) !important;
  background: #f0fdf4 !important;
}

.content .notices.info p {
  border-top-color: var(--accent-info) !important;
  background: #eff6ff !important;
}

.content .notices.warning p {
  border-top-color: var(--accent-warning) !important;
  background: #fffbeb !important;
}

/* ============================================
   CODE TABS - Enhanced
   ============================================ */

.code-tabs {
  border: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.code-tabs .nav-tabs .nav-item.active {
  background: var(--primary-color) !important;
}

.code-tabs .nav-tabs .nav-item .nav-link {
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.code-tabs .nav-tabs .nav-item.active .nav-link {
  color: #fff;
}

.code-tabs .tab-content {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   WIDGETS - Sidebar Improvements
   ============================================ */

.widget {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ============================================
   TAG CLOUD - Categories
   ============================================ */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 1.8;
}

.tag-cloud-item {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative;
  overflow: hidden;
}

/* Simple solid color palette - rotating through 6 colors */
.tag-cloud-item:nth-child(6n+1) {
  background: #2563eb;
  color: #fff;
}

.tag-cloud-item:nth-child(6n+2) {
  background: #10b981;
  color: #fff;
}

.tag-cloud-item:nth-child(6n+3) {
  background: #f59e0b;
  color: #fff;
}

.tag-cloud-item:nth-child(6n+4) {
  background: #8b5cf6;
  color: #fff;
}

.tag-cloud-item:nth-child(6n+5) {
  background: #ef4444;
  color: #fff;
}

.tag-cloud-item:nth-child(6n) {
  background: #06b6d4;
  color: #fff;
}

/* Hover effects - darken and lift */
.tag-cloud-item:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  filter: brightness(0.9);
  text-decoration: none;
}

.tag-cloud-item .tag-count {
  font-size: 0.85em;
  opacity: 0.9;
  margin-left: 0.25rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
}

.tag-cloud-item:hover .tag-count {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
}

/* Tag cloud size variations */
.tag-cloud-item {
  font-size: 0.85rem;
}

/* Ensure minimum and maximum sizes are readable */
.tag-cloud-item[style*="font-size: 80%"] {
  font-size: 0.75rem !important;
}

.tag-cloud-item[style*="font-size: 100%"] {
  font-size: 0.95rem !important;
}

.widget-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.widget-title span {
  background: var(--bg-content);
}

.widget-list li a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
  display: block;
  padding: 0.5rem 0;
}

.widget-list li a:hover {
  color: var(--primary-color) !important;
  padding-left: 0.5rem;
  transition: all 0.2s ease;
}

.widget-post {
  transition: transform 0.2s ease;
}

.widget-post:hover {
  transform: translateX(4px);
}

/* ============================================
   NAVIGATION & HEADER
   ============================================ */

.navbar .dropdown-item:hover {
  color: var(--primary-color) !important;
  background: var(--bg-secondary);
}

/* ============================================
   POST STYLING
   ============================================ */

.post-title {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.post-title:hover {
  color: var(--primary-color) !important;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9em;
}

.post-meta a {
  color: var(--text-muted);
  border-bottom: 1px dotted var(--border-color);
}

.post-meta a:hover {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color);
}

/* ============================================
   SOCIAL ICONS
   ============================================ */

.social-icons a:hover,
.social-icons-rounded a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* ============================================
   RECENT THUMB ALT
   ============================================ */

.recent-thumb-alt {
  background-color: var(--primary-color) !important;
}

/* ============================================
   FORMS
   ============================================ */

.form-group .form-control {
  border-color: var(--border-color);
  transition: all 0.2s ease;
}

.form-group .form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination .page-item.active .page-link {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff;
}

.pagination .page-link {
  color: var(--text-secondary);
  border-color: var(--border-color);
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  color: var(--primary-color) !important;
  background: var(--bg-secondary);
  border-color: var(--primary-color);
}

/* ============================================
   SELECTION
   ============================================ */

::-moz-selection {
  background: var(--selection-bg);
  color: var(--text-primary);
}

::selection {
  background: var(--selection-bg);
  color: var(--text-primary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.bg-primary {
  background: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .content {
    font-size: 15px;
  }
  
  pre {
    padding: 1rem !important;
    font-size: 0.85rem;
  }
  
  .content blockquote {
    padding: 1rem 1.5rem !important;
    font-size: 1em !important;
  }
}

/* ============================================
   BLOG LISTING CARDS
   ============================================ */

article.row {
  transition: all 0.3s ease;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  background: var(--bg-content);
  border: 1px solid var(--border-color);
}

article.row:hover {
  background: var(--bg-content);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color-light);
}

article.row img {
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

article.row:hover img {
  transform: scale(1.02);
}

article.row h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

article.row .post-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

article.row .btn {
  margin-top: 1rem;
}

/* Blog Item Header */
#blogitem article {
  margin-bottom: 2rem;
}

#blogitem h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

#blogitem .post-meta {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

#blogitem .post-meta li {
  margin-right: 1rem;
}

/* ============================================
   SECTION SPACING
   ============================================ */

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ============================================
   CONTAINER MAX WIDTH FOR READABILITY
   ============================================ */

.container .content {
  max-width: 65ch;
  margin: 0 auto;
}

/* ============================================
   IMAGE STYLING
   ============================================ */

.content img {
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  max-width: 100%;
  height: auto;
}

.content img:first-child {
  margin-top: 0;
}

/* ============================================
   SCROLLBAR STYLING (Webkit)
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   TIMELINE COMPONENT
   ============================================ */

.timeline-container {
  margin: 3rem 0;
  padding: 2rem 0;
}

.timeline-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-color-light));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--bg-content);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  background: var(--primary-color);
}

.timeline-marker i {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-marker i {
  color: #fff;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: #fff;
  transform: scale(1.3);
}

.timeline-content {
  width: calc(50% - 40px);
  padding: 1.5rem 2rem;
  background: var(--bg-content);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  /* border-color is handled by type-specific styles */
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.timeline-item-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.timeline-item-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.timeline-item-description p {
  margin-bottom: 0.75rem;
}

.timeline-item-description p:last-child {
  margin-bottom: 0;
}

.timeline-achievements {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.timeline-achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-achievements li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-success);
  font-weight: bold;
  font-size: 1.1em;
}

.timeline-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.timeline-tech-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.timeline-tech-tag:hover {
  background: var(--primary-color-light);
  color: var(--primary-color-dark);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Timeline item types - Different colors for each type */
/* New Job (Job Switch) - Blue - More distinct */
.timeline-item-newjob .timeline-marker {
  border-color: #2563eb;
  background: var(--bg-content);
  border-width: 4px;
}

.timeline-item-newjob .timeline-marker .timeline-dot {
  background: #2563eb;
}

.timeline-item-newjob .timeline-date {
  color: #2563eb;
  font-weight: 700;
}

.timeline-item-newjob:hover .timeline-marker {
  background: #2563eb;
  border-color: #2563eb;
}

.timeline-item-newjob:hover .timeline-marker .timeline-dot {
  background: #fff;
}

.timeline-item-newjob .timeline-content {
  border-left: 5px solid #2563eb;
  background: linear-gradient(to right, rgba(37, 99, 235, 0.1), var(--bg-content));
  border-color: rgba(37, 99, 235, 0.2);
}

.timeline-item-newjob:hover .timeline-content {
  border-left-color: #2563eb;
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(to right, rgba(37, 99, 235, 0.15), var(--bg-content));
}

/* Career Highlight - Green - More distinct */
.timeline-item-careerhighlight .timeline-marker {
  border-color: #10b981;
  background: var(--bg-content);
  border-width: 4px;
}

.timeline-item-careerhighlight .timeline-marker .timeline-dot {
  background: #10b981;
}

.timeline-item-careerhighlight .timeline-date {
  color: #10b981;
  font-weight: 700;
}

.timeline-item-careerhighlight:hover .timeline-marker {
  background: #10b981;
  border-color: #10b981;
}

.timeline-item-careerhighlight:hover .timeline-marker .timeline-dot {
  background: #fff;
}

.timeline-item-careerhighlight .timeline-content {
  border-left: 5px solid #10b981;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.1), var(--bg-content));
  border-color: rgba(16, 185, 129, 0.2);
}

.timeline-item-careerhighlight:hover .timeline-content {
  border-left-color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(to right, rgba(16, 185, 129, 0.15), var(--bg-content));
}

/* New Job Function (Different Job Function) - Orange - More distinct */
.timeline-item-newjobfunction .timeline-marker {
  border-color: #f59e0b;
  background: var(--bg-content);
  border-width: 4px;
}

.timeline-item-newjobfunction .timeline-marker .timeline-dot {
  background: #f59e0b;
}

.timeline-item-newjobfunction .timeline-date {
  color: #f59e0b;
  font-weight: 700;
}

.timeline-item-newjobfunction:hover .timeline-marker {
  background: #f59e0b;
  border-color: #f59e0b;
}

.timeline-item-newjobfunction:hover .timeline-marker .timeline-dot {
  background: #fff;
}

.timeline-item-newjobfunction .timeline-content {
  border-left: 5px solid #f59e0b;
  background: linear-gradient(to right, rgba(245, 158, 11, 0.1), var(--bg-content));
  border-color: rgba(245, 158, 11, 0.2);
}

.timeline-item-newjobfunction:hover .timeline-content {
  border-left-color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(to right, rgba(245, 158, 11, 0.15), var(--bg-content));
}

/* Default timeline item type - Gray (neutral) */
.timeline-item-default .timeline-marker {
  border-color: #64748b;
  background: var(--bg-content);
  border-width: 4px;
}

.timeline-item-default .timeline-marker .timeline-dot {
  background: #64748b;
}

.timeline-item-default .timeline-date {
  color: #64748b;
  font-weight: 700;
}

.timeline-item-default:hover .timeline-marker {
  background: #64748b;
  border-color: #64748b;
}

.timeline-item-default:hover .timeline-marker .timeline-dot {
  background: #fff;
}

.timeline-item-default .timeline-content {
  border-left: 5px solid #64748b;
  background: linear-gradient(to right, rgba(100, 116, 139, 0.1), var(--bg-content));
  border-color: rgba(100, 116, 139, 0.2);
}

.timeline-item-default:hover .timeline-content {
  border-left-color: #64748b;
  border-color: rgba(100, 116, 139, 0.3);
  background: linear-gradient(to right, rgba(100, 116, 139, 0.15), var(--bg-content));
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-marker {
    left: 30px;
    transform: translateX(-50%);
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    margin-right: 0 !important;
  }
  
  .timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.1);
  }
  
  .timeline-title {
    font-size: 1.75rem;
  }
  
  .timeline-item-title {
    font-size: 1.25rem;
  }
  
  .timeline-item-subtitle {
    font-size: 1rem;
  }
}
