/**
 * USDP Projects Portfolio Manager - Frontend Styles
 */

.usdp-projects-container {
    position: relative;
    width: 100%;
}

.usdp-projects-loader {
    text-align: center;
    padding: 60px 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.usdp-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6600;
    border-radius: 50%;
    animation: usdp-spin 1s linear infinite;
    margin-bottom: 15px;
}

.usdp-loader-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

@keyframes usdp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.usdp-projects-content {
    width: 100%;
}

/* Breadcrumb Navigation */
.usdp-breadcrumb {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.usdp-breadcrumb-link {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.usdp-breadcrumb-link:hover {
    color: #135e96;
    text-decoration: underline;
}

.usdp-breadcrumb-separator {
    color: #999;
    margin: 0 5px;
}

.usdp-breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* Project Cards */
.usdp-project-card {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.usdp-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.usdp-project-link {
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.usdp-project-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.usdp-project-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.usdp-project-title {
    padding: 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background: #fff;
    flex: 1;
    display: flex;
    align-items: center;
}

.usdp-no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}

/* Pagination */
.usdp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.usdp-page-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.usdp-page-link:hover {
    background: #333;
    color: #fff;
}

.usdp-page-link.usdp-active {
    background: #333;
    color: #fff;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .usdp-breadcrumb {
        font-size: 12px;
        padding: 12px 15px;
    }
    
    .usdp-project-image {
        height: 200px;
    }
    
    .usdp-project-title {
        font-size: 16px;
        padding: 15px;
    }
}


/* Breadcrumb */
.usdp-breadcrumb {
    padding: 15px 20px;
    background: #f6f7f7;
    border-radius: 6px;
    margin-bottom: 30px;
    font-size: 14px;
}

.usdp-breadcrumb-link {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.2s;
}

.usdp-breadcrumb-link:hover {
    color: #135e96;
    text-decoration: underline;
}

.usdp-breadcrumb-separator {
    color: #646970;
    margin: 0 8px;
}

.usdp-breadcrumb-current {
    color: #1d2327;
    font-weight: 600;
}

/* No categories message */
.usdp-no-categories {
    padding: 40px 20px;
    text-align: center;
    background: #f0f6fc;
    border: 2px dashed #2271b1;
    border-radius: 8px;
    margin: 20px 0;
}

.usdp-no-categories h3 {
    color: #1d2327;
    margin-top: 0;
    font-size: 24px;
}

.usdp-no-categories p {
    color: #646970;
    margin-bottom: 20px;
    font-size: 16px;
}

.usdp-no-categories .button {
    background: #2271b1;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    transition: background 0.2s;
}

.usdp-no-categories .button:hover {
    background: #135e96;
    color: #fff;
}

/* Fix for equal height images in grid */
.row.clearfix {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.project-block_one {
    margin-bottom: 30px;
    padding: 0 15px;
    display: flex;
}

.project-block_one-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-block_one-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.project-block_one-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.project-block_one-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-block_one-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.project-block_one-designation {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.project-block_one-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.project-block_one-heading a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-block_one-heading a:hover {
    color: #2271b1;
}

/* Responsive image heights */
@media (max-width: 991px) {
    .project-block_one-image {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .project-block_one-image {
        height: 220px;
    }
    
    .project-block_one {
        padding: 0 10px;
    }
    
    .row.clearfix {
        margin: 0 -10px;
    }
}
