@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

:root {
  --color-primary: #0073ff;
  --color-white: #e9e9e9;
  --color-black: #7F7F7F;
  --color-black-1: #212b38;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0f0f0f;
  color: #000;
}

.menu-bar {
    background-color: var(--white);
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: relative;
  }
  .menu-bar ul {
    list-style: none;
    display: flex;
  }
  .menu-bar ul li {
    /* width: 120px; */
    padding: 10px 30px;
    /* text-align: center; */
    position: relative;
  }
  .menu-bar ul li a {
    font-size: 20px;
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s;
  }
  .menu-bar ul li a:hover {
    color: var(--blue);
  }
  .fas {
    float: right;
    margin-left: 10px;
    padding-top: 3px;
  }
  /* dropdown menu style */
  .dropdown-menu {
    display: none;
  }
  .menu-bar ul li:hover .dropdown-menu {
    z-index: 2;
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--white);
  }
  .menu-bar ul li:hover .dropdown-menu ul {
    display: block;
    margin: 10px;
  }
  .menu-bar ul li:hover .dropdown-menu ul li {
    width: 150px;
    padding: 10px;
  }
  .dropdown-menu-1 {
    display: none;
  }
  .dropdown-menu ul li:hover .dropdown-menu-1 {
    display: block;
    position: absolute;
    left: 150px;
    top: 0;
    background-color: var(--white);
  }

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button, input {
  outline: none;
  border: none;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background-color: #0f0f0f;
  box-shadow: 2px 2px 20px rgba(255, 151, 103, 0.164);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  height: 80px;
  padding: 2rem 3rem;
}

.logo img {
  height: 60px;
}

nav ul {
  display: flex;
}

nav ul li a {
  height: 40px;
  line-height: 43px;
  margin: 8px;
  padding: 0 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 400;
  color: #111;
  transition: 0.4s ease-in-out;
}

nav ul li a:hover {
  border-radius: 5px;
  background-color: #c00303;
  color: #fff;
  box-shadow: 5px 10px 30px rgba(219, 74, 6, 0.5);
}

.active {
  background-color: #750202;
  color: #fff;
}

.menu-btn {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.main {
  margin-top: 80px;
  width: 100%;
  height: 750px;
  background-image: url("pakcik11.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.home-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.home-img,
.about-img {
  width: 400px;
  height: auto;
  margin: 20px;
}

.home-img img,
.about-img img {
  width: 100%;
  object-fit: cover;
}

.home-text,
.about-text {
  max-width: 600px;
  text-align: center;
  margin: 20px;
}

.home-text h1,
.about-text h1 {
  font-size: 2.5rem;
  color: #22252e;
  text-shadow: 2px 2px #000000;
}

.home-text span,
.about-text span {
  color: #F14D5D;
  text-decoration: underline;
}

.home-text p,
.about-text p {
  font-size: 1rem;
  color: #777474;
}

.services-heading {
  text-align: center;
  margin: 50px 0 20px 0;
}

.services-heading h2 {
  font-size: 2rem;
  color: #c4c4c4;
}

.services-heading p {
  color: #777474;
  max-width: 600px;
  margin: 10px auto;
}

.box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.box {
  width: 300px;
  margin: 15px;
  padding: 20px;
  background: #fff;
  text-align: center;
  border-radius: 10px;
  box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.05);
}

.box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.box font {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #22252e;
  margin-top: 10px;
}

.box p {
  color: #777474;
  font-size: 1rem;
  margin: 10px 0;
}

.box a {
  display: inline-block;
  padding: 10px 15px;
  border: 2px solid #c00303;
  border-radius: 5px;
  color: #c00303;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.box a:hover {
  background-color: #c00303;
  color: #fff;
}

.about {
  padding: 50px 0;
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  min-height: 100vh;       /* full screen height */
}

.about-login {
  display: inline-block;
  background-color: #f54417;
  color: #fff;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 5px;
  text-transform: uppercase;
  box-shadow: 5px 10px 30px rgba(219, 74, 6, 0.5);
}

.about-login:hover {
  background-color: #F14D5D;
}

footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #ccc;
  margin-top: 50px;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li a {
    padding: 15px;
    border-top: 1px solid #eee;
  }

  .home-content,
  .about-content {
    flex-direction: column;
    text-align: center;
  }


  .services-heading p {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .box-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 15px 10px; /* smaller, equal padding */
    margin-left: 0;     /* make sure no left offset */
  }

  .box {
    flex: 0 0 80%;
    min-width: 260px;
    scroll-snap-align: start;
  }

  /* Hide scrollbar (optional) */
  .box-container::-webkit-scrollbar {
    display: none;
  }

  .box img {
    height: 160px; /* Slightly smaller for mobile */
  }
}


/* Avatar in navbar */
.user-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;   /* circle */
  object-fit: cover;
  cursor: pointer;
  display: inline-block;
}

