/* === Featured Projects v2 (Bootstrap card carousel) === */

.featured-projects-container {
    /* width: 85%; */
    min-height: 60vh;
    /* margin: 0 auto; */

}

/* Extra small devices like 390x844: further tighten heights and spacing */
@media (max-width: 420px) {
    .featured-right-wrapper {
        height: 40vh;
    }

    .featured-content-inner {
        padding: 0.75rem;
    }

    .featured-project-desc {
        -webkit-line-clamp: 2;
        font-size: 0.85rem;
    }

    .featured-projects-title {
        /* font-family: Poppins, sans-serif; */
        font-weight: 600;
        font-size: 2rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 4.8rem;
        color: #008E43;
        margin: 0.5rem 0;
        padding: 0 0.5rem;
        text-align: center;
    }
}

.featured-projects-header {
    margin-bottom: 2rem !important;
}

.feature-container {
    margin-top: 2rem;
}

.featured-project-desc {
    max-width: 100%;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    /* ~14px */
}

/* Mobile adjustments: make featured projects section less tall */
@media (max-width: 767.98px) {
    /* .featured-projects-container {
        width: 95%;
        min-height: auto;
    } */

    .featured-right-wrapper {
        height: 40vh;
    }

    .featured-project-desc {
        -webkit-line-clamp: 3;
        text-align: justify;
        font-size: 0.9rem;
    }

    .featured-projects-header {
        align-items: flex-start !important;
    }

    .featured-projects-header .btn {
        align-self: flex-end;
        padding: 0.35rem 0.9rem;
        font-size: 0.8rem;
    }
}

.featured-projects-tags .badge {
    font-size: 0.7rem;
}

/* .featured-content-inner {
    padding: 1rem;
} */

.featured-right-wrapper {
    height: 50vh;
}

.featured-right-image {
    object-fit: cover;
}

.featured-triangle-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Right-side image grid: img1 tall (2 rows), img2 top-right, img3 bottom-right */
.featured-image-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    width: 95%;
    height: 100%;
}

.featured-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

/* Image 1: tall left (two rows) */
.featured-image-grid .grid-item-1 {
    grid-row: 1 / span 2;
    grid-column: 1 / 2;
}

/* Image 2: top-right */
.featured-image-grid .grid-item-2 {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

/* Image 3: bottom-right */
.featured-image-grid .grid-item-3 {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}

.featured-triangle-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}


/* Featured Projects nav arrows - visually similar to Featured Innovation, centered in left column */
.featured-nav-arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.featured-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    box-shadow: 0 12px 24px -14px rgba(15, 23, 42, 0.6);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.featured-nav-btn:hover {
    transform: scale(1.08);
    background: #f8fafc;
}

.featured-nav-icon {
    width: 16px;
    height: 16px;
}

/* Bootstrap carousel dots for Featured Projects */
.featured-carousel-indicators {
    position: static;
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.featured-carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    opacity: 1;
    border: none;
}

.featured-carousel-indicators .active {
    background-color: #008e43;
    width: 18px;
    border-radius: 9999px;
}

/* Projects Container */
.projects-container {
    width: 100%;

}

/* Portfolio Showcase Header */
.showcase-header {
    margin-bottom: 1.5rem;
}

.showcase-button {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.showcase-button:hover {
    background: #2563eb;
}

/* Section Header - Title with View All Button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-header>div {
    flex: 1;
}

.view-all-btn {
    background: #3b82f6;
    /* bg-blue-500 */
    color: white;
    /* text-white */
    padding: 0.75rem 1.5rem;
    /* px-6 py-3 */
    border-radius: 0.5rem;
    /* rounded-lg */
    border: none;
    font-size: 0.675rem;
    /* text-sm */
    font-weight: 600;
    /* font-semibold */
    cursor: pointer;
    transition: all 0.3s ease;
    /* transition-colors */
    white-space: nowrap;
    height: fit-content;
}

