/*
Theme Name: The Sim Offers
Theme URI: https://thesimoffers.com
Author: The Sim Offers Team
Author URI: https://thesimoffers.com
Description: Fast, SEO-optimized, mobile packages & news theme for The Sim Offers.
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thesimoffers
Tags: news, telecommunication, sim-packages, right-sidebar, full-width-template, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. GLOBAL UNIFORM ARROW BREADCRUMBS (All Pages)
   ========================================================= */
.breadcrumbs,
.tso-shot-breadcrumbs {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    gap: 3px !important;
    border: none !important;
    background: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.breadcrumbs::-webkit-scrollbar,
.tso-shot-breadcrumbs::-webkit-scrollbar {
    display: none !important;
}

/* Hide theme and SEO plugin separators */
.breadcrumbs .sep,
.breadcrumbs .separator,
.tso-shot-breadcrumbs .tso-sep {
    display: none !important;
}

/* Flatten wrapper spans from Yoast/RankMath so links become flex items */
.breadcrumbs span:not(.current):not(.breadcrumb_last) {
    display: contents !important;
    font-size: 0 !important;
}

/* 1. Default Style for ALL Links (Arrow on BOTH sides: Left Cut + Right Point) */
.breadcrumbs a,
.tso-shot-breadcrumbs a {
    text-decoration: none !important;
    padding: 5px 14px 5px 18px !important;
    background: var(--tso-op-color, var(--primary, #0066ff)) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    border-radius: 0 !important;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%) !important;
    transition: filter 0.2s ease !important;
}

/* 2. ONLY the Very First Link (Home) — Flat Left with Rounded Edge */
.breadcrumbs > a:first-child,
.breadcrumbs > span:first-child > a:first-child,
.breadcrumbs > span:first-child > span:first-child > a,
.tso-shot-breadcrumbs a:first-child {
    padding-left: 12px !important;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%) !important;
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

/* 3. Active / Current Page (Last Item) — Left Cut + Flat Rounded Right */
.breadcrumbs span.current,
.breadcrumbs span.breadcrumb_last,
.tso-shot-breadcrumbs span.tso-current {
    background: #e2e8f0 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 5px 14px 5px 18px !important;
    display: inline-block !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%) !important;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

/* Hover Effect */
.breadcrumbs a:hover,
.tso-shot-breadcrumbs a:hover {
    filter: brightness(1.1) !important;
    color: #ffffff !important;
}