/* LAYOUT */
.tl-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* SIDEBAR */
.tl-sidebar {
    width: 220px;
    position: sticky;
    top: 100px;
}

.tl-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tl-sidebar li {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.tl-sidebar li.active,
.tl-sidebar li:hover {
    background: #0a66c2;
    color: #fff;
}

/* GRID */
.tl-content-area {
    flex: 1;
}

.tl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* CARD */
.tl-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.35s;
}

.tl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* IMAGE */
.tl-image {
    position: relative;
    overflow: hidden;
}

.tl-image img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.tl-card:hover .tl-image img {
    transform: scale(1.05);
}

/* OVERLAY (MAIN UPGRADE) */
.tl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,102,194,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.tl-card:hover .tl-overlay {
    opacity: 1;
}

/* PREVIEW BUTTON */
.tl-preview-btn {
    background: #fff;
    color: #0a66c2;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* CONTENT */
.tl-content {
    padding: 16px;
    text-align: center;
}

.tl-content h3 {
    font-size: 15px;
    margin: 0;
}

/* TABLET */
@media (max-width: 1024px) {
    .tl-layout {
        flex-direction: column;
    }

    .tl-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .tl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .tl-grid {
        grid-template-columns: 1fr;
    }
}