/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    font-style: normal;
    background-color: #f6f9fc;
    color: #6a56a6;
    margin: 0;
    padding: 0;
    max-width: 100%; /* Allow content to fit better */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 15px;
}

/* Loader container */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f6fc; /* or any background color you prefer */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Make sure it's above all other content */
}

/* Loader container */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f6fc; /* Background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Keep above all other content */
}

/* Loader container */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f6fc; /* Background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Keep above all other content */
}

/* Loader container */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f6fc; /* Background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Keep above all other content */
    transition: opacity 0.6s ease; /* Smooth transition for fading out */
}

/* Loader spinner */
.loader-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid transparent; /* Transparent border to help with positioning */
    border-top: 2px dotted #8f1bdc; /* Dotted border only on the top */
    border-left: 2px dotted #8f1bdc; /* Dotted border only on the left */
    border-right: 2px dotted transparent; /* Transparent right and bottom borders */
    border-bottom: 2px dotted transparent;
    animation: spin 0.5s linear infinite; /* Spin for 3 seconds */
    position: absolute;
}

/* Loader icon */
.loader-icon {
    position: absolute;
    width: 40px; /* Adjust icon size */
    height: 40px;
}

/* Spin animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Navbar Styles */
.navbar {
    padding: 1rem 1.5rem;
    background-color: #f6f9fc; /* Matches the page background for a seamless look */
}

.navbar-light .navbar-nav .nav-link {
    color: #6a56a6;
    font-weight: 400;
    font-size: 16px;
    text-transform: capitalize;
    padding: 0.5rem 2rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover and Active Effect */
.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #8f1bdc;
    transition: width 0.3s ease, left 0.3s ease;
    opacity: 0;
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link:focus::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 60%;
    opacity: 1;
}

/* Active Link - Text Color Change */
.navbar-light .navbar-nav .nav-link.active {
    color: #8f1bdc;
}

/* Sticky Navbar Styles */
.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays above other content */
    background-color: #f6f9fc; /* Maintain the same background color */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow to distinguish it from the content */
    transition: all 0.3s ease;
}

/* Adjust the top padding of the body when the navbar becomes sticky */
body.sticky-nav-active {
    padding-top: 70px; /* Adjust based on the height of your navbar */
}

/* Dropdown Link Specifics */
.navbar-light .navbar-nav .nav-item.dropdown .nav-link::after {
    width: 0;
    opacity: 0;
    height: 2px; /* Ensure the line under dropdown nav link is 2px */
}

/* Dropdown Link Hover Effect */
.navbar-light .navbar-nav .dropdown-item {
    position: relative;
    padding-left: 1.5rem; /* Adjust padding to accommodate the line */
    transition: 0.3s ease, padding-left 0.3s ease;
}

.navbar-light .navbar-nav .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px; /* This is the small line to the left */
    background-color: #8f1bdc;
    transition: opacity 0.3s ease, width 0.3s ease;
    opacity: 0;
}

/* Hover and Focus Effect */
.navbar-light .navbar-nav .dropdown-item:hover::before,
.navbar-light .navbar-nav .dropdown-item:focus::before {
    opacity: 1;
    width: 7px; /* Ensures the line is visible on hover */
}

/* Active State for Dropdown Items */
.navbar-light .navbar-nav .dropdown-item.active::before {
    opacity: 1;
    width: 7px; /* Keep the line visible for the active state */
}

/* Brand Image */
.navbar-brand img {
    max-width: 120px; /* Increased size */
    height: auto;
}

.navbar-light .navbar-toggler {
    border-color: transparent; /* Makes the border of the toggler transparent */
    background-color: transparent; /* Makes the background of the toggler transparent */
}

.navbar-light .navbar-toggler-icon {
    background-color: transparent; /* Transparent background for the icon */
}

/* Dropdown Menu */
.navbar-light .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    background-color: #f6f9fc;
    border: none;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-menu .dropdown-item {
    color: #6a56a6;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.dropdown-menu .dropdown-item:hover {
    color: #8f1bdc;
    background-color: #f0f8ff; /* Light background on hover */
}

