html[dir="rtl"] .form-control {
  text-align: right;
}

html[dir="rtl"] .toggle-password {
  cursor: pointer;
  direction: ltr !important;
}

html[dir="rtl"] .position-absolute {
  direction: ltr !important;
}

/* Section layout */
.login-section {
  display: flex;
  height: 100vh;
  flex-wrap: wrap;
}

.no-caret::after {
  display: none !important;
}

/* Left section */
.left-section {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.image-container {
  height: 100%;
  width: 100%;
  border-radius: 1rem;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}

.bg-login {
  background-image: url("/assets/images/form/login.jpg");
}

.bg-register {
  background-image: url("/assets/images/form/signup.png");
}

.bg-forgot {
  background-image: url("/assets/images/form/forgotpass.png");
}

.bg-otp {
  background-image: url("/assets/images/form/otp.png");
}

.bg-changepassword {
  background-image: url("/assets/images/form/password.png");
}

.text-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.right-section {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  background-color: #fff;
  padding-top: 7rem;
}

.form-wrapper {
  width: 75%;
  max-width: 400px;
  align-self: flex-start;
}

.toggle-password {
  cursor: pointer;
}

.btn-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--primary);
}

.divider:not(:empty)::before {
  margin-right: 0.75em;
}

.divider:not(:empty)::after {
  margin-left: 0.75em;
}

.btn-icon img {
  width: 20px;
  height: 20px;
}

/* OTP Form Styling */

.otp-box {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.3s ease;
}

.otp-box:focus {
  border-color: var(--primary, #0b2c47);
  box-shadow: 0 0 5px rgba(11, 44, 71, 0.3);
}

.btn-primary {
  background-color: #0b2c47;
  border: none;
}

.btn-primary:hover {
  background-color: #103a5e;
}

/* hide caret remove dropdown arrow */
.no-caret::after {
  display: none !important;
  content: none !important;
}

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-top: 25px;
}

.search-bar input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 15px;
}

.search-btn {
  background: #f7931e;
  color: #ffffff;
  border: none;
  width: 54px;
  height: 54px;
  cursor: pointer;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
}

.gradient-line {
  width: 7px;
  height: 35px;
  border-radius: 6px;
  background: linear-gradient(357.66deg, #f18c3e 1.68%, #f9b040 97.75%);
}

.step-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(357.66deg, #f18c3e 1.68%, #f9b040 97.75%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

/* Wrapper */
.side-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

/* Image */
.section-side-image {
  position: absolute;
  top: 20%;
  left: 1%;
  width: 6%;
  min-width: 60px;
  max-width: 90px;
  opacity: 0.25;
  animation: floatY 4s ease-in-out infinite;
}

.section-leftside-image {
  position: absolute;
  top: 20%;
  right: 0%;
  width: 6%;
  min-width: 70px;
  max-width: 90px;
  opacity: 0.25;
  animation: floatY 4s ease-in-out infinite;
}

.section-rightside-image {
  position: absolute;
  top: 1%;
  right: 50%;
  width: 6%;
  min-width: 70px;
  max-width: 100px;
  opacity: 0.25;
  animation: floatY 4s ease-in-out infinite;
  z-index: 9999;
}

.card-img-top {
  height: 400px;
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }

  100% {
    transform: translateY(0);
  }
}

.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  /* center inner block */
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
}

.boy-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
}

.girl-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
}

.boy-img,
.girl-img {
  width: 100%;
  height: auto;
  display: block;
}
/* 
.badge {
  position: absolute;
  background: #fff;
  padding: 10px 16px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 13px;
} */

.badge-boy {
  bottom: -50%;
  left: 23%;
}

.badge-girl {
  top: -33%;
  right: 25%;
}

.avatars {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.avatars img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
}

.plus {
  width: 22px;
  height: 22px;
  background: orange;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
}