.view-all-btn:hover {
    background: #254382;
    color: #ffff;
    /* hover:bg-blue-600 */
}

/* Section Title */
.projects-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    /* uppercase */
    color: #000;
    /* text-black */
    margin-bottom: 1rem;
    /* mb-4 */
}

/* Section Description */
.projects-description {
    color: #6b7280;
    /* text-gray-500 */
    max-width: 48rem;
    /* max-w-3xl */
    margin-bottom: 3rem;
    /* mb-12 */
}

/* Project Filter Options */
.filter-options {
    display: flex;
    /* flex */
    flex-wrap: wrap;
    /* flex-wrap */
    gap: 0.75rem;
    /* gap-3 */
    margin-bottom: 2rem;
    /* mb-8 */
}

.filter-btn {
    padding: 0.5rem 1rem;
    /* px-4 py-2 */
    border-radius: 0.375rem;
    /* rounded-md */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* font-medium */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    /* transition-colors */
}

.filter-btn-active {
    background: #3b82f6;
    /* bg-blue-500 */
    color: white;
    /* text-white */
}

.filter-btn-active:hover {
    background: #2563eb;
    /* hover:bg-blue-600 */
}

.filter-btn:not(.filter-btn-active) {
    background: #e5e7eb;
    /* bg-gray-200 */
    color: #000;
    /* text-black */
}

.filter-btn:not(.filter-btn-active):hover {
    background: #d1d5db;
    /* hover:bg-gray-300 */
}

/* Project Slider */
.project-slider {
    position: relative;
    /* relative */
    background: white;
    /* bg-white */
    border-radius: 1rem;
    /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    overflow: hidden;
    /* overflow-hidden */
}

/* Project Slide */
.project-slide {
    display: none;
    /* Hidden by default */
}

.project-slide.active {
    display: block;
    /* Show active slide */
}

/* Project Grid */
.project-grid {
    display: grid;
    /* grid */
    grid-template-columns: repeat(1, minmax(0, 1fr));
    /* grid-cols-1 */
    min-height: 80vh;
}

/* Project Content (Left Side) */
.project-content {
    padding: 2rem;
    /* p-8 */
    display: flex;
    /* flex */
    flex-direction: column;
    /* flex-col */
    justify-content: space-between;
    /* justify-between */
}

/* Project Badges */
.project-badges {
    margin-bottom: 1.5rem;
    /* mb-6 */
}

.category-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #dbeafe;
    /* bg-blue-100 */
    color: #1e40af;
    /* text-blue-800 */
    border-radius: 9999px;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 500;
    /* font-medium */
}

.status-badge {
    margin-left: 0.75rem;
    /* ml-3 */
    display: inline-flex;
    /* inline-flex */
    align-items: center;
    /* items-center */
    padding: 0.25rem 0.75rem;
    /* px-3 py-1 */
    border-radius: 9999px;
    /* rounded-full */
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 500;
    /* font-medium */
}

.status-completed {
    background: #d1fae5;
    /* bg-green-100 */
    color: #065f46;
    /* text-green-800 */
}

.status-ongoing {
    background: #dbeafe;
    /* bg-blue-100 */
    color: #1e40af;
    /* text-blue-800 */
}

/* Project Title */
.project-title {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 600;
    /* font-semibold */
    color: #000;
    /* text-black */
    margin-bottom: 1.5rem;
    /* mb-6 */
}

/* Project Description */
.project-desc {
    color: #6b7280;
    /* text-gray-500 */
    margin-bottom: 2rem;
    /* mb-8 */
}

/* Project Location */
.project-location {
    display: flex;
    /* flex */
    align-items: center;
    /* items-center */
    margin-bottom: 2rem;
    /* mb-8 */
}

.location-dot {
    height: 0.5rem;
    /* h-2 */
    width: 0.5rem;
    /* w-2 */
    background: #3b82f6;
    /* bg-blue-500 */
    border-radius: 50%;
    /* rounded-full */
    margin-right: 0.5rem;
    /* mr-2 */
}

