/**
 * Static Site Fix CSS - Trustindex widget styling to match live site
 */

/* Trustindex Widget Container */
.ti-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reviews Container - Slider */
.ti-reviews-container {
    overflow: hidden;
    position: relative;
    padding: 0 30px;
}

.ti-reviews-container-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.ti-review-item {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    padding: 0 8px;
    box-sizing: border-box;
}

.ti-review-item .ti-inner {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Review Header - Profile Section */
.ti-review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    position: relative;
}

.ti-profile-img {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    flex-shrink: 0;
}

.ti-profile-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ti-profile-details {
    flex: 1;
    min-width: 0;
}

.ti-name {
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.3;
}

.ti-date {
    font-size: 11px;
    color: #5f6368;
    margin-top: 1px;
}

/* Google Icon - Top Right */
.ti-platform-icon {
    position: absolute;
    top: 0;
    right: 0;
}

.ti-platform-icon img {
    width: 18px;
    height: 18px;
}

.ti-platform-icon .ti-tooltip {
    display: none;
}

/* Stars Row */
.ti-stars {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 1px;
}

.ti-star {
    width: 14px;
    height: 14px;
}

.ti-verified-review {
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
}

.ti-verified-review .ti-verified-tooltip {
    display: none;
}

/* Review Content */
.ti-review-content,
.ti-review-text-container {
    font-size: 13px;
    line-height: 1.45;
    color: #3c4043;
    flex: 1;
}

/* Read More Link */
.ti-read-more {
    color: #1a73e8;
    cursor: pointer;
    font-size: 12px;
    display: inline-block;
    margin-top: 6px;
    font-weight: 500;
}

.ti-read-more:hover {
    text-decoration: underline;
}

/* Navigation Arrows */
.ti-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.ti-prev, .ti-next {
    position: absolute;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0,0,0,0.16);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}

.ti-prev {
    left: 0;
}

.ti-next {
    right: 0;
}

.ti-prev::before, .ti-next::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid #5f6368;
    border-right: 2px solid #5f6368;
}

.ti-prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.ti-next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

.ti-prev:hover, .ti-next:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Header Section */
.ti-header {
    text-align: center;
    margin-bottom: 24px;
}

.ti-header .ti-fade-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ti-rating-text {
    margin: 6px 0;
}

.ti-rating.ti-rating-large {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a1a1a;
}

.ti-header .ti-stars.star-lg {
    justify-content: center;
    gap: 2px;
}

.ti-header .ti-stars.star-lg .ti-star {
    width: 22px;
    height: 22px;
}

.ti-large-logo {
    margin-top: 8px;
}

.ti-large-logo img {
    max-width: 90px;
    height: auto;
}

/* Hide dots pagination */
.ti-controls-line {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .ti-review-item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 767px) {
    .ti-review-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .ti-reviews-container {
        padding: 0 40px;
    }
}

/* ==================== BLOG PAGE THUMBNAIL FIX ==================== */
/* Force consistent aspect ratio for blog page thumbnails - cards skin */
/* Uses high specificity to override Elementor's inline styles */

/* Container setup - for blog page cards layout */
.elementor-647 .elementor-posts--skin-cards .elementor-post__thumbnail {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 66% !important; /* Match Elementor's 0.66 ratio */
    overflow: hidden !important;
    background: transparent !important;
}

/* Image absolute positioning - for blog page cards */
.elementor-647 .elementor-posts--skin-cards .elementor-post__thumbnail img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Link wrapper - for blog page cards */
.elementor-647 .elementor-posts--skin-cards .elementor-post__thumbnail__link {
    display: block !important;
    width: 100% !important;
}

/* Override inline width/height attributes - for blog page cards */
.elementor-647 .elementor-posts--skin-cards .elementor-post__thumbnail img[width],
.elementor-647 .elementor-posts--skin-cards .elementor-post__thumbnail img[height] {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
}

/* ==================== SINGLE POST SIDEBAR RECENT POSTS ==================== */
/* Fix sidebar Recent Post layout - thumbnail left with title right */
.elementor-639 .elementor-element-028e7ac.elementor-posts--thumbnail-left .elementor-post {
    flex-direction: row !important;
    align-items: flex-start !important;
}

.elementor-639 .elementor-element-028e7ac .elementor-post__thumbnail__link {
    width: 46% !important;
    flex-shrink: 0 !important;
    margin-right: 20px !important;
}

.elementor-639 .elementor-element-028e7ac .elementor-post__thumbnail {
    position: relative !important;
    padding-bottom: 66% !important;
    overflow: hidden !important;
}

.elementor-639 .elementor-element-028e7ac .elementor-post__thumbnail img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    object-fit: cover !important;
}

.elementor-639 .elementor-element-028e7ac .elementor-post__text {
    flex: 1 !important;
    min-width: 0 !important;
}

.elementor-639 .elementor-element-028e7ac .elementor-post__title,
.elementor-639 .elementor-element-028e7ac .elementor-post__title a {
    font-size: 14px !important;
    text-transform: capitalize !important;
    line-height: 1.4 !important;
}

/* ==================== SINGLE POST RELATED POSTS (CARDS) ==================== */
/* Fix Related Posts thumbnails on single post pages - element 802d871 */
.elementor-639 .elementor-element-802d871 .elementor-post__thumbnail {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 66% !important;
    overflow: hidden !important;
    background: transparent !important;
}

.elementor-639 .elementor-element-802d871 .elementor-post__thumbnail img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

.elementor-639 .elementor-element-802d871 .elementor-post__thumbnail__link {
    display: block !important;
    width: 100% !important;
}

.elementor-639 .elementor-element-802d871 .elementor-post__thumbnail img[width],
.elementor-639 .elementor-element-802d871 .elementor-post__thumbnail img[height] {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
}

/* ==================== UNIVERSAL POST THUMBNAIL FIX ==================== */
/* Generic fix for ALL Elementor post thumbnails with aspect ratio containers */
/* This catches any post widgets that use padding-bottom for aspect ratio */
.elementor-posts .elementor-post__thumbnail {
    position: relative !important;
    overflow: hidden !important;
}

.elementor-posts .elementor-post__thumbnail img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Ensure images with width/height attributes are handled */
.elementor-posts .elementor-post__thumbnail img[width],
.elementor-posts .elementor-post__thumbnail img[height] {
    max-width: none !important;
}