/* Hero Section */
.slider-area {
    background-color: #f6f9fc;
    padding: 20px 0; /* Reduced padding to move content up */
    display: flex;
    align-items: flex-start; /* Align items to the top */
}

.hero__caption {
    margin-bottom: 30px; /* Add more space between caption and h1 */
    padding-top: 30px; /* Move the content higher */
}

.hero__caption span {
    font-size: 16px;
    color: #8f1bdc;
    font-weight: 400;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.hero__caption h1 {
    font-size: 54px;
    font-weight: 500;
    color: #2b044d;
    margin-bottom: 25px; /* Add more space between h1 and p */
    line-height: 1.3; /* Adjust line spacing within the h1 */
}

.hero__caption p {
    font-size: 16px;
    color: #2b044d;
    margin-bottom: 40px; /* Adjusted margin; default was 20px */
}

.slider-btns {
    display: flex;
    align-items: center;
    margin-top: 40px; /* default was 20px */
}

.slider-btns .btn {
    background-color: #ff4a57;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.slider-btns .btn:hover {
    background-color: #ff0036;
    color: #ffffff;
}

/* Pointer Icon Button for Login */
.slider-btns .login-btn {
    background-color: #8f1bdc;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 15px; /* Space between buttons */
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content including icon */
}

.slider-btns .login-btn i {
    margin-left: 10px; /* Space between text and icon */
    font-size: 1.2em; /* Adjust icon size */
    color: #ffffff; /* Ensure the icon color matches the text color */
}

.slider-btns .login-btn:hover {
    background-color: #5a00a5;
    color: #ffffff;
}

/* Hero Image */
.hero__img img {
    max-width: 100%;
    border-radius: 20px;
    align-self: center; /* Center the image vertically */
}

/* Feature Section Styling */
.best-features-area {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #f4f6fc;
}

.section-tittle h2 {
    font-size: 50px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 50px;
    color: #2b044d;
}

.single-features {
    display: flex;
    align-items: center; /* Center icon and text vertically */
    margin-bottom: 70px;
}

.features-icon {
    margin-right: 15px;
}

.features-icon span {
    position: relative;
    color: #fff;
    font-size: 30px;
    height: 67px;
    width: 67px;
    display: block;
    line-height: 67px;
    border-radius: 50%;
    text-align: center;
    background-image: linear-gradient(90deg, #e78ae9 0%, #926ef8 100%);
}

.features-caption {
    padding-left: 19px;
}

.features-caption h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #2b044d;
}

.features-caption p {
    font-size: 16px;
    color: #8f1bdc;
}

.features-image img {
    max-width: 100%; /* Ensure the image never exceeds the container's width */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the entire image fits within the container */
    border-radius: 10px; /* Optional: add some rounding for a better look */
}

.features-image {
    max-width: 80%; /* Limit the image container's width */
    margin: 0 auto; /* Center the image */
    position: relative;
    z-index: 1; /* Keep the image above other elements if necessary */
}

/* Services Section Styling */
.service-area {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #f4feff; /* Light blue background */
}

.section-tittle {
    margin-bottom: 50px; /* Space between title and boxes */
    text-align: center;
}

.section-tittle h2 {
    font-size: 50px;
    font-weight: 500;
    color: #2b044d;
    margin-bottom: 15px; /* Space between h2 and underline */
    text-decoration: none; /* Remove underline */
}

.section-underline {
    width: 150px;
    height: 2px;
    background-color: #8f1bdc;
    margin: 0 auto 40px; /* Center the underline and add space below */
}

.services-caption {
    background: #fff;
    padding: 100px 40px; /* Increase padding for longer boxes */
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.5s;
    position: relative; /* Needed for the dots positioning */
}

.services-caption .service-icon {
    display: inline-block;
    margin-bottom: 25px;
    position: relative;
}

.services-caption .service-icon::before {
    content: '';
    position: absolute;
    top: -35px;
    right: -35px;
    width: 100px;
    height: 100px;
    z-index: 0; /* Ensures the dots are behind the icon */
}

.services-caption .service-icon span {
    color: #fff;
    font-size: 40px;
    height: 100px;
    width: 100px;
    display: block;
    line-height: 100px;
    border-radius: 50%;
    background: #e88cea;
    transition: 0.5s;
    position: relative;
    z-index: 1; /* Ensures the icon is above the dots */
}

.services-caption .service-cap h4 {
    margin-bottom: 20px; /* Space between h4 and p */
}

.services-caption .service-cap h4 a {
    font-size: 24px;
    font-weight: 400;
    color: #2b044d;
    transition: color 0.3s ease;
    text-decoration: none; /* Remove underline */
}

.services-caption .service-cap p {
    font-size: 16px;
    color: #707b8e;
}

.services-caption:hover {
    border: 1px solid #b8a2ff;
}

.services-caption:hover .service-icon span {
    background: #835ef8;
}

.services-caption.active {
    border: 1px solid #b8a2ff;
}

.services-caption.active .service-icon span {
    background: #835ef8;
}


/* Bubble Animation */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    top: 0;
    left: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3); /* Adjust the transparency and color to match the theme */
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 10s infinite ease-in;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 50%;
    animation-duration: 11s;
    animation-delay: 0s;
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 55%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 65%;
    animation-duration: 8s;
    animation-delay: 3s;
}

