/*body {*/
/*    font-family: Arial, sans-serif;*/
/*    margin: 0;*/
/*    background-color: #f0f2f5;*/
/*}*/
/*.container {*/
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*    padding: 20px;*/
/*}*/
/*!* Custom styles for your carousel if not using full Bootstrap default look *!*/
/*.carousel-item img {*/
/*    height: 450px; !* Adjust height as needed *!*/
/*    object-fit: cover; !* Ensures image covers the area without distortion *!*/
/*    width: 100%;*/
/*}*/
/*.carousel-caption {*/
/*    background-color: rgba(0, 0, 0, 0.5); !* Semi-transparent background for text *!*/
/*    padding: 15px;*/
/*    border-radius: 5px;*/
/*    bottom: 20px; !* Adjust position *!*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    width: 80%; !* Adjust width *!*/
/*    max-width: 800px;*/
/*    text-align: center;*/
/*}*/
/*.carousel-caption h5 {*/
/*    font-size: 2.5em; !* Larger font for welcome message *!*/
/*    margin-bottom: 10px;*/
/*    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);*/
/*}*/
/*.carousel-caption p {*/
/*    font-size: 1.1em;*/
/*    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);*/
/*}*/


/*.section-title {*/
/*    text-align: center;*/
/*    font-size: 1.8em;*/
/*    margin: 40px 0 20px;*/
/*    color: #333;*/
/*}*/

/*.tender-details-grid, .tenders-by-closing-grid, .product-categories-grid, .gallery-grid {*/
/*    display: grid;*/
/*    gap: 20px;*/
/*    margin-bottom: 40px;*/
/*}*/
/*.tender-details-grid {*/
/*    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
/*}*/
/*.tender-card {*/
/*    background-color: white;*/
/*    padding: 20px;*/
/*    border-radius: 8px;*/
/*    box-shadow: 0 4px 10px rgba(0,0,0,0.08);*/
/*    text-align: center;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    min-height: 120px;*/
/*}*/
/*.tender-card .number {*/
/*    font-size: 2.5em;*/
/*    font-weight: bold;*/
/*    margin-bottom: 5px;*/
/*}*/
/*.tender-card .label {*/
/*    font-size: 1em;*/
/*    color: #555;*/
/*}*/
/*!* Specific colors for tender cards *!*/
/*.card-blue { color: #007bff; }*/
/*.card-green { color: #28a745; }*/
/*.card-red { color: #dc3545; }*/
/*.card-purple { color: #6f42c1; }*/

/*.tenders-by-closing-grid {*/
/*    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));*/
/*}*/
/*.tenders-by-closing-grid .tender-card {*/
/*    background-color: #e9ecef;*/
/*}*/

/*!* Overall section container *!*/
/*.product-categories-section {*/
/*    margin-top: 40px; !* Space above the section *!*/
/*    margin-bottom: 40px; !* Space below the section *!*/
/*    padding: 0 15px; !* Add some padding to prevent content from touching edges on small screens *!*/
/*}*/

/*!* Ensure the Bootstrap row has appropriate margins *!*/
/*.product-categories-section .row {*/
/*    margin-left: -10px;  !* Adjusts for half of the col padding *!*/
/*    margin-right: -10px; !* Adjusts for half of the col padding *!*/
/*    justify-content: center; !* Center the items if they don't fill the row completely *!*/
/*}*/

/*!* Adjust column padding to bring items closer, and add horizontal margin *!*/
/*.product-categories-section .col-md-2 {*/
/*    padding-left: 10px; !* Half the gap *!*/
/*    padding-right: 10px; !* Half the gap *!*/
/*    flex-basis: 20%; !* For 5 items per row, 100% / 5 = 20% *!*/
/*    max-width: 20%; !* For 5 items per row *!*/
/*}*/

