/* Featured Projects Carousel - Clean, Crisp, One-Screen View & Fully Responsive */
.featured-projects-section {
    background: #f8fafc;
    color: var(--brand-navy, #11245f);
    padding: 48px 0 54px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.featured-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 28px auto 0;
    padding: 10px 0;
}

.featured-slider-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    overflow: visible;
}

.featured-card {
    position: absolute;
    width: 440px;
    height: 500px;
    min-height: 0;
    max-width: 92vw;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(17, 36, 95, 0.08);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    user-select: none;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    font-family: 'DM Sans', sans-serif;
}

/* Sharp, Clear Depth States - NO BLUR */
.featured-card.state-center {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    border-color: rgba(227, 30, 47, 0.45);
    box-shadow: 0 20px 42px -8px rgba(17, 36, 95, 0.16), 0 0 0 2px rgba(227, 30, 47, 0.18);
}

.featured-card.state-prev {
    transform: translate3d(-350px, 0, 0) scale(0.90);
    opacity: 0.65;
    z-index: 4;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(17, 36, 95, 0.06);
}

.featured-card.state-next {
    transform: translate3d(350px, 0, 0) scale(0.90);
    opacity: 0.65;
    z-index: 4;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 24px rgba(17, 36, 95, 0.06);
}

.featured-card.state-hidden-left {
    transform: translate3d(-640px, 0, 0) scale(0.78);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.featured-card.state-hidden-right {
    transform: translate3d(640px, 0, 0) scale(0.78);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Card Content Structure - Increased Photo Size */
.featured-card-thumb {
    position: relative;
    width: 100%;
    height: 235px;
    background: #0f172a;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.featured-card.state-center:hover .featured-card-thumb img {
    transform: scale(1.05);
}

.featured-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 30px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.badge-status-ongoing {
    background: rgba(13, 110, 253, 0.92);
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.badge-status-completed {
    background: rgba(25, 135, 84, 0.92);
    color: #fff;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

.badge-status-planned {
    background: rgba(245, 158, 11, 0.95);
    color: #fff;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.featured-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
    justify-content: space-between;
}

.featured-card-title {
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-navy, #11245f);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card.state-center:hover .featured-card-title {
    color: var(--brand-red, #e31e2f);
}

/* Metadata Grid */
.featured-card-meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.f-meta-item {
    font-size: 12.5px;
    color: #475569;
    display: flex;
    align-items: center;
}

.f-meta-item strong {
    color: #64748b;
    margin-right: 6px;
    font-weight: 600;
    min-width: 58px;
}

.f-meta-item span {
    color: var(--brand-navy, #11245f);
    font-weight: 600;
}

.featured-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 18px;
    background: var(--brand-red, #e31e2f);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    border-radius: 7px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(227, 30, 47, 0.22);
    margin-top: auto;
}

.featured-card.state-center:hover .featured-card-btn {
    background: #c91828;
    box-shadow: 0 6px 18px rgba(227, 30, 47, 0.35);
    transform: translateY(-2px);
}

/* Slider Navigation Controls */
.featured-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--brand-navy, #11245f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(17, 36, 95, 0.1);
}

.featured-slider-arrow:hover {
    background: var(--brand-red, #e31e2f);
    border-color: var(--brand-red, #e31e2f);
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.arrow-prev {
    left: 12px;
}

.arrow-next {
    right: 12px;
}

/* Dots Indicator */
.featured-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.featured-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.featured-slider-dot.active {
    width: 26px;
    border-radius: 12px;
    background: var(--brand-red, #e31e2f);
    box-shadow: 0 0 10px rgba(227, 30, 47, 0.35);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .featured-card.state-prev {
        transform: translate3d(-310px, 0, 0) scale(0.88);
    }
    .featured-card.state-next {
        transform: translate3d(310px, 0, 0) scale(0.88);
    }
}

@media (max-width: 991.98px) {
    .featured-projects-section {
        padding: 40px 0 45px;
    }
    .featured-slider-track {
        min-height: 500px;
    }
    .featured-card {
        width: 370px;
        height: 500px;
    }
    .featured-card-thumb {
        height: 220px;
    }
    .featured-card.state-prev {
        transform: translate3d(-220px, 0, 0) scale(0.85);
        opacity: 0.45;
    }
    .featured-card.state-next {
        transform: translate3d(220px, 0, 0) scale(0.85);
        opacity: 0.45;
    }
}

@media (max-width: 767.98px) {
    .featured-projects-section {
        padding: 35px 0 40px;
    }
    .featured-slider-track {
        min-height: 530px;
    }
    .featured-card {
        width: calc(100vw - 56px);
        max-width: 420px;
        height: 510px;
    }
    .featured-card-thumb {
        height: 200px;
    }
    .featured-card.state-prev,
    .featured-card.state-next {
        opacity: 0;
        pointer-events: none;
        transform: translate3d(0, 0, 0) scale(.96);
    }
    .featured-slider-dots {
        margin-top: 18px;
    }
    .arrow-prev {
        left: 4px;
        width: 40px;
        height: 40px;
    }
    .arrow-next {
        right: 4px;
        width: 40px;
        height: 40px;
    }
}