.bubble:nth-child(7) {
    width: 90px;
    height: 90px;
    left: 70%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    width: 25px;
    height: 25px;
    left: 80%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.bubble:nth-child(9) {
    width: 15px;
    height: 15px;
    left: 70%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(10) {
    width: 90px;
    height: 90px;
    left: 25%;
    animation-duration: 10s;
    animation-delay: 4s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        bottom: 1080px;
        transform: translateX(-200px);
    }
}

/* Pricing Section */
.best-pricing {
    position: relative;
    background-color: #6a56a6; /* Adjust this to your theme color */
    padding: 110px 280px;
    text-align: center;
}

.best-pricing::before {
    display: none; /* Remove the dark overlay since it's not needed with bubbles */
}

.section-tittle2 {
    position: relative;
    z-index: 2;
}

.section-tittle2 h2 {
    color: #fff;
    font-size: 43px;
    margin-bottom: 20px;
}

.pricing-underline {
    width: 150px;
    height: 4px;
    background: #fff;
    margin: 0 auto;
    margin-bottom: 40px;
}

.pricing-card-area {
    margin-top: -150px;
    position: relative;
    z-index: 2;
}

.single-card {
    background: #fff;
    padding: 60px 25px; /* Ensure the padding is the same for all */
    border-radius: 10px;
    box-shadow: 0px 0px 9px rgba(131, 93, 248, 0.07);
    transition: all 0.4s;
    position: relative;
    margin: 20px 0;
    max-width: 100%; /* Ensures all cards have the same width */
}

.row.d-flex.justify-content-center .col-xl-3 {
    max-width: 25%; /* Ensures each card takes up the same amount of space in a row */
    flex: 0 0 25%; /* Adjusts the flexbox layout */
}

.single-card.active {
    box-shadow: 0px 10px 30px rgba(133, 66, 189, 0.1);
}

.single-card:hover {
    box-shadow: 0px 10px 30px rgba(133, 66, 189, 0.1);
}

.single-card::before {
    content: "";
    position: absolute;
    width: 171px;
    height: 134px;
    background: url('/assets/img/gallery/card_dot.png') no-repeat;
    right: 10px;
    bottom: 10px;
    z-index: -1;
    transition: all 0.4s;
}

.single-card .card-top {
    border-bottom: 2px solid #f4f4f4;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.single-card .card-top span {
    font-size: 24px;
    color: #57667e;
    margin-bottom: 10px;
    display: block;
}

.single-card .card-top h4 {
    font-size: 30px;
    color: #6a56a6;
    margin-bottom: 10px;
}

.single-card .card-top h4 span {
    font-size: 16px;
    color: #6a56a6;
}

.single-card .card-bottom ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.single-card .card-bottom ul li {
    font-size: 16px;
    color: #717081;
    font-weight: 300;
    margin-bottom: 10px;
}

/* Button Styles */
.single-card .btn {
    display: inline-block;
    padding: 15px 40px;
    background: #712fda;
    color: #fff;
    text-transform: uppercase;
    border-radius: 6px;
    transition: color 0.4s linear, background-color 0.4s linear;
    font-size: 16px;
    font-weight: 600;
}

/* Hover Effects */
.single-card:hover .btn {
    background-color: #f9218d; /* Lighter shade on hover */
    color: #fff; /* Ensure text remains white */
}

.single-card.active {
    box-shadow: 0px 10px 30px rgba(133, 66, 189, 0.1);
}

.single-card:hover {
    box-shadow: 0px 10px 30px rgba(133, 66, 189, 0.1);
}


@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #712fda; /* Updated to theme's primary color */ 
  --secondary-color: #f4f4f4; /* Updated to theme's secondary color */
  --text-dark: #2b044d; /* Slightly lighter text for readability */
  --text-light: #8f1bdc;
  --white: #ffffff;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--secondary-color);
}

