/* custom ui message box */
/* Message box base */
#custom-msg-box {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 280px;
  max-width: 400px;
  padding: 15px 25px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  z-index: 9999;
  color: #fff;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.25);
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

/* Types */
.msg-box.info {
  background: #c943f1;
}

.msg-box.success {
  background: #28a745;
}

.msg-box.error {
  background: #dc3545;
}

.msg-box.warning {
  background: #ffc107;
  color: #333;
}

/* Fade-out effect */
.fade-out {
  opacity: 0;
}

/* end custom message box */
/* start of back-page-arrow */
.back-page-arrow {
  position: fixed;
  bottom: 103px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-left: 3px solid #000;
  border-bottom: 3px solid #000;
  transform: rotate(45deg);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-page-arrow:hover {
  border-color: #0620cb; /* Change color on hover */
  transform: rotate(45deg) scale(1.1);
}

/* end of back-page-arrow */
/* INDEX PAGE */
.e-learning-page {
    margin-top: 50px;
    background: linear-gradient(135deg, #e0f7fa, #e1bee7);
}
.card {
    background-color: #ffffffcc;
    border-radius: 12px;
}
.card ,.user-info{
  background-color: #4225df6b;
  border-radius: 50px;
}
.user-info {
  width: 100%;
}
.user-info .card-body {
  padding: 15px 25px;
}
.user-info .row > div {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}
.user-info i {
  margin-right: 6px;
  color: #007bff;
}
@media (max-width: 767.98px) {
  .user-info .row > div {
    justify-content: flex-start;
    margin-bottom: 8px;
  }
  .user-info .text-md-right {
    text-align: left !important;
  }
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
/* END INDEX PAGE */
 /* Payment Modal */
    #paymentModal .modal-content {
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    #paymentModal .modal-header {
        background: #28a745;
        color: #fff;
        border-radius: 12px 12px 0 0;
    }
/* END PAYMENT MODAL */
 #subscribeContainer {
        max-width: 400px;
        margin: 20px auto;
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        display: flex;
        gap: 10px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }
/* START E-LEARNING PAGE */
/* <!-- Select Courses --> */
.select-exam-buttons {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc transparent;
}
.select-exam-buttons::-webkit-scrollbar {
    height: 8px;
}
.select-exam-buttons::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.select-exam-buttons button {
    flex: 0 0 auto;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}
.select-exam-buttons button:hover {
    transform: scale(1.1);
}
.select-exam-buttons button.selected {
    background: #28a745;
}
@media (min-width: 768px) {
    .col-md-6 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 100%!important;
    }
}
/* end learng course */
/*--// copyright-- */
/* Online Test student */
    /* Page Wrapper */
    .online-test-page {
        background:linear-gradient(135deg, #d03aeeff 0%, #10ee56ff 100%);
        font-family: "Segoe UI", sans-serif;
        padding: 40px 20px;
        border-radius: 1rem;
    }
    .online-test-page > .hero-section > .hero-title, .hero-subtitle{
        background:transparent;
        color: #0f13eaff;
    }
    /* Hero Section */
    .hero-section {
        margin-bottom: 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #007bff;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        color: #f7f5f8ff;
    }

    /* Category Cards */
    .category-card {
        background: #fff;
        border-radius: 15px;
        padding: 20px 5px;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid #eee;
    }

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .category-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 15px;
        color: #333;
    }

    /* Buttons */
    .class-buttons .btn,
    .exam-buttons .btn {
        border-radius: 25px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .class-buttons .btn:hover {
        background: #007bff;
        color: #fff;
    }

    .exam-buttons .btn:hover {
        background: #28a745;
        color: #fff;
    }
    /* End Online Test student */
/*--responsive--*/

/*  elearning page  */
.elearning-page .hero-section {
    position: relative;
    background: linear-gradient(135deg, #D2DCE0, #6610f2);
    color: #fff;
    padding: 100px 20px 80px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-align: center;
    overflow: hidden; /* important for beam effect */
}

/* Add a moving gradient beam */
.elearning-page .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 300%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(228, 90, 43, 0.2) 50%,
        rgba(0, 255, 47, 0.25) 60%,
        rgba(255, 0, 255, 0.2) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: lightBeam 6s linear infinite;
}

/* Animate beam movement */
@keyframes lightBeam {
    0% {
        transform: translateX(-90%);
    }
    50% {
        transform: translateX(60%);
    }
    100% {
        transform: translateX(-80%);
    }
}

.elearning-page > .hero-section > .hero-title{
    background:transparent;
}
.elearning-page .hero-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.elearning-page .hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
}

