/* Project Filter Styles */
.pct-project-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #003456;
    border-radius: 8px;
}

.pct-filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.pct-filter-group {
    flex: 1;
    min-width: 200px;
}

.pct-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.pct-filter-dropdown {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.pct-filter-dropdown:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.pct-filter-dropdown:hover {
    border-color: #007cba;
}

/* Projects Grid */
.pct-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Column modifiers */
.pct-projects-grid.pct-cols-1 { grid-template-columns: 1fr; }
.pct-projects-grid.pct-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pct-projects-grid.pct-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pct-projects-grid.pct-cols-4 { grid-template-columns: repeat(4, 1fr); }
.pct-projects-grid.pct-cols-5 { grid-template-columns: repeat(5, 1fr); }
.pct-projects-grid.pct-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Project Cards - Elementor Hover Text Reveal Style */
.pct-project-card {
    overflow: hidden;
    direction: ltr !important;
    height: 300px;
    position: relative;
    border-radius: 5px;
}

.pct-project-card * {
    box-sizing: border-box;
}

.pct-project-card-holder {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pct-project-card-box {
    position: relative;
    height: 100%;
}

.pct-project-image-box {
    position: relative;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 100%;
    height: 100%;
    background-blend-mode: normal;
}

.pct-project-overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: 1s;
}

.pct-overlay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.3;
}

.pct-project-box-content {
    left: 0;
    bottom: 0;
    position: absolute;
    margin: 0;
    width: 100%;
    z-index: 3;
    overflow: hidden;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: 0.5s;
    transform: translateY(10px);
}

.pct-project-content-open {
    transition: 0.5s;
}

.pct-project-hidden-content {
    overflow: hidden;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: 0.5s;
    max-height: 0;
    opacity: 0;
}

.pct-project-card:hover .pct-project-hidden-content {
    max-height: 100%;
    transform: scaleY(1);
    overflow: visible;
    opacity: 1;
}

.pct-project-card:hover .pct-project-box-content {
    transform: translateY(0);
}

.pct-project-card:hover .pct-overlay-image {
    opacity: 0.9;
    transform: scale(1.05);
}

.pct-project-image {
    position: relative;
    width: 100%; /* Full width for vertical layout */
    height: 250px; /* Fixed height for image */
    overflow: hidden;
    flex-shrink: 0; /* Don't shrink */
}

.pct-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pct-project-card:hover .pct-project-image img {
    transform: scale(1.05);
}

.pct-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pct-placeholder-image .dashicons {
    font-size: 48px;
    color: white;
}

.pct-project-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pct-project-icon .dashicons {
    font-size: 20px;
    color: #333;
}

.pct-project-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pct-project-content {
    padding: 25px;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pct-project-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pct-project-metadata {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.pct-project-btn-container {
    display: flex;
    margin-top: 15px;
	justify-content: flex-end;
}

.pct-project-btn {
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.pct-project-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

/* Pagination Container */
.pct-pagination-wrapper {
    width: 100%;
    margin-top: 50px;
    padding: 30px 0;
    background: transparent;
}

/* Pagination Styles */
.pct-pagination {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.pct-pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.pct-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #e1e5e9;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pct-pagination-link:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.pct-pagination-current {
    background: #007cba !important;
    color: white !important;
    border-color: #007cba !important;
    font-weight: 600;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.4) !important;
}

.pct-pagination-prev,
.pct-pagination-next {
    font-weight: 600;
    min-width: 80px;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.pct-pagination-prev:hover,
.pct-pagination-next:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pct-pagination-wrapper {
        margin-top: 30px;
        padding: 20px 0;
    }
    
    .pct-pagination {
        padding: 0 15px;
    }
    
    .pct-pagination-links {
        gap: 4px;
        width: 100%;
        padding: 0;
    }
    
    .pct-pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pct-pagination-prev,
    .pct-pagination-next {
        min-width: 70px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pct-pagination-wrapper {
        padding: 15px 0;
    }
    
    .pct-pagination {
        padding: 0 10px;
    }
    
    .pct-pagination-links {
        gap: 2px;
        width: 100%;
        padding: 0;
    }
    
    .pct-pagination-link {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    .pct-pagination-prev,
    .pct-pagination-next {
        min-width: 60px;
        font-size: 11px;
    }
}

.pct-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.pct-no-projects {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pct-filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .pct-filter-group {
        min-width: 100%;
    }
    
    .pct-projects-grid,
    .pct-projects-grid.pct-cols-2,
    .pct-projects-grid.pct-cols-3,
    .pct-projects-grid.pct-cols-4,
    .pct-projects-grid.pct-cols-5,
    .pct-projects-grid.pct-cols-6 { grid-template-columns: 1fr; gap: 20px; }
    
    .pct-project-card {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .pct-project-content {
        padding: 20px;
    }
    
    .pct-project-title {
        font-size: 18px;
    }
    
    .pct-project-image {
        height: 200px;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pct-project-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar for dropdowns */
.pct-filter-dropdown::-webkit-scrollbar {
    width: 8px;
}

.pct-filter-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pct-filter-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.pct-filter-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
