/* Custom theme colors override Bootstrap */
:root {
  --bs-primary: #b62b45;
  --bs-secondary: #6c7f9f;
  --bs-body-bg: #ffffff;
  --bs-body-color: #1a1a1a;
  --bs-border-color: #e0e0e0;
  --bs-heading-color: #181718;
  --bs-primary-color: var(--bs-primary);
  --bs-secondary-color: var(--bs-secondary);
}

body {
  overflow-x: hidden;
}

/* Explicit button color overrides - higher specificity */
.btn.btn-outline-primary {
  color: #fff !important;
  border-color: #ca3a54 !important;
  background-color: #ca3a54 !important;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus {
  color: #fff !important;
  background-color: #eb90a0 !important;
  border-color: #d4b0b7 !important;
}

.btn.btn-primary {
  background-color: #ca3a54 !important;
  border-color: #ca3a54 !important;
  color: #fff !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: #c87e8b !important;
  border-color: #e1c7cc !important;
}

/* Bio Section - uses Bootstrap btn-group and btn-outline */
.bio-text {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
}

.bio-text p {
  margin-bottom: 1.5rem;
}

/* Timeline Section - uses Bootstrap cards with custom timeline line */
.timeline {
  position: relative;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #e0e0e0;
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) .card {
  margin-left: 0;
  margin-right: auto;
  width: 45%;
  text-align: right;
}

.timeline-item:nth-child(even) .card {
  margin-left: auto;
  margin-right: 0;
  width: 45%;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid var(--bs-primary);
  border-radius: 50%;
  z-index: 2;
}

/* Responsive design */
@media (max-width: 768px) {
  .timeline::before {
    left: 10px;
  }

  .timeline-item:nth-child(odd) .card,
  .timeline-item:nth-child(even) .card {
    margin-left: 50px;
    margin-right: 0;
    width: 100%;
    text-align: left;
  }

  .timeline-marker {
    left: 10px;
  }
}

/* Disabled state for individual links (use .disabled-link class) */
#content a.disabled-link {
  pointer-events: none;
  cursor: default;
  color: inherit !important;
  text-decoration: none !important;
  opacity: 0.85;
}

/* Accessibility: ensure disabled links are not focusable */
#content a[aria-disabled="true"] {
  outline: none;
}

/* Offcanvas PDF viewer tweaks */
.offcanvas.offcanvas-end {
  width: 75vw; /* 3/4 of the viewport */
  max-width: 100vw;
}
@media (max-width: 992px) {
  .offcanvas.offcanvas-end {
    width: 100vw;
  }
}
.offcanvas-body .flex-fill {
  min-height: calc(100vh - 140px);
}
.pdf-frame-wrap {
  padding: 1rem;
  background: #fff;
  border-radius: .375rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
#pdfViewer {
  width: 100%;
  height: 80vh;
  border: 0;
  display: block;
}
#pdfFallback {
  display: none;
}

/* Global text selection styling (pink background, white text) */
::selection {
  background: var(--bs-primary);
  color: #fff;
}
::-moz-selection {
  background: var(--bs-primary);
  color: #fff;
}