.elearning-page .elearningleadform .form-control {
    border-radius: 30px;
    padding: 10px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.elearning-page .elearningleadform .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.elearning-page .btn-custom {
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 18px;
    transition: 0.3s;
}

.elearning-page .btn-custom:hover {
    background: #218838;
    transform: scale(1.1);
}

/* Category Card with Beamlight */
.elearning-page .category-card {
    position: relative;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.95), #f2f2f7 70%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elearning-page .category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Moving Beamlight Effect */
.elearning-page .category-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 60%);
    transform: rotate(25deg);
    animation: beamlight 6s linear infinite;
    pointer-events: none;
}

/* Keyframes for beamlight movement */
@keyframes beamlight {
    0%   { transform: translate(-50%, -50%) rotate(25deg); }
    50%  { transform: translate(0%, 0%) rotate(25deg); }
    100% { transform: translate(-50%, -50%) rotate(25deg); }
}

/* Category Title */
.elearning-page .category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Auto-highlight selected button */
.elearning-page .select-class.active {
    background-color: #28a745 !important;
    color: #fff !important;
    border-color: #218838 !important;
}

/* elearning otp */

.elearning-page > .elearner-otp {
  margin-top: 20px;
  display: none;
  text-align: center;
}

.elearning-page > .elearner-otp input {
  width: 180px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-right: 10px;
}

.elearning-page > .elearner-otp button {
  background: #28a745;
  border: none;
  padding: 10px 18px;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.elearning-page > .elearner-otp button:hover {
  background: #218838;
}

/* end elarning page */

    /* ==================== onlinetest Page Styles ==================== */
    .onlineTestPage #quizContainer,
    .onlineTestPage #resultContainer {
        max-width: 650px;
        margin: auto;
        border-radius: 12px;
    }    
    .onlinetestbackground{
        background:linear-gradient(135deg, #db4b0eff, #ce10bbff);
        color: #f1f4f2!important;
        border-radius: 30px;
    }
    .onlineTestPage .option-btn {
        display: block;
        width: 100%;
        margin-bottom: 12px;
        border-radius: 30px;
        transition: all 0.3s ease;
    }

    .onlineTestPage .option-btn:hover {
        transform: scale(1.02);
    }

    .onlineTestPage .option-btn.correct {
        background: #d4edda !important;
        color: #155724 !important;
        border-color: #c3e6cb !important;
    }

    .onlineTestPage .option-btn.incorrect {
        background: #f8d7da !important;
        color: #721c24 !important;
        border-color: #f5c6cb !important;
    }

    .onlineTestPage #timer {
        font-size: 16px;
        font-weight: bold;
    }

    .onlineTestPage h1 {
        font-weight: 700;
        margin-bottom: 25px;
    }

    .onlineTestPage .card {
        border-radius: 15px;
    }

    .onlineTestPage #resultContainer h3 {
        font-weight: 700;
        margin-bottom: 15px;
    }

      
  /* ===============================
   QUIZ CONTAINER BASE STYLING
================================= */
  .quiz-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: "Segoe UI", sans-serif;
    background-color: #f9f9f9;
  }

  /* ===============================
   HEADER
================================= */
  .quiz-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
  }

  /* ===============================
   STICKY PROGRESS BAR
================================= */
  .quiz-container .quiz-progress {
    position: sticky;
    top: 199px;
    /* Adjust based on fixed header */
    background: #ffffff00;
    padding: 10px 20px;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e005;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .quiz-container .quiz-progress-bar-wrapper {
    background: #ddd;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
  }

  .quiz-container .quiz-progress-bar {
    background: #4caf50;
    width: 0%;
    height: 100%;
    transition: width 0.3s ease;
  }

  .quiz-container .quiz-progress-text {
    font-size: 14px;
    color: #444;
    text-align: right;
  }
  @media (min-width: 768px) {
    .quiz-container .question-card {
      padding: 30px;
    }

    .quiz-container .opt-btn {
      font-size: 1.1rem;
    }

    .quiz-container .timer {
      font-size: 1rem;
    }
  }
  /* ===============================
   QUESTION CARD
================================= */
  .quiz-container .question-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    position: relative;
  }

  .quiz-container .question-card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
  }

  /* ===============================
   TIMER DISPLAY
================================= */
  .quiz-container .timer {
    position: absolute;
    top: 40px;
    right: 8px;
    background: #307cef5c;
    padding: 3px 6px;
    border-radius: 20px;
    font-size: 0.6rem;
    color: #0c0b0bff;
  }

  /* ===============================
   OPTIONS LAYOUT (2x2 Grid)
================================= */
  .quiz-container .options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .quiz-container .opt-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(137deg, #fe904f, #76ddd8fc);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
  }

  .quiz-container .opt-btn:hover:not(:disabled) {
  background: linear-gradient(132deg, #4facfe, #9b59b6);
  transform: scale(1.02);
}

  .quiz-container .opt-btn:disabled {
    background: #c2bebe;
    cursor: not-allowed;
  }

  /* ===============================
   BUTTON STYLING (Restart, Retake, etc.)
================================= */
  .quiz-container button {
    margin-right: 5px;
    margin-top: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #28a745;
    color: #fff;
    font-size: 14px;
  }
/* ===============================
   RESPONSIVE DESIGN
================================= */
  @media (min-width: 768px) {
    .quiz-container .question-card {
      padding: 30px;
    }

    .quiz-container .opt-btn {
      font-size: 1.1rem;
    }

    .quiz-container .timer {
      font-size: 1rem;
    }
  }
/* end online test page */
    /* ================= online demo test Banner ================= */
    .demo-subscribe-container>.hero-banner {
        position: relative;
        height: 250px;
        background: linear-gradient(135deg, #db4b0eff, #ce10bbff);
        border-radius: 0 0 25px 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .demo-subscribe-container>.hero-banner h1 {
        font-size: 2.2rem;
        font-weight: bold;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    /* Light beam effect */
    .demo-subscribe-container>.hero-banner>.light-beam {
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at center,
                rgba(255, 255, 255, 0.15) 0%,
                transparent 70%);
        animation: rotateBeam 10s linear infinite;
        z-index: 1;
    }

    @keyframes rotateBeam {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }
    /* ================= Quiz Box ================= */
    #quizContainer {
        max-width: 700px;
        margin: 30px auto;
        background: #ffffff63;
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

    #questionText {
        font-size: 1.2rem;
        font-weight: 600;
    }

   #optionsContainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 16px; /* space between buttons */
  margin-top: 15px;
}

#optionsContainer button {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

#optionsContainer button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #2575fc, #6a11cb);
}

