/* TISEPSE Reveal Button - Final Version */
/* Exactly matching the horizontal line to rectangle stroke behavior */

.btn-tisepse {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 1.5vw, 12px) clamp(15px, 3vw, 30px);
    border: none;
    text-transform: uppercase;
    color: #fefefe;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.2vw, 1.1rem);
    transition: 0.3s;
    background-color: transparent !important;
    cursor: pointer;
    white-space: nowrap;
    /* Start with just a bottom border (the "simple white line") */
    border-bottom: clamp(1.5px, 0.2vw, 2.5px) solid #fefefe;
}

/* Base style for the other three sides (Top, Left, Right) */
.btn-tisepse::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Only show edges, no fill */
    border: 2px solid #fefefe;
    border-bottom: none;
    /* Bottom is already handled by the parent */

    /* Start hidden: scaled and invisible */
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: 0.3s ease-out;
    pointer-events: none;
}

.btn-tisepse span {
    position: relative;
    z-index: 3;
}

/* Hover and Active states: Reveal the full rectangle stroke */
.btn-tisepse:hover::before,
.btn-tisepse.active::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Change color to brand emerald only on active state, and maintain the rectangle */
.btn-tisepse.active {
    color: #097969 !important;
    border-bottom-color: #097969 !important;
}

.btn-tisepse.active::before {
    border-color: #097969 !important;
    border-bottom: none;
}

/* Ensure no background fill on any state */
.btn-tisepse:hover,
.btn-tisepse.active {
    background-color: transparent !important;
}