/* index.css */

/* Body and page container */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: sans-serif; /* Adjust if you want a different font */
    background-color: #f3f4f6; /* You can modify this color */
}

.page-container {
    flex-grow: 1;
    max-width: 100%;
    margin: 0 auto;
}

/* Card styling with transition */
.company-card {
    transition: transform 0.3s ease-in-out;
}

.company-card:hover {
    transform: translateY(-5px);
}

/* No results message */
.no-results {
    color: #4B5563; /* Dark gray */
    background-color: #F3F4F6; /* Light gray */
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.125rem;
}

/* Truncate title text to two lines */
.truncate-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Truncate address text to four lines */
.truncate-address {
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Carousel Styles */
.carousel {
    display: flex;
    overflow: hidden;
    position: relative;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%;
    height: 200px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-control.prev { 
    left: 10px; 
}

.carousel-control.next { 
    right: 10px; 
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .carousel-item { 
        flex: 0 0 20%; 
    }
}

@media (max-width: 767px) {
    .carousel-item { 
        flex: 0 0 50%; 
        height: 150px; 
    }
}

/* Star Rating */
.star { 
    font-size: 24px; 
    cursor: pointer; 
    color: gray; 
}

.star.selected, .star.hovered { 
    color: gold; 
}

/* Privacy Section */
.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-size: 1.75rem;
    color: #2D3748;
    font-weight: bold;
    margin-bottom: 1rem;
}

.privacy-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4A5568;
    margin-bottom: 1rem;
}

/* Text and list styling */
.text-primary {
    color: #3182CE;
    font-weight: bold;
}

ul {
    margin-left: 1.5rem;
    list-style-type: disc;
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 0.5rem;
}