/* --- TOONZ PEOPLE WIDGET --- */
.toonz-people-wrapper {
    background-color: transparent;
    padding: 100px 0;
    font-family: 'Inter', sans-serif;
    color: #000;
}

.tp-grid-container {

    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    padding: 0 20px;
}

/* HEADER CELL (Top Left) */
.tp-header-cell {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.tp-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #E87722;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.tp-dash {
    width: 30px;
    height: 2px;
    background-color: #E87722;
    margin-bottom: 25px;
}

.tp-title {
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    color: #000000;
    margin: 0 0 20px 0;
}

.tp-desc {
    font-size: 18px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* BASE CARD STYLES */
.tp-person-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    border: 3px solid #f4f0eb;
}

.tp-person-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.tp-card-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.tp-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s ease;
}

.tp-person-card:hover .tp-img {
    transform: scale(1.08);
}

.tp-card-content {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tp-p-name {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #000;
}

.tp-p-designation {
    font-size: 11px;
    font-weight: 700;
    color: #E87722;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
}

.tp-card-dash {
    width: 20px;
    height: 2px;
    background-color: #f1f1f1;
    border-radius: 2px;
}

/* SIZES - LARGE (Spotlight) */
.tp-size-large {
    grid-column: span 4;
}

.tp-size-large .tp-card-image {
    height: 380px;
}

/* SIZES - MEDIUM (Equal items) */
.tp-size-medium {
    grid-column: span 4;
    flex-direction: row;
    /* Layout change for medium row */
    align-items: stretch;
}

.tp-size-medium .tp-card-image {
    width: 45%;
    height: 100%;
    min-height: 200px;
}

.tp-size-medium .tp-card-content {
    width: 55%;
    text-align: left;
    align-items: flex-start;
    padding: 40px;
}

/* SIZES - SMALL (Grid) */
.tp-size-small {
    grid-column: span 3;
    flex-direction: row;
    /* Horizontal layout like medium */
    align-items: stretch;
}

.tp-size-small .tp-card-image {
    width: 40%;
    height: 100%;
    min-height: 150px;
}

.tp-size-small .tp-card-content {
    width: 60%;
    text-align: left;
    align-items: flex-start;
    padding: 20px 15px;
    /* More compact padding for the 4-column row */
}

.tp-size-small .tp-p-name {
    font-size: 15px;
    /* Slightly smaller for the 4-column row */
}

.tp-size-small .tp-p-designation {
    font-size: 9px;
}

/* LAST CARD (Horizontal with Image) */
.tp-size-last_call {
    grid-column: span 3;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.tp-size-last_call .tp-card-image {
    width: 40%;
    height: 100%;
}

.tp-size-last_call .tp-card-content {
    width: 60%;
    text-align: left;
    align-items: flex-start;
    padding: 20px 15px;
    justify-content: center;
}

.tp-card-last-wrapper {
    display: flex;
    flex-direction: column;
}

.tp-last-text {
    font-size: 15px;
    font-weight: 800;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

.tp-last-sub {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* BOTTOM CTA BAR */
.tp-cta-bar {
    grid-column: span 12;
    background: #fff;
    border-radius: 12px;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-top: 20px;
    border: 3px solid #f4f0eb;
}

.tp-cta-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tp-cta-icon {
    width: 60px;
    height: 60px;
    background-color: #FAF2EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-cta-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tp-cta-text {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0;
    max-width: 400px;
    line-height: 1.3;
}

.tp-cta-btn {
    background-color: #1A1A1A;
    color: #fff;
    padding: 18px 35px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tp-cta-btn:hover {
    background-color: #E87722;
    transform: translateX(5px);
}

.tp-btn-arrow {
    font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {

    .tp-header-cell,
    .tp-size-large,
    .tp-size-medium,
    .tp-size-small,
    .tp-size-last_call {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .tp-grid-container {
        gap: 20px;
    }

    .tp-header-cell,
    .tp-size-large,
    .tp-size-medium,
    .tp-size-small,
    .tp-size-last_call {
        grid-column: span 12;
    }

    .tp-size-medium {
        flex-direction: column;
    }

    .tp-size-medium .tp-card-image,
    .tp-size-medium .tp-card-content {
        width: 100%;
    }

    .tp-cta-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 40px 20px;
    }

    .tp-cta-left {
        flex-direction: column;
        gap: 15px;
    }
}