.ttm-intro .ttm-kicker {
    margin: 0 0 .4rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: #1e56d5;
}

.ttm-intro .ttm-title {
    margin: 0;
    font-weight: 800;
    color: #1c2f54;
}

.ttm-intro .ttm-subtext {
    margin: .7rem auto 0;
    max-width: 720px;
    color: #63759a;
}

.ttm-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid #dce6f8;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(19, 41, 86, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ttm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(19, 41, 86, .14);
}

/* Video Banner Styling */
.ttm-video-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

/* Play Button Styling */
.ttm-play-btn {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.ttm-play-btn i {
    font-size: 1.35rem;
    color: #1e3a8a; /* deep navy/blue play arrow */
    margin-left: 4px; /* offset slightly to center play triangle */
    transition: transform 0.3s ease;
}

.ttm-video-banner:hover .ttm-play-btn {
    transform: scale(1.1);
    background: #1e3a8a;
}

.ttm-video-banner:hover .ttm-play-btn i {
    color: #ffffff;
}

/* Video Badge at Bottom Left */
.ttm-video-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    z-index: 2;
}

/* Dim overlay on hover */
.ttm-video-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
    z-index: 1;
}

.ttm-video-banner:hover::before {
    background: rgba(0, 0, 0, 0.35);
}

.ttm-video-banner.no-video {
    cursor: default;
}

.ttm-video-banner.no-video::before {
    background: rgba(0, 0, 0, 0.1);
}

.ttm-video-banner.has-logo-placeholder {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #f8fafc;
    background-origin: content-box;
    padding: 30px;
}

.ttm-card-highlight {
    animation: highlightPulse 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes highlightPulse {
    0% {
        border-color: #f6b21a;
        box-shadow: 0 0 0 0 rgba(246, 178, 26, 0.7);
        transform: scale(1.03);
    }
    30% {
        border-color: #f6b21a;
        box-shadow: 0 0 25px rgba(246, 178, 26, 0.5);
        transform: scale(1.03);
    }
    100% {
        border-color: #f6b21a;
        box-shadow: 0 8px 30px rgba(246, 178, 26, 0.25);
        transform: scale(1);
    }
}

.ttm-stars i {
    font-size: 0.95rem;
    margin-right: 2px;
}

.ttm-quote {
    color: #9eb6e7;
    font-size: 1.2rem;
    margin-bottom: .4rem;
}

.ttm-givenby {
    margin: 0 0 .75rem;
    color: #1f3562;
    font-size: 1rem;
    font-weight: 700;
}

.ttm-message {
    margin: 0;
    color: #324a79;
    font-size: .93rem;
    line-height: 1.8;
}

.ttm-meta {
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px dashed #d7e3fb;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ttm-relation {
    color: #4b6390;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ttm-student {
    color: #1f3562;
    font-size: .92rem;
    font-weight: 700;
}

.ttm-class-label {
    color: #4b6390;
    font-size: .75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.ttm-class {
    color: #1f3562;
    font-size: .9rem;
    font-weight: 700;
}

.ttm-empty {
    border-radius: 16px;
    border: 1px dashed #cbd8f1;
    background: #f8fbff;
    padding: 42px 20px;
}

.ttm-empty i {
    font-size: 2.2rem;
    color: #8ca4d2;
    margin-bottom: 10px;
}

.ttm-empty h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #2a406d;
}

.ttm-empty p {
    margin: .45rem 0 0;
    color: #5d7298;
}

/* Filter Tabs Container */
.ttm-tabs-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Tab Button */
.ttm-tab-btn {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.ttm-tab-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

.ttm-tab-btn.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

/* Card highlight animation when loading deep-links */
.ttm-card.ttm-card-highlight {
    animation: ttm-pulse-highlight 2s ease-in-out;
}

@keyframes ttm-pulse-highlight {
    0%, 100% {
        border-color: #dce6f8;
        box-shadow: 0 12px 30px rgba(19, 41, 86, .08);
    }
    50% {
        border-color: #f59e0b;
        box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
    }
}
