/* About page styling inspired by Silvia's design */

/* title and subtitle */
#title-block-header {
    margin-bottom: 0px;
}

/* see all links */
.about-links.subtitle {
    font-family: "Petrona", serif;
    font-size: 1em !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* social links: block of links */
.about-entity .about-links {
    justify-content: flex-start !important;
    column-gap: 0em !important;
    font-size: 1.2em !important;
}

/* social links: individual links */
.about-entity .about-link {
    padding: 0.25em 0.25em !important;
    border: none !important;
}

/* about area */
.about-entity {
    background-color: var(--bs-body-bg);
    padding: 3em 0em 3em 0em !important;
    margin: 0em 2em 0em 2em;
    border-radius: 5px;
}

/* Listing cards styling */
.card {
    background: transparent;
    border: none;
    border-radius: 4px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
    border-radius: 4px 4px 0px 0px;
}

/* Highlights section styling */
#highlights {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid layout for highlights - 4 items per row */
#highlights .quarto-listing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Responsive grid for smaller screens */
@media screen and (max-width: 1200px) {
    #highlights .quarto-listing {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    #highlights .quarto-listing {
        grid-template-columns: 1fr;
    }
}

/* Card styling for consistent heights */
#highlights .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#highlights .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Truncate description text */
#highlights .card-text {
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 4.2em;
    /* 3 lines * 1.4 line-height */
}

/* Mobile responsiveness */
@media screen and (max-width: 991.98px) {

    /* social links: block of links */
    .about-entity .about-links {
        font-size: 1.2em !important;
    }
}

/* mobile query up for screens up to ~576px wide */
@media screen and (max-width: 576px) {

    /* wrap about me section */
    #about-me .grid {
        display: flex;
        flex-wrap: wrap;
    }

    /* social links: block of links */
    .about-entity .about-links {
        font-size: 1em !important;
    }

    /* about area */
    .about-entity {
        margin: 0em 0em 0em 0em;
    }
}

/* Hero section styling */
#hero-heading {
    text-align: left;
    padding: 2rem 0;
}

#hero-heading h1 {
    font-family: "Petrona", serif;
    font-size: 2.5em;
    font-weight: 500;
    line-height: 1.1em;
    margin-bottom: 1rem;
}

#hero-heading .subtitle {
    font-size: 1.2em;
    margin-bottom: 1.5rem;
}

/* About me section */
#about-me .grid {
    margin-top: 2rem;
}

#about-me-1,
#about-me-2 {
    padding: 1.5rem;
    background-color: var(--bs-body-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Lately section */
#lately {
    margin-top: 3rem;
}

#lately h2 {
    font-family: "Petrona", serif;
    text-align: center;
    margin-bottom: 2rem;
}

/* Listing titles */
#lately h4 {
    font-family: "Petrona", serif;
    font-size: 1.2em;
    margin-bottom: 1rem;
    text-align: center;
}
