.projects-hero__panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.projects-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.projects-hero__latest-name {
    font-size: 1.4rem;
    line-height: 1.3;
}

.projects-hero__pill-group {
    background: #ffffff;
    border-radius: 22px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(18, 13, 38, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.project-wrapper {
    background: #ffffff;
    padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5rem);
}

.project-section__header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.project-section__eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(18, 13, 38, 0.65);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 224, 0, 0.28);
    border: 1px solid rgba(255, 224, 0, 0.45);
}

.project-section__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--lnu-black);
}

.project-section__description {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
    color: rgba(18, 13, 38, 0.7);
    max-width: 60ch;
}

/* ---------------------------------- */
/*  PROJECT LIST STYLE */
/* ---------------------------------- */
.project-list {
    padding: 20px;
    margin: 0 auto;
}

.project-container {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Restructured project entry for consistent sizing */
.project-entry {
    display: flex;
    margin-bottom: 40px;
    width: 100%;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    padding: 18px;
    transition: box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fff;
    box-sizing: border-box;
}

.project-img {
    width: 100%;
    height: 250px; /* Fixed height for all images */
    border-radius: 10px;
    object-fit: cover;
}

.project-img-cont {
    flex: 0 0 350px; /* Fixed width */
    margin-right: 30px;
}

.project-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    font-family: var(--font-family);
}

.project-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags li {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
}

.project-header {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
}

.p-description {
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    max-height: none; /* Allow full description */
    overflow: visible;
    margin-bottom: 15px;
    text-align: left;
}

.date {
    font-size: 15px;
    color: color-mix(in srgb, var(--lnu-black) 55%, transparent);
    margin-bottom: 8px;
    text-align: left;
}

.project-card-cta {
    margin-top: auto;
    display: flex;
}

.project-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--lnu-yellow);
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.project-arrow img {
    width: 20px;
    height: 20px;
}

.project-arrow:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.project-arrow:active {
    transform: translateY(6px);
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
}

.project-arrow:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--lnu-black) 40%, transparent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.projects-page {
    background: var(--lnu-background-shade);
}

@media (max-width: 768px) {
    .project-section__header {
        flex-direction: column;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-entry {
        flex-direction: column;
        align-items: center;
        padding: 14px;
    }
    
    .project-img-cont {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .project-text-wrapper {
        width: 100%;
    }

    .project-img {
        height: 220px;
    }

    .project-header {
        font-size: 20px;
    }

    .p-description {
        font-size: 15px;
    }
}

@media (max-width: 540px) {
    .project-container,
    .project-list {
        padding: 12px;
    }

    .project-entry {
        padding: 12px;
        gap: 10px;
    }

    .project-img {
        height: 200px;
    }

    .project-section__title {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .project-section__description {
        font-size: 0.95rem;
    }
}
