/* Standard Pill Navigation Component */
.gtm-pill-nav {
    display: flex;
    justify-content: space-between; /* Spans width of container */
    align-items: center;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #eee;
    padding: 8px 12px;
    width: 100%; 
    margin-top: 24px;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.gtm-pill-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.3s;
}

.gtm-pill-btn:hover {
    background: #f0f0f0;
}

.gtm-pill-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-grow: 1; /* Dots take up center space */
}

.gtm-pill-dots .dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    transition: background 0.3s;
    display: block;
}

.gtm-pill-dots .dot.active {
    background: #000;
}

/* --- Faint / Opacity Logic (Desktop/Tablet) --- */
@media (min-width: 768px) {
    /* Default state: Faint borders and arrows */
    .gtm-pill-nav {
        border-color: rgba(0,0,0,0.1);
    }
    
    .gtm-pill-btn {
        opacity: 0.1;
    }

    /* Hover State: Full opacity when hovering the SECTION container */
    /* Note: Parent section needs class 'gtm-hover-trigger' */
    .gtm-hover-trigger:hover .gtm-pill-nav,
    .gtm-hover-trigger:focus-within .gtm-pill-nav {
        border-color: #eee;
    }

    .gtm-hover-trigger:hover .gtm-pill-btn,
    .gtm-hover-trigger:focus-within .gtm-pill-btn {
        opacity: 1;
    }
}