/* --- FEATURED WORK CONTAINER --- */
.featured-work-section {
    padding: 80px 5%;
    background-color: #ffffff; /* Clean white background for the homepage */
    max-width: 1400px;
    margin: 0 auto;
}

.featured-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-header h2 {
    font-size: 2.5rem;
    color: #0072ce;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.featured-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* --- 3-COLUMN GRID --- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces exactly 3 items side-by-side */
    gap: 30px;
    margin-bottom: 50px;
}

/* --- FEATURED ITEMS & HOVER EFFECTS --- */
.featured-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.featured-item img {
    width: 100%;
    height: 400px; /* Slightly taller for a grander feel on the homepage */
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-item:hover img {
    transform: scale(1.08);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-item:hover .featured-overlay {
    opacity: 1;
}

.featured-text {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.featured-item:hover .featured-text {
    transform: translateY(0);
}

.featured-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.featured-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #4facfe; /* Accent color matching the portfolio */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CALL TO ACTION BUTTON --- */
.featured-cta {
    text-align: center;
}

.featured-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.featured-cta-btn .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.featured-cta-btn:hover {
    background-color: #0072ce; /* Switch to accent color on hover */
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
    transform: translateY(-3px);
    color: #ffffff;;
}

.featured-cta-btn:hover .arrow {
    transform: translateX(5px); /* Arrow slides slightly right on hover */
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    /* Tablets: Switch to a 2-1 layout or stack */
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile: Stack items vertically */
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-item img {
        height: 300px;
    }
    .featured-header h2 {
        font-size: 2rem;
    }
}