@use "../../../../styles/abstracts/variables" as * ; 

.course__testi {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;


       // Hover effect
       &:hover {
        transform: translateY(-2px);
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(255, 122, 0, 0.2); // subtle orange shadow
    }

    // Orange overlay
    &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 122, 0, 0); // fully transparent initially
        transition: background 0.3s ease;
        pointer-events: none;
        z-index: 1;
        border-radius: 10px;
    }

    &:hover::after {
        background: rgba(255, 122, 0, 0.05); // soft orange tint on hover
    }

     // Prevent card hover when button is hovered (Chrome/Safari only)
  &:has(button:hover),
  &:has(.button:hover) {
    transform: none;
    box-shadow: none;

    &::after {
      background: rgba(255, 122, 0, 0); // remove overlay
    }
  }
}