/* Colors */
:root {
    --tm-color-primary: #1a2e4a;
    --tm-color-accent: #c87f00;
    --tm-color-accent-light: #e09000;
    --tm-color-gray: #666666;
    --tm-color-light: #f5f5f5;
}

.tm-showcase {
    font-family: inherit;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.tm-inner {
    position: relative;
}

.tm-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.tm-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.tm-card {
    display: flex;
    gap: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.tm-image-wrap {
    position: relative;
    flex-shrink: 0;
}

.tm-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Image Sizes */
.tm-size-large .tm-image-wrap { width: 260px; height: 400px; }
.tm-size-medium .tm-image-wrap { width: 200px; height: 320px; }
.tm-size-small .tm-image-wrap { width: 150px; height: 240px; }

/* Grid Mode Sizes Override */
.tm-mode-grid.tm-size-large .tm-image-wrap { height: 200px; width: 100%; }
.tm-mode-grid.tm-size-medium .tm-image-wrap { height: 150px; width: 100%; }
.tm-mode-grid.tm-size-small .tm-image-wrap { height: 110px; width: 100%; }

.tm-badge {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tm-badge-num {
    font-weight: bold;
    color: var(--tm-color-primary);
    font-size: 1.2rem;
}

.tm-badge-label {
    font-size: 0.8rem;
    color: var(--tm-color-gray);
}

.tm-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.tm-specialty {
    color: var(--tm-color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.tm-name {
    color: var(--tm-color-primary);
    font-weight: bold;
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
}

.tm-role {
    color: var(--tm-color-gray);
    margin-bottom: 1.5rem;
}

.tm-quote {
    font-style: italic;
    border-left: 3px solid var(--tm-color-accent);
    padding-left: 1rem;
    color: #444;
}

/* Grid Mode */
.tm-mode-grid .tm-track {
    flex-wrap: wrap;
    gap: 2rem;
}

.tm-mode-grid .tm-slide {
    flex: 1 1 calc(33.333% - 2rem);
    padding: 0;
}

.tm-mode-grid .tm-card {
    flex-direction: column;
    gap: 1rem;
}

/* Carousel Navigation */
.tm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    color: var(--tm-color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.tm-nav:hover {
    background: var(--tm-color-primary);
    color: #fff;
    border-color: var(--tm-color-primary);
}

.tm-prev { left: 0; }
.tm-next { right: 0; }

.tm-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
}

.tm-dot.is-active {
    background: var(--tm-color-accent);
}

/* Progress */
.tm-progress {
    height: 3px;
    background: #eee;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.tm-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--tm-color-accent);
    width: 0%;
}

/* Global CTA */
.tm-global-cta {
    text-align: center;
    margin-top: 2rem;
}

.tm-btn {
    display: inline-block;
    background: var(--tm-color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.tm-btn:hover {
    background: #2a4060;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .tm-card {
        flex-direction: column;
    }
    
    .tm-mode-grid .tm-slide {
        flex: 1 1 100%;
    }
    
    .tm-image-wrap {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1;
    }
}