.truncate-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;  /* Future support for non-prefixed version */
}

body.custom-body {
    font-family: Arial, sans-serif;
    padding-top: 50px; /* Adjust this value based on the height of your navbar */
    padding-bottom: 50px; /* Add padding at the bottom */
}

#sidebar-wrapper {
    top: 50px; /* Ensure this value matches the height of your navbar */
    position: fixed;
    height: calc(100% - 50px); /* Adjust height to match padding-top */
    width: 250px;
    z-index: 1000; /* Ensure it stays above the content */
    overflow-y: auto; /* Ensure scrolling if content overflows */
    border-right: none;
}

#page-content-wrapper.custom-content {
    margin-left: 250px; /* Ensure there's enough space for the sidebar */
    padding-top: 20px; /* Optional: Add some padding if needed */
}

nav {
    background-color: #f0f0f0;
    padding: 10px;
}

.navbar {
    border-bottom: 1px solid #dee2e6; /* Or any color you prefer */
}

.product-item {
    margin-bottom: 15px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    color: inherit;
    text-decoration: none;
    background-color: rgb(255, 255, 255); /* Ensure background color is set */
}

.product-item:hover {
    background-color: #f9f9f9; /* Highlight on hover */
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure the navbar stays on top */
}

.content {
    margin-top: 20px;
}

h3 {
    font-size: 1.2em;
    line-height: 1.5;
}

.small-button {
    padding: 5px 10px; /* Adjust padding to make the button smaller */
    font-size: 14px; /* Adjust font size to make the text smaller */
    display: inline-block; /* Ensure the button doesn't span full width */
    width: 150px; /* Adjust width as needed */
    text-align: center; /* Center the text inside the button */
    margin: 5px 0; /* Add margin to avoid buttons sticking together and provide space */
    white-space: nowrap; /* Prevent text from wrapping */
}

.product-item img {
    margin-top: 10px; /* Add space above the image */
}

.product-item div {
    margin-bottom: 10px; /* Add space below the buttons */
}

/* Ensure these styles apply only to the product images on the home page */
.product-list .image-frame {
    width: 227px;
    height: 170px;
    display: inline-block;
    margin-right: 10px;
    overflow: hidden;
}

.product-list .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* New styles to fix the border issue */
.list-group-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    position: relative; /* Ensures that pseudo-elements are positioned correctly */
}

.list-group-item::before {
    content: "";
    display: block;
    height: 1px;
    background-color: #ddd;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.list-group-item:first-child::before {
    display: none; /* Don't add the line for the first item */
}

.list-group-item-Sidebar{
    border: none;
    margin-bottom: 10px;
    border-radius: 4px;
    position: relative; /* Ensures that pseudo-elements are positioned correctly */
    padding: 10px 15px;
}

#image-order {
    padding-left: 0; /* Remove default padding */
}

#image-order li {
    display: inline-block; /* Display list items horizontally */
    margin-right: 10px; /* Add some space between images */
    list-style: none; /* Remove bullet points */
}

.carousel-inner {
    max-width: 1000px; /* Set the maximum width for the carousel */
    margin: 0 auto; /* Center the carousel within its container */
    position: relative; /* Position the carousel relative to its container */
}

.carousel-inner img {
    width: 100%; /* Make the image fill the width of the carousel */
    max-width: 1000px; /* Ensure the image does not exceed the maximum width */
    height: auto; /* Maintain the aspect ratio */
    object-fit: contain; /* Ensure the image scales without being cropped or distorted */
    margin: 0 auto; /* Center the image horizontally */
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute; /* Position the controls within the carousel */
    top: 50%; /* Center the controls vertically */
    transform: translateY(-50%); /* Adjust for the height of the controls */
    z-index: 2; /* Ensure the controls are above the images */
    width: 50px; /* Set a fixed width for the control buttons */
    height: 50px; /* Set a fixed height for the control buttons */
    background: rgba(255, 178, 51, 0.3); /* Add background to make them more visible */
    border-radius: 50%; /* Round the control buttons */
    transition: background-color 0.3s ease; /* Smooth transition */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 153, 0, 0.5); /* Darker background on hover */
}