.section__container {
  max-width: 1200px;
  margin: auto;
  padding: 110px 16px;
  text-align: center;
}

.section__container h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-light);
}

.section__container h1 {
  position: relative;
  margin-bottom: 48px; /* Increased space between heading and underline */
  font-size: 40px;
  font-weight: 500;
  color: var(--text-dark);
}

.section__container h1::after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: -16px; /* Increased space between heading and underline */
  transform: translateX(-50%);
  height: 2px;
  width: 150px;
  background-color: var(--primary-color);
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 16px;
  margin-top: 48px; /* Added more space between the underline and the boxes */
}

.section__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 32px 32px;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.section__card::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 75%;
  aspect-ratio: 1;
  border-radius: 100%;
  background-color: var(--primary-color);
  z-index: -1;
  transition: 0.5s;
}

.section__card span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 16px;
  font-size: 48px;
  color: var(--white);
}

.section__card h4 {
  margin-top: 64px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dark);
  transition: 0.3s;
}

.section__card p {
  margin-bottom: 32px;
  color: var(--text-light);
  transition: 0.3s;
}

.section__card img {
  margin-bottom: 16px;
  max-width: 100px;
  border-radius: 100%;
  border: 2px solid var(--primary-color);
  transition: 0.3s;
}

.section__card h5 {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dark);
  transition: 0.3s;
}

.section__card h6 {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
  transition: 0.3s;
}

.section__card:hover::before {
  width: 400%;
}

.section__card:hover :is(h4, h5) {
  color: var(--white);
}

.section__card:hover :is(p, h6) {
  color: var(--secondary-color);
}

.section__card:hover img {
  border-color: var(--white);
}

/* Styling for Footer Section */
.footer-area {
    background-color: #f9f9f9;
    padding: 60px 0;
    color: #6a56a6;
}

.footer-logo img {
    width: 100px;
    margin-bottom: 30px;
}

/* Styling for Footer Contact Us Section */
.footer-contact {
    margin-top: 20px;
}

.footer-contact h3 {
    font-size: 18px;
    font-weight: 500;
    color: #6a56a6;
    margin-bottom: 15px; /* Adjusted for spacing */
}

.footer-contact p {
    font-size: 14px;
    color: #868c98;
    margin-bottom: 8px;
    line-height: 1.8;
}

.footer-area .footer-pera .info1 {
    color: #868c98;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-area .footer-pera.footer-pera2 p {
    padding: 0;
    color: #6a56a6;
}

.footer-area .footer-tittle h4 {
    color: #6a56a6;
    font-size: 18px;
    margin-bottom: 48px;
    font-weight: 500;
}

