/* ============================================
   TOP PROJECTS — [eifec_top_projects]
   ============================================ */
.eifec-top-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.eifec-top-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    display: flex;
    flex-direction: column;
}

/* Image area */
.eifec-top-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    transition: aspect-ratio 0.4s ease;
}

.eifec-top-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

/* Title below image */
.eifec-top-card__title {
    margin: 0;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: #111;
    transition: opacity 0.3s ease, max-height 0.4s ease, padding 0.4s ease;
    max-height: 80px;
    overflow: hidden;
}

/* Chevron link overlay — hidden by default */
.eifec-top-card__link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.eifec-top-card__link svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    transition: transform 0.3s ease;
}

/* === HOVER STATE === */
.eifec-top-card:hover .eifec-top-card__image {
    aspect-ratio: auto;
}

.eifec-top-card:hover .eifec-top-card__image img {
    transform: scale(1.06);
}

.eifec-top-card:hover .eifec-top-card__title {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.eifec-top-card:hover .eifec-top-card__link {
    opacity: 1;
}

.eifec-top-card__link:hover svg {
    transform: scale(1.15);
}

/* Focus-visible for keyboard */
.eifec-top-card:focus-within .eifec-top-card__image {
    aspect-ratio: auto;
}

.eifec-top-card:focus-within .eifec-top-card__title {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.eifec-top-card:focus-within .eifec-top-card__link {
    opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
    .eifec-top-projects {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .eifec-top-projects {
        gap: 16px;
    }

    .eifec-top-card__title {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* ============================================
   FEATURED PROJECTS SLIDER
   ============================================ */
.eifec-featured-projects {
    position: relative;
    padding: 0;
}

.eifec-projects-swiper {
    padding-bottom: 50px;
}

.eifec-project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.eifec-project-card__image {
    width: 100%;
    height: 100%;
}

.eifec-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.eifec-project-card:hover .eifec-project-card__image img {
    transform: scale(1.05);
}

.eifec-project-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 30px 20px 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
}

.eifec-project-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    line-height: 1.3;
}

.eifec-project-card__location {
    font-size: 13px;
    margin: 0;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
}

.eifec-project-card__location svg {
    flex-shrink: 0;
}

/* Hover state */
.eifec-project-card__hover {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.3s ease;
    margin-top: 0;
}

.eifec-project-card:hover .eifec-project-card__hover {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
}

.eifec-project-card__desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eifec-project-card__link {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.eifec-project-card__link:hover {
    background: #c8a96e;
    color: #fff;
}

/* Swiper navigation */
.eifec-projects-swiper .swiper-button-next,
.eifec-projects-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.eifec-projects-swiper .swiper-button-next::after,
.eifec-projects-swiper .swiper-button-prev::after {
    font-size: 16px;
}

.eifec-projects-swiper .swiper-pagination-bullet {
    background: #333;
    opacity: 0.4;
}

.eifec-projects-swiper .swiper-pagination-bullet-active {
    background: #c8a96e;
    opacity: 1;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.eifec-projects-page {
    max-width: 1200px;
    margin: 0 auto;
}

.eifec-project-item {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e5e5e5;
}

.eifec-project-item:last-child {
    border-bottom: none;
}

.eifec-project-item__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #222;
}

.eifec-project-item__content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.eifec-project-item__content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ALBUM GRID (12-column grid)
   Left = 1 large image (6 cols, 2 rows)
   Right top row = 2 equal items (3 cols each)
   Right bottom row = 3 equal items (2 cols each)
   ============================================ */
.eifec-album-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 8px;
    border-radius: 8px;
    overflow: hidden;
}

/* Item 1: left half, 6 cols, 2 rows */
.eifec-album-grid__item--1 {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
}

/* Item 2: top-right first half (3 cols) */
.eifec-album-grid__item--2 {
    grid-column: 7 / 10;
    grid-row: 1;
}

/* Item 3: top-right second half (3 cols) */
.eifec-album-grid__item--3 {
    grid-column: 10 / 13;
    grid-row: 1;
}

/* Items 4, 5, 6: bottom-right, each 2 cols */
.eifec-album-grid__item--4 {
    grid-column: 7 / 9;
    grid-row: 2;
}

.eifec-album-grid__item--5 {
    grid-column: 9 / 11;
    grid-row: 2;
}

.eifec-album-grid__item--6 {
    grid-column: 11 / 13;
    grid-row: 2;
}

.eifec-album-grid__item {
    position: relative;
    overflow: hidden;
}

.eifec-album-grid__item a {
    display: block;
    width: 100%;
    height: 100%;
}

.eifec-album-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.eifec-album-grid__item:hover img {
    transform: scale(1.05);
}

.eifec-album-grid__more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    pointer-events: none;
}

/* Load more button */
.eifec-projects-loadmore-wrap {
    text-align: center;
    margin-top: 20px;
}

.eifec-projects-loadmore {
    display: inline-block;
    padding: 14px 40px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.eifec-projects-loadmore:hover {
    background: #c8a96e;
}

.eifec-projects-loadmore.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .eifec-project-card {
        height: 350px;
    }

    .eifec-album-grid {
        grid-template-rows: repeat(2, 160px);
    }
}

@media (max-width: 767px) {
    .eifec-project-card {
        height: 300px;
    }

    .eifec-project-card__title {
        font-size: 16px;
    }

    .eifec-project-item__title {
        font-size: 22px;
    }

    .eifec-album-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .eifec-album-grid__item--1 {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .eifec-album-grid__item--2 {
        grid-column: 1;
        grid-row: auto;
    }

    .eifec-album-grid__item--3 {
        grid-column: 2;
        grid-row: auto;
    }

    .eifec-album-grid__item--4,
    .eifec-album-grid__item--5,
    .eifec-album-grid__item--6 {
        grid-column: auto;
        grid-row: auto;
    }

    .eifec-album-grid__item img {
        height: 180px;
    }

    .eifec-album-grid__item--1 img {
        height: 250px;
    }
}
