Conditional card with 2 conditions

Hi I have card defined like that:

- type: conditional
    conditions:
      - condition: and
        conditions:
          - condition: state
            entity: sun.sun
            state: below_horizon
    card:
      type: custom:timer-bar-card
      entities:
        - entity: sun.sun
          name: Light
          icon: mdi:lamp
          active_state: below_horizon
          duration:
            fixed: "00:05:00"
          translations:
            below_horizon: " "

I want to add another condition to make it TRUE only for 5 min.
adding offset: '00:05:00' doesn't work.
Can anyone help me with my problem.
I want that card to be visible only for 5 min after sunset
Thank You!

I'd probably make a simple automation that turns an input_boolean on for 5 minutes when the sun is below the horizon and use the state of the input_boolean for the card's visibility.

I haven't tested this but below are the binary states minute by minute as the sun sets. I always get the offsets +/- wrong but hopefully it will point you in the right direction.

sunset                               v
Sun above horizon          1 1 1 1 1 0 0 0 0 0 0 0

Sun above horizon +5min    1 1 1 1 1 1 1 1 1 1 0 0
Sun below horizon          0 0 0 0 0 1 1 1 1 1 1 1

So in theory if you AND's the last two together you should get what you want? I used the clock card as an example.

type: conditional
conditions:
  - condition: state
    entity: sun.sun
    state: below_horizon
  - condition: state
    entity: sun.sun
    state: above_horizon
    offset: "00:05:00"
card:
  type: clock