 /* ── CARD ────────────────────────────── */
 .block-aihero-card {
    position: relative;
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: 0;
    overflow: hidden;
    isolation: isolate;

    /* 🔥 สูงเต็มจอ */
    min-height: clamp(650px, 100dvh, 600px);
    background-color: #10081e;
}
@media (max-width: 768px) {
  .block-aihero-card {
    grid-template-columns: 1fr;
    min-height: auto; /* ❗ ปล่อยให้ content กำหนด */
    
  }
}	
  /* ── BACKGROUND LAYER ────────────────── */
  .block-aihero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    z-index: 0;
    
  }
  

  /* Atmospheric gradient overlay */
  .block-aihero-overlay {
    position: absolute;
    inset: 0;
    // background:
    //   linear-gradient(110deg,
    //     rgba(8,4,20,0.92) 0%,
    //     rgba(8,4,20,0.78) 42%,
    //     rgba(8,4,20,0.18) 72%,
    //     rgba(8,4,20,0.05) 100%
    //   ),
    //   radial-gradient(ellipse 60% 80% at 10% 50%, rgba(108,60,220,0.32) 0%, transparent 70%),
    //   radial-gradient(ellipse 40% 60% at 85% 20%, rgba(52,200,180,0.18) 0%, transparent 60%);
    z-index: 1;
  }

  /* Subtle top noise bar */
  .block-aihero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
  }

  /* Glowing orb accent */
  .block-aihero-orb {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112,63,228,0.22) 0%, transparent 70%);
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    filter: blur(30px);
  }

  /* ── CONTENT AREA ────────────────────── */
  .block-aihero-left {
    position: relative;
    height: 100%;
    z-index: 3;
    padding: 56px 48px;
  }

  /* Eyebrow label */
  .block-aihero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b59cff;
    margin-bottom: 20px;
    padding: 5px 14px;
    border: 1px solid rgba(161,128,255,0.28);
    border-radius: 999px;
    background: rgba(120,80,255,0.1);
    backdrop-filter: blur(8px);
  }
  .block-aihero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9d75ff;
    box-shadow: 0 0 0 3px rgba(157,117,255,0.28);
    animation: pulse-dot 2.4s ease-in-out infinite;
  }
  @keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(157,117,255,0.28); }
    50%       { box-shadow: 0 0 0 6px rgba(157,117,255,0.10); }
  }

  .block-aihero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
  }

  .block-aihero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(220,208,255,0.85);
    margin-bottom: 14px;
    font-style: italic;
   line-height: 1.65;
  }

  .block-aihero-description {
    font-size: 1.05rem;
    color: rgba(190,178,220,0.75);
    margin-bottom: 36px;
    line-height: 1.82;
    max-width: 480px;
  }

  /* ── DIVIDER ─────────────────────────── */
  .block-aihero-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, rgba(157,117,255,0.8), transparent);
    margin-bottom: 20px;
    border-radius: 2px;
  }

  /* ── ACTIONS ─────────────────────────── */
  .block-aihero-actions {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .block-aihero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(.22,.6,.36,1);
    position: relative;
    overflow: hidden;
  }

  
  /* ── RIGHT VISUAL ────────────────────── */
  .block-aihero-right {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 48px 40px 24px;
  }

  .block-aihero-right .hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
  }

 	.block-aihero-btn.primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;

  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;

  /* 👇 สำคัญ */
  border: 5px solid #ffffff;

  background:#8c52ff;

  box-shadow:
    0 0 0 2px rgba(255,255,255,0.6) inset, /* เส้นขาวด้านใน */
    0 6px 20px rgba(124, 69, 245, 0.5); /* glow */

  transition: all 0.25s ease;
}

  /* ── BORDER GLOW ─────────────────────── */
  .block-aihero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    
    border: 1px solid rgba(160,130,255,0.15);
    pointer-events: none;
    z-index: 10;
  }

  /* ── RESPONSIVE ──────────────────────── */
  @media (max-width: 768px) {
    .block-aihero-card {
      grid-template-columns: 1fr;
       min-height: 50vh;
    
    }
    .block-aihero-left {
      padding: 36px 28px 28px;
    }
    
    .block-aihero-overlay {
      background:
        linear-gradient(180deg,
          rgba(8,4,20,0.95) 0%,
          rgba(8,4,20,0.85) 55%,
          rgba(8,4,20,0.60) 100%
        ),
        radial-gradient(ellipse 80% 60% at 50% 10%, rgba(108,60,220,0.28) 0%, transparent 70%);
    }
   
  }