/* ==========================================================================
   DPWC Team – Grid / Card Styles
   ========================================================================== */

.dpwc-team-grid {
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.dpwc-team-cols-1 { grid-template-columns: repeat(1, 1fr); }
.dpwc-team-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dpwc-team-cols-3 { grid-template-columns: repeat(3, 1fr); }
.dpwc-team-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Card */
.dpwc-team-item {
    min-width: 0;
}

.dpwc-team-card {
    background: #f3f2ec;
    border-radius: 20px 0 20px 0;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
}

/*.dpwc-team-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}*/

/* Photo */
.dpwc-team-card-photo {
    flex-shrink: 0;
    overflow: hidden;
}

.dpwc-team-card-photo a {
    display: block;
}

.dpwc-team-card-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/*.dpwc-team-card:hover .dpwc-team-card-photo img {
    transform: scale(1.03);
}*/

/* Body */
.dpwc-team-card-body {
    padding: 22px 22px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Badge */
.dpwc-team-card-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #112127;
    background: #009abd1c;
    border-radius: 999px;
    padding: 4px 12px;
    margin: 0 0 14px;
    text-transform: uppercase;
}

/* Name */
.dpwc-team-card-name {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.dpwc-team-card-name a {
    color: #009abd;
    text-decoration: none;
}

.dpwc-team-card-name a:hover {
    color: #009abd;
    text-decoration: none;
}

/* Position */
.dpwc-team-card-position {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 700;
    color: #112127;
}

/* Button wrap pushes button to the bottom */
.dpwc-team-card-btn-wrap {
    margin-top: auto;
}

/* Button */
.dpwc-team-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 26px;
    background: transparent;
    color: #4d525c;
    border: 2px solid #059ec4;
    border-radius: 10px 0 10px 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease;
}

/*.dpwc-team-card-btn:hover {
    background: #059ec4;
    color: #fff;
    text-decoration: none;
}*/

.dpwc-team-no-results {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* ==========================================================================
   DPWC Team – Category Archive
   ========================================================================== */

.dpwc-team-category-archive {
    padding: 0 0 70px;
}
.dpwc-team-category-archive .inner.wrapper {
    width: 100% !important;
}

.dpwc-team-category-shell {
    /*max-width: 1240px;*/
    margin: 0 auto;
}

.dpwc-team-category-badge {
    margin: 0 0 20px;
    text-align: center;
}

.dpwc-team-category-badge span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #009abd1c;
    color: #112127;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.dpwc-team-category-title {
    margin: 0 0 26px;
    text-align: center;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 700;
    color: #009abd;
}

.dpwc-team-category-title-accent {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.dpwc-team-category-description {
    max-width: 860px;
    margin: 0 auto 38px;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
    color: #4d525c;
}

.dpwc-team-category-description p {
    margin: 0 0 16px;
}

.dpwc-team-category-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   DPWC Team – Single Member Page
   ========================================================================== */

.dpwc-team-single-section {
    padding: 0 0 70px 0px;
}

.dpwc-team-single-inner {
    
}

.dpwc-team-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: 60px;
    align-items: start;
}

/* Left – Photo */
.dpwc-team-single-photo-wrap {
    
}

.dpwc-team-single-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 0 20px 0;
    object-fit: cover;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

/* Right – Content */
.dpwc-team-single-content {
    padding-top: 8px;
}

.dpwc-team-single-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #009abd1c;
    color: #009abd;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.dpwc-team-single-name {
    margin: 0 0 16px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    color: #059ec4;
}

/* Meta rows (credentials, position) */
.dpwc-team-single-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 28px;
}

.dpwc-team-single-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}
.dpwc-team-single-meta-row.is-credentials {
	margin-bottom:5px;
}

.dpwc-team-single-meta-row.is-credentials .dpwc-team-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #112127;
    font-size: 20px;
    flex-shrink: 0;
}
.dpwc-team-single-meta-row.is-position .dpwc-team-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #009abd;
    font-size: 20px;
    flex-shrink: 0;
}

.dpwc-team-single-meta-row .dpwc-team-meta-text {
    color: #009abd;
    font-weight: 700;
	font-size: 18px;
}

/* Credentials row */
.dpwc-team-single-meta-row.is-credentials .dpwc-team-meta-text {
    font-weight: 700;
    color: #112127;
	font-size: 18px;
}

/* Position row */
.dpwc-team-single-meta-row.is-position .dpwc-team-meta-text {
    font-weight: 700;
    color: #059ec4;
}

/* Bio */
.dpwc-team-single-bio {
}

