/* ==========================================
   Global Styles & Typography
========================================== */
:root {
    --color-link: #004080;
    --color-hover: #0074cc;
    --color-icon: #004080;
    --color-muted: #6c757d;
    --news-box-height: 300px;
    --color-background: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    /* background-color: #f0f0f0; */
    background-color: var(--color-background);
}

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

a:hover {
    color: var(--color-hover);
    /* text-decoration: underline; */
    /* font-weight: bold; */
    /* font-size: 1.1em; */
}

section {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    line-height: 1.6;
}

/* ==========================================
   Buttons
========================================== */

.btn-outline-primary {
    background-color: var(--color-link);
    color: white;
    border: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-outline-primary:hover {
    background-color: var(--color-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-2px); /* subtle upward lift */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-outline-secondary {
    color: var(--color-link);
    border: 1px solid var(--color-link);
    background-color: transparent;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-outline-secondary:hover {
    color: var(--color-hover);
    border-color: var(--color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    background-color: transparent;
}

/* ==========================================
   Icon Styling
========================================== */
.icon-link a {
    text-decoration: none;
}

.icon-link a:hover {
    text-decoration: none;
}

.icon-link i {
    color: var(--color-icon);
    transition: color 0.2s, transform 0.2s;
    /* font-size: 1.4em;              Set final/maximum size upfront */
    display: inline-block;         /* Required for transform to apply cleanly */
    transform: scale(1);           /* Default scale */
}

.icon-link i:hover {
    color: var(--color-hover);
    transform: scale(1.1);         /* Scales up without affecting layout */
}

/* Publication Awards */
.award-line {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.award-badge {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}
/* ==========================================
   Navigation Bar Styles
========================================== */

.navbar-nav .nav-link {
    display: inline-block;               /* Required for transform */
    transform: scale(1);                 /* Default scale */
    font-size: 1.1rem;                   /* Reserve the final size */
    transition: transform 0.2s, color 0.2s;
    /* padding: 1rem 8rem;                 */
    /* Optional: extra breathing room */
    line-height: 1.2;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    transform: scale(1.1);              /* Slight grow effect */
    color: var(--color-hover);           /* Optional color on hover */
}

/* Target the link wrapper normally for hover color and background */
.dropdown-menu .dropdown-item {
    position: relative;
    transition: background-color 0.2s;
}

/* Add a span inside to target only the text for transform */
.dropdown-menu .dropdown-item span {
    display: inline-block;
    transform: scale(1);
    transition: transform 0.2s, font-weight 0.2s;
}

/* On hover, scale only the span (i.e., the text) */
.dropdown-menu .dropdown-item:hover span,
.dropdown-menu .dropdown-item:focus span {
    /* font-weight: 600; */
    transform: scale(1.1);
    color: var(--color-hover);           /* Optional color on hover */
}

/* ==========================================
   Layout Utilities
========================================== */
.container-narrow {
    max-width: 900px;
    margin: auto;
}

/* ==========================================
   Profile Section
========================================== */
.profile-img {
    max-width: 300px;
    border-radius: 20px;
}

.email:before {
    content: 'blaine@hoak.me';
}

.header-box {
    /* border-radius: 15px; */
    /* background-color: #ffffff; */
    /* padding: 2rem; */
    margin-bottom: 3rem;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    /* transition: box-shadow 0.3s; */
}

/* .header-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
} */

/* ==========================================
   News Section
========================================== */

.news-scroll-box {
    max-height: 300px;
    overflow-y: auto;
    /* border-left: 3px solid var(--color-link); */
    padding-left: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-muted) transparent;
    max-height: var(--news-box-height);
}

.news-scroll-box::-webkit-scrollbar {
    width: 6px;
}

.news-scroll-box::-webkit-scrollbar-thumb {
    background-color: var(--color-muted);
    border-radius: 4px;
}

/* ==========================================
   Highlighted Publications
========================================== */

.card-img-top {
    object-fit: contain;
    height: 180px;
}

#highlighted-publications .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
}

#highlighted-publications img {
    object-fit: contain;
    max-height: 180px;
}

#all-publications .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
}

#all-publications img {
    object-fit: cover;
    max-height: 120px;
}

/* ==========================================
   Recent Talks
========================================== */

#highlighted-talks .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
}

#highlighted-talks img {
    object-fit: contain;
    max-height: 230px;
    /* object-position: center; */
    background-color: #fff; /* optional, ensures consistent background */
    padding: 0.5rem; /* adds more padding around the image */
}

#highlighted-talks .text-end {
    text-align: right;
}