/*!* Category Item Styling *!*/
/*.category-item {*/
/*    background-color: #ffffff; !* White background *!*/
/*    border: 1px solid #e0e0e0; !* Light grey border as seen in image *!*/
/*    border-radius: 8px; !* Rounded corners *!*/
/*    box-shadow: 0 2px 8px rgba(0,0,0,0.08); !* More noticeable shadow than previous, as in image *!*/
/*    padding: 20px 10px; !* Vertical padding more than horizontal for content *!*/
/*    text-align: center; !* Center content horizontally *!*/
/*    height: 100%; !* Ensures all items in a row have consistent height *!*/
/*    display: flex; !* Use flexbox for vertical centering and arrangement *!*/
/*    flex-direction: column;*/
/*    justify-content: flex-start; !* Align content to the top *!*/
/*    align-items: center; !* Center items horizontally within the flex container *!*/
/*    transition: transform 0.2s ease, box-shadow 0.2s ease;*/
/*}*/

/*.category-item:hover {*/
/*    transform: translateY(-5px); !* Subtle lift effect on hover *!*/
/*    box-shadow: 0 6px 12px rgba(0,0,0,0.15); !* Enhanced shadow on hover *!*/
/*}*/

/*.category-item img {*/
/*    width: 70px; !* Slightly larger icon size based on image *!*/
/*    height: 70px; !* Maintain aspect ratio *!*/
/*    object-fit: contain; !* Ensure image fits without cropping *!*/
/*    margin-bottom: 15px; !* Space between icon and text *!*/
/*}*/

/*.category-item span {*/
/*    font-size: 0.9em; !* Adjust font size *!*/
/*    color: #333; !* Darker text color *!*/
/*    font-weight: 500; !* Medium font weight *!*/
/*    line-height: 1.3; !* Better line spacing for multi-line text *!*/
/*    word-break: break-word; !* Allows long category names to wrap *!*/
/*    overflow-wrap: break-word; !* Fallback for word-break *!*/
/*    text-overflow: ellipsis; !* Add ellipsis if text is too long for one line (optional) *!*/
/*    display: -webkit-box; !* For multi-line ellipsis *!*/
/*    -webkit-line-clamp: 2; !* Show max 2 lines, then ellipsis *!*/
/*    -webkit-box-orient: vertical;*/
/*}*/

/*!* Responsive Adjustments *!*/
/*@media (min-width: 992px) { !* Medium devices and up (for md-2) *!*/
/*    .product-categories-section .col-md-2 {*/
/*        !* This overrides Bootstrap's default 16.66% for col-md-2*/
/*           to achieve 5 columns (20% each) *!*/
/*        flex-basis: 20%;*/
/*        max-width: 20%;*/
/*    }*/
/*}*/

/*@media (max-width: 767.98px) { !* Small devices and below *!*/
/*    .product-categories-section .col-sm-4 {*/
/*        !* Ensure these adjust correctly for smaller screens based on your design *!*/
/*        flex-basis: 33.333333%; !* 3 items per row on sm *!*/
/*        max-width: 33.333333%;*/
/*    }*/
/*    .product-categories-section .col-6 {*/
/*        flex-basis: 50%; !* 2 items per row on extra small *!*/
/*        max-width: 50%;*/
/*    }*/
/*    .category-item {*/
/*        padding: 15px 8px; !* Reduce padding on smaller screens *!*/
/*    }*/
/*    .category-item img {*/
/*        width: 60px; !* Smaller icons on small screens *!*/
/*        height: 60px;*/
/*    }*/
/*}*/

/*!* Gallery Section Styling *!*/
/*.gallery-item {*/
/*    background-color: #fff;*/
/*    border-radius: 10px;*/
/*    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
/*    overflow: hidden;*/
/*    position: relative;*/
/*    transition: transform 0.2s ease, box-shadow 0.2s ease;*/
/*    width: 350px;*/
/*    flex-shrink: 0;*/
/*    margin-bottom: 40px;*/
/*}*/

/*.gallery-item:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);*/
/*}*/

/*.gallery-item img {*/
/*    width: 100%;*/
/*    height: 250px;*/
/*    object-fit: cover;*/
/*    display: block;*/
/*}*/

