/* =========================================================
   INDEX PAGE ONLY (index.php) - CLEAN + SCOPED
========================================================= */

/* Banner */
.idx-banner{
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.idx-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.idx-slide.is-active{
  opacity: 1;
}

.idx-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Banner dots */
.idx-dots{
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.idx-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.55);
  transition: transform .2s ease, background .2s ease;
}

.idx-dot.is-active{
  background: rgba(255,255,255,.95);
  transform: scale(1.25);
}

/* Services slider */
.idx-services{
  padding: 30px 0 10px;
}

.idx-services-wrap{
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 56px; /* space for arrows */
}

.idx-viewport{
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}

.idx-track{
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
  padding: 10px 0;
  transition: transform .45s ease;
  will-change: transform;
}

.idx-card{
  flex: 0 0 calc((100% - (25px * 3)) / 4); /* 4 visible */
  max-width: calc((100% - (25px * 3)) / 4);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.idx-cardbox{
  width: 100%;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.idx-img{
  height: 100%;
  overflow: hidden;
}

.idx-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  filter: brightness(1);
  transition: transform .35s ease, filter .35s ease;
}

.idx-cardbox:hover .idx-img img{
  transform: scale(1.08);
  filter: brightness(1.25);
}

.idx-content{
  margin-top: 10px;
  height: 35%;
  padding: 12px;
}

.idx-content h3{
  margin: 0 0 6px;
  color: #00c3ff;
  font-size: 16px;
  font-weight: 800;
}

.idx-content h4{
  margin: 0 0 8px;
  color: rgba(125, 197, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
}

.idx-content p{
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.5;
}

/* arrows */
.idx-arrow{
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;

  background: rgba(90,200,255,.90);
  color: #000;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  z-index: 20;
}

.idx-arrow.prev{ left: 10px; }
.idx-arrow.next{ right: 10px; }

.idx-arrow.prev::before{ content: "\276E"; }
.idx-arrow.next::before{ content: "\276F"; }

.idx-arrow:disabled{
  opacity: .35;
  cursor: not-allowed;
}

/* Videos */
.idx-videos{
  padding: 40px 0 70px;
}

.idx-video-grid{
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.idx-video{
  width: 23%;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: transform .3s ease, box-shadow .3s ease;
}

.idx-video video{
  width: 100%;
  border-radius: 12px;
  outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.idx-video h4{
  margin-top: 10px;
  font-size: 15px;
}

.idx-video h4 a{
  text-decoration: none;
  color: #008cffff;
  transition: color .3s ease;
}

.idx-video h4 a:hover{ color:#00c3ffff; }

.idx-video:hover{ transform: translateY(-8px); }
.idx-video:hover video{ box-shadow: 0 10px 26px rgba(0,0,0,.25); }

/* Responsive */
@media (max-width: 900px){
  .idx-card{
    flex: 0 0 calc((100% - 25px) / 2);
    max-width: calc((100% - 25px) / 2);
  }
  .idx-services-wrap{ padding: 0 48px; }
  .idx-video{ width: 48%; }
  .idx-banner{ height: 360px; }
}

@media (max-width: 520px){
  .idx-card{
    flex: 0 0 100%;
    max-width: 100%;
  }
  .idx-video{ width: 100%; }
  .idx-banner{ height: 280px; }
}


/* =========================================================
   GLOBAL FONT ROLES (automatic)
========================================================= */
h1, h2, h3{
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700; /* bold */
}

h4, h5, h6{
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500; /* medium */
}

p, blockquote, .quote{
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 400; /* normal */
}


.site-header{
  position: relative;
  z-index: 99999;
}
