/* Sticky footer and general page styles */
html {
    position: relative;
    min-height: 100%;
}

/* Override Bootstrap's smooth scrolling so links like publication.html#patents land on the section */
:root {
    scroll-behavior: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    padding-top: 1rem;
}

/* Main content area: one 780px column on every page (804px minus 12px padding per side) */
.container {
    max-width: 804px;
}

/* Start the first link of each nav row flush with the content column */
@media (min-width: 992px) {
    .navbar-nav .nav-item:first-child .nav-link {
        padding-left: 0 !important;
    }
}

.nav-pills .nav-link:first-child {
    padding-left: 0 !important;
}

.page-header {
    padding: 2rem 0 1rem;
}

/* Cards */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.card-body strong {
    color: #2c3e50;
}

.card-body ul {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Buttons */
.btn-xs {
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
}

/* Blockquotes / italics intro */
.container > p > i {
    font-size: 1.1rem;
    color: #6c757d;
    display: block;
    margin-top: 1.5rem;
    padding: 0.5rem 0 1rem;
    border-left: 3px solid #0d6efd;
    padding-left: 1rem;
}

/* Address styling in About page */
address {
    font-style: normal;
    line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header h2 {
        font-size: 1.2rem;
    }
}
