:root {
    --pmp-primary: #03A99D;
    --pmp-secondary: #028E84;
    --pmp-accent: #EEA941;
    --pmp-bg: #ffffff;
    --pmp-unselected: #5C6065;
    --pmp-bg-cta: #0F242A;
    --pmp-btn-cta: #F9A509;
    --pmp-btn-cta-text: #0A1018;
    --pmp-next-bg: #0094DA;
    --pmp-font-main: 'Outfit', sans-serif;
    --pmp-h-size: 32px;
    --pmp-b-size: 16px;
}

* {
    box-sizing: border-box;
}

/* Base Styles */

.pmp-projects-wrapper a,
.pmp-projects-wrapper button {
    text-decoration: none !important;
    box-shadow: none !important;
}

.pmp-projects-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--pmp-font-main);
    background: transparent;
}


/* Filter Bar Redesign */
.pmp-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.pmp-category-filters {
    display: flex;
    gap: 30px;
}

.pmp-filter-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--pmp-unselected);
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--pmp-font-main);
    padding: 5px 0 !important;
    transition: color 0.3s ease;
    border-radius: 0 !important;
}


.pmp-filter-btn:hover,
.pmp-filter-btn.active {
    color: var(--pmp-accent);
}

.pmp-filter-btn.active {
    color: var(--pmp-accent);
    border-bottom: none !important;
    font-weight: 600;
}

/* Search Container Redesign */
.pmp-search-container {
    position: relative;
}

.pmp-search-inner {
    display: flex;
    align-items: center;
    background: #F3F4F6;
    border: none;
    border-radius: 999px;
    padding: 2px 2px 2px 25px;
    width: 100%;
    max-width: 420px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pmp-search-inner:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--pmp-accent);
}


#pmp-search-input {
    background: none;
    border: none;
    outline: none;
    color: inherit;
    font-family: var(--pmp-font-main);
    font-size: 16px;
    flex: 1;
    min-width: 0;
}


#pmp-search-input::placeholder {
    color: #888;
}

#pmp-search-submit {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: none !important;
}

#pmp-search-submit:focus {
    outline: none !important;
}


/* Grid with CTA and Home Grid */
.pmp-grid-with-cta,
.pmp-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}


/* Card Design (Universal) */
.pmp-home-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.3s ease;
}

.pmp-home-card:hover {
    transform: translateY(-5px);
}

.pmp-home-card.pmp-initially-hidden {
    display: none;
}

.pmp-project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pmp-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pmp-home-content {
    margin-top: 25px;
}

.pmp-project-title {
    font-size: 24px;
    font-weight: 400;
    color: inherit;
    margin: 0 0 15px 0;
    padding-left: 15px;
    position: relative;
    line-height: 1.3;
    min-height: 62px;
}

.pmp-project-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 3px;
    height: 20px;
    background: var(--pmp-primary);
}

.pmp-details-label {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
    padding-left: 15px;
    margin: 0 0 10px 0;
}

.pmp-details-list {
    list-style: disc;
    padding-left: 35px;
    margin: 0 0 20px 0;
}

.pmp-details-list li {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 400;
}

.pmp-home-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 14px;
    padding-left: 15px;
}


.pmp-owner-icon {
    display: flex;
    align-items: center;
    color: #64748b;
}

/* CTA Container Design */
.pmp-cta-container {
    grid-column: 1 / -1;
    background-color: var(--pmp-bg-cta);
    border-radius: 20px;
    padding: 80px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.pmp-cta-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.pmp-cta-heading {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.pmp-cta-subheading {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 35px 0;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.pmp-cta-btn {
    display: inline-block;
    background-color: #F9A509 !important;
    color: #0F242A !important;
    padding: 18px 45px;
    border-radius: 999px !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    border: none;
    cursor: pointer;
}

.pmp-cta-btn:hover {
    transform: scale(1.05);
    background-color: #e59408;
}

.pmp-cta-svg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 578px;
    height: 218px;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 1.4s ease;
}

.pmp-cta-container.pmp-animate .pmp-cta-svg {
    opacity: 1;
}


/* Pagination Redesign */
.pmp-pagination-container {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

#pmp-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.pmp-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--pmp-font-main);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

/* Prev Button */
.pmp-page-link.pmp-prev {
    background-color: #fff;
    color: var(--pmp-unselected);
}

.pmp-page-link.pmp-page-number {
    min-width: 48px;
    padding: 12px 16px;
    background-color: #fff;
    color: var(--pmp-unselected);
}

.pmp-page-link.pmp-page-number.active {
    background-color: var(--pmp-next-bg);
    color: #fff;
    cursor: default;
}

/* Next Button */
.pmp-page-link.pmp-next {
    background-color: var(--pmp-next-bg);
    color: #fff;
}

.pmp-page-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.pmp-page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .pmp-grid-with-cta,
    .pmp-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pmp-cta-container {
        padding: 40px;
    }
    .pmp-cta-heading {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .pmp-filter-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    
    .pmp-category-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 15px 25px;
        justify-content: center;
    }
    
    .pmp-filter-btn {
        white-space: nowrap;
        padding: 8px 0;
    }


    .pmp-search-container {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }


    .pmp-search-inner {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }



    .pmp-grid-with-cta,
    .pmp-home-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .pmp-home-card {
        max-width: 100%;
        width: 100%;
        text-align: left;
    }

    .pmp-project-title {
        padding-left: 15px;
        text-align: left;
    }

    .pmp-project-title::before {
        left: 0;
        transform: none;
        top: 5px;
        width: 3px;
        height: 20px;
    }

    .pmp-details-label {
        padding-left: 15px;
    }

    .pmp-details-list {
        padding-left: 35px;
        list-style: disc;
    }

    .pmp-home-footer {
        padding-left: 15px;
        justify-content: flex-start;
    }


    .pmp-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 50px 30px;
    }
    
    .pmp-cta-content {
        max-width: 100%;
    }

    .pmp-cta-svg {
        display: none;
    }

    .pmp-pagination-container {
        margin-top: 50px;
    }

    #pmp-pagination {
        gap: 10px;
    }

    .pmp-page-link {
        padding: 8px 15px;
        font-size: 14px;
    }

    .pmp-page-link.pmp-page-number {
        min-width: 35px;
        padding: 8px 10px;
    }
}


@media (max-width: 480px) {
    .pmp-cta-heading {
        font-size: 24px;
    }
    .pmp-project-title {
        font-size: 20px;
        min-height: auto;
    }
    .pmp-project-image {
        height: 250px;
    }
}
