body {
  background: #181818 !important;
}
html {
  background: #181818 !important;
}
.navbar {
  background: #181818 !important;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 50px auto 0;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: rgba(60, 60, 60, 0.5);
  border-radius: 40px;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(80, 80, 80, 0.5);
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  background-color: rgba(70, 70, 70, 0.6);
  border-color: rgba(100, 100, 100, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-right: 15px;
  opacity: 0.8;
  color: #e0e0e0;
}

.search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  width: 100%;
  outline: none;
  padding: 0;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.search-input::placeholder {
  color: #aaaaaa;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .search-bar {
    padding: 10px 16px;
  }

  .search-input {
    font-size: 16px;
  }

  .search-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
  }
}

/**
cards
 */

/* Main card container */
.card-container {
  width: 100%;
  max-width: 525px; /* Fixed width as specified */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Image container */
.card-image {
  width: 100%;
  height: 300px; /* Fixed height as specified */
  position: relative;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* Card info section */
.card-info {
  background-color: #2a2a2a;
  padding: 24px;
  position: relative;
}

/* Title styling */
.card-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

/* Tags container */
.card-tags {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Individual tag styling */
.tag {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Time indicator */
.time-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 500;
}

/* Clock icon */
.clock-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Hover effects */
.card-container:hover .card-image img {
  transform: scale(1.05);
}

/* Comprehensive responsive adjustments */
@media (max-width: 768px) {
  .card-title {
    font-size: 16px;
  }

  .card-info {
    padding: 16px;
  }

  .tag {
    padding: 6px 16px;
    font-size: 12px;
  }

  .time-indicator {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .card-container {
    max-width: 100%;
  }

  .card-image {
    height: 250px;
  }

  .card-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .card-tags {
    flex-wrap: wrap;
  }
}

@media (max-width: 375px) {
  .card-image {
    height: 200px;
  }

  .card-info {
    padding: 12px;
  }

  .time-indicator {
    margin-top: 10px;
    margin-left: 0;
  }

  .card-tags {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .time-indicator {
    align-self: flex-end;
    position: absolute;
    bottom: 12px;
    right: 12px;
  }
}

/* category details */
.category-container {
  position: relative;
  width: 100vw;
  height: 100vh;

  overflow: hidden;
  display: flex;
}

.category-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.category-background-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
}

.category-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.category-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px;
  height: 100%;
}

.category-back-button {
  background-color: rgba(30, 30, 30, 0.7);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 5%;
}

.category-back-icon {
  margin-right: 8px;
}

.category-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: bold;
  max-width: 40%;
  margin-bottom: 20px;
  line-height: 1.2;
}

.category-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.category-tag {
  background-color: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
}

.category-time {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.category-clock-icon {
  margin-right: 6px;
}

.category-description {
  max-width: 40%;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5%;
  margin-top: 20px;
}

.category-action-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 5%;
}

.category-watch-button {
  background-color: white;
  color: black;
  border: none;
  width: 15%;
  border-radius: 10px;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-play-icon {
  margin-right: 10px;
}

.category-watchlist-button {
  background-color: rgba(30, 30, 30, 0.7);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Create a gradient overlay effect */
.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.99) 40%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 65%);
  z-index: 2;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .category-title, .category-description, .category-action-buttons {
    max-width: 80%;
  }

  .category-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.5) 100%);
  }
}

@media (max-width: 480px) {
  .category-title, .category-description, .category-action-buttons {
    max-width: 100%;
  }

  .category-content {
    padding: 20px;
  }

  .category-overlay {
    background: linear-gradient(rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.7) 100%);
  }
}

/* Expert Card */
.expert-card {
  display: flex;
  background-color: #2A2A2A;
  border-radius: 8px;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
}

.expert-image-container {
  flex: 1;
  max-width: 280px;
}

.expert-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-content {
  flex: 1.5;
  padding: 30px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.expert-doctor-name {
  font-size: 14px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.expert-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.expert-specialty {
  background-color: #333333;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.expert-duration {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #b0b0b0;
  font-size: 14px;
}

.expert-clock-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #b0b0b0;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.expert-clock-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 1px;
  background-color: #b0b0b0;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: left;
}

.expert-clock-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 1px;
  background-color: #b0b0b0;
  transform: translate(-50%, -50%) rotate(-60deg);
  transform-origin: left;
}

@media (max-width: 700px) {
  .expert-card {
    flex-direction: column;
  }

  .expert-image-container {
    max-width: 100%;
    height: 250px;
  }
}

/* expert nav */
.expert-nav-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.expert-nav-button {
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s, color 0.3s;
}

.nav-button-active {
  background-color: #F78501;
  color: white;
}

.nav-button-inactive {
  background-color: #2A2A2A;
  color: #d0d0d0;
  border: 1px solid #444;
}

.nav-button-inactive:hover {
  background-color: #3a3a3a;
}

/* expert details */
.expert-profile-card {
  display: flex;
  max-width: 100%;
  margin: 0 0 60px auto;
  align-items: flex-start;
  gap: 50px;
}

.expert-image {
  flex: 0 0 auto;
  width: 25%;
  border-radius: 15px;
  overflow: hidden;
}

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

.expert-info {
  flex: 1;
  padding-top: 15px;
}

.expert-specialty-details {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 25px;
  border: 1px solid white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
}

