/* css styles */

/* 
Set the space-themed background from Unsplash 
body {
    background-image: url('https://images.unsplash.com/photo-1610878180933-c3ce17c02471?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-color: #e8f0ff;
}

main {
    background-color: rgba(255, 255, 255, 0.88);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
*/

/* Dark navy navbar background to match the suit */
.navbar {
    background-color: #1b263b;
    border-bottom: 1px solid #ccc;
}

/* Navbar text and icon styling */
.navbar .nav-link,
.navbar-brand {
    color: #ffffff !important;
}

/* Hover effect */
.navbar .nav-link:hover {
    color: #aad4ff !important;
    text-shadow: 0 0 5px rgba(173, 216, 230, 0.6);
}

/* Make each listing item look like a card */
.quarto-listing-container-default .metadata,
.quarto-listing-container-default .listing-description,
.quarto-listing-container-default .listing-title {
    margin-bottom: 0.3rem;
}

.quarto-listing-container-default .thumbnail img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Add background and padding to card */
.quarto-listing-container-default .listing-item {
    background-color: #fff;
    padding: 1.2rem;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.2rem;
}

/* Give some spacing between content and image */
.quarto-listing-container-default .thumbnail {
    flex-shrink: 0;
}

/* Forzar que se partan las líneas en <pre><code> */
pre code {
    white-space: pre-wrap !important;
    /* envuelve líneas largas */
    word-break: break-word;
    /* rompe palabras larguísimas si hace falta */
}

/* Keep intentionally emphasized links as bold as the surrounding text. */
main strong > a {
    font-weight: 700;
}

/* Share the role line with the location, wrapping naturally on narrow screens. */
.experience-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 1.25rem;
    margin: 0.35rem 0 0.4rem;
}

.experience-meta p {
    margin: 0;
}

#professional-experience h3 {
    margin-bottom: 0.4rem;
}

/* Group each homepage role closely without reducing space between employers. */
.home-experience-entry {
    margin-bottom: 1rem;
}

.home-experience-entry > p:first-child {
    margin-bottom: 0.25rem;
}

.home-experience-entry > p:last-child {
    margin-bottom: 0;
}
