/***** deterrent only — hurts UX; optional *****/
html, body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}
:root {
    --primary-color: #cc1379;
    /* Coral */
    --secondary-color: #000d9eae;
    /* Purple */
    --accent-color: #ffd54f;
    /* Yellow */
    --background-light: #f8f9fa;
    --text-dark: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --brand: #70003e;
    /* Coral, matching your primary color */
    --brand-2: #6b48ff;
    /* Purple, matching your secondary color */
    --background-light: #f8f9fa;
    --text-dark: #1a1a1a;
    /* --glass-bg: rgba(255, 255, 255, 0.85); */
}

html,body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* navbar */
.navbar {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1030;
  /* margin-top: 40px;  */
}

.navbar-glass {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
     z-index: 1030;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* transition: background 0.3s ease; */
    /* padding: 0.5rem 1rem; */
}

.navbar-nav .nav-link {
  color: rgb(109, 11, 109);
}

.container .navbar-brand span {
  color: rgb(109, 11, 109);
}

.btnnav {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    white-space: nowrap;
    /* Prevent text wrapping */
    transition: background 0.3s ease;
    text-decoration: none;
}

.btnnav:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.btnexam {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    /* Prevent text wrapping */
    transition: background 0.3s ease;
}

.btnexam:hover {
    background: #ffca28;
    color: purple !important;
}