/* Avatar in dropdown submenu */
.sub-menu .user-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ✅ Responsive avatar sizes */
@media (max-width: 768px) {
  .user-pic {
    width: 32px;
    height: 32px;
  }

  .sub-menu .user-info img {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 1200px) {
  .user-pic {
    width: 50px;
    height: 50px;
  }

  .sub-menu .user-info img {
    width: 70px;
    height: 70px;
  }
}


.counters {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  padding: 3em 2em;
  background: #750202;
  color: #fff;
  text-align: center;
}

.counters > div {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4em 2em;
}

.counter {
  position: relative;
}

.counter h1 h3 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.counter:not(:last-child)::after {
  content: ''; 
  background: #fff;
  position: absolute;
  width: 2px;
  height: 3em;
  top: 50%;
  transform: translateY(-50%);
  right: -1em;
}

/* Find this block in your style2.css and replace it: */
@media screen and (max-width: 900px) and (min-width: 501px) {
  .counters > div {
    grid-template-columns: repeat(4, 1fr) !important;
    
  
    min-width: 700px; 
    overflow-x: auto; 
    padding-bottom: 20px;
  }
  .counter:nth-child(2)::before{
   
  display: none;
  }
}

/* Find this block in your style2.css and replace it: */
@media screen and (max-width: 500px){
  .counters > div {
    grid-template-columns: repeat(4, 1fr) !important;
    min-width: 700px; 
    overflow-x: auto; /* Allow horizontal scrolling if necessary */
    padding-bottom: 20px; /* Space for the scrollbar */
    row-gap: 5em;
  }
  .counter:not(:last-child)::before{
    width: 90%;
    height: 2px;
    top: initial;
    right: initial;
    bottom: -3em;
    left: 50%;
    transform: translateX(-50%);
  }
}



.free-item{
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.free-item-image{
  width: 100%;
  height: auto;
}

.free-item-container{
  padding: 10px;
  text-align: center;
  display: flex;
}
.video-container {
  width: min(40vw, 170px); /* responsive but capped */
  aspect-ratio: 1 / 1; /* ensures perfect square */
  border-radius: 50%; /* makes it a circle */
  overflow: hidden;
  position: relative;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.feedback-wrapper {
  padding: 60px 20px;
  text-align: center;
}

.feedback-wrapper h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 40px;
}

.feedback-wrapper .highlight {
  color: red;
}

.video-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 10px;
  justify-content: center;
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}

.video-grid::-webkit-scrollbar {
  height: 8px;
}

.video-grid::-webkit-scrollbar-thumb {
  background: #c00303;
  border-radius: 4px;
}

.video-card {
  flex: 0 0 300px; /* video width */
  scroll-snap-align: start;
  border: 4px solid #c00303;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-card iframe {
  width: 100%;
  height: 530px; /* keep nice aspect on mobile */
  border: none;
}

@media (max-width: 768px) {
  .video-card {
    flex: 0 0 80%; /* make video big on small screens */
  }

  .video-grid {
  justify-content: flex-start;
}

  .video-card iframe {
    height: 400px;
  }
}


.testimonial-wrapper {
  text-align: center;
  padding: 60px 20px;
  background: #0f0f0f;
}

.testimonial-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #cfcfcf;
}

.testimonial-header .purple {
  color: #ff0000;
}

.testimonial-header p {
  color: #555;
  margin-bottom: 40px;
}

