* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body.browse-body {
  background: #000;
  font-family: "Inter", sans-serif;
  padding: 4px;
  
}

.browse-container {
  background: #f3f4f6;
  border-radius: 25px;
  padding: 40px;
width: 95%;
margin-left: 35px;
}

.browse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.browse-header h2 {
  font-size: 32px;
  font-weight: 700;
}

.browse-header .close {
  font-size: 28px;
  cursor: pointer;
  opacity: 0.6;
}

.search-box {
  margin-top: 30px;
  background: #e5e7eb;
  padding: 18px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box:hover{
  border: 2px solid #9c69f4;
}

.search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 16px;
  outline: none;
}

.filters {
  margin-top: 20px;
  color: #8b4ef4;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 20px;
}


.filter-content {
  
  background: #f5f5f5;
  padding: 25px;
  border-radius: 12px;
  margin: 20px 0;
}

.filter-content h4 {
  margin-bottom: 15px;
  font-size: 20px;
}

.filter-buttons {
  display: flex;
  gap: 15px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid #ccc;
  background: white;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s ease;
}

.filter-btn.active {
  background: linear-gradient(45deg, #980ffa, #6a0dad);
  color: white;
  border: none;
}

.courses-wrapper {
  margin-top: 30px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
  overflow-y: scroll;
  height: 150px;
}


.pic-section{
    padding: 50px;
    background-color: #f7f9fa;
    
}


.pic h1{
    font-family: "Roboto", sans-serif;
    text-align: center;
    font-size: 40px;
}


.pic p{
    font-family: "Roboto", sans-serif;
    text-align: center;
    padding-top: 15px;
    font-size: 20px;
    color: grey;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}
#video-section {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 40px;
  background: #f3f4f6;
}

/* ================= CARD ================= */

.video {
  width: 320px;                /* fixed width makes perfect alignment */
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  position: relative;
}

.video:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* ================= IMAGE ================= */

.lite {
  position: relative;
  overflow: hidden;
}

.video img.dell {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: 0.4s ease;
}

.video:hover img {
  transform: scale(1.05);
}

/* Dark overlay */
.lite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: 0.3s ease;
}

.video:hover .lite::after {
  opacity: 1;
}

/* ================= PLAY BUTTON ================= */

.fa-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 60px;
  color: #980ffa;
  /* background: white; */
  padding: 18px;
  border-radius: 50%;
  transition: 0.3s ease;
  z-index: 2;
  cursor: pointer;
}

.video:hover .fa-play {
  transform: translate(-50%, -50%) scale(1);
}

/* ================= TEXT ================= */

.video h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 15px;
  color: #111827;
}

.video p {
  font-size: 14px;
  color: #6b7280;
  margin: 0 15px 10px 15px;
}

.flex {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  font-size: 13px;
  color: #6b7280;
}

/* ================= BUTTON ================= */

.enroll-btn {
  width: 85%;
  margin: 10px auto 20px auto;
  display: block;
  padding: 12px;
  background: #980ffa;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.enroll-btn:hover {
  background: #7c0ed1;
}

/* ================= ENROLLED BADGE ================= */

.enrolled-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #16a34a;
  color:white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ================= MODAL ================= */

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.video-modal iframe {
  width: 80%;
  height: 80%;
}

.video-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .video {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .video {
    width: 100%;
  }
}

.browse-footer {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.done-btn {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 992px) {

  .browse-container {
    /* padding: 25px; */
  }

  .video {
    width: 48%;
    margin-bottom: 20px;
  }

  .video-section,
  .live-section {
    justify-content: space-between;
  }

  .pic h1 {
    font-size: 30px;
  }

  .pic p {
    font-size: 16px;
  }

}


/* Mobile */
@media (max-width: 600px) {

  body.browse-body {
    padding: 0;
  }

  .browse-container {
    padding: 20px;
    padding-bottom: 10px;
    border-radius: 20;
    margin-left:2px;
    width: 100%;
  }

  .browse-header h2 {
    font-size: 22px;
  }

  .search-box {
    padding: 14px;
  }

  .video-section,
  .live-section {
    flex-direction: column;
    align-items: center;
  }

  .video {
    width: 100%;
    margin-bottom: 20px;
  }

  .video img.dell {
    height: 180px;
  }

  .pic-section {
    padding: 30px 15px;
  }

  .pic h1 {
    font-size: 24px;
  }

  .pic p {
    font-size: 15px;
  }

  .enroll-btn {
    width: 95%;
    margin-left: 10px;
  }

  .fa-play {
    font-size: 50px;
    left: 35%;
    top: 35%;
  }

  .filter-btn{
    width: 88px;
    padding: 10px;
    align-items: center;

  }

}
