.card {
    margin: 10px;
    height: 100%;
}

.card-body {
    text-align: center;
}

.carousel-inner {
    display: flex;
    justify-content: space-between;
}

/* Keep card height small */
.news-card {
    height: 200px;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.news-card .card-body {
    padding: 10px;
    font-size: 0.9rem;
}

.news-card:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.news-card img {
    height: 100px;
    object-fit: cover;
}

.news-card .card-title {
    font-size: 1rem;
    font-weight: bold;
}

.news-card .card-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #000;
    padding: 10px;
    border-radius: 50%;
}

.video-container {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-details {
    margin-top: 20px;
    text-align: center;
}

.video-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.video-description {
    font-size: 16px;
    text-align: justify;
    color: #555;
    line-height: 1.6;
}

/* Styling for the background div */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(237, 72, 52, 0.25);
    /* Light orange overlay */
    pointer-events: none;
    /* Ensure it doesn't interfere with interactions */
}

.truncate-description {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    /* Limit to 6 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    text-align: justify;
}

.service-title {
    font-size: 18px;
    /* Adjust as needed */
    text-align: center;
    word-wrap: break-word;
    /* Break long words if necessary */
    line-height: 1.5;
    /* Add spacing between lines */
    /*max-width: 170px;*/
    /* Optional: Set a width to force wrapping */
}

#partners .container {
    overflow: hidden; /* Ensures the marquee behaves properly */
}

#partners .partner-item {
    flex: 0 0 auto; /* Prevent shrinking and ensure items are displayed in a row */
    text-align: center;
}

.marquee-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}



/* Responsive styling */
@media (max-width: 768px) {
    .video-title {
        font-size: 20px;
    }

    .video-description {
        font-size: 14px;
    }
}