/* Fix for the secondary button border disappearing on hover */
body .hero-cta .secondary-button {
    position: relative !important;
    z-index: 1000 !important;
    overflow: visible !important;
    border: 3px solid #7d3bed !important; /* Thicker solid border */
    background: white !important;
    color: #7d3bed !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 4px 8px rgba(0, 0, 0, 0.1) !important; /* Extra white outline and shadow */
    outline: none !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 15px 30px !important;
    margin: 5px !important;
    isolation: isolate !important; /* Create a new stacking context */
}

/* Enhance hover state with matching specificity */
body .hero-cta .secondary-button:hover {
    background-color: rgba(125, 59, 237, 0.1) !important;
    border: 3px solid #8845f4 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 8px 16px rgba(125, 59, 237, 0.25) !important;
    color: #8845f4 !important;
}

/* Fix z-index issues that could be causing visual problems */
.color-accent-indicator {
    z-index: -5 !important;
    pointer-events: none !important;
}

/* Ensure no overlapping elements are covering the button */
.hero-cta {
    position: relative !important;
    z-index: 5 !important;
    pointer-events: auto !important;
}

/* Custom button class for teacher button */
.fixed-teacher-button {
    position: relative !important;
    z-index: 1000 !important;
    overflow: visible !important;
    border: 3px solid #7d3bed !important;
    background-color: white !important;
    color: #7d3bed !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 15px 30px !important;
    margin: 5px !important;
    isolation: isolate !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
}

/* Extra strong hover state that can't be overridden */
.fixed-teacher-button:hover {
    background-color: rgba(125, 59, 237, 0.1) !important;
    border: 3px solid #8845f4 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 8px 16px rgba(125, 59, 237, 0.25) !important;
    color: #8845f4 !important;
    opacity: 1 !important;
    outline: none !important;
    text-decoration: none !important;
}

/* Override any other hover styles that might be interfering */
.hero-cta .fixed-teacher-button:hover,
.hero-animated .fixed-teacher-button:hover,
body .fixed-teacher-button:hover,
.hero-section .fixed-teacher-button:hover {
    border: 3px solid #8845f4 !important;
    background-color: rgba(125, 59, 237, 0.1) !important;
    background-image: none !important;
    background-clip: padding-box !important;
    background-origin: padding-box !important;
}
