/* ============================================================
   Portfolio Grid Styles (Redesigned per Screenshot)
   ============================================================ */
.portfolio-section {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}
.portfolio-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.portfolio-section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(27, 58, 107, 0.1);
    color: #1B3A6B;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}
.portfolio-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}
.portfolio-section-desc {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.filter-btn:hover {
    border-color: #1B3A6B;
    color: #1B3A6B;
}
.filter-btn.active {
    background: #1B3A6B;
    border-color: #1B3A6B;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(27, 58, 107, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Portfolio Card */
.portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Card Image */
.portfolio-card-image {
    position: relative;
    padding-top: 55%;
    overflow: hidden;
    background: #f8f9fa;
	display:flex !important;
}
.portfolio-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}
.portfolio-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ccc;
}

/* Badges (Styled Dark Blue per screenshot) */
.portfolio-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    background: #1B3A6B !important; /* Force dark blue */
}

/* Card Content */
.portfolio-card-content {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center; /* Centered Typography */
}
.portfolio-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #1B3A6B; /* Dark Blue title */
    margin: 0 0 15px 0;
    line-height: 1.4;
}
.portfolio-card-desc {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
}

/* Card Actions (Side-by-side buttons) */
.portfolio-card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: 100%;
}
.portfolio-card-actions a {
    display: flex;
    flex: 1; /* Stretch equally */
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Primary Button (Details / Know More) */
.btn-details {
    background-color: #1B3A6B;
    color: #ffffff !important;
    border: 1.5px solid #1B3A6B;
}
.btn-details:hover {
    background-color: #112A4F;
    border-color: #112A4F;
    transform: translateY(-2px);
}
.btn-details svg {
    stroke: #ffffff;
}

/* Secondary Button (Preview) */
.btn-preview {
    background-color: #ffffff;
    color: #1B3A6B !important;
    border: 1.5px solid #1B3A6B;
}
.btn-preview:hover {
    background-color: #1B3A6B;
    color: #ffffff !important;
    transform: translateY(-2px);
}
.btn-preview:hover svg {
    stroke: #ffffff;
}
.btn-preview svg {
    stroke: #1B3A6B;
    transition: stroke 0.3s ease;
}

/* Section Footer */
.portfolio-section-footer {
    text-align: center;
    margin-top: 50px;
}
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #1B3A6B;
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}
.btn-view-all:hover {
    background: #112A4F;
    color: #fff;
    transform: translateY(-2px);
	box-shadow:none !important;
}

/* Empty State */
.portfolio-empty {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-weight: 600;
    width: 100%;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-card-actions {
        flex-direction: column;
    }
    .portfolio-card-actions a {
        width: 100%;
    }
}