/* ===============================
   REALTIME PAGE – SCOPED CSS
   NO HEADER / FOOTER CONFLICT
================================ */

/* ⚠️ NO body, NO *, NO :root HERE */

/* ---------- HERO SECTION ---------- */

.realtime-page .realtime-hero {
  width: 100%;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    135deg,
    #2d3e38 0%,
    #4a7c6a 50%,
    #9be6b4 100%
  );
  text-align: center;
  padding: 60px 20px;
}

.realtime-page .realtime-container {
  max-width: 900px;
}

.realtime-page .brand-logo img {
  width: 60px;
  margin-bottom: 5px;
}

.realtime-page .brand-name {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
}

.realtime-page .tagline {
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.8;
}

.realtime-page .realtime-title {
  font-size: 56px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.realtime-page .icon-glow {
  font-size: 40px;
  color: var(--brand-green);
  filter: drop-shadow(0 0 10px rgba(110, 231, 183, 0.6));
}

.realtime-page .hero-subtext {
  font-size: 42px;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.2;
}

/* ---------- HERO BUTTONS ---------- */

.realtime-page .hero-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.realtime-page .btn-hero {
  min-width: 180px;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid #fff;
  color: #fff;
}

.realtime-page .btn-hero.primary {
  background-color: rgba(255, 255, 255, 0.2);
}

.realtime-page .btn-hero.secondary {
  background-color: rgba(0, 0, 0, 0.1);
}

.realtime-page .btn-hero:hover {
  transform: translateY(-3px);
  background-color: white;
  color: #3e4d44;
}

/* =========================
   DEMO SLIDER SECTION (SCOPED)
========================= */

.realtime-page .demo-slider-section{
  padding: 70px 20px;
  background: #12171c; /* adjust if needed */
}

.realtime-page .demo-slider-wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: start;
}

/* Slider card */
.realtime-page .demo-slider{
  position: relative;
    min-height: 420px; 
  border-radius: 16px;
  background: #1a1f25;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  min-height: 360px;
}

/* Side green bars like screenshot */
.realtime-page .demo-slider::before,
.realtime-page .demo-slider::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 18px;
  background: rgba(120, 211, 154, .35);
  z-index: 1;
}
.realtime-page .demo-slider::before{ left: 0; }
.realtime-page .demo-slider::after{ right: 0; }

/* viewport */
.realtime-page .demo-viewport{
   height: 100%;
  position: relative;
  height: 100%;
  padding: 26px;
  z-index: 2;
}

.realtime-page .demo-track{
  position: relative;
  height: 100%;
  min-height: 360px; 
  border-radius: 14px;
  overflow: hidden;
}

.realtime-page .demo-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .35s ease, transform .35s ease;
}

.realtime-page .demo-slide.is-active{
  opacity: 1;
  transform: scale(1);
}

.realtime-page .demo-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* arrows */
.realtime-page .demo-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background .15s ease, transform .15s ease;
}
.realtime-page .demo-arrow:hover{ background: rgba(0,0,0,.55); }
.realtime-page .demo-arrow:active{ transform: translateY(-50%) scale(.97); }
.realtime-page .demo-arrow.left{ left: 10px; }
.realtime-page .demo-arrow.right{ right: 10px; }