/* Tutor Card */
.tutor-card img {
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.faq-bg-image {
  background: url("/assets/images/faq/faq-bg.png") center/cover no-repeat;
  height: 350px;
}
/* search bar */
.custom-breadcrumb {
  font-size: 18px;
  font-weight: 400;
  a {
    text-decoration: none;
  }
  .separator {
    margin: 0 6px;
  }
  .active {
    font-weight: 600;
  }
}

.range-container {
  position: relative;
  height: 30px;
  margin-top: 10px;
}

/* base line */
.range-container::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background: #d1d5db;
  border-radius: 4px;
}

/* active track */
.slider-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--secondary);
  border-radius: 4px;
}

/* range input */
.range-container input[type="range"] {
  position: absolute;
  width: 100%;
  pointer-events: none;
  appearance: none;
  background: none;
}

/* thumb */
.range-container input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--secondary);
  cursor: pointer;
  margin-top: -7px;
}

.range-container input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--secondary);
  cursor: pointer;
}

.tutor-img-wrap {
  width: 80px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutor-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  background: #1f2937;
  color: #fff;
  font-weight: 500;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 12px;
}

.see-all-link {
  color: #f97316;
  font-weight: 500;
}

.see-all-link:hover {
  text-decoration: underline;
}

.quote-strip {
  background: #fff;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.quote-text {
  max-width: 70%;
}

.quote-text h2 {
  color: #1f2937;
  line-height: 1.4;
}

.quote-left {
  position: absolute;
  left: 0;
  top: 50%;
}

.quote-left img {
  max-width: 150px;
  animation: floatX 20s ease-in-out infinite;
}

.quote-right {
  position: absolute;
  right: 10%;
  top: 70%;
}

.quote-right img {
  max-width: 100px;
  opacity: 0.15;
  animation: floatY 20s ease-in-out infinite;
}

@keyframes floatX {
  0%,
  100% {
    transform: translate(0, -50%);
  }

  50% {
    transform: translate(10px, -50%);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translate(0, -50%);
  }

  50% {
    transform: translate(0, -70%);
  }
}

.how-it-works-card {
  border-radius: 12px;
}

.icon-circle {
  width: 52px;
  height: 52px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 22px;
}

.card-divider {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  margin-block: auto;
  background: var(--secondary);
  opacity: 0.6;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/request-tutor.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}

.stepper-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 30px;
}

.stepper-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  transform: translateY(-50%);
}

.step {
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 36px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6b7280;
}

