:root {
    --dark-blue: #04121A;
    --brand-orange: #FF7800;
    --light-text: #f8f9fa;
    --dark-text: #212529;
}

.hero-section {
    background: url('../images/digital-trust.avif') no-repeat center center;
    background-size: cover;
    height: 90vh;
    color: var(--light-text);
}

.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}

.card img {
    max-height: 200px;
    object-fit: contain;
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-box {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 250px;
    background-color: var(--dark-blue);
    border: 1px solid var(--brand-orange);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 120, 0, 0.2);
}

.chat-box.show {
    display: block;
}

.chat-header {
    background-color: transparent;
    color: var(--light-text);
    padding: 10px;
    border-bottom: 1px solid var(--brand-orange);
}

.chat-body {
    padding: 10px;
}

/* Make carousel controls more visible */
#trendingCarousel .carousel-control-prev-icon,
#trendingCarousel .carousel-control-next-icon {
    background-color: rgba(255, 120, 0, 0.5);
    border-radius: 50%;
    padding: 1.2rem;
    background-size: 50%;
}

/* Modern Product Card Styles */
.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.product-card .card-img-top {
    transition: all 0.3s ease;
}

/* New Styles for improved card UI */
.product-card .card-body {
    padding: 1rem 1.5rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-card .card-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 0.75rem;
}

.star-rating .fa-star {
    color: var(--brand-orange);
}

.star-rating {
    margin-bottom: 0.5rem;
}

/* Multi-item Carousel Styles */
@media (max-width: 767px) {
    #trendingCarousel .carousel-inner .carousel-item > div {
        display: none;
    }
    #trendingCarousel .carousel-inner .carousel-item > div:first-child {
        display: block;
    }
}

#trendingCarousel .carousel-inner .carousel-item.active,
#trendingCarousel .carousel-inner .carousel-item-next,
#trendingCarousel .carousel-inner .carousel-item-prev {
    display: flex;
}

@media (min-width: 768px) {
    #trendingCarousel .carousel-inner .carousel-item-end.active,
    #trendingCarousel .carousel-inner .carousel-item-next {
        transform: translateX(25%);
    }
    #trendingCarousel .carousel-inner .carousel-item-start.active, 
    #trendingCarousel .carousel-inner .carousel-item-prev {
        transform: translateX(-25%);
    }
}

#trendingCarousel .carousel-inner .carousel-item-end,
#trendingCarousel .carousel-inner .carousel-item-start { 
    transform: translateX(0);
}

/* Tab Pills Styling */
.nav-pills .nav-link {
    color: var(--dark-text);
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: var(--brand-orange);
    color: var(--dark-blue);
    font-weight: 600;
}

/* Icon Badge Positioning */
.icon-with-badge {
    position: relative;
}

.icon-with-badge .badge {
    position: absolute;
    top: -11px;
    right: -20px;
    border: 1px solid white; /* Creates separation from the icon */
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-text);
    border-top-color: var(--brand-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}