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

.course__faq {
    background: #1a1a1a;
    display: grid;
    grid-gap: 20px;
    align-items: center;
    padding: 1.5rem 1.5rem;
    border-radius: 6px;
    position: relative;
    margin-bottom: 1rem;
    // border-left: 1px solid $col-orange;
    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
    }
  }

    span {
        position: absolute;
        height: 1.2rem;
        width: 1.2rem;
        border-radius: 50px;
        background: $col-orange;
        right: 1rem;
        top: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        color: $col-dark;
        font-weight: 500;
    }
}