/*.gallery-item .caption {*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    background-color: rgba(0, 0, 0, 0.6);*/
/*    color: #fff;*/
/*    padding: 8px 15px;*/
/*    font-size: 0.9em;*/
/*    border-bottom-left-radius: 10px;*/
/*    white-space: nowrap;*/
/*}*/

/*.gallery-item .caption i {*/
/*    margin-right: 5px;*/
/*}*/


/*!* Ensure the grid layout is correct *!*/
/*.tender-details-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); !* Adjust minmax as needed *!*/
/*    gap: 40px;*/
/*    margin-top: 10px;*/
/*    margin-bottom: 40px; !* Add some space below the section *!*/
/*}*/

/*!* Base style for each tender card *!*/
/*.tender-card {*/
/*    border-radius: 10px;*/
/*    padding: 25px;*/
/*    color: #fff;*/
/*    text-align: left; !* Align text to left *!*/
/*    position: relative; !* For icon positioning *!*/
/*    overflow: hidden; !* Ensure icon doesn't spill out *!*/
/*    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); !* Subtle shadow as in image *!*/
/*    transition: transform 0.2s ease, box-shadow 0.2s ease;*/
/*}*/

/*.tender-card:hover {*/
/*    transform: translateY(-5px); !* Lift effect on hover *!*/
/*    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);*/
/*}*/

/*.tender-card .number {*/
/*    font-size: 2.5em; !* Larger number *!*/
/*    font-weight: bold;*/
/*    margin-bottom: 5px;*/
/*    position: relative; !* To ensure it's above the icon *!*/
/*    z-index: 2; !* Keep number on top *!*/
/*}*/

/*.tender-card .label {*/
/*    font-size: 1em; !* Smaller label *!*/
/*    opacity: 0.9;*/
/*    position: relative; !* To ensure it's above the icon *!*/
/*    z-index: 2; !* Keep label on top *!*/
/*}*/

/*!* Card Colors *!*/
/*.tender-card.card-blue {*/
/*    background-color: #673ab7; !* Darker blue as in image *!*/
/*}*/

/*.tender-card.card-green {*/
/*    background-color: #4caf50; !* Green as in image *!*/
/*}*/

/*.tender-card.card-red {*/
/*    background-color: #f44336; !* Red as in image *!*/
/*}*/

/*.tender-card.card-light-blue { !* New class for the last card *!*/
/*    background-color: #2196f3; !* Lighter blue as in image *!*/
/*}*/

/*!* Icon Styling *!*/
/*.tender-card .card-icon {*/
/*    position: absolute;*/
/*    bottom: -15px; !* Adjust to move icon downwards *!*/
/*    right: -15px; !* Adjust to move icon to the right *!*/
/*    height: 100px; !* Adjust icon size *!*/
/*    width: 100px; !* Adjust icon size *!*/
/*    opacity: 0.2; !* Semi-transparent as in image *!*/
/*    z-index: 1; !* Place icon behind text but above card background *!*/
/*}*/

/*!* Responsive adjustments *!*/
/*@media (max-width: 768px) {*/
/*    .tender-details-grid {*/
/*        grid-template-columns: 1fr; !* Stack cards on small screens *!*/
/*    }*/
/*}*/
/*!* Styling for the entire "Tenders by Closing Day(s)" section background *!*/
/*.tenders-by-closing-section {*/
/*    background-color: #373357; !* Dark blue/purple background *!*/
/*    padding: 40px 20px; !* Adjust padding as needed *!*/
/*    margin-top: 10px; !* Space above this section *!*/
/*    margin-bottom: 40px; !* Space below this section *!*/
/*    !* Remove max-width and margin: 0 auto; if present, to allow full width *!*/
/*    width: 100%; !* Ensures it covers the entire width *!*/
/*    box-sizing: border-box; !* Include padding in the width calculation *!*/
/*}*/