.dropdown-scroll {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-scroll::-webkit-scrollbar {
    width: 6px;
}

.dropdown-scroll::-webkit-scrollbar-thumb {
    background: rgba(107, 72, 255, 0.6);
    border-radius: 10px;
}

.dropdown-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Dropdown custom style to match your theme */
.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.navbar .dropdown-item {
    color: rgb(109, 11, 109);
    transition: background 0.2s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(109, 11, 109, 0.1);
    color: rgb(109, 11, 109);
}

.navbar-brand img {
    max-width: 80px;
  height: auto;
}

.navbar-brand span {
    color: purple;
    font-size: 1rem;
    font-weight: 600;
}

/* .navbar-nav {
    flex-wrap: nowrap !important;
} */

.nav-link {
    color: purple;
    font-weight: 500;
    margin-left: 1.5rem;
    white-space: nowrap;
    /* Prevent text wrapping */
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}


/* Make nav links stack nicely on mobile */

/* ========== Responsive adjustments ========== */

/* On smaller screens */
@media (max-width: 991px) {
    .navbar-brand img {
        max-width: 70px;
        height: auto;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }

    .navbar-nav {
        gap: 10px;
        padding: 1rem 0;
    }

    .btnexam,
    .btnnav {
        display: block;
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
}

/* On very small phones (<576px) */
@media (max-width: 576px) {
    .contact-bar span {
        display: none;
        /* only show icons for space */
    }

    .contact-bar i {
        font-size: 1.2rem;
    }
}

/* Toggler icon contrast fix (hamburger visible on light bg) */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28109,11,109,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Contact Bar Styles */
.contact-bar {
    background: #02c09ad5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1031;
}

/* Push main navbar below contact bar */
/* .main-navbar {
  
} */

.contact-link {
    color: var(--ink);
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--brand);
}


/* hero */
.hero {
    padding: 140px 0 40px;
    background: linear-gradient(180deg, #f7f6ff 0%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0 auto auto 40%;
    width: 100%;
    /* max-width: 100%; */
    height: 100%;
    opacity: .1;
    background: rgb(0, 0, 0);
    background-blend-mode: multiply;
    /* background-position: center; */
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateX(-40%);
    pointer-events: none;
}

.btnbanner {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    /* border-radius: 9999px; */
    transition: background-color .2s ease;
    text-decoration: none;
}

.btnban {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-width: 3px;
    border-style: solid;
    border-image: linear-gradient(to right, #e75c88, #2600d1) 1;
    background-color: transparent;
    color: var(--ink);
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: background-color .2s ease;
    text-decoration: none;
}

.text-gradient {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.float {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero {
        padding: 160px 0 40px; /* More space for stacked navbar in tablet/mobile */
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 180px 0 40px; /* Extra space for small phones */
    }
}

/* Features Section */
.features-section {
    background: #fff;
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.feature-card {
    background: #fbecf6;
    border: 1px solid var(--secondary-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgb(21, 0, 113);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
}

/* Courses Section */
.courses-section {
    padding: 4rem 0;
}

.course-card {
    background: linear-gradient(135deg, #d0cbff, var(--background-light));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 20px rgba(113, 0, 81, 0.329);
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card h4 {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.course-card p {
    color: #555;
}

.btn-course {
    background: var(--secondary-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-course:hover {
    background: #5a3ce8;
}

/* Syllabus Section */
.syllabus-section {
    background: #f5c5de50;
    /* Light pink with transparency */
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.syllabus-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
    /* Align text to the left within the list */
    margin: 0 auto;
    /* Center the list block */
    max-width: 300px;
    /* Limit width for better alignment */
}

.syllabus-list li {
    font-size: 1.2rem;
    color: rgba(0, 0, 255, 0.587);
    /* Blue with transparency */
    margin-bottom: 1.5rem;
    /* Increased spacing between items */
    position: relative;
    padding-left: 25px;
    /* Increased padding for bullet */
    transition: color 0.3s ease, transform 0.3s ease;
    /* Smooth transition for hover */
}

.syllabus-list li:hover {
    color: var(--primary-color);
    /* Change color on hover */
    transform: translateX(10px);
    /* Slight shift on hover */
}

.syllabus-list li:before {
    content: "•";
    color: var(--primary-color);
    /* Use brand primary color for bullet */
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    /* Larger bullet for emphasis */
    top: 50%;
    transform: translateY(-50%);
    /* Vertically center the bullet */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    animation: underlinePulse 2s infinite ease-in-out;
}

@keyframes underlinePulse {

    0%,
    100% {
        width: 50px;
    }

    50% {
        width: 70px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .syllabus-list {
        max-width: 100%;
        /* Full width on mobile */
        padding-left: 15px;
    }

    .syllabus-list li {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Resources Section */
.resources-section {
    padding: 4rem 0;
}

.resource-card {
    background: #fff;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s ease;
    box-shadow: 0 5px 15px rgba(26, 0, 105, 0.381);
}

.resource-card:hover {
    transform: scale(1.05);
}

.resource-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.resource-card p {
    color: #666;
}

.btn-resource {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-resource:hover {
    background: #ffca28;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.281), rgba(255, 0, 140, 0.272));
    padding: 4rem 0;
}

.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-card p {
    font-style: italic;
    color: #444;
    margin-bottom: 1rem;
}

.testimonial-card h5 {
    color: var(--secondary-color);
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.accordion-button {
    background: var(--background-light);
    color: var(--text-dark);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: var(--secondary-color);
    color: #fff;
}

.accordion-body {
    background: #fff;
}

/* Tips Section */
.tips-section {
    background: linear-gradient(135deg, #f5e6f6, #ffffff);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tip-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(108, 0, 65, 0.3);
}

.tip-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 1.5rem;
    min-width: 40px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tip-item:hover .tip-number {
    opacity: 1;
}

.tip-content h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tip-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    animation: underlinePulse 2s infinite ease-in-out;
}

@keyframes underlinePulse {

    0%,
    100% {
        width: 50px;
    }

    50% {
        width: 70px;
    }
}

/* Floating Circle */
#chat-circle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
}

#chat-circle img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.hidden {
  display: none !important;
}


/* ================= CHAT WIDGET ================= */
#chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 340px;
  height: 460px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  overflow: hidden;
  z-index: 9999;
}

#chat-widget.hidden {
  display: none;
}

/* ================== RESPONSIVE FIX ================== */
@media (max-width: 768px) {
  #chat-widget {
    width: 90%;        /* ✅ take almost full width */
    height: 70vh;      /* ✅ use viewport height */
    right: 5%;         /* ✅ center it with margins */
    bottom: 20px;      /* ✅ keep some gap from bottom */
  }
}

@media (max-width: 480px) {
  #chat-widget {
    width: 100%;       /* ✅ full width on very small screens */
    height: 50vh;      /* ✅ taller for usability */
    right: 0;
    bottom: 0;
    border-radius: 0;  /* ✅ flat edges like mobile apps */
  }
}

/* Header */
#chat-header {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 12px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
}

#chat-header .chat-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}

#chat-header .chat-title {
  flex: 1;
  font-size: 14px;
}

#chat-header #chat-close {
  cursor: pointer;
  font-size: 16px;
}

/* Chat Body */
#chat-box {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-msg p {
  margin: 0;
}

/* Options */
.chat-options {
  margin-top: 8px;
}

.chat-options button {
  border: 1px solid #029273bf;
  background: #fff;
  color: #029273bf;
  padding: 6px 12px;
  margin-right: 6px;
  border-radius: 20px;
  cursor: pointer;
}

.chat-options button:hover {
  background: #029273bf;
  color: #fff;
}

/* Input Area */
#chat-input-area {
  display: flex;
  border-top: 1px solid #ddd;
  flex: 0 0 auto;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
  font-size: 14px;
}

#chat-send {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  font-size: 16px;
}

/* Message bubbles */
.bot-msg, .user-msg {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;        /* ✅ prevent overflow of long text */
  overflow-wrap: anywhere;      /* ✅ modern wrap for long URLs/words */
  font-size: 15px;
  line-height: 1.4;
}

.bot-msg { background: #f1f1f1; align-self: flex-start; }
.user-msg { background: #dcf8c6; align-self: flex-end; }

/* Avatar tooltip */
.chat-tooltip{
  position: fixed;
  bottom: 150px;       
  right: 16px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));   /* match your header green */
  color: #fff;
  padding: 8px 12px;
  border-radius: 9999px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  z-index: 10000;        /* above the avatar */
  pointer-events: none;  /* clicks pass through to the avatar */
  animation: tooltipFloat 2.6s ease-in-out infinite;
}
.chat-tooltip.hidden{ display: none; }

/* little arrow */
.chat-tooltip::after{
  content:"";
  position:absolute;
  right: 28px;           /* centers arrow under the pill */
  bottom: -6px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

/* gentle float to draw attention (optional) */
@keyframes tooltipFloat{
  0%,100%{ transform: translateY(0); opacity: 1; }
  50%    { transform: translateY(-2px); opacity: .95; }
}

/* small screens: nudge it a bit closer to the avatar */
@media (max-width:480px){
  .chat-tooltip{ bottom: 100px; right: 16px; }
}

/* On smaller screens */
@media (max-width: 576px) {
  .bot-msg, .user-msg {
    max-width: 90%;        /* ✅ allow more room on mobile */
    font-size: 14px;       /* ✅ slightly smaller text */
    padding: 8px 10px;     /* ✅ less padding for tight spaces */
  }

  .chat-tooltip {
    bottom: 150px;          /* ✅ move tooltip closer */
    right: 20px;
    font-size: 12px;       /* ✅ smaller text in tooltip */
    padding: 6px 10px;
  }

  .chat-tooltip::after {
    right: 22px;           /* ✅ center arrow under pill */
  }
}

/* Extra small devices (≤350px) */
@media (max-width: 350px) {
  .bot-msg, .user-msg {
    max-width: 95%;       /* ✅ almost full width on ultra-narrow screens */
    font-size: 13px;
  }

  .chat-tooltip {
    right: 20px;
    bottom: 150px;
  }
}


/* Footer */
.footer-enhanced {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 2rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.footer-enhanced .container {
    position: relative;
    z-index: 1;
}

.footer-enhanced .footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-enhanced .footer-link {
    color: #c9ccf1;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-enhanced .footer-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-enhanced .footer-social {
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-enhanced .footer-social:hover {
    color: #c9ccf1;
    transform: scale(1.2);
}

.footer-enhanced .text-light {
    color: #e0e0ff !important;
}

.footer-enhanced .small {
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .footer-enhanced .col-md-6 {
        text-align: center;
    }

    .footer-enhanced .footer-logo {
        justify-content: center;
    }

    .footer-enhanced .footer-social {
        font-size: 1.75rem;
    }
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 20px rgba(115, 0, 71, 0.728);
}

.modal-header {
    border-bottom: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.modal-body .form-control {
    border-radius: 10px;
    border-color: #4c00ff;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
}

.btnform {
    display: flex;
    justify-content: center;
    /* Horizontally centers the button */
    align-items: center;
    /* Vertically centers if the container has height */
    margin-top: 1rem;
    /* Optional: Adds space above the button */
    width: 100%;
    /* Ensures the container takes full width if needed */
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: background 0.3s ease;
    width: 50% !important;
    border-radius: 20PX;
    padding: 10px;

}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: row;
        justify-content: flex-end;
    }

    .nav-link {
        margin-left: 0.75rem;
        font-size: 0.9rem;
    }

    .btnexam,
    .btnnav {
        padding: 0.25rem 0.75rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .course-card,
    .resource-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        background: var(--glass-bg);
        padding: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-item {
        margin-bottom: 0.5rem;
    }

    .nav-link {
        margin-left: 0;
    }

    .btnexam,
    .btnnav {
        width: 100%;
        text-align: center;
    }
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    transform: scale(1.1);
}