/* ---------- RESET ---------- */
.cp-project-listing *,
.cp-project-carousel * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- CONTAINER ---------- */
.section-wrapper {
    max-width: 1400px;
    padding: 0 20px;
}

/* ---------- TABS ---------- */
.project-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 700;
}

.project-tabs a {
    position: relative;
    text-decoration: none;
    color: #8a8a8a;
    padding-bottom: 6px;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* animated underline */
.project-tabs a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: #1f2a44;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

/* hover state */
.project-tabs a:hover {
    color: #1f2a44;
}

.project-tabs a:hover::after {
    transform: scaleX(1);
}

/* active state */
.project-tabs a.active {
    color: #1f2a44;
}

.project-tabs a.active::after {
    transform: scaleX(1);
}

/* ---------- GRID ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    min-height: 200px;
}

/* ---------- CARD ---------- */
.card {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* ---------- IMAGE HOVER EFFECT ---------- */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.card-image-wrapper .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* overlay */
.card-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 48, 87, 0.55);
    transform: translateY(-100%);
    transition: transform 0.6s ease;
}

/* hover effects */
.card:hover .card-image {
    transform: scale(1.1);
}

.card:hover .card-image-wrapper::after {
    transform: translateY(0);
}

/* ---------- CARD CONTENT ---------- */
.card-content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* ---------- PROJECT TEXT ---------- */
.card-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 6px;
    line-height: 1.3;
}

.project-location {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 8px;
}

.project-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e8f1ff;
    color: #1f2a44;
}

.project-status.completed {
    background: #e8f7ef;
    color: #0d8b4a;
}

.project-status.ongoing {
    background: #fff4e6;
    color: #e67e22;
}

/* ---------- ARROW ---------- */
.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f3f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #1f2a44;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card:hover .card-arrow {
    background-color: #F15A24;
    color: white;
}

/* ---------- PAGINATION ---------- */
.cp-pagination {
    margin-top: 40px;
    text-align: center;
}

.cp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.cp-pagination .page-numbers:hover {
    background: #1f2a44;
    color: white;
    border-color: #1f2a44;
}

.cp-pagination .page-numbers.current {
    background: #1f2a44;
    color: white;
    border-color: #1f2a44;
}

/* ---------- CAROUSEL STYLES ---------- */
.project-carousel {
    position: relative;
    padding-bottom: 50px;
}

.swiper-slide {
    width: 340px;
    padding: 20px;
}

.carousel-card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

/* Carousel image */
.carousel-card .card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.carousel-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-card .card-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 48, 87, 0.55);
    transform: translateY(-100%);
    transition: transform 0.6s ease;
}

.carousel-card:hover .card-image {
    transform: scale(1.12);
}

.carousel-card:hover .card-image-wrapper::after {
    transform: translateY(0);
}

/* Carousel footer */
.carousel-card .card-footer {
    background: #ffffff;
    width: calc(100% - 30px);
    margin: -35px 0 15px;
    height: 90px;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.carousel-card .card-footer-text {
    padding: 18px 20px;
    flex: 1;
    z-index: 2;
}
.card-footer-text h6{
    margin-bottom: 0;
}
.carousel-card .card-footer-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 4px;
}
.home-page-pr .project-carousel{
    background: white;
}
.carousel-card .card-footer-action {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: #f15a24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: background 0.4s ease;
    z-index: 1;
    color: white;
}

/* angled edge */
.carousel-card .card-footer-action::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 40px;
    height: 100%;
    background: inherit;
    transform: skewX(-15deg);
}

/* hover color change */
.carousel-card:hover .card-footer-action {
    background: #4caf50;
}

/* Swiper arrows */
.swiper-wrapper{
    align-items: stretch;
}
.swiper-wrapper .swiper-slide{    align-self: stretch;
    align-content: stretch;
    height: -webkit-fill-available;}
.swiper-wrapper .swiper-slide{
    padding: 0px;
    margin: 0px;
}
.swiper-wrapper .swiper-slide .card{
    height: 100%;
    background: #f1f1f5;
}
.swiper-wrapper .swiper-slide .card .card-footer{
    background: transparent;
}
.swiper-button-next, .swiper-button-prev {
    background: #ffffff;
    width: 44px !important;
    height: 44px  !important;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px !important;
    color: #1f2a44;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .section-wrapper{
        padding: 0px !important;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .swiper-slide {
        width: 280px;
    }
    .swiper-button-prev, .swiper-button-next{
        width: 35px !important;
        height: 35px !important;
    }
    .swiper-button-prev::after, .swiper-button-next::after{
        font-size: 18px !important;
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .project-tabs {
        flex-direction: column;
        gap: 15px;
    }
}