/*.tenders-by-closing-section .section-title {*/
/*    margin-bottom: 30px; !* Space below the title *!*/
/*    color: #ffffff; !* Ensure title is white *!*/
/*    text-align: center; !* Ensure title is centered *!*/
/*}*/


/*!* Grid layout for the cards within this section *!*/
/*.tenders-by-closing-grid {*/
/*    display: grid;*/
/*    !* Adjusted minmax to make grid boxes slightly smaller *!*/
/*    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); !* Changed from 200px to 180px *!*/
/*    gap: 20px;*/
/*    max-width: 1200px; !* Still constrain the grid's internal width for readability *!*/
/*    margin: 0 auto; !* Center the grid within the full-width section *!*/
/*}*/

/*!* Styling for individual cards in this section *!*/
/*.tender-card-closing {*/
/*    background-color: #ffffff; !* White background for cards *!*/
/*    border-radius: 10px; !* Rounded corners *!*/
/*    padding: 20px; !* Slightly reduced padding to make box smaller *!*/
/*    color: #333; !* Dark text color for content *!*/
/*    text-align: center; !* Center text and icon *!*/
/*    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); !* Subtle shadow *!*/
/*    transition: transform 0.2s ease, box-shadow 0.2s ease;*/
/*}*/

/*.tender-card-closing:hover {*/
/*    transform: translateY(-5px); !* Lift effect on hover *!*/
/*    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);*/
/*}*/

/*.tender-card-closing .number {*/
/*    font-size: 1.8em; !* Slightly smaller number font size *!*/
/*    font-weight: bold;*/
/*    margin-top: 10px; !* Space below icon *!*/
/*    margin-bottom: 5px;*/
/*    color: #333; !* Ensure numbers are dark *!*/
/*}*/

/*.tender-card-closing .label {*/
/*    font-size: 0.85em; !* Slightly smaller label font size *!*/
/*    opacity: 0.8;*/
/*    color: #555; !* Ensure labels are dark *!*/
/*}*/

/*!* Styling for the calendar icon *!*/
/*.tender-card-closing .closing-card-icon {*/
/*    width: 45px; !* Slightly smaller icon size *!*/
/*    height: 45px; !* Slightly smaller icon size *!*/
/*    margin-bottom: 10px; !* Space between icon and number *!*/
/*}*/


/*!* Responsive adjustments for smaller screens *!*/
/*@media (max-width: 768px) {*/
/*    .tenders-by-closing-grid {*/
/*        grid-template-columns: 1fr; !* Stack cards on small screens *!*/
/*    }*/
/*    .tender-card-closing {*/
/*        padding: 15px; !* Adjust padding for smaller screens if needed *!*/
/*    }*/
/*}*/

/*new css*/


/* General Body and Typography */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Modern font stack */
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5; /* Your preferred light background */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Reduced horizontal padding */
    box-sizing: border-box; /* Include padding in width calculation */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem; /* Reduced margin */
}

.section-title {
    text-align: center;
    font-size: 2rem; /* Reduced font size */
    margin-top: 2.5rem; /* Reduced margin */
    margin-bottom: 2rem; /* Reduced margin */
    position: relative;
    padding-bottom: 10px; /* Reduced padding */
    color: #333; /* Your desired title color */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px; /* Reduced width */
    height: 3px; /* Reduced height */
    background-color: #007bff; /* Primary color highlight */
    border-radius: 2px;
}

/* Hero Section - Carousel */
.hero-section {
    /*margin-bottom: 2rem;*/ /* Reduced margin */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    height: 400px; /* Slightly reduced carousel image height */
    object-fit: cover;
    width: 100%;
    filter: brightness(0.8); /* Slightly dim images for better text readability if captions were present */
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    padding: 10px; /* Reduced padding */
    border-radius: 5px;
    bottom: 15px; /* Reduced bottom position */
    left: 50%;
    transform: translateX(-50%);
    width: 85%; /* Slightly increased width */
    max-width: 700px; /* Reduced max-width */
    text-align: center;
}