.dpwc-team-single-bio p {
   
}

.dpwc-team-single-bio p:last-child {
    margin-bottom: 0;
}

/* Team single detail panels (services + who we help) */
.dpwc-team-detail-panels {
    margin-top: 30px;
	margin-bottom: 60px;
}

.dpwc-team-detail-panels-head {
    margin: 0 0 45px;
}

.dpwc-team-detail-panels-head-badge {
    display: inline-block;
    margin: 0 0 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #009abd1f;
    color: #009abd;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dpwc-team-detail-panels-head-title {
    margin: 0 0 22px;
    color: #009abd;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 700;
}

.dpwc-team-detail-panels-head-description {
    color: #112127;
    font-size: 18px;
    line-height: 1.45;
}

.dpwc-team-detail-panels-head-description p {
    margin: 0 0 12px;
}

.dpwc-team-detail-panels-head-description p:last-child {
    margin-bottom: 0;
}

.dpwc-team-detail-panels-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dpwc-team-detail-panel {
    background: #f3f2ec;
    border-radius: 20px 0 20px 0;
    padding: 36px 34px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.dpwc-team-detail-panel-badge {
    display: inline-block;
    margin: 0 0 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #009abd1f;
    color: #009abd;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.dpwc-team-detail-panel-title {
    margin: 0 0 22px;
    color: #112127;
    font-size: 24px;
    line-height: 1.05;
}

.dpwc-team-detail-panel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.dpwc-team-detail-panel-list li {
    position: relative;
    padding-left: 24px;
    color: #112127;
    font-size: 16px;
    line-height: 1.35;
}

.dpwc-team-detail-panel-list li a {
    color: #112127;
    text-decoration: none;
	font-weight: 400;
}

.dpwc-team-detail-panel-list li a:hover {
    color: #009abd;
}

.dpwc-team-detail-panel-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    color: #009abd;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.dpwc-team-detail-panel-description {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #d7d9df;
    color: #3b5165;
    font-size: 24px;
    line-height: 1.4;
}

.dpwc-team-detail-panel-description p {
    margin: 0 0 12px;
}

.dpwc-team-detail-panel-description p:last-child {
    margin-bottom: 0;
}

/* Tags */
.dpwc-team-single-tags {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dpwc-team-single-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.dpwc-team-single-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #2d7d8e;
    background: #e4f5f8;
    border-radius: 999px;
    padding: 4px 12px;
    text-decoration: none;
}

.dpwc-team-single-tag:hover {
    background: #059ec4;
    color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .dpwc-team-single-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .dpwc-team-detail-panels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dpwc-team-single-photo-wrap {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .dpwc-team-single-name {
        font-size: 30px;
    }
}

@media (max-width: 1024px) {
    .dpwc-team-cols-4,
    .dpwc-team-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dpwc-team-cols-4,
    .dpwc-team-cols-3,
    .dpwc-team-cols-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .dpwc-team-card-photo img {
        height: 240px;
    }

    .dpwc-team-single-section {
        padding: 36px 0 56px;
    }

    /*.dpwc-team-single-inner {
        padding: 0 18px;
    }*/

    .dpwc-team-single-name {
        font-size: 26px;
    }

    .dpwc-team-detail-panels {
        margin-top: 34px;
    }

    .dpwc-team-detail-panels-head {
        margin-bottom: 20px;
    }

    .dpwc-team-detail-panels-head-title {
        font-size: 28px;
        line-height: 1.15;
    }

    .dpwc-team-detail-panels-head-description {
        font-size: 16px;
    }

    .dpwc-team-detail-panels-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dpwc-team-detail-panel {
        padding: 20px 18px;
    }

    .dpwc-team-detail-panel-title {
        font-size: 28px;
        line-height: 1.12;
    }

    

    .dpwc-team-detail-panel-description {
        font-size: 18px;
    }
}

/* ==========================================================================
   DPWC Team – Related Members Section (single page)
   ========================================================================== */

.dpwc-team-related-section {
    padding: 20px 0 70px 0;
}

.dpwc-team-related-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #059ec4;
    margin: 0 0 50px;
}

@media (max-width: 767px) {
    .dpwc-team-category-archive {
        padding-bottom: 44px;
    }

    .dpwc-team-category-badge {
        margin-bottom: 16px;
    }

    .dpwc-team-category-title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .dpwc-team-category-description {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .dpwc-team-related-section {
        margin-top: 40px;
        padding-top: 36px;
    }

    .dpwc-team-related-title {
        font-size: 26px;
        margin-bottom: 28px;
    }
}
