/* Main CSS file for Bart Wilczynski's website */
body {
    font-family: 'Lora', 'Times New Roman', serif;
    font-size: 16px;
    color: #404040;
    line-height: 1.4;      /* reduced from 1.7 */
}

p {
    line-height: 1.4;      /* reduced from 1.8 */
    margin: 10px 0;        /* reduced from 20px */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    margin-top: 20px;      /* reduced from 30px */
    line-height: 1.3;      /* tighter headings */
}


/* Navigation */
.navbar-custom {
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.navbar-custom .navbar-brand {
    font-weight: 600;
    color: #1e73be;
}

.navbar-custom .nav li a {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar-custom .nav li a:hover {
    color: #1e73be;
}

/* Header */
.intro-header {
    background-color: #2c3e50;
    background-image: url('../img/banner.jpg');
    background-position: center center;
    background-attachment: scroll;
    background-size: cover;
    margin-bottom: 60px;
    height: 280px;
    position: relative;
}

.intro-header:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.site-heading {
    padding: 100px 0;
    color: white;
    position: relative;
    z-index: 2;
}

/* Content */
.profile-img {
    max-width: 100%;
    border-radius: 5px;
    margin-top: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.02);
}

strong {
    color: #1e73be;
}

/* Latest Research Section */
.latest-research {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 3px solid #1e73be;
    transition: all 0.3s ease;
}

.latest-research:hover {
    background-color: #f0f5fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #1e73be;
    border-color: #1e73be;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #055596;
    border-color: #055596;
}

/* Events Section */
.event-list {
    list-style: none;
    padding: 0;
}

.event-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.event-list li:last-child {
    border-bottom: none;
}

.event-date {
    font-weight: bold;
    color: #1e73be;
    display: inline-block;
    width: 130px;
}

.event-title {
    font-weight: 600;
    margin-right: 15px;
}

.event-location {
    color: #777;
    font-style: italic;
}

/* Footer */
footer {
    padding: 40px 0 50px;
    background-color: #f9f9f9;
    margin-top: 60px;
}

footer .list-inline {
    margin: 0;
    padding: 0;
}

footer .fa-stack {
    transition: all 0.3s ease;
}

footer .fa-stack:hover {
    transform: translateY(-3px);
}

footer .copyright {
    font-size: 14px;
    text-align: center;
    margin: 30px 0 0;
    color: #777;
}

hr {
    margin: 40px 0;
    border-color: #eee;
}

/* For smaller screens */
@media only screen and (max-width: 768px) {
    .intro-header {
        height: 200px;
    }
    
    .navbar-custom .navbar-brand {
        padding: 10px 15px;
    }
    
    .profile-img {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .event-date, .event-title, .event-location {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Animations for page elements */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.row {
    animation: fadeIn 1s ease-out;
}
/* Timeline layout for About page */
.timeline {
    margin: 20px 0;
    border-left: 3px solid #ccc;
    padding-left: 15px;
}

.event {
    margin-bottom: 15px;
    padding-left: 10px;
    position: relative;
}

.event h4 {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 17px;
    color: #1e73be;
}

.event::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #1e73be;
    border-radius: 50%;
}
/* Compact two-column info grid */
.info-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px 20px;
    margin-bottom: 30px;
}
.year {
    font-weight: 600;
    color: #1e73be;
}
.info-grid strong {
    display: block;
    margin-bottom: 4px;
}

/* Print styles */
@media print {
    .navbar, .intro-header, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    h2 {
        page-break-after: avoid;
    }
    
    p, h3, h4 {
        orphans: 3;
        widows: 3;
    }
    
    img {
        max-width: 100% !important;
    }
}