.carousel-caption h5 {
    font-size: 2em; /* Reduced font size */
    margin-bottom: 8px; /* Reduced margin */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
    font-size: 1em; /* Reduced font size */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 12px; /* Reduced padding */
    width: 35px; /* Reduced size of the icon */
    height: 35px; /* Reduced size of the icon */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tender Details Grid */
.tender-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjusted minmax for smaller cards */
    gap: 30px; /* Reduced gap */
    margin-top: 5px; /* Reduced margin */
    margin-bottom: 30px; /* Reduced margin */
}

/* Base style for each tender card */
.tender-card {
    background-color: white; /* Default background, overridden by specific colors */
    border-radius: 8px; /* Slightly smaller rounded corners */
    padding: 20px; /* Reduced padding */
    color: #fff; /* White text for these cards */
    text-align: left; /* Align text to left */
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); /* Slightly smaller shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; /* Flexbox for alignment */
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    min-height: 110px; /* Slightly reduced consistent height */
}

.tender-card:hover {
    transform: translateY(-4px); /* Slightly less lift effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); /* Slightly smaller shadow on hover */
}

.tender-card .number {
    font-size: 2.2em; /* Reduced font size */
    font-weight: bold;
    margin-bottom: 3px; /* Reduced margin */
    position: relative;
    z-index: 2; /* Keep number on top */
    color: inherit; /* Inherit color from parent (.tender-card) */
    line-height: 1.1; /* Adjust line height for better spacing */
}

.tender-card .label {
    font-size: 0.9em; /* Reduced font size */
    opacity: 0.9;
    position: relative;
    z-index: 2; /* Keep label on top */
    color: inherit; /* Inherit color from parent (.tender-card) */
}

/* Card Colors - Your specific colors applied as background */
.tender-card.card-blue {
    background-color: #673ab7; /* Your dark blue */
}

.tender-card.card-green {
    background-color: #4caf50; /* Your green */
}

.tender-card.card-red {
    background-color: #f44336; /* Your red */
}

.tender-card.card-light-blue { /* Class for the last card */
    background-color: #2196f3; /* Your lighter blue */
}

/* Icon Styling for Tender Cards */
.tender-card .card-icon {
    position: absolute;
    bottom: -10px; /* Adjusted */
    right: -10px; /* Adjusted */
    height: 80px; /* Reduced icon size */
    width: 80px; /* Reduced icon size */
    opacity: 0.2; /* Semi-transparent */
    z-index: 1; /* Place icon behind text */
}

/* Tenders by Closing Section */
.tenders-by-closing-section {
    background-color: #373357; /* Your dark blue/purple background */
    padding: 30px 0; /* Reduced padding */
    margin-top: 5px; /* Reduced margin */
    margin-bottom: 30px; /* Reduced margin */
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.15); /* Slightly smaller inner shadow */
}

.tenders-by-closing-section .section-title {
    color: #ffffff; /* Ensure title is white */
    margin-bottom: 25px; /* Reduced margin */
}

.tenders-by-closing-section .section-title::after {
    background-color: #ffffff; /* White underline for title */
}

.tenders-by-closing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Adjusted minmax */
    gap: 15px; /* Reduced gap */
    max-width: 1200px; /* Constrain the grid's internal width */
    margin: 0 auto; /* Center the grid */
    padding: 0 10px; /* Reduced padding inside the grid */
}

.tender-card-closing {
    background-color: #ffffff; /* White background for cards */
    border-radius: 8px; /* Slightly smaller border-radius */
    padding: 18px; /* Reduced padding */
    color: #333; /* Dark text color */
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); /* Slightly smaller shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; /* Flexbox for centering */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tender-card-closing:hover {
    transform: translateY(-4px); /* Slightly less lift */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); /* Slightly smaller shadow on hover */
}

.tender-card-closing .number {
    font-size: 1.6em; /* Reduced font size */
    font-weight: bold;
    margin-top: 8px; /* Reduced margin */
    margin-bottom: 3px; /* Reduced margin */
    color: #333;
}

