.amenities{
 color:#fff; overflow:hidden;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.amenities .amenwrap{
  max-width:1400px; margin:0 auto; padding:56px 24px;
  display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:center;
}

/* ICONS */
.amenities .iconrow{
  display:flex; gap:28px; flex-wrap:wrap; margin:0 0 18px 0; align-items:start;
}
.amenities .ibox{
  width:140px; text-align:center;
  opacity:0; transform:translateY(24px);
  transition:transform .6s ease, opacity .6s ease; will-change:transform,opacity;
}
.amenities.show .ibox{ opacity:1; transform:none; }
.amenities .ibox img{ width:72px; height:72px; object-fit:contain; display:block; margin:0 auto 10px; background: #666; padding: 10px; border-radius: 50%; }
.amenities .ibox h4{ color:#c4ff63; margin:0 0 4px 0; font-size:16px; font-weight:700; }
.amenities .ibox p{ margin:0; font-size:13px; opacity:.95; color:rgba(255,255,255,.95); }

/* POINTS */
.amenities .points{
  list-style:none; margin:16px 0 0 0; padding:0;
  opacity:0; transform:translateY(24px);
  transition:transform .6s ease, opacity .6s ease; will-change:transform,opacity;
}
.amenities.show .points{ opacity:1; transform:none; }
.amenities .points li{
  margin:10px 0; padding-left:18px; position:relative; line-height:1.35; font-size:15px;
}
.amenities .points li::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:#c4ff63; position:absolute; left:0; top:7px;
  box-shadow:0 0 0 3px rgba(196,255,99,.15);
}

/* VIDEO */
.amenities .videowrap{
  opacity:0; transform:translateX(80px);
  transition:transform .8s ease, opacity .8s ease; will-change:transform,opacity; position:relative;
}
.amenities.show .videowrap{ opacity:1; transform:none; }
.amenities .holder,
.amenities .thumb{
  display:block; width:100%; border-radius:14px; outline:none; border:none;
  box-shadow:0 10px 28px rgba(0,0,0,.35); background:#111; position:relative; overflow:hidden;
}
.amenities .thumb{ padding:0; cursor:pointer; background:#000; }
.amenities .thumb img{ width:100%; height:auto; display:block; }
.amenities .playicon{
  position:absolute; inset:auto auto 16px 16px;
  background:rgba(0,0,0,.55); border:2px solid #c4ff63; color:#c4ff63;
  padding:8px 12px; border-radius:10px; font-weight:700;
}

/* Responsive */
@media (max-width: 980px){
  .amenities .amenwrap{ grid-template-columns:1fr; gap:28px; }
  .amenities .iconrow{ justify-content:flex-start; }
 
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .amenities .ibox, .amenities .points, .amenities .videowrap{
    transition:none !important; transform:none !important; opacity:1 !important;
  }
}

/* Screen-reader only */
.amenities .sronly{
  position:absolute!important; height:1px; width:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap;
}





/* testimonial Base Styling */
/* Base Styling */
.testimonialvideo {
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}

.testimonialwrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  
  gap: 15px;
  max-width: 1400px;  
  margin: 0 auto; 
  grid-template-rows: auto; 
  width: 100%; 
}

.testimonialitem {
  background-color: #1f2a38;
  border-radius: 10px;
  padding: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: creativeSlideIn 1s ease forwards;
  position: relative;
}

/* Animation for Testimonials */
.testimonialitem:nth-child(1) {
  animation-delay: 1s;
  transform: translateX(-100%) rotate(-10deg); /* First testimonial from the left with a rotation */
}

.testimonialitem:nth-child(2) {
  animation-delay: 0.4s;
  transform: translateX(-100%) scale(0.9); /* Second testimonial from the left with scale */
}

.testimonialitem:nth-child(3) {
  animation-delay: 0.6s;
  transform: translateX(100%) rotate(10deg); /* Third testimonial from the right with rotation */
}

.testimonialitem:nth-child(4) {
  animation-delay: 0.8s;
  transform: translateX(100%) scale(1.1); /* Fourth testimonial from the right with scale */
}

/* Creative Animation Keyframe */
@keyframes creativeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-10px) rotate(10deg); /* Bounce effect and rotation */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.videothumbnail {
  position: relative;
  margin-bottom: 15px;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

.videothumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.playbutton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 16px;
  border-radius: 4px; /* Square corners */
  cursor: pointer;
}

.playicon {
  color: #c4ff63;
  font-size: 24px;
  font-weight: bold;
}

/* Testimonial Content Styling */
.testimonialcontent {
  color: #fff;
  position: relative;
  top: 13px;
}

.quote {
  font-size: 40px;
  position: absolute;
  top: -21px;
  left: 10px;
  color: #c4ff63;
  font-weight: bold;
  opacity: 0.4;
}

.testimonialquote {
  font-size: 16px;
  font-style: italic;
  margin: 10px 0;
}

.testimonialname {
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
  position: relative;
  padding-top: 10px;
  border-top: 2px solid #c4ff63; /* Border above name */
}

.testimonialcourse {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
}

/* Join Community Button */
.joincommunity {
  background-color: #c4ff63;
  border: none;
  padding: 12px 30px;
  color: #0a1730;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .testimonialwrap {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .testimonialwrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonialitem {
    padding: 16px;
  }
}


/* Ensure the video area never collapses */
.amenities .videowrap .holder { aspect-ratio:16/9; min-height:220px; }
.amenities .videowrap .holder iframe { width:100%; height:100%; display:block; border:0; }



