.featured-projects {
    background-color: #242734;
    padding: 40px 0;
    margin-left: -45px;
    margin-right: -45px;
}

.fp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.fp-header h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
}

.fp-header-line {
    width: 80px;
    height: 3px;
    background-color: #F7C461;
}

/* ---- CARDS LIST ---- */
.fp-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ---- SINGLE CARD ---- */
.fp-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #424657;
    border-radius: 0;
    padding: 40px 48px;
    min-height: 280px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* ---- LEFT: TEXT ---- */
.fp-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding-right: 40px;
}

.fp-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fp-title-row h3 {
    color: #F7C461;
    font-size: 20px;
    margin: 0;
}

.fp-github {
    color: #F7C461;
    font-size: 13px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.fp-github:hover {
    opacity: 1;
}

.fp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fp-badges img {
    height: 22px;
}

.fp-info ul {
    padding-left: 18px;
    margin: 0;
}

.fp-info li {
    font-size: 14px;
    line-height: 1.75;
    opacity: 0.85;
}

/* ---- RIGHT: IMAGE ---- */
.fp-image {
    position: relative;
    width: 300px;                   /* ← image width — adjust this */
    margin-top: -40px;              /* breaks out of card padding */
    margin-bottom: -40px;
    margin-right: -48px;
    height: 278px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
}
.fp-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: filter 0.3s ease;
}

.fp-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: filter 0.3s ease;
}

/* remove old scale hover since image is real now */
.fp-image:hover .fp-placeholder {
    transform: none;
}

/* blur on hover */
.fp-image:hover .fp-placeholder img {
    filter: blur(3px) brightness(0.6);
}

.fp-click-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #242734;
    background-color: rgba(247, 196, 97, 0.85);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fp-image:hover .fp-click-hint {
    opacity: 1;
}

/* ---- LIGHTBOX ---- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-box {
    position: relative;
    width: 90vw;                    /* matches experience lightbox */
    height: 90vh;                   /* matches experience lightbox */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.lightbox-slide {
    flex: 1;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;                    /* inside the box now, not above it */
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.7;
}

.lightbox-close:hover {
    background: #F7C461;
    color: #242734;
    border-color: #F7C461;
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #F7C461;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: #F7C461;
    color: #242734;
    border-color: #F7C461;
}

.lightbox-dots {
    position: absolute;
    bottom: -32px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dot-active {
    background-color: #F7C461;
}