.footer-area .footer-tittle ul {
    list-style: none; /* Remove bullets */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

.footer-area .footer-tittle ul li {
    color: #012f5f;
    margin-bottom: 15px;
}

/* Link styling without bullets */
.footer-area .footer-tittle ul li a {
    color: #8f1bdc; /* Link color without hover */
    font-weight: 300;
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Ensure the link behaves like an inline-block for proper transform */
    transition: color 0.3s ease, transform 0.3s ease; /* Add transform transition */
}

.footer-area .footer-tittle ul li a:hover {
    color: #f9218d; /* Link color on hover */
    transform: translateX(5px); /* Move link 5px to the right on hover */
}

.footer-area .footer-form {
    margin-top: 40px;
}

.footer-area .footer-form form {
    position: relative;
}

.footer-area .footer-form form input {
    width: 100%;
    height: 43px;
    padding: 10px 20px;
    border: 1px solid #fff;
    background: #f1f1f1;
    color: #6a56a6;
}

/* Submit button styles */
.footer-area .footer-form form .form-icon button {
    position: absolute;
    top: 1px;
    right: 0;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 11px 22px;
    background: #6a56a6;
    color: #fff; /* Icon color */
    line-height: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex; /* Use flexbox to center the icon */
    align-items: center; /* Vertically center the icon */
    justify-content: center; /* Horizontally center the icon */
}

.footer-area .footer-form form .form-icon button i {
    font-size: 20px; /* Adjust icon size */
}

/* Hover effect for the submit button */
.footer-area .footer-form form .form-icon button:hover {
    background: #f9218d; /* Slightly lighter shade on hover */
    transform: scale(1.1); /* Slightly increase the size of the button on hover */
}

/* Icon inside the button */
.footer-area .footer-form form .form-icon button img {
    width: 20px;
    height: auto;
}

.footer-area .info.error {
    color: #6a56a6;
}

/* Flexbox for copyright and date-time */
.footer-area .footer-copy-right {
    padding-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    flex-wrap: nowrap; /* No wrapping on larger screens */
}

/* Styling for the copyright and date-time in normal screens */
.footer-area .footer-copy-right p {
    color: #868c98;
    font-weight: 300;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 0;
    flex: 1; /* Make the copyright text take up available space */
}

#date-time {
    color: #868c98;
    font-weight: 300;
    font-size: 16px;
    line-height: 2;
    white-space: nowrap;
    text-align: right;
}

/*============================================== End of Normal Screen CSS =======================================================*/