.expert-name {
  font-size: 25px;
  font-weight: 600;
  margin: 10px 0 20px;
}

.expert-bio {
  font-size: 16px;
  line-height: 1.6;
  color: #a0a0a0;
  max-width: 90%;
}

@media (max-width: 768px) {
  .expert-profile-card {
    flex-direction: column;
  }

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

/* Onboarding form*/
.onboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

.onboard header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  background: transparent!important;
}

.onboard-logo {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-align: center;
  flex-grow: 1;
}

.onboard-skip-button {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.onboard-skip-button:hover {
  background-color: #444;
}

.onboard-previous-button {
  color: white;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: opacity 0.3s;
}

.onboard-previous-button:hover {
  opacity: 0.8;
}

.onboard-progress-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 60px 0;
  width: 50%;
  max-width: 400px;
}

.onboard-progress-step {
  height: 4px;
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: background-color 0.3s;
}

.onboard-progress-step.active {
  background-color: #F78501;
}

.onboard main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
  box-sizing: border-box;
}

.onboard h1 {
  font-size: 2.4rem;
  margin-bottom: 30px;
  text-align: center;
}

.onboard h2 {
  font-size: 1.5rem;
  margin: 25px 0;
  text-align: center;
}

.onboard p {
  text-align: center;
  margin-bottom: 20px;
}

.onboard-form-section {
  width: 100%;
  display: none;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboard-form-section.active {
  display: block;
  background-color: transparent!important;
}

.onboard-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.onboard-options-grid.multi {
  grid-template-columns: repeat(3, 1fr);
  width: max-content !important;
  margin-left: -30px!important;
}

.onboard-option-button {
  background-color: #2A2A2A;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 20px 20px 20px 40px;
  cursor: pointer;
  text-align: start;
  transition: all 0.3s;
  font-size: 1rem;
  font-weight: 500;
}

.onboard-option-button.selected {
  background-color: #F78501;
  transform: translateY(-2px);
}

.onboard-finish-button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.onboard-finish-button {
  background-color: #666;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  min-width: 150px;
}

.onboard-finish-button:not([disabled]):hover {
  background-color: #ff9922 !important;
  transform: translateY(-2px);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .onboard-logo {
    font-size: 1.8rem;
  }

  .onboard-progress-bar {
    width: 80%;
  }

  .onboard h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .onboard h2 {
    font-size: 1.3rem;
  }

  .onboard-options-grid.multi {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .onboard header {
    padding: 15px;
  }

  .onboard-logo {
    font-size: 1.6rem;
  }

  .onboard-skip-button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .onboard-previous-button {
    font-size: 0.9rem;
  }

  .onboard-progress-bar {
    width: 90%;
    margin: 15px 0;
  }

  .onboard h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .onboard h2 {
    font-size: 1.2rem;
  }

  .onboard-options-grid.multi {
    grid-template-columns: 1fr;
  }

  .onboard-option-button {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .onboard-finish-button {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 360px) {
  .onboard-logo {
    font-size: 1.4rem;
  }

  .onboard-skip-button {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .onboard h1 {
    font-size: 1.4rem;
  }

  .onboard h2 {
    font-size: 1.1rem;
  }

  .onboard-option-button {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

/* Accessibility improvements */
.onboard-option-button:focus, .onboard-skip-button:focus, .onboard-previous-button:focus, .onboard-finish-button:focus {
  outline: 2px solid #F78501;
  outline-offset: 2px;
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
  .onboard body {
    background-color: #181818 !important;
  }

  .onboard-option-button {
    background-color: #2a2a2a;
  }

  .onboard-option-button:hover {
    background-color: #3a3a3a;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .onboard-option-button:hover {
    transform: none;
  }

  .onboard-finish-button:hover {
    transform: none;
  }
}

.mt-8rem {
 margin-top: 8rem !important;
}

/*home nav*/
.home-navbar-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-right: 14%;
  padding-bottom: 5rem;
}

.home-nav-item {
  background-color: #2A2A2A;
  border-radius: 8px;
  padding: 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease;
  cursor: pointer;
  height: 300px;
}

.home-nav-item:hover {
  transform: translateY(-5px);
  background-color: #2a2a2a;
}

.home-icon-container {
  margin-bottom: 15px;
}

.home-nav-title {
  font-size: 24px;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-navbar-container {
    flex-direction: column;
    gap: 15px;
  }

  .home-nav-item {
    padding: 25px 15px;
  }

  .home-nav-title {
    font-size: 20px;
  }
}

/* menu */
.iq-nav-menu > li > a {
  font-size: 1.2rem;
  letter-spacing: 0!important;
}

.detail-page-banner {
  position: relative;
  display: none;
}

.video-back-button {
  position: absolute;
  z-index: 9999;
  top:1rem;
  right: 1rem;
}

/* pin input */
.pin-input {
  gap: 10px;
  padding: 30px!important;
  background-color: #fff;
  border: 1px solid #F78501;
  text-align: center;
  font-size: 40px;
  color: #000;
  text-transform: uppercase;
}

#header-menu a.menu_active {
  color: #F78501!important;
}

/* Blur effect for page content */
.blur-content {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

/* Modal backdrop styling */
.modal-backdrop {
  opacity: 0.7 !important;
}

.section-bg {
  background: #212121 !important;
}

#changeUserPassword input {
  background: #fff !important;
}

