/* --- Common --- */
.tc-related-posts-container {
    width: 100%;
    transition: all 0.3s ease;
}

.tc-related-posts-item {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.tc-rp-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.tc-rp-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.tc-rp-meta {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

/* --- Style 1: Simple Icon List (Mockup Match) --- */
.tc-rp-style-1 {
    display: flex;
    flex-direction: column;
}

.tc-rp-style-1 .tc-related-posts-item {
    border-bottom: 1px solid #eee;
}

.tc-rp-style-1 .tc-related-posts-item:last-child {
    border-bottom: none;
}

.tc-rp-style-1 .tc-rp-link {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    /* Background moved to item via Elementor or default transparent */
}



.tc-rp-style-1 .tc-rp-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #1e73be;
    /* Theme Color */
    font-size: 18px;
}

.tc-rp-style-1 .tc-rp-title {
    flex-grow: 1;
}

.tc-rp-style-1 .tc-rp-arrow {
    color: #ccc;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden by default if we want it to 'show' on hover, or use animation */
    /* Actually better to keep visible but subtle, then animate. User said 'show arrow', implying it might be hidden. 
       Let's use opacity transition based on animation type. */
}

/* Arrow Positioning */
.tc-arrow-right {
    margin-left: auto;
    /* Push to right */
    padding-left: 10px;
}

.tc-arrow-left {
    margin-right: 15px;
    order: -1;
    /* Move to start */
}

/* Animations */
/* None */
.tc-anim-none {
    opacity: 1;
}

/* Slide Right (Default) */
.tc-anim-slide_right {
    opacity: 0.6;
    /* Semi-transparent normally? or full? */
    transform: translateX(-5px);
}

.tc-rp-link:hover .tc-anim-slide_right {
    opacity: 1;
    transform: translateX(0);
}

/* Slide Left */
.tc-anim-slide_left {
    opacity: 0.6;
    transform: translateX(5px);
}

.tc-rp-link:hover .tc-anim-slide_left {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In */
.tc-anim-fade_in {
    opacity: 0;
}

.tc-rp-link:hover .tc-anim-fade_in {
    opacity: 1;
}

/* Color Change (Handled by settings but default needed) */



/* --- Style 2: Card Grid --- */
.tc-rp-style-2 {
    display: grid;
    grid-template-columns: repeat(var(--tc-cols, 3), 1fr);
    gap: 20px;
}

.tc-rp-style-2 .tc-related-posts-item {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.tc-rp-style-2 .tc-rp-thumb {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.tc-rp-style-2 .tc-rp-content {
    padding: 20px;
}

.tc-rp-style-2 .tc-related-posts-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}


/* --- Style 3: Minimal Date List --- */
.tc-rp-style-3 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tc-rp-style-3 .tc-rp-link {
    display: flex;
    align-items: baseline;
    padding-bottom: 5px;
    border-bottom: 1px dashed #e5e5e5;
}

.tc-rp-style-3 .tc-rp-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    width: 80px;
}

.tc-rp-style-3 .tc-rp-title {
    font-size: 15px;
    font-weight: 500;
}

.tc-rp-style-3 .tc-rp-link:hover .tc-rp-title {
    color: #1e73be;
}


/* --- Style 4: Thumbnail List --- */
.tc-rp-style-4 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tc-rp-style-4 .tc-rp-link {
    display: flex;
    align-items: center;
}

.tc-rp-style-4 .tc-rp-thumb-small {
    width: 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: #eee;
}

.tc-rp-style-4 .tc-rp-title {
    margin-bottom: 5px;
}


/* --- Style 5: Overlay Grid --- */
.tc-rp-style-5 {
    display: grid;
    grid-template-columns: repeat(var(--tc-cols, 3), 1fr);
    gap: 15px;
}

.tc-rp-style-5 .tc-related-posts-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.tc-rp-style-5 .tc-rp-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.tc-rp-style-5 .tc-related-posts-item:hover .tc-rp-bg {
    transform: scale(1.1);
}

.tc-rp-style-5 .tc-rp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.tc-rp-style-5 .tc-rp-title {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tc-rp-style-5 .tc-rp-meta {
    color: rgba(255, 255, 255, 0.8);
}


/* Responsive */
@media (max-width: 767px) {

    .tc-rp-style-2,
    .tc-rp-style-5 {
        grid-template-columns: 1fr;
    }
}