.tg-27991f2f-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) {
    .tg-27991f2f-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .tg-27991f2f-grid { grid-template-columns: 1fr; }
}

.tg-27991f2f-card {
    background: #C7CEC9; /* Updated background color */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.tg-27991f2f-card:hover {
    transform: translateY(-5px);
}

.tg-27991f2f-img {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
}

.tg-27991f2f-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tg-27991f2f-name {
    margin: 0 0 5px;
    font-size: 1.8rem;
    color: #35442C;
}

.tg-27991f2f-role {
    margin: 0 0 15px;
    font-size: 1.1rem;
    color: #626D4F;
    font-weight: 500;
}

.tg-27991f2f-btn {
    margin-top: auto;
    background: transparent;
    border: 1px solid #626D4F;
    color: #626D4F;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    align-self: flex-start;
}
.tg-27991f2f-btn:hover {
    background: #626D4F;
    color: #fff;
}

/* Off-canvas Overlay */
.tg-27991f2f-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.admin-bar .tg-27991f2f-canvas-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
.tg-27991f2f-canvas-overlay.tg-27991f2f-active {
    opacity: 1;
    visibility: visible;
}

/* Off-canvas Drawer */
.tg-27991f2f-canvas-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
@media (max-width: 450px) {
    .tg-27991f2f-canvas-drawer {
        width: 100%;
        right: -100%;
    }
}
body.admin-bar .tg-27991f2f-canvas-drawer {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
.tg-27991f2f-canvas-drawer.tg-27991f2f-active {
    right: 0;
}

.tg-27991f2f-canvas-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

.tg-27991f2f-canvas-body {
    display: flex;
    flex-direction: column;
}

.tg-27991f2f-canvas-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.tg-27991f2f-canvas-text {
    padding: 30px;
}

.tg-27991f2f-canvas-name {
    margin: 0 0 5px;
    color: #35442C;
    font-size: 1.8rem;
}
.tg-27991f2f-canvas-role {
    margin: 0 0 20px;
    color: #626D4F;
    font-size: 1.1rem;
    font-weight: 500;
}
.tg-27991f2f-canvas-bio {
    line-height: 1.6;
    color: #555;
}