.tender-card-closing .label {
    font-size: 0.8em; /* Reduced font size */
    opacity: 0.8;
    color: #555;
}

/* Icon Styling for Closing Tenders Card */
.tender-card-closing .closing-card-icon {
    width: 40px; /* Reduced size */
    height: 40px; /* Reduced size */
    margin-bottom: 8px; /* Reduced margin */
}

/* Product Categories Section */
.product-categories-section {
    margin-top: 30px; /* Reduced margin */
    margin-bottom: 30px; /* Reduced margin */
    padding: 0 10px; /* Reduced padding */
}

.product-categories-section .row {
    margin-left: -8px; /* Adjusted for half of the col padding */
    margin-right: -8px; /* Adjusted for half of the col padding */
    justify-content: center; /* Center the items if they don't fill the row */
}

.product-categories-section .col-6,
.product-categories-section .col-sm-4,
.product-categories-section .col-md-2 {
    padding-left: 8px; /* Half the gap */
    padding-right: 8px; /* Half the gap */
    margin-bottom: 15px; /* Reduced space between rows of category items */
}

/* Specific flex basis for desktop to achieve 5 columns */
@media (min-width: 992px) {
    .product-categories-section .col-md-2 {
        flex-basis: 20%;
        max-width: 20%;
    }
}

/* Category Item Styling */
.category-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px; /* Slightly smaller border-radius */
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06); /* Slightly smaller shadow */
    padding: 15px 8px; /* Reduced padding */
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-item:hover {
    transform: translateY(-4px); /* Slightly less lift */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); /* Slightly smaller shadow on hover */
}

.category-item img {
    width: 60px; /* Reduced icon size */
    height: 60px; /* Reduced icon size */
    object-fit: contain;
    margin-bottom: 10px; /* Reduced margin */
    transition: transform 0.2s ease;
}

.category-item:hover img {
    transform: scale(1.08); /* Slightly less icon scale on hover */
}