.carousel-control-prev:active,
.carousel-control-next:active {
    background: rgba(204, 122, 0, 0.7); /* Even darker background when active */
}

.carousel-control-prev {
    left: 15px; /* Position the left control slightly inside the carousel */
}

.carousel-control-next {
    right: 15px; /* Position the right control slightly inside the carousel */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 100%; /* Make the icon fill the control */
    height: 100%; /* Make the icon fill the control */
    background-size: 50%; /* Adjust the size of the arrow icons */
}

/* Ensure no extra margin or padding around the card container */
#rate-cards-container {
    margin: 0;
    padding: 0;
    background-color: transparent; /* Ensure the container's background is transparent */
    border: none; /* Remove any border */
    box-shadow: none; /* Remove any shadow */
}

/* The styling of the rate card itself */
.rate-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0; /* Remove bottom margin */
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    background-color: #fff; /* Ensure the card's background is white */
}

/* The header section of the rate card */
.rate-card-header {
    background-color: #bcd9e1; /* Light blue background for header */
    color: #000; /* Black text */
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}

/* The header section of the Private rate card */
.rate-card-header-private {
    background-color: #bcd9e1; /* Light blue background for Private */
    color: #000; /* Black text */
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}

/* The header section of the Trade rate card */
.rate-card-header-trade {
    background-color: #b2d8b2; /* Light green background for Trade */
    color: #000; /* Black text */
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}

/* The body content of the rate cards */
.rate-card-body {
    padding: 15px;
}

/* The body content of the rate card */
.rate-card-body {
    padding: 15px;
}

.btc-text {
    color: #FF9900; /* Replace with your desired color */
}

.bitcars {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700; /* Bold */
    font-style: italic; /* Italic */
    color: #FF9900; /* Orange color */
}
.world {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700; /* Bold */
    font-style: italic; /* Italic */
    color: #09f; /* Blue color */
}

nav[aria-label="Page navigation"] {
    background-color: transparent;  /* Ensure no background color */
    padding: 0;  /* Remove padding around the pagination container */
    margin: 0;  /* Remove margin to eliminate extra spacing */
}

/* Pagination container styling */
.pagination-container {
    display: flex;           /* Use flexbox for alignment */
    justify-content: center;  /* Center the pagination horizontally */
    background-color: transparent; /* Ensure transparent background */
    border: none; /* Remove any borders */
    margin: 0;
    padding: 0;
}

/* Pagination styling */
.pagination {
    padding-left: 0;
    margin-bottom: 0;
    background-color: transparent; /* Make the background transparent */
    border-radius: 0; /* Remove any border radius */
}

/* Each page item */
.page-item {
    display: inline;
    margin: 0 5px; /* Add some spacing between page numbers */
}

/* Each page link */
.page-link {
    padding: 5px 10px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #f8f9fa; /* Light background for pagination */
}

/* Active page link */
.page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Hover effect for pagination links */
.page-link:hover {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* General adjustments for mobile responsiveness */
@media (max-width: 767px) {
    /* Make the container full-width and remove margins */
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Adjust the product item to stack on mobile */
    .product-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    /* Stack elements inside product-item */
    .product-item h5 {
        font-size: 1em;
        display: block;
        margin-bottom: 10px;
    }

    /* Set image 1 to 352px by 263px */
    .product-list .image-frame:nth-child(1) {
        width: 352.85px;
        height: 263.5px;
    }

    /* Make images 2, 3, and 4 half size */
    .product-list .image-frame:nth-child(2),
    .product-list .image-frame:nth-child(3),
    .product-list .image-frame:nth-child(4) {
        width: 113.5px; /* Half the width */
        height: 85px;    /* Half the height */
    }

    .product-list .image-frame img {
        width: 100%; /* Full width inside the frame */
        height: 100%; /* Full height inside the frame */
        object-fit: cover; /* Ensures the image fills the frame without distortion */
    }

    /* Adjust pagination for mobile */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Ensure truncation works well on mobile */
    .truncate-description {
        -webkit-line-clamp: 3; /* Adjust the number of lines shown on mobile */
    }
}