﻿*, *::before, *::after { box-sizing: border-box; }

  .idx-hero {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    background-color: #09090b;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
  }

  .idx-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  .idx-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);
    z-index: 1;
  }

  .idx-hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 3rem;
  }

  .idx-hero-inner {
    max-width: 48rem;
    text-align: center;
  }

  .idx-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
  }

  .idx-h1-gradient {
    display: inline-block;
    background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: idx-grad 3s linear infinite;
  }

  @keyframes idx-grad {
    0%, 100% { background-position: 0% center; }
    50%       { background-position: 200% center; }
  }

  .idx-hero-sub {
    font-size: 19px;
    color: rgba(255,255,255,0.7);
    letter-spacing: -0.01em;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
  }

  .idx-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* ── AnimatedButton — exact copy from index-04-education.html ── */
  @keyframes idx-edu-anim-transform {
    0%   { transform: translate(-55%); }
    100% { transform: translate(55%); }
  }
  @keyframes idx-edu-anim-opacity {
    0%, 100% { opacity: 0; }
    15%       { opacity: 1; }
    65%       { opacity: 0; }
  }

  .idx-edu-anim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 60px;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgb(26,26,26) 0%, rgb(10,10,10) 100%);
    box-shadow:
      0 8px 32px rgba(0,0,0,0.4),
      inset 0 1px 0 rgba(255,255,255,0.1),
      inset 0 -1px 0 rgba(0,0,0,0.5),
      0 0 20px rgba(244,63,94,0.1);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .idx-edu-anim-btn:hover {
    transform: translateY(-2px);
    box-shadow:
      0 12px 40px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,255,255,0.15),
      inset 0 -1px 0 rgba(0,0,0,0.6),
      0 0 30px rgba(244,63,94,0.2);
  }

  .idx-edu-anim-loader {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background: transparent;
    -webkit-mask: repeating-linear-gradient(
      90deg,
      transparent 0, transparent 6px,
      black 7px, black 8px
    );
    mask: repeating-linear-gradient(
      90deg,
      transparent 0, transparent 6px,
      black 7px, black 8px
    );
  }

  .idx-edu-anim-glow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
      radial-gradient(circle at 50% 50%, #f43f5e 0%, transparent 50%),
      radial-gradient(circle at 45% 45%, #f43f5e 0%, transparent 45%),
      radial-gradient(circle at 55% 55%, rgba(244,63,94,0.53) 0%, transparent 45%),
      radial-gradient(circle at 45% 55%, rgba(244,63,94,0.67) 0%, transparent 45%),
      radial-gradient(circle at 55% 45%, rgba(244,63,94,0.80) 0%, transparent 45%);
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0%, transparent 10%, black 25%);
    mask: radial-gradient(circle at 50% 50%, transparent 0%, transparent 10%, black 25%);
    animation: idx-edu-anim-transform 2s infinite alternate,
               idx-edu-anim-opacity   4s infinite;
    animation-timing-function: cubic-bezier(0.6,0.8,0.5,1);
    filter: drop-shadow(0 0 8px rgba(244,63,94,0.6));
  }

  .idx-edu-anim-text {
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    user-select: none;
    color: #fff;
    text-shadow:
      0 0 12px rgba(244,63,94,0.27),
      0 0 4px  rgba(244,63,94,0.13);
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  .idx-trust-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    letter-spacing: -0.01em;
  }
  .idx-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .idx-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
  }

  /* ── Bank carousel ── */
  .idx-banks {
    position: relative;
    z-index: 10;
    padding: 2rem 0 3rem;
  }
  .idx-banks-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
  }
  .idx-carousel-wrap {
    overflow: hidden;
    position: relative;
  }
  .idx-carousel-wrap::before,
  .idx-carousel-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 6rem;
    z-index: 2;
    pointer-events: none;
  }
  .idx-carousel-wrap::before {
    left: 0;
    background: linear-gradient(to right, #09090b, transparent);
  }
  .idx-carousel-wrap::after {
    right: 0;
    background: linear-gradient(to left, #09090b, transparent);
  }
  .idx-carousel-track {
    display: flex;
    animation: idx-scroll 30s linear infinite;
  }
  .idx-carousel-track:hover { animation-play-state: paused; }
  @keyframes idx-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .idx-bank {
    flex-shrink: 0;
    width: 10rem;
    height: 5rem;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .idx-bank img {
    max-height: 3.5rem;
    max-width: 100%;
    object-fit: contain;
  }

  .idx-hero-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220,38,38,0.3), transparent);
  }

  @media (max-width: 600px) {
    .idx-hero-content { padding-top: 6rem; }
    .idx-trust-row { gap: 1rem; }
  }