.category-item span {
    font-size: 0.85em; /* Reduced font size */
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Gallery Section Styling */
/*#galleryCarousel {*/
/*    margin-bottom: 3rem; !* Reduced margin *!*/
/*    max-width: 900px; !* Reduced max-width *!*/
/*    margin-left: auto;*/
/*    margin-right: auto;*/
/*}*/

/*.gallery-item {*/
/*    position: relative;*/
/*    border-radius: 8px; !* Slightly smaller border-radius *!*/
/*    overflow: hidden;*/
/*    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); !* Slightly smaller shadow *!*/
/*    transition: transform 0.2s ease, box-shadow 0.2s ease;*/
/*    width: 300px; !* Reduced fixed width for items in the flex container *!*/
/*    flex-shrink: 0;*/
/*    margin-bottom: 30px; !* Reduced margin *!*/
/*}*/

/*.gallery-item:hover {*/
/*    transform: translateY(-4px); !* Slightly less lift *!*/
/*    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); !* Slightly smaller shadow on hover *!*/
/*}*/

/*.gallery-item img {*/
/*    width: 100%;*/
/*    height: 220px; !* Reduced gallery image height *!*/
/*    object-fit: cover;*/
/*    display: block;*/
/*}*/

/*.gallery-item .caption {*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    width: 100%; !* Ensure caption spans full width *!*/
/*    background-color: rgba(0, 0, 0, 0.6);*/
/*    color: #fff;*/
/*    padding: 6px 10px; !* Reduced padding *!*/
/*    font-size: 0.85em; !* Reduced font size *!*/
/*    border-bottom-left-radius: 8px;*/
/*    border-bottom-right-radius: 8px; !* Match gallery item border-radius *!*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 4px; !* Reduced space between icon and text *!*/
/*    white-space: nowrap; !* Prevent caption text from wrapping prematurely *!*/
/*    overflow: hidden;*/
/*    text-overflow: ellipsis;*/
/*}*/

/*.gallery-item .caption i {*/
/*    margin-right: 4px; !* Reduced space between icon and text *!*/
/*    color: #007bff; !* Highlight icon *!*/
/*}*/

/*.carousel-control-prev, .carousel-control-next {*/
/*    width: 5%; !* Adjust width of controls *!*/
/*}*/

/*Gallery section from cloude*/

.scrolling-gallery-container {
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    position: relative;
}

.scrolling-gallery {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 20px;
}

.scrolling-gallery:hover {
    animation-play-state: paused;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 300px;
    flex-shrink: 0;
    margin-bottom: 30px;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 10px;
    font-size: 0.85em;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.gallery-item .caption i {
    margin-right: 4px;
    color: #007bff;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-320px * 6));
    }
}

/* Duplicate the gallery items for seamless loop */
.scrolling-gallery::after {
    content: '';
    flex: none;
}

/* Duplicate the gallery items for seamless loop */
.scrolling-gallery::after {
    content: '';
    flex: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem; /* Reduced */
    }

    .carousel-item img {
        height: 300px; /* Reduced height for tablets */
    }

    .carousel-caption h5 {
        font-size: 1.8em; /* Reduced */
    }

    .carousel-caption p {
        font-size: 0.9em; /* Reduced */
    }

    .tender-card .number {
        font-size: 1.8rem; /* Reduced */
    }

    .tender-card .label {
        font-size: 0.85em; /* Reduced */
    }

    .tender-card .card-icon {
        height: 70px; /* Reduced */
        width: 70px; /* Reduced */
    }

    .tender-card-closing .number {
        font-size: 1.4em; /* Reduced */
    }

    .tender-card-closing .label {
        font-size: 0.75em; /* Reduced */
    }

    .tender-card-closing .closing-card-icon {
        width: 35px; /* Reduced */
        height: 35px; /* Reduced */
    }

    .gallery-item {
        width: 280px; /* Reduced gallery item width for tablets */
    }

    .gallery-item img {
        height: 180px; /* Reduced */
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem; /* Reduced */
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .carousel-item img {
        height: 240px; /* Reduced height for mobile landscape */
    }

    .carousel-caption h5 {
        font-size: 1.5em; /* Reduced */
    }

    .carousel-caption p {
        font-size: 0.85em; /* Reduced */
    }

    .tender-details-grid,
    .tenders-by-closing-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 15px; /* Reduced */
    }

    .product-categories-section .col-sm-4 {
        flex-basis: 50%; /* 2 items per row on small screens */
        max-width: 50%;
    }

    .product-categories-section .col-6 {
        flex-basis: 100%; /* 1 item per row on extra small screens */
        max-width: 100%;
    }

    .gallery-item {
        width: 95%; /* Adjusted */
        margin-left: auto;
        margin-right: auto;
    }

    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Reduced */
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.4rem; /* Reduced */
        margin-top: 1.5rem; /* Reduced */
        margin-bottom: 1rem; /* Reduced */
    }

    .carousel-item img {
        height: 180px; /* Reduced height for mobile portrait */
    }

    .carousel-caption h5 {
        font-size: 1.2em; /* Reduced */
    }

    .carousel-caption p {
        font-size: 0.8em; /* Reduced */
    }

    .tender-card, .tender-card-closing {
        padding: 15px; /* Reduced */
    }

    .tender-card .number {
        font-size: 1.8em; /* Reduced */
    }

    .tender-card .label {
        font-size: 0.85em; /* Reduced */
    }

    .category-item {
        padding: 12px 5px; /* Reduced */
    }

    .category-item img {
        width: 45px; /* Reduced */
        height: 45px; /* Reduced */
    }

    .category-item span {
        font-size: 0.75em; /* Reduced */
    }

    .gallery-item img {
        height: 160px; /* Reduced */
    }

    .gallery-item .caption {
        font-size: 0.75em; /* Reduced */
        padding: 5px 8px; /* Reduced */
    }
}