.project-location span {
    color: #6b7280;
    /* text-gray-500 */
}

/* Project CTA */
.project-cta {
    margin-bottom: 3rem;
}

.explore-btn {
    display: inline-block;
    /* inline-block */
    font-size: 0.675rem;
    /* text-sm */
    background: #3b82f6;
    /* bg-blue-500 */
    color: white;
    /* text-white */
    font-weight: 500;
    /* font-medium */
    padding: 0.75rem 1.5rem;
    /* px-6 py-3 */
    border-radius: 0.5rem;
    /* rounded-lg */
    text-decoration: none;
    transition: background 0.3s ease;
    /* transition-colors */
}

.explore-btn:hover {
    background: #254382;
    color: #ffff;
}

/* Project Navigation */
.project-navigation {
    margin-top: 3rem;
    /* mt-12 */
}

/* Project Indicators */
.project-indicators {
    display: flex;
    /* flex */
    align-items: center;
    /* items-center */
    gap: 0.5rem;
    /* gap-2 */
    margin-bottom: 1.25rem;
    /* mb-5 */
}

.project-indicator {
    height: 0.5rem;
    /* h-2 */
    width: 0.5rem;
    /* w-2 */
    background: #d1d5db;
    /* bg-gray-300 */
    border-radius: 50%;
    /* rounded-full */
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-indicator.active {
    background: #3b82f6;
    /* bg-blue-500 */
    width: 2rem;
    /* Elongated when active */
    border-radius: 0.25rem;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    /* flex */
    gap: 0.75rem;
    /* gap-3 */
}

.nav-btn-circle {
    height: 2.5rem;
    /* h-10 */
    width: 2.5rem;
    /* w-10 */
    display: flex;
    /* flex */
    align-items: center;
    /* items-center */
    justify-content: center;
    /* justify-center */
    border-radius: 50%;
    /* rounded-full */
    border: 1px solid #d1d5db;
    /* border border-gray-300 */
    color: #6b7280;
    /* text-gray-500 */
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
    /* transition-colors */
}

.nav-btn-circle:hover {
    background: #f3f4f6;
    /* hover:bg-gray-100 */
}

.nav-btn-circle svg {
    width: 1.25rem;
    /* w-5 */
    height: 1.25rem;
    /* h-5 */
}

/* Project Gallery Wrapper (Right Side) */
.project-gallery-wrapper {
    position: relative;
    background: #000;
}

/* Single-image gallery area */
.project-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.gallery-img.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

/* previous slide leaving to the left */
.gallery-img.prev {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* shadow-md */
}

/* Gallery Overview Button */
.gallery-overview-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.gallery-overview-btn button {
    background: white;
    color: #000;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.gallery-overview-btn button:hover {
    background: #f3f4f6;
}


.gallery-details-btn {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-details-btn button {
    background: rgba(255, 255, 255, 0.7);
    color: #000;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    transition: background 0.3s ease;
}

.gallery-details-btn button:hover {
    background: rgba(255, 255, 255, 1);
}

/* Responsive Section Header */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .view-all-btn {
        width: 100%;
        text-align: center;
    }

    .projects-title {
        font-size: 1.25rem;
    }

    .projects-description {
        margin-bottom: 1.5rem;
    }

    /* Mobile: single column, image on top, smaller tags */
    .project-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-gallery-wrapper {
        order: -1;
        width: 100%;
        height: 260px;
    }

    .project-badges .category-pill,
    .project-badges .status-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
}

@media (min-width: 640px) {
    /* .featured-projects-section {
        padding-block: 1rem;
    } */

    .gallery-details-btn button {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }

    .gallery-overview-btn button {
        font-size: 0.875rem;
    }
}


@media (min-width: 1024px) {
    .featured-projects-section {
        padding-bottom: 1rem;
    }

    .project-grid {
        /* Two equal columns: left content, right image */
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-content {
        padding: 3rem;
    }

    .project-title {
        font-size: 1.875rem;
    }
}