/* Global Styling */

/* Fade-in Animation */
.fade-in-up { 
    animation: fadeInUp 0.8s ease-out forwards; 
    opacity: 0; 
    transform: translateY(20px); 
}
@keyframes fadeInUp { 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* Pill Card */
.pill-card { 
    border-radius: 50px; 
}

/* Blob Shape */
.blob-shape {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transition: all 0.5s ease;
}
.service-card:hover .blob-shape {
    border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%;
    transform: rotate(10deg) scale(1.1);
}

/* Loader */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ffffff;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* Hidden Class */
.hidden { display: none; }

/* Side-menu styles are now managed by main.js toggleSideMenu() and nav.html inline styles */

/* Marquee Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll {
    animation: scroll 30s linear infinite;
}
.animate-scroll:hover {
    animation-play-state: paused;
}

/* Invert filter for the white logo on white backgrounds */
.logo-invert {
    filter: invert(1) hue-rotate(180deg); /* Inverts white to black */
}

/* Menu icon styles are now managed by main.js injectNavStyles() */

/* TrustIndex Widget Fallback Styles */
.ti-widget-container {
    width: 100%;
    display: block;
    overflow: hidden;
}
.ti-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}
.ti-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #374151;
}
.ti-header-logo-img {
    height: 24px;
    width: auto;
}
.ti-stars {
    display: flex;
    gap: 2px;
}
.ti-verified-by {
    background-color: #0f9d58; /* Google Green */
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ti-verified-by a { color: white; text-decoration: underline; }
.ti-reviews-container-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}
@media (min-width: 768px) {
    .ti-reviews-container-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .ti-reviews-container-wrapper {
        grid-template-columns: repeat(3, 1fr); /* Or 4 if space permits */
    }
}
.ti-review-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.ti-review-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.ti-review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    position: relative;
}
.ti-profile-img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 12px;
}
.ti-profile-details {
    flex-grow: 1;
}
.ti-name {
    font-weight: 700;
    color: #111827;
    font-size: 15px;
}
.ti-date {
    color: #6b7280;
    font-size: 13px;
}
.ti-platform-icon img {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 0;
    right: 0;
}
.ti-review-text-container {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-top: 12px;
}
.ti-read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
}
.ti-controls, .ti-controls-line {
    display: none; /* Hide slider controls for cleaner grid view fallback */
}

/* TrustIndex Fixes: Card Border + Tooltip Behavior */
.trustindex-widget-container .ti-review-item,
.trustindex-widget-container .ti-review-item .ti-inner {
    border: none !important;
    box-shadow: none !important;
}

/* Allow the Trustindex header/area to let the tooltip overflow */
.trustindex-widget-container,
.trustindex-widget-container .ti-widget,
.trustindex-widget-container .ti-widget-container,
.trustindex-widget-container .ti-widget-header,
.trustindex-widget-container .ti-verified-by-row {
    overflow: visible !important;
}

/* Provide a positioning context for the tooltip */
.trustindex-widget-container .ti-verified-by-row .ti-inner {
    position: relative;
}

/* Reset Trustindex's default tooltip styles and define our own */
.trustindex-widget-container .ti-disclaimer {
    /* wipe out most vendor styles so we don't get weird layering */
    all: unset;

    /* our tooltip box */
    display: none;                 /* hidden by default */
    position: absolute;
    right: 0;
    bottom: 110%;                  /* sit ABOVE the green badge */
    max-width: 320px;
    z-index: 9999;

    background: #ffffff;
    color: #000000;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 13px;
    line-height: 1.4;
}

/* Optional: bold the first line if Trustindex uses <strong> inside */
.trustindex-widget-container .ti-disclaimer strong {
    font-weight: 600;
}

/* Show tooltip when hovering the whole verified-by area */
.trustindex-widget-container .ti-verified-by-row:hover .ti-disclaimer {
    display: block;
}

/* Remove light-green halo around "Verified by Trustindex" badge */
.trustindex-widget-container .ti-verified-by-row {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Ensure the inner badge sits flush without extra margin */
.trustindex-widget-container .ti-verified-by-row .ti-inner {
    margin: 0 !important;
}