/* -----------------------------------
   Pre Header Bar
----------------------------------- */
.pre-header {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.pre-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

/* -----------------------------------
   LEFT SIDE (Offer Text)
----------------------------------- */
.pre-left {
    font-size: 16px;
    font-weight: 700;
    color: #d62828;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* -----------------------------------
   CENTER (Phone + Email)
----------------------------------- */
.pre-center {
    display: flex;
    align-items: center;
}

.pre-center span {
    margin-right: 20px;
    color: #333;
}

.pre-center i {
    margin-right: 6px;
    color: #007bff;
}

.pre-center a {
    color: #333 !important;
    text-decoration: none;
    font-weight: 500;
}

.pre-center a:hover {
    text-decoration: underline;
}

/* -----------------------------------
   RIGHT SIDE (App Icons + Text)
----------------------------------- */
.pre-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pre-right a {
    color: #000 !important;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pre-right img {
    height: 26px;
    width: auto;
    transition: 0.3s;
}

.pre-right img:hover {
    transform: scale(1.08);
}

/* -----------------------------------
   MOBILE VIEW (ONLY OFFER TEXT)
----------------------------------- */
@media (max-width: 768px) {

    .pre-center,
    .pre-right {
        display: none !important;
    }

    .pre-header {
        padding: 8px 0;
    }

    .pre-header-inner {
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .pre-left {
        font-size: 15px;
        font-weight: 700;
    }
}


/* =====================================
   HERO SLIDER
===================================== */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f7ff;
}

/* Container */
.slider-container {
    position: relative;
}

/* =====================================
   SLIDES
===================================== */
.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

/* 🔥 IMPORTANT: NO IMAGE CUT */
.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;     /* KEY FIX */
    background: #f5f7ff;     /* fills empty space if any */
}

/* =====================================
   SLIDE CONTENT (OPTIONAL)
===================================== */
.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
}

/* =====================================
   ARROWS (RENAMED)
===================================== */
.slider-arrow {
    position: absolute;
    top: 50%;
    padding: 14px;
    font-size: 32px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-arrow.left { left: 20px; }
.slider-arrow.right { right: 20px; }


/* =====================================
   DOTS
===================================== */
.dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background: #d9d9d9;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background: #005eff;
}

