
.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.carousel-heading {
    font-size: 1.5em;
    margin-bottom: 35px;
    color: #222;
    display: none;
    opacity: 0;
    text-align: center;
    animation: fadeIn 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    font-weight: 600;
}

.carousel-heading.active {
    display: flex;
    justify-content: center;
}

.blog-group {
    display: none;
    justify-content: space-between;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.blog-group.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-card-link {
    text-decoration: none;
    width: 32%;
    display: block;
}

.blog-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 35px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.blog-card-link:hover .blog-card {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 188, 140, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.blog-card-link:hover .blog-card::before {
    opacity: 1;
}

.blog-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px;
    transition: transform 0.4s ease;
}

.blog-card-link:hover .blog-image {
    transform: scale(1.1);
}

.blog-content {
    padding: 10px;
    flex: 1;
}

.blog-title {
    font-size: 0.9em;
    line-height: 1.6;
    font-weight: bold;
    margin-bottom: 5px;
    color: #002846;
    transition: color 0.3s ease;
}

.blog-card-link:hover .blog-title {
    color: #002846;
}

.blog-timestamp {
    font-size: 0.85em;
    color: #888;
    display: flex;
    align-items: center;
}

.blog-timestamp::before {
    content: '•';
    margin-right: 5px;
    color: #63bc8c;
}

/* Fancy Carousel Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #002846, #003a66);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-dot.active {
    width: 30px;
    border-radius: 15px;
    background-color: #002846;
}

.carousel-dot.active::before {
    transform: scaleX(1);
}

.carousel-dot:hover {
    transform: scale(1.2);
}

/* Existing Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .blog-card-link {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .carousel-heading {
        font-size: 1.2em;
    }

    .blog-group {
        flex-direction: column;
        gap: 15px;
    }

    .blog-card-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-card {
        flex-direction: column;
        text-align: center;
    }

    .blog-image {
        width: 60px;
        height: 60px;
        margin: 10px auto;
    }

    .blog-title {
        font-size: 0.9em;
    }

    .blog-timestamp {
        font-size: 0.8em;
        justify-content: center;
    }
}