.testimonial-slide {
  max-width: 900px;       /* content width */
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.user-info img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.stars {
  color: #ffcc00;
  font-size: 1.2rem;
}



.feedback-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  margin-top: 60px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.feedback-gallery::-webkit-scrollbar {
  height: 8px;
}
.feedback-gallery::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.gallery-item {
  flex: 0 0 auto;
  width: 250px;
  height: 350px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* --- Testimonial Section --- */
.testimonial-section {
  background: #0f0f0f;
  padding: 60px 20px;
  text-align: center;
}

.testimonial-slider {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.swiper {
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  transition-timing-function: ease-in-out;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-card {
  background: #fff;
  color: #222;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 700px;
}

.swiper-pagination-bullet {
  background: #a020f0;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #ff0077;
}

@media (max-width: 768px) {
  .box-container {
    flex-wrap: nowrap;
    justify-content: flex-start; /* ✅ force start alignment */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10px;
    gap: 15px;
    padding: 15px 10px;
    margin-left: 0;
  }

  .box {
    flex: 0 0 80%;
    min-width: 260px;
    scroll-snap-align: start;
  }

  .box-container::-webkit-scrollbar {
    display: none;
  }

  .box img {
    height: 160px;
  }
}

/* --- Hero Section (Landing Page Style) --- */
.hero {
  margin-top: 80px;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-top {
  background: #ff0000;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 20px;
}

.hero-top .highlight {
  color: #fff900;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 60px 40px;
  background-image: url('bg1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh; /* allows full height if needed, but not forced */
  height: auto;      /* grows naturally with content */
}


.hero-text {
  max-width: 600px;
  text-align: left;
}

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.5;
  font-weight: 700;
  color: #f0f0f0
}

.hero-text mark {
  background: #fff900;
  color: #000;
  padding: 0 4px;
  font-weight: 700;
}

.hero-subtext {
  margin-top: 20px;
  font-size: 1rem;
  color: #f0f0f0
}

.cta-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 15px 30px;
  background: #ff0000;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 6px 15px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.cta-btn:hover {
  background: #b30000;
}

.hero-image img {
  width: 400px;
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .hero-image img {
    width: 300px;
    margin-bottom: 20px;
  }
}

/* --- Countdown Row Layout (Desktop) --- */
.countdown-row {
  display: flex; /* Activate Flexbox for the three-column layout */
  justify-content: center;
  align-items: flex-start; /* Align elements to the top */
  width: 100%; /* Ensure it does not exceed viewport width */
  margin: 40px auto;
  padding: 0 20px;
}

.side-image {
  flex-shrink: 0;
  text-align: center;
}

.side-image img {
  width: 100%;
  height: auto;
  display: block;
}

.countdown-center {
  flex-grow: 1; /* Allows the center content to take up available space */
  max-width: 700px; /* Maximum content width for readability on wide screens */
  margin: 0 20px;
}

.countdown-center .container {
  width: 100%;
}


/* --- Mobile View Fix (@media) --- */
@media (max-width: 768px) {
  /* 1. Stack the columns vertically and remove side images */
  .countdown-row {
    flex-direction: column; /* Stacks the side-image and countdown-center elements */
    padding: 0 10px;
    margin-top: 20px;
  }

  /* Hiding decorative side images is the most common and effective way to fix overflow */
  .side-image {
    display: none;
  }

  /* Ensure center content uses full available mobile width */
  .countdown-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* 2. Fix the nested "free item" rows */
  .free-item-container {
    align-items: center;
    text-align: center;
    padding: 10px 0;
  }

  .free-item-details {
    /* Add some space above the text when stacked */
    margin-top: 10px; 
  }

  /* 3. Ensure the main body itself cannot overflow */
  body {
    overflow-x: hidden;
  }
}

/* From Uiverse.io by cssbuttons-io */ 
.btn {
  position: relative;
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.5em;
  display: inline-block;
  cursor: pointer;
  border-radius: 6em;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  font-weight: 500;
  color: #f0f0f0;
}

.btn:hover {
  background-color: #ff1e1e;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
}

.btn::after {
  background-color: #fff;
}

.btn:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

/* --- Dashboard Main 3-Column Layout --- */
.dashboard-wrapper {
    padding: 120px 2% 50px; /* Offset for your fixed navbar */
    max-width: 1400px;
    margin: 0 auto;
}

.welcome-header {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.welcome-header h1 {
    font-size: 2.5rem;
}

.welcome-header p {
    color: #cfcfcf;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr; /* This gives the news column more room! */
    gap: 20px;
    align-items: start;
}

.dash-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.dash-card h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    text-align: center;
}

.dash-card .highlight {
    color: #ff0000;
}

/* Center Card: Setup Image */
.setup-image-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ff0000;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}

.setup-img {
    width: 100%;
    height: auto;
    display: block;
}

.setup-actions {
    text-align: center;
}

.setup-actions p {
    color: #cfcfcf;
    margin-bottom: 20px;
}

/* Right Card: Class List */
.class-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for classes */
.class-list::-webkit-scrollbar {
    width: 6px;
}
.class-list::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

.class-item {
    display: flex;
    align-items: center;
    background: #252525;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, background 0.2s;
}

.class-item:hover {
    background: #333;
    transform: translateX(5px); /* Slide slightly right on hover */
    border-left: 4px solid #ff0000;
}

.class-icon {
    background: #ff0000;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

.class-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.class-info span {
    font-size: 0.8rem;
    color: #999;
}

/* Widget Container */
.widget-container {
    border-radius: 8px;
    overflow: hidden;
}

/* --- Mobile Responsive Rules --- */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Stack everything into one column on smaller screens */
    }
    .setup-image-container {
        max-width: 600px;
        margin: 0 auto 20px auto;
    }
}

/* --- Profile Dropdown Menu Fix --- */
.sub-menu-wrap {
    position: absolute;
    top: 80px; /* Aligns just under the navbar */
    right: 5%;
    width: 320px;
    max-height: 0px; /* Hides it initially */
    overflow: hidden;
    transition: max-height 0.5s;
    z-index: 100;
}

.sub-menu-wrap.open-menu {
    max-height: 400px; /* Opens the menu when clicked */
}

.sub-menu {
    background: #1a1a1a;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.sub-menu hr {
    border: 0;
    height: 1px;
    width: 100%;
    background: #333;
    margin: 15px 0;
}

.sub-menu-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ccc;
    margin: 12px 0;
    transition: color 0.3s;
}

.sub-menu-link p {
    width: 100%;
    margin: 0;
}

.sub-menu-link img {
    width: 40px;
    background: #333;
    border-radius: 50%;
    padding: 8px;
    margin-right: 15px;
}

.sub-menu-link span {
    font-size: 22px;
    transition: transform 0.3s;
}

.sub-menu-link:hover {
    color: #ff0000;
}

.sub-menu-link:hover span {
    transform: translateX(5px);
}