
/* Homepage video course and others css not detail one===== VIDEO & LIVE COURSES ===== */
.course-section, .live-section {
  max-width: 1300px;
  margin: 45px auto 0 auto;
  padding: 0 0 40px 0;
}
.explore-video-heading, .explore-live-heading {
  font-size: 2.05rem;
  color: #212121;
  text-align: center;
  margin: 0 0 17px 0;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.section-header h2, .live-header h2 {
  font-size: 2rem;
  color: #c7212f;
  margin-bottom: 0;
  font-weight: 700;
  margin-top: 0;
}
.section-header > p, .live-header > p {
  color: #313244;
  margin: 4px 0 12px 0;
  font-size: 1.1rem;
}
.course-tabs, .live-tabs {
  margin-bottom: 19px;
  display: flex;
  gap: 7px;
}
.course-tabs .tab, .live-tabs .tab {
  padding: 5px 18px;
  background: #fde8ec;
  color: #c7212f;
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 7px;
  transition: background .15s;
}
.course-tabs .tab.active, .course-tabs .tab:hover,
.live-tabs .tab.active, .live-tabs .tab:hover {
  background: #c7212f;
  color: #fff;
}
.scroll-row-outer {
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
}
.scroll-row {
  display: flex;
  align-items: stretch;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: #e8e8e8 #fff;
  position: relative;
}
.scroll-row::-webkit-scrollbar { height: 0; }
.slide-arrow2 {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1.5px solid #e8e8e8; z-index: 10;
  width: 39px; height: 39px; color: #c7212f; font-size: 1.65em; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 7px #e7eafc;
  opacity: 0.87; transition: background .17s,color .15s, opacity .18s; user-select: none; cursor: pointer;
}
.slide-arrow2.left { left: -54px; }
.slide-arrow2.right { right: -54px; }
.slide-arrow2:hover { background: #fde8ec; color: #8a121e; opacity:1; }
.course-card, .live-card {
  flex: 0 0 220px;
  max-width: 240px;
  min-width: 210px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px #e7eafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 9px;
  border: 1.5px solid #eaeaec;
  transition: box-shadow .15s, border-color .2s;
  position: relative;
}
.course-card:hover, .live-card:hover {
  box-shadow: 0 10px 28px #c7212f17;
  border-color: #c7212f;
}
.course-img, .live-img {
  background: #e7eeff;
  width: 100%;
  height: 124px;
  background-size: cover;
  background-position: center;
}
.course-body, .live-body {
  padding: 17px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.course-title, .live-title {
  color: #1e2235;
  font-weight: 700;
  font-size: 1.13rem;
  min-height: 38px;
}
.course-instructor, .live-instructor {
  color: #686a80;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.course-rating, .live-rating {
  color: #ff9900;
  font-size: 0.97rem;
  display: flex; align-items: center; gap: 3px;
}
.star { font-size: 1.15em; margin-right: 2px; }
.rating-count { color: #222; margin-left: 5px; font-size: 0.98em; }
.course-pricing, .live-pricing {
  margin: 4px 0;
  font-size: 1.02rem;
  color: #c7212f;
  font-weight: 700;
}
.rupee { font-weight: 700; font-size: 1.08em; }
.old-price {
  color: #9295a3;
  font-size: .95em;
  font-weight: 500;
  text-decoration: line-through;
  margin-left: 10px;
}
.course-labels, .live-labels {
  display: flex; gap: 7px; margin: 6px 0 0 0;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  border-radius: 11px;
  font-size: 0.86rem;
  padding: 3px 13px;
  font-weight: 600;
  letter-spacing: .5px;
}
.badge-premium { background: #8246ef; color: #fff; }
.badge-bestseller { background: #ffe4b3; color: #ba7b00; border: 1px solid #ffd88a; }
.badge-live { background: #c7212f; color: #fff; }
.badge-upcoming { background: #e9db2f; color: #4a4631; }
.badge-featured { background: #4aad65; color: #fff; }

/* Courses Responsive */
@media (max-width: 900px) {
  .course-card, .live-card { flex-basis: 63vw; min-width: 180px; }
  .section-header h2, .live-header h2 { font-size: 1.33rem; }
  .scroll-row-outer { padding-left: 5px; padding-right: 5px; }
  .slide-arrow2.left { left: 2px; }
  .slide-arrow2.right { right: 2px; }
}



/* ===== LOGIN & SIGNUP PAGES ===== */
/* ===== SHARED BASE STYLES ===== */
@keyframes spin { 
  to { transform: rotate(360deg); } 
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== LAYOUT ===== */
.login-background {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f8f9fa;
  padding: 0px 16px;
}

.signup-page .login-background {
  padding: 40px 16px;
}

.login-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 48px #e8ecf4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  width: min(1000px, 96vw);
  min-height: 520px;
}

.signup-page .signup-card {
  grid-template-columns: 1fr;
  width: min(880px, 96vw);
  margin: 30px auto;
}

/* ===== FORM CONTAINER ===== */
.login-form-container {
  padding: 48px 34px 42px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.login-form-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 56px rgba(0,0,0,0.12);
}

.signup-page .signup-form-container {
  padding: 40px 36px 34px 36px;
}

.login-welcome {
  font-size: 2.25rem;
  color: #232540;
  font-weight: 900;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 0.5px;
}

form.login-form {
  width: 100%;
}

/* ===== FORM FIELDS ===== */
.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.form-field input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #fafafa;
}

.form-field input:focus {
  outline: none;
  border-color: #c7212f;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(199, 33, 47, 0.08);
}

.form-field input::placeholder {
  color: #999;
  font-size: 14px;
}

.signup-page .login-form input[type="tel"],
.signup-page .login-form input[type="email"],
.signup-page .login-form input[type="password"],
.signup-page .login-form input[type="text"],
.signup-page .login-form input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 0;
  font-size: 1.05em;
  border: 1.5px solid #d0d3e2;
  border-radius: 17px;
  background: #f3f7fc;
  font-family: inherit;
  transition: border .18s, background .18s, box-shadow .18s;
  outline: none;
  box-sizing: border-box;
  line-height: 1.25;
  height: 48px;
}

.signup-page .input-wrapper input:focus,
.signup-page .login-form input:focus {
  border-color: #c7212f;
  background: #eef1fa;
  box-shadow: 0 0 0 3px rgba(199,33,47,0.12);
}

.signup-page input[type="number"]::-webkit-outer-spin-button,
.signup-page input[type="number"]::-webkit-inner-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.signup-page input[type="number"] { 
  -moz-appearance: textfield; 
}

/* ===== SELECT (GENDER) STYLING ===== */
.gender-select,
select[name="gender"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 0;
  font-size: 1.05em;
  border: 1.5px solid #d0d3e2;
  border-radius: 17px;
  background: #f3f7fc;
  font-family: inherit;
  transition: border .18s, background .18s, box-shadow .18s;
  outline: none;
  box-sizing: border-box;
  line-height: 1.25;
  height: 48px;
  cursor: pointer;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.gender-select:focus,
select[name="gender"]:focus {
  border-color: #c7212f;
  background: #eef1fa;
  box-shadow: 0 0 0 3px rgba(199,33,47,0.12);
}

.gender-select option {
  padding: 10px;
  background: #fff;
  color: #333;
}

.gender-select option:disabled {
  color: #999;
}

.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #c7212f;
}

.remember-me span {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.forgot-password {
  color: #c7212f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: #a01a25;
  text-decoration: underline;
}

/* ===== BUTTONS ===== */
.login-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #c7212f 0%, #a01a25 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(199, 33, 47, 0.2);
}

.login-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #a01a25 0%, #8a1620 100%);
  box-shadow: 0 6px 16px rgba(199, 33, 47, 0.3);
  transform: translateY(-2px);
}

.login-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(199, 33, 47, 0.2);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.signup-page .login-btn { 
  margin-top: 14px; 
}

.cancel-btn {
  width: 100%;
  padding: 13px 20px;
  background-color: #f5f5f5;
  color: #555;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.cancel-btn:hover {
  background-color: #e8e8e8;
  border-color: #c0c0c0;
  color: #333;
}

.resend-link {
  background: none;
  border: none;
  color: #c7212f;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  display: block;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.resend-link:hover {
  color: #a01a25;
  text-decoration: underline;
}

/* ===== SPINNER ===== */
.btn-spinner {
  display: none;
  margin-left: 8px;
}

/* ===== FORM OVERLAY ===== */
#formOverlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(3px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.overlay-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.overlay-spinner .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(199, 33, 47, 0.2);
  border-top-color: #c7212f;
}

/* ===== SIGNUP LINK ===== */
.login-signup {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.login-signup a {
  color: #c7212f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.login-signup a:hover {
  color: #a01a25;
  text-decoration: underline;
}

/* ===== LOGIN IMAGE ===== */
.login-image {
  position: relative;
  min-height: 100%;
  background: #fff;
}

.login-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: #fff;
  padding: 35px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  animation: slideUp 0.3s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  color: #333;
  background: #f0f0f0;
}

.modal-step h2 {
  margin-bottom: 12px;
  font-size: 26px;
  color: #222;
  font-weight: 700;
}

.modal-step p {
  color: #666;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.modal-step .form-field {
  margin-bottom: 18px;
}

.modal-step .form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.modal-step .form-field input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #fafafa;
}

.modal-step .form-field input:focus {
  outline: none;
  border-color: #c7212f;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(199, 33, 47, 0.08);
}

/* ===== MESSAGES ===== */
.message {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  margin-top: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  display: block;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .login-card {
    grid-template-columns: 1fr;
    width: min(720px, 96vw);
  }
  .login-image { 
    height: 280px; 
  }
}

@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
  }
  
  .login-image {
    display: none;
  }
  
  .modal-content {
    width: 95%;
    padding: 28px 22px;
  }
  
  .modal-step h2 {
    font-size: 22px;
  }
  
  .login-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .login-form-container { 
    padding: 16px 5vw 22px 5vw; 
  }
  .login-welcome { 
    font-size: 1.28rem; 
  }
  .signup-page .signup-form-container { 
    padding: 20px 5vw 24px 5vw; 
  }
}

@media (max-width: 480px) {
  .form-field input,
  .modal-step .form-field input {
    font-size: 14px;
    padding: 12px 14px;
  }
  
  .login-btn,
  .cancel-btn {
    font-size: 15px;
    padding: 12px 18px;
  }
}