/* =====================================
   MOBILE VIEW – NO CUT + APP STYLE
===================================== */
@media (max-width: 768px) {

    .hero-slider {
        margin-top: 8px;
        background: #f5f7ff;
    }

    .slider-container {
        padding: 0 12px;
    }

    /* Card look */
    .slide {
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        background: #f5f7ff;
    }

    /* 🔥 FULL IMAGE VISIBLE */
    .slide img {
        width: 100%;
        height: auto;          /* AUTO HEIGHT */
        object-fit: contain;   /* NO CUT */
        border-radius: 14px;
    }

    /* Hide arrows on mobile */
    .slider-arrow {
        display: none;
    }

    /* Dots below banner */
    .dots {
        position: relative;
        bottom: auto;
        margin-top: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    .dot.active {
        width: 10px;
        height: 10px;
    }
}


/* ===== Counter Section ===== */
.counter-section {
  padding: 50px 15px;
  background: #fff;
}

/* ===== Desktop Layout (UNCHANGED) ===== */
.counter-grid {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== Counter Card ===== */
.counter-card {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  padding: 10px 0;
}

/* ===== Icon ===== */
.icon-wrap {
  width: 65px;
  min-width: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrap img {
  width: 65px;
  height: auto;
  transition: transform 0.35s ease;
}

/* ===== Hover Zoom ===== */
.counter-card:hover .icon-wrap img {
  transform: scale(1.25);
}

/* ===== Text ===== */
.counter-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #000;
}

.counter-content p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #555;
}

/* ===== Tablet (OPTIONAL – same as before) ===== */
@media (max-width: 992px) {
  .counter-grid {
    justify-content: center;
  }
}

/* ===== MOBILE: 2 ITEMS PER ROW ===== */
@media (max-width: 576px) {
  .counter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .counter-card {
    width: 100%;
    gap: 12px;
  }

  .icon-wrap {
    width: 55px;
    min-width: 55px;
  }

  .icon-wrap img {
    width: 55px;
  }

  .counter-content h2 {
    font-size: 18px;
  }

  .counter-content p {
    font-size: 13px;
  }
}


.card-btns {
  display: flex;
  gap: 8px;
  margin-top: auto;   /* 🔥 buttons always bottom */
}

.btn-small {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 0;
  height: 30px;        /* 🔥 same button height */
  line-height: 30px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
}

.enroll-btn {
  background: linear-gradient(45deg, rgb(236,19,148), rgb(46,48,146));
}

.pay-btn {
  background: linear-gradient(45deg, rgb(236,19,148), rgb(46,48,146));
}

.course-section {
  padding: 50px 0;
  background: #f7faff;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1300px;
  margin: auto;
  padding: 0 15px;
}

.course-layout {
  display: flex;
  gap: 20px;
}

/* LEFT FILTER */
.course-filter {
  width: 240px;
  background: #fff;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.filter-item {
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  font-size: 14px;
}

.filter-item.active {
  background: linear-gradient(45deg, rgb(236,19,148), rgb(46,48,146));
  color: #fff;
}

/* SUB CATEGORY */
.sub-category-filter {
  display: none;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sub-cat {
  padding: 6px 14px;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.sub-cat.active {
  background: linear-gradient(45deg, rgb(236,19,148), rgb(46,48,146));
  color: #fff;
}

/* PROGRAM LEVEL */
.level-filter {
  display: none;
  gap: 30px;
  border-bottom: 1px solid #e5e5e5;
  margin-top: 20px;
  padding-bottom: 8px;
  margin-bottom: 25px;
}

.level-item {
  font-size: 14px;
  cursor: pointer;
  position: relative;
}

.level-item.active {
  color: rgb(236,19,148);
}

.level-item.active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background: rgb(236,19,148);
  border-radius: 50%;
}

/* GRID */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

/* CARD */
.course-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);

  /* 🔥 MAIN FIX */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card img {
  width: 40px;
  margin: 10px auto;   /* 🔥 center image */
  display: block;
}


/* 🔥 FIX TEXT JUMP */
.course-card p {
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;          /* equal text space */
  line-height: 1.4;
  margin-bottom: 10px;

  /* optional clamp (safe) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card button {
  width: 100%;
  background: linear-gradient(45deg, rgb(236,19,148), rgb(46,48,146));
  color: #fff;
  border: none;
  padding: 8px;
  font-size: 12px;
  border-radius: 20px;
  cursor: pointer;
}

/* BADGE */
.badge {
  position: absolute;
  top: -7px;
  left: -4px;
  font-size: 10px;
  background: #ffe8c7;
  padding: 3px 8px;
  border-radius: 20px;
}

.badge.green {
  background: #d7fbe8;
  color: #1b7f4a;
}


/* ========== MOBILE RESPONSIVE STYLES ========== */

@media (max-width: 768px) {
  .course-layout {
    flex-direction: column;
    gap: 15px;
  }
  
  .course-filter {
    width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 10px;
    padding: 15px;
    margin-bottom: 0;
    white-space: nowrap;
  }
  
  .filter-item {
    min-width: max-content;
    margin-bottom: 0;
    padding: 10px 15px;
    flex-shrink: 0;
  }
  
  .course-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .course-card {
    padding: 12px;
  }
  
  .course-card p {
    font-size: 12px;
    min-height: 36px;
  }
  
  .card-btns {
    flex-direction: column;
    gap: 6px;
  }
  
  .btn-small {
    height: 28px;
    line-height: 28px;
    font-size: 10px;
  }
  
  .sub-category-filter {
    overflow-x: auto;
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 15px;
  }
  
  .sub-cat {
    min-width: max-content;
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 12px;
  }
  
  .level-filter {
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 15px;
  }
  
  .level-item {
    flex-shrink: 0;
    font-size: 13px;
  }
  
  .level-item.active::after {
    bottom: -13px;
  }
}

@media (max-width: 480px) {
  .course-section {
    padding: 30px 0;
  }
  
  .course-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  
  .course-card {
    padding: 10px;
  }
  
  .course-card img {
    width: 35px;
    margin: 8px auto;
  }
  
  .course-card p {
    font-size: 11px;
    min-height: 34px;
  }
  
  .badge {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  .filter-item {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .btn-small {
    height: 26px;
    line-height: 26px;
    font-size: 9px;
  }
  
  .level-filter {
    gap: 15px;
  }
  
  .level-item {
    font-size: 12px;
  }
}

/* ========== MOBILE FILTER VISIBILITY ========== */
@media (min-width: 769px) {
  .sub-category-filter,
  .level-filter {
    display: none; /* Hidden on desktop as per original */
  }
}

@media (max-width: 768px) {
  .sub-category-filter,
  .level-filter {
    display: flex; /* Show on mobile */
  }
}

/* ========== TOUCH-FRIENDLY IMPROVEMENTS ========== */
.filter-item,
.sub-cat,
.level-item,
.course-card,
.btn-small {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.filter-item:active,
.sub-cat:active,
.course-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}


/* ========== LANDSCAPE OPTIMIZATION ========== */
@media (max-width: 768px) and (orientation: landscape) {
  .course-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
  
  .course-card p {
    font-size: 12px;
    min-height: 32px;
  }
}


	.service-cards-section {
  padding: 70px 0;
  background: #f5f5f5;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
}

.service-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.15)
  );
  z-index: 1;
}

.service-card:hover video {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.overlay h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.btn-red {
  background: #c8102e;
  color: #fff;
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: 0.3s;
}

.btn-red:hover {
  background: #a30d25;
  color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}




/* ======= Section Styling ======= */
.placed-students {
  background: rgb(243, 247, 253);
  background-image: url('images/background/pattern-6.png');
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.count-title { font-size: 90px; color: #0ea5e9; font-weight: 800; margin-bottom: 10px; }
.count-btn { background: #0ea5e9; color: #fff; padding: 12px 28px; border-radius: 8px; font-size: 20px; margin-bottom: 15px; }
.count-subtitle { font-size: 20px; opacity: 0.8; margin-bottom: 40px; }

/* ======= Carousel Rows ======= */
.carousel-wrapper { overflow: hidden; width: 100%; }
.carousel-row { display: flex; overflow: hidden; margin: 15px 0; white-space: nowrap; }
.carousel-row.reverse .carousel-track { animation-direction: reverse; }

/* ======= Animation ======= */
.carousel-track { display: flex; animation: scroll 26s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ======= Cards ======= */
.student-card {
  background: #fff;
  width: 150px;
  height: 185px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.student-img { width: 100%; height: 75%; object-fit: cover; }
.student-name { font-size: 14px; font-weight: 700; margin: 2px 0 0; color: #000; }
.student-course { font-size: 11px; color: #444; margin: 0; }

/* Responsive */
@media (max-width: 768px) {
  .count-title { font-size: 55px; }
  .student-card { width: 130px; height: 160px; }
}



	/* Floating Video Box */
.floating-video-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 160px;
    height: 240px;
    background: #f1f1f1;
    border: 4px solid #0055ff;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: popUp 0.4s ease;
}

.floating-video-box video {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}

/* Close Button */
.fv-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #0055ff;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Animation */
@keyframes popUp {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}



.wb-enroll-box {
    display: flex;
    align-items: center;
}

.wb-enroll-btn {
      background: linear-gradient(45deg, rgb(236,19,148), rgb(46,48,146));
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-block;
}

.wb-enroll-btn:hover {
      background: linear-gradient(45deg, rgb(46,48,146), rgb(236,19,148));

    color: #fff;
}


.refer-id-wrap {
		position: relative;
	}

	.refer-refresh {
		position: absolute;
		left: 200px;
		top: 10%;
		transform: translateY(-50%);
		background: transparent;
		border: none;
		font-size: 16px;
		color: #43c48c;
		cursor: pointer;
	}

	.refer-refresh:hover {
		color: #000;
	}




  /* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup Box */
.popup-box {
    background: #fff;
    width: 350px;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    animation: popupIn 0.3s ease;
}

/* Close Button */
.closePopup {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 25px;
    cursor: pointer;
    color: #333;
}

/* Heading */
.popup-box h2 {
    margin-bottom: 15px;
    font-size: 22px;
    text-align: center;
    color: #333;
}

/* Inputs */
#whatsappForm input,
#whatsappForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

#whatsappForm input:focus,
#whatsappForm textarea:focus {
    border-color: #888;
}

/* Gradient Submit Button */
.submitBtn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, rgb(236, 19, 148), rgb(46, 48, 146));
    color: #fff;
    border: none;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.submitBtn:hover {
    opacity: 0.9;
}

/* Popup animation */
@keyframes popupIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