#optionsContainer button:active {
  transform: scale(0.97);
}

/* For smaller screens (stack options) */
@media (max-width: 576px) {
  #optionsContainer {
    grid-template-columns: 1fr; /* single column */
  }
}

#optionsContainer > .option-btn {
  width: 100%;         /* take full width of grid cell */
  text-align: left;    /* align text */
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #9b51ea, #d6ec5d);
  color: #0d0c0c;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    #timer {
        font-size: 1rem;
        font-weight: bold;
        color: #dc3545;
        text-align: right;
    }

    /* Result Section */
    #resultContainer {
        max-width: 650px;
        margin: 20px auto;
        background: #fff;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

    /* Restart button */
    #restartContainer {
        max-width: 650px;
        margin: 15px auto;
        text-align: center;
    }

    #restartContainer a {
        width: 50%;
    }
/* end onlinedemotext page */
    /* start e-learner container */
    /* Quiz container */
#eLearningContainer {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Timer */
#timer {
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 15px;
}

/* Question text */
#questionText {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Option buttons */
.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #100e0eff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.option-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    /* color: #6a11cb!important; */
}

/* Correct/Incorrect states */
.option-btn.correct {
    background: linear-gradient(90deg, #1024d0, #99ea43)!important;
    color: #f2f4f2 !important;   /* Always white text */
    font-weight: 600;
    border: 2px solid #fff;      /* optional: highlight */
}

.option-btn.incorrect {
    background: linear-gradient(90deg, #dc3545, #f5b727)!important;
    color: #f7f4f4 !important;   /* Always white text */
    font-weight: 600;
    border: 2px solid #fff;      /* optional: highlight */
}


/* Skip & Next buttons */
#skipBtn, #nextBtn {
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 8px;
}

/* Results */
#resultContainer {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

#reviewList .list-group-item {
    margin-bottom: 8px;
    border-radius: 8px;
}
/* end test e-learner container */



    /* send enquery */
    /* Popup background overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Popup box */
.popup-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 350px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: fadeIn 0.2s ease-in-out;
}

/* Textarea */
.popup-box textarea {
  width: 100%;
  height: 120px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 14px;
}

/* Close Button */
.close-popup {
  background: #ff4d4d;
  color: white;
  padding: 8px 12px;
  border: none;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* end send enquery */