/* Marketplace Section */
.marketplace-section {
    background-color: #f6f9fc;
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

.marketplace-section h2 {
    font-size: 28px;
    font-weight: 500;
    color: #2b044d;
    margin-bottom: 0; /* Remove bottom margin to align with the search form */
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

/* Row to align h2 and search form */
.marketplace-section .row.mb-4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px; /* Add margin below the row for spacing */
}

/* Category Title Styling */
.category-title {
    font-size: 24px;
    color: #2b044d;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: left;
}

/* Categories Title with Line */
.marketplace-section h4 {
    position: relative;
    font-size: 24px;
    color: #2b044d;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin-bottom: 30px; /* Adjusted margin for spacing */
    text-align: center;
    padding-bottom: 10px;
}

.marketplace-section h4::after {
    content: '';
    display: block;
    width: 80px; /* Length of the line */
    height: 2px; /* Thickness of the line */
    background-color: #8f1bdc;
    margin: 10px auto 20px auto; /* Space around the line */
}

/* Search Bar */
.marketplace-section .form-inline {
    display: flex;
    justify-content: flex-end; /* Align the form to the right */
    align-items: center;
    margin-bottom: 0; /* Remove margin to align with the h2 */
}

.marketplace-section .form-inline .form-control {
    border-radius: 30px;
    border: 1px solid #8f1bdc;
    padding: 10px 20px;
    width: 250px;
    background-color: #f6f9fc;
    color: #6a56a6;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.marketplace-section .form-inline .form-control::placeholder {
    color: #8f1bdc;
    opacity: 0.7;
}

.marketplace-section .form-inline .form-control:focus {
    border-color: #8f1bdc;
    box-shadow: none;
}

/* Search Button as Icon */
.marketplace-section .form-inline .btn {
    border-radius: 50%;
    padding: 10px;
    background-color: #8f1bdc;
    color: white;
    border: none;
    margin-left: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.marketplace-section .form-inline .btn i {
    font-size: 18px; /* Adjust the icon size */
}

.marketplace-section .form-inline .btn:hover {
    background-color: #f9218d; /* Slightly lighter shade on hover */
    transform: scale(1.1); /* Zoom out effect on hover */
}

/* Categories */
.marketplace-section .list-inline {
    padding-left: 0;
    list-style: none;
    margin-bottom: 30px;
    text-align: center;
}

.marketplace-section .list-inline-item {
    margin: 5px 15px; /* Increased margin for more space between buttons */
    display: inline-block;
}

.marketplace-section .btn-outline-primary {
    border-color: #8f1bdc;
    color: #8f1bdc;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: capitalize;
}

.marketplace-section .btn-outline-primary:hover {
    background-color: #8f1bdc;
    color: white;
}

/* Card Styling for Consistent Size */
.marketplace-section .card {
    height: 100%; /* Ensures card takes up full height of container */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px; /* Adds spacing between the rows */
    padding: 10px; /* Adds padding inside the card */
    background-color: white;
    border-radius: 8px; /* Rounded corners for the cards */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}

/* Ensure the cards don't touch each other */
.marketplace-section .col-md-4 {
    padding-left: 15px; /* Add padding around each card */
    padding-right: 15px; /* Add padding around each card */
    box-sizing: border-box; /* Ensures padding does not affect the card width */
}

/* Standardize the image size */
.marketplace-section .card-img-top {
    max-height: 200px; /* Maximum height for images */
    width: auto;
    object-fit: contain; /* Ensures images are not cropped */
    padding: 10px; /* Add padding to ensure images don't touch the card edges */
    background-color: #f6f9fc; /* Light background for the image area */
}

/* Adjust card body to take remaining space */
.marketplace-section .card-body {
    flex-grow: 1; /* Makes the body take the remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.marketplace-section .card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.marketplace-section .card-text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Buttons for Add to Cart and Favorites */
.marketplace-section .card-body .btn-primary,
.marketplace-section .card-body .btn-outline-secondary {
    font-size: 16px;
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Hover Effect for Add to Cart and Favorites Buttons */
.marketplace-section .card-body .btn-primary:hover {
    background-color: #f9218d; /* Slightly lighter shade on hover */
    transform: scale(1.1); /* Zoom out effect on hover */
    border-color: #f9218d;
}

.marketplace-section .card-body .btn-outline-secondary:hover {
    background-color: #f9218d; /* Slightly lighter shade on hover */
    color: white; /* Change icon color on hover */
    transform: scale(1.1); /* Zoom out effect on hover */
    border-color: #f9218d; /* Match the border to the background on hover */
}

/* Styles for Search Results (Activated by search-active class) */

/* Styling for search results, activated only after search */
.marketplace-section.search-active .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: -15px; /* Adjusts the margin for the row to prevent overflow */
    margin-right: -15px; /* Adjusts the margin for the row to prevent overflow */
}

/* Post-Search Card Styling */
.marketplace-section.search-active .card {
    height: 100%; /* Ensures card takes up full height of container */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 15px; /* Adds 15px spacing around each card */
    padding: 10px; /* Adds padding inside the card */
    background-color: white;
    border-radius: 8px; /* Rounded corners for the cards */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
    flex: 1 1 calc(33.333% - 30px); /* 3 cards per row */
    max-width: calc(33.333% - 30px); /* Ensure the cards do not exceed the 3 per row width */
    box-sizing: border-box;
}

/* Ensure the cards don't touch each other */
.marketplace-section.search-active .col-md-4 {
    padding-left: 15px; /* Add padding around each card */
    padding-right: 15px; /* Add padding around each card */
    box-sizing: border-box; /* Ensures padding does not affect the card width */
}

/* Standardize the image size */
.marketplace-section.search-active .card-img-top {
    max-height: 200px; /* Maximum height for images */
    width: auto;
    object-fit: contain; /* Ensures images are not cropped */
    padding: 10px; /* Add padding to ensure images don't touch the card edges */
    background-color: #f6f9fc; /* Light background for the image area */
}

/* Responsive Adjustments for Search Results */
@media (max-width: 992px) {
    .marketplace-section.search-active .card {
        flex: 1 1 calc(50% - 30px); /* 2 cards per row on medium screens */
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .marketplace-section.search-active .card {
        flex: 1 1 calc(100% - 30px); /* 1 card per row on small screens */
        max-width: calc(100% - 30px);
    }
}