/* dots */
.realtime-page .demo-dots{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.realtime-page .demo-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.realtime-page .demo-dot.is-active{
  background: #fff;
  transform: scale(1.25);
}


.Interest-btn{
 font-weight: 600;
padding: 10px;
color: white;
  background: linear-gradient(
    135deg,
    #2d3e38 0%,
    #4a7c6a 50%,
    #9be6b4 100%
  );
   border: 1px solid white;
   border-radius: 10px;
}

/* Book a demo card */
.realtime-page .book-demo{
  position: sticky;
  top: 18px;
  border-radius: 14px;
  padding: 14px;
}

.realtime-page .book-demo-inner{
  border-radius: 12px;
  background: #fff;
  color: #111;
  padding: 14px;
  text-align: center;
}

.realtime-page .book-demo-title{
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 800;
  color: #666;
  line-height: 1.2;
  margin-bottom: 10px;
}

.realtime-page .book-demo-text{
  font-size: 12px;
  line-height: 1.35;
  color: #444;
  margin-bottom: 12px;
}


/* responsive */
@media (max-width: 900px){
  .realtime-page .demo-slider-wrap{
    grid-template-columns: 1fr;
  }
  .realtime-page .book-demo{
    margin: 0 auto;
    position: relative;
    width: 50%;
    top: 0;
  }
  .realtime-page .demo-slider{
    min-height: 320px;
  }
}




/* ---------- YOUTUBE ---------- */

.realtime-page .yt-video {
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.realtime-page .yt-video iframe {
  max-width: 100%;
  border-radius: 16px;
}

/* ---------- INFO SECTION ---------- */

.realtime-page .info-section {
  padding: 100px 20px;
  text-align: center;
}

.realtime-page .display-heading {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 40px;
}

.realtime-page .sub-description {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
}
/* ---------- IMPACT SECTION ---------- */

.realtime-page .impact-section {
  padding: 80px 20px;
}

.realtime-page .impact-card {
  background: linear-gradient(135deg, #78a88e 0%, #a7d1b8 100%);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.realtime-page .impact-label {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.realtime-page .impact-title {
  font-size: 36px;
  font-weight: 900;
}

.realtime-page .stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
}

.realtime-page .stat-number {
  font-size: 56px;
  font-weight: 900;
}

/* ---------- ACTION BAR ---------- */

.realtime-page .action-bar {
  margin-top: 30px;
  background: linear-gradient(135deg, #406053 0%, #688a7a 100%);
  border-radius: 12px;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.realtime-page .btn-talk {
  background: linear-gradient(180deg, #d1f3e0 0%, #a7d1b8 100%);
  color: #2d3e38;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

/* ---------- EXPLORE SECTION ---------- */
/* ===========================
   FLOW TABS SECTION
=========================== */
/* =========================
   FLOW HORIZONTAL ACCORDION
========================= */

.explore-h1{
    margin-left: 30px ;
}
.flow-acc{
  max-width: 1400px;
  margin: 90px auto;
  padding: 0 20px;
  display: flex;
  gap: 18px;
  align-items: stretch;   /* important: same height */
}

/* each item */
.flow-item{
cursor: pointer; 
  flex: 1;                /* minimized */
  min-width: 92px;
  height: 560px;          /* fixed equal height */
  border-radius: 44px;
  overflow: hidden;
  display: flex;
 background: linear-gradient(
    135deg,
    #2d3e38 0%,
    #4a7c6a 50%,
    #9be6b4 100%
  );  transition: flex .35s ease;
}

.flow-item.active{
  flex: 7;                /* expanded */
}

/* left vertical tab */
.flow-tab{
flex: 0 0 92px;         /* ✅ fixed width */
  width: 92px; 

  min-width: 50px;
  border: 0;
  background: linear-gradient(135deg, #406053 0%, #688a7a 100%);
  color: #fff;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  padding: 22px 0;
  user-select: none;
}

.flow-no{
  font-size: 22px;
  font-weight: 900;
}

.flow-vert{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  opacity: .95;
}

/* content area (only visible when active) */
.flow-body{
  flex: 1;
  padding: 90px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;

  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity .25s ease, transform .25s ease;
}

.flow-item.active .flow-body{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* text */
.flow-text h2{
  font-size: clamp(34px,4vw,60px);
  font-weight: 900;
  color:#fff;
  line-height: 1.1;
  margin-bottom: 18px;
}

.flow-text p{
  color: rgba(255,255,255,.9);
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
  margin-bottom: 26px;
}

.flow-btn{
  display:inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #fff;
  color:#fff;
  font-weight: 800;
  text-decoration: none;
}
.flow-btn:hover{ background:#fff; color:#10b981; }

/* media */
.flow-media{
  background:#fff;
  padding: 16px;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  min-width: 0;
}

.flow-media img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 20px;
}

/* responsive */
@media (max-width: 1100px){

  /* container column */
  .flow-acc{
    flex-direction: column;
    align-items: stretch;
  }

  /* each item becomes "tab row" until opened */
  .flow-item{
    height: auto;
    border-radius: 22px;
    flex: none;
    overflow: hidden;
  }

  /* tab becomes horizontal bar */
  .flow-tab{
   
    display: flex;

    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;

    padding:0 18px;
  }

  .flow-vert{
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 14px;
  }

  /* ✅ default: content hidden on mobile */
  .flow-body{
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 24px 18px 26px;
    grid-template-columns: 1fr;
  }

  /* ✅ only active shows content */
  .flow-item.active .flow-body{
    display: grid;
  }

  /* optional: make active tab look stronger */
  .flow-item.active .flow-tab{
    filter: brightness(1.05);
  }
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .realtime-page .impact-card {
    grid-template-columns: 1fr;
  }

  .realtime-page .stats-grid {
    grid-template-columns: 1fr;
  }

  .realtime-page .faq-grid {
    grid-template-columns: 1fr;
  }

  .realtime-page .explore-card {
    min-width: 100%;
  }
}



/* ---------- FAQ ---------- */
.realtime-page .faq-subtitle{
  text-align:center;
  margin-top: 8px;
  opacity: .7;
}

.realtime-page .faq-grid{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;

}

.realtime-page .faq-item{
  background: #fff;
  border-radius: 16px;
  padding: 0;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* clickable question row */
.realtime-page .faq-question{
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #000000; /* gray text like screenshot */
  text-align: left;
}

.realtime-page .faq-icon{
  font-size: 28px;
  line-height: 1;
  color: #000000;
  display: inline-block;
  transform: translateY(-1px);
}

/* answer panel (collapsed by default) */
.realtime-page .faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 24px; /* keep horizontal padding even when closed */
}

.realtime-page .faq-answer p{
  margin: 0;
  padding: 0 0 22px;
  color: #111;
  font-size: 16px;
  line-height: 1.6;
}

/* open state */
.realtime-page .faq-item.active .faq-answer{
  max-height: 220px; /* enough for 2-4 lines; adjust if needed */
}

.realtime-page .faq-item.active .faq-question{
  color: #111;
}

/* when open, show X instead of + */
.realtime-page .faq-item.active .faq-icon{
  content: "×";
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .realtime-page .impact-card {
    grid-template-columns: 1fr;
  }

  .realtime-page .stats-grid {
    grid-template-columns: 1fr;
  }

  .realtime-page .faq-grid {
    grid-template-columns: 1fr;
  }

  .realtime-page .explore-card {
    min-width: 100%;
  }
}
