.grid-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.grid-item {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #2b2b2b;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allow wrapping if needed */
}

/* Add this to prevent wrapping on large screens */
.grid-item h2,
.grid-item small {
    white-space: nowrap;
}

/* Responsive fix for mobile */
@media (max-width: 480px) {
    .grid-item {
        flex-direction: column;
        align-items: flex-start;
        /* optional: align text to the left on mobile */
    }

    .grid-item h2,
    .grid-item small {
        white-space: normal;
        /* Allow wrapping */
    }
}

.grid-item:hover {
    background-color: #1a1a1a;
}

.grid-item:last-child {
    border-bottom: none;
}

.grid-item h4,
.grid-item h2 {
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
}

.grid-item small {
    font-size: 0.75rem;
    color: #aaa;
    white-space: nowrap;
}

.lead {
    font-size: 20px;
    line-height: 1.5;
    color: #b1b1b1;
}

.list-resume p.lead {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

footer {
    color: #414141;
    font-size: small;
    text-align: center;
}

header,
nav,
.rounded-container,
.main-container,
.section-inner-nav {
    display: block;
}

:root {
    --content-width: 820px;
}

.col-md-7,
.col-sm-7,
.col-sm-5,
.col-md-x {
    width: 100% !important;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    float: none !important;
}

.col-md-7+.col-sm-5 {
    margin-top: 3rem;
}

.col-md-10,
.col-sm-9 {
    width: 100% !important;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    float: none !important;
}


@media (max-width: 480px) {
    :root {
        --content-width: 100%;
    }

    .col-md-7,
    .col-sm-7,
    .col-sm-5,
    .col-md-x,
    .col-md-10,
    .col-sm-9 {
        max-width: 100%;
    }
}