.step.completed .step-circle {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.step.active .step-circle {
  border-color: #9ca3af;
  color: #111827;
}

/* ask an expert */
.hero-main-ask {
  position: relative;
  min-height: 300px;
  background-image: url("/assets/images/tutor-online/image.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* overlay background */
.hero-overlay-main-ask {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 8, 8, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

/* content above overlay */
.hero-content-main-ask {
  position: relative;
  z-index: 2;
}

.avatar-main-ask {
  width: 25px;
  height: 25px;
  margin-left: -8px;
  /* overlap */
  border: 2px solid #fff;
}

.badge-row-main-ask {
  gap: 24px;
}

.custom-badge-main-ask {
  padding: 4px 10px;
  font-size: 10px;
  line-height: 1.2;
  box-shadow: none !important;
}
/* tutor description */
.hero-ask {
  position: relative;
  height: 300px;
  background-image: url("/assets/images/tutor-online/image.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay-ask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.question-wrapper-ask {
  position: relative;
  margin-top: -200px;
  z-index: 5;
}

.question-card-ask {
  transform: translateY(50%);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.badge-row-ask {
  gap: 24px;
}

.custom-badge-ask {
  padding: 4px 10px;
  font-size: 10px;
  line-height: 1.2;
  box-shadow: none !important;
}

.action-icon-ask {
  cursor: pointer;
}

.action-icon-ask {
  transition: color 0.2s ease;
}

/* active state */
.action-icon-ask.active {
  color: #f18c3e;
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}
/* review screen*/
.review-content {
  display: none;
}

.review-content.active {
  display: block;
}

.review-option {
  cursor: pointer;
  transition: 0.3s;
}

.review-option.active {
  color: #f18c3e;
}
/* side image set */
.wrapper {
  position: relative;
  width: 100%;
  height: auto;
  padding: 2% 5%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.heading-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: center;
  display: inline-block;
}

.text-h {
  font-weight: 700;
  margin: 0;
  font-size: 2vw;
}

.text-p {
  margin-top: 1.5%;
  font-size: 1.2vw;
  line-height: 1.4em;
}

.side-plane {
  position: absolute;
  left: 0;
  top: 40%;
  width: 15%;
  height: auto;
  pointer-events: none;
  z-index: 0;
  transform: translateY(-30%);
}
/* blog screen */
/* Latest Posts Cards */
.latest-post-card {
  border-radius: 12px;
  overflow: hidden;
}

/* Image control */
.latest-post-card img {
  object-fit: cover;
}



.payment-option {
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.payment-option input {
  accent-color: #0d6efd;
}

.payment-detail {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: #f8faff;
  border-radius: 10px;
  font-size: 0.9rem;
}

.payment-detail.show {
  display: block;
}

.withdraw-summary {
  background: #f9fafc;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.9rem;
}

.action-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

tr:hover .action-btn {
  opacity: 1;
}

.student-row {
  cursor: pointer;
}

@media (min-width: 1900px) {
  .container {
    max-width: 1900px;
  }
}

/* responsive for screens <= 991px */
@media (max-width: 991px) {
  .login-section {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .left-section {
    display: none;
  }

  .right-section {
    width: 100%;
    padding-top: 0rem;
  }

  .quote-left img {
    max-width: 130px;
  }

  .quote-right img {
    max-width: 100px;
  }

  .quote-text {
    max-width: 620px;
  }
  /* image side */

  /* side image */
  .text-h {
    font-size: 3vw;
  }

  .text-p {
    font-size: 1.5vw;
  }

  .side-plane {
    width: 18%;
    transform: translateY(-30%);
    top: 33%;
  }
}

@media (max-width: 768px) {
  .section-side-image {
    display: none;
  }

  .hero-inner {
    max-width: 360px;
  }

  .badge {
    font-size: 12px;
    padding: 8px 14px;
  }

  .tutor-img-wrap {
    width: 96px;
    height: 96px;
    margin-bottom: 8px;
  }

  .quote-left img {
    display: none;
  }

  .quote-right img {
    max-width: 80px;
  }

  .quote-right {
    position: absolute;
    right: 10%;
    top: 70%;
  }

  .quote-text {
    min-width: 100%;
  }

  .stepper-col {
    width: 60px;
  }

  .stepper-wrapper {
    flex-direction: column;
    height: 100%;
    max-width: unset;
    margin: 0;
  }

  .stepper-wrapper::before {
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
  }

  .cards-col {
    padding-left: 15px;
  }

  /* side image */
  .text-h {
    font-size: 2.6vw;
  }

  .text-p {
    font-size: 2vw;
  }

  .side-plane {
    width: 18%;
    transform: translateY(-30%);
    top: 32%;
  }
  

  .latest-post-card .row {
    flex-direction: column;
  }

  .latest-post-card .col-4,
  .latest-post-card .col-8 {
    width: 100%;
    max-width: 100%;
  }

  .latest-post-card img {
    width: 100%;
    height: 200px !important;
    border-radius: 12px 12px 0 0;
  }

  .latest-post-card .card-body {
    padding: 1rem;
  }
  .latest-post-card h5 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .latest-post-card p {
    font-size: 0.9rem;
  }
}


@media (min-width: 768px) and (max-width: 940px) {
  .side-plane {
    top: 37%;
  }
  
  .latest-post-card img {
    height: 100%;
    object-fit: cover;
  }

  .latest-post-card h5 {
    font-size: 1.05rem;
  }
}


@media (max-width: 576px) {
  .text-h {
    font-size: 2.7vw;
  }

  .text-p {
    font-size: 2vw;
  }

  .side-plane {
    width: 18%;
    transform: translateY(-30%);
    top: 32%;
  }

  /* about screen */

  .card-overlay-about {
    margin-top: -60px !important;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    max-width: 300px;
  }
  .text-h {
    font-size: 2.7vw;
  }

  .text-p {
    font-size: 2vw;
  }

  .side-plane {
    width: 18%;
    left: 0%;
    transform: translateY(-30%);
    top: 34%;
  }
}
