@charset "utf-8";
/* CSS Document */
 /* Root banner container (must be .banner) */
  .banner {
    width: 100%;
    max-width: 1200px;            /* keep banner up to 1200px wide */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    /* maintain 1200 x 500 aspect ratio on wide screens */
    aspect-ratio: 1200 / 500;
    background: #000;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }

  /* For older browsers that don't support aspect-ratio, fallback:
     uncomment if needed:
  .banner {
    height: 0;
    padding-top: calc(500 / 1200 * 100%); 
  }
  */

  /* Slide (absolute full size). Use background-image for each slide. */
  .banner__slide {
    position: absolute;
    inset: 0;                     /* top:0; right:0; bottom:0; left:0 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    will-change: opacity;
    /* Each slide will animate using the same keyframe, delays set below */
    animation: banner-fade 12s infinite;
  }

  /* Example animation: each slide visible ~4s, with soft fade transitions */
  @keyframes banner-fade {
    0%   { opacity: 0; }
    8%   { opacity: 1; }   /* fade in quickly */
    33%  { opacity: 1; }   /* hold */
    41%  { opacity: 0; }   /* fade out */
    100% { opacity: 0; }
  }

  /* Stagger the slides — adjust delays if you change animation length */
  .banner__slide:nth-child(1){ animation-delay: 0s; }
  .banner__slide:nth-child(2){ animation-delay: 4s; }
  .banner__slide:nth-child(3){ animation-delay: 8s; }

  /* Content overlay for logo / tagline / CTA */
  .banner__content {
    position: absolute;
    right: 24px;                 /* keep content on right side */
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 42%;
    padding: 18px 20px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
    color: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    box-sizing: border-box;
  }

  .banner__title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 600;
  }

  .banner__tag {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
  }

  /* Add subtle left-side logo area (optional) */
  .banner__logo {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 4;
    height: 48px;
    width: auto;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .banner__logo img {
    height: 48px;
    width: auto;
    display: block;
  }

  /* Small screens adjustment */
  @media (max-width: 640px) {
    .banner { aspect-ratio: auto; height: 220px; } /* smaller height on mobile */
    .banner__content {
      right: 12px;
      left: 12px;
      top: auto;
      bottom: 12px;
      transform: none;
      max-width: calc(100% - 24px);
      padding: 12px;
    }
    .banner__title { font-size: 16px; }
    .banner__tag { font-size: 12px; }
    .banner__logo { left: 12px; top: 12px; }
    .banner__logo img { height: 40px; }
  }

  /* Accessibility: pause animation on hover/focus */
  .banner:hover .banner__slide,
  .banner:focus-within .banner__slide {
    animation-play-state: paused;
  }

