/* CSS Custom Properties - BU Color Scheme */
:root {
  --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --color-bu-red: #CC0000;
  --color-bu-black: #2D2926;
  --color-text: #333;
  --color-heading: var(--color-bu-black);
  --color-link: var(--color-bu-red);
  --color-link-hover: #990000;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
}

/* Base Typography */
body {
  font-family: var(--font-primary);
  padding-top: 70px;
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-heading);
}

p, div {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* Navbar */
.navbar {
  background-color: var(--color-bu-black) !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #ffffff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff !important;
  opacity: 0.85;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Jumbotron Styles */
.jumbotron {
  background-image: url(../background.png);
  background-repeat: no-repeat;
  min-height: 341px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Titles Callout Box */
#titles {
  background-color: rgba(45, 41, 38, 0.92);
  color: #ffffff;
  text-align: right;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#titles h3 {
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

#titles h3:first-child {
  font-weight: 600;
  font-size: 1.25rem;
}

/* Profile Image */
.jumbotron img:first-child {
  max-width: 100%;
  height: auto;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-icons a img {
  max-height: 30px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.social-icons a:hover img {
  opacity: 1;
}

/* Section Spacing */
.section {
  margin-bottom: var(--spacing-xl);
}

/* Publication Links */
.publication-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Service/Team List Items */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.list-item i {
  flex-shrink: 0;
  color: var(--color-bu-red);
}

/* Alert Box */
.alert-success {
  background-color: rgba(204, 0, 0, 0.1);
  border-color: var(--color-bu-red);
  color: var(--color-bu-black);
}

.alert {
  margin-top: var(--spacing-lg);
}

/* Responsive Design */
@media (max-width: 992px) {
  .jumbotron {
    flex-direction: column;
    height: auto;
    min-height: 200px;
    padding: var(--spacing-xl) var(--spacing-md);
  }

  #titles {
    background-color: rgba(45, 41, 38, 0.95);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    text-align: center;
  }

  #titles h3 {
    font-size: 1rem;
  }

  #titles h3:first-child {
    font-size: 1.15rem;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  #titles h3 {
    font-size: 0.9rem;
  }

  #titles h3:first-child {
    font-size: 1.05rem;
  }

  body {
    padding-top: 56px;
  }
}

/* Skip Link for Accessibility */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: var(--spacing-md);
  background: #fff;
  color: var(--color-link);
  text-decoration: none;
  font-weight: bold;
}
