/* Chatbot Section */
.chatbot {
    padding: 20px;
}

.chatbot-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Changed from center to stretch for equal height */
    gap: 60px;
    max-width: 1200px; /* Add max-width to prevent too wide on large screens */
    margin: 0 auto; /* Center the container */
}

.chatbot-content {
    background: linear-gradient(180deg, #eef8ff 0%, #f5ebff 100%);
    border: white 3px solid;
    border-radius: 15px;
    padding: 30px;
    flex: 1; /* This ensures both sides are equal width */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center */
    align-items: center;
    min-height: 400px; /* Add minimum height for consistency */
}

.chatbot-title {
    font-size: 2.5em;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
}

/* Reusable badge styles */
.chatbot-badges {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px; /* Add margin bottom for spacing */
    justify-content: center; /* Center the badges */
}

.chatbot-badge {
    display: inline-block;
    padding: 7px 15px;
    border: rgba(216, 143, 255, 0.5) 3px solid;
    box-shadow: #4f4f4f 0px 0px 1px;
    color: #5900d9;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    white-space: nowrap; /* Prevent text wrapping */
}

/* Video styling for chatbot section */
.chatbot-video {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the video container */
    margin-top: auto;
}

.chatbot-video .video-description {
    color: #7c3aed;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1em;
}

.chatbot-video video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: block; /* Ensure block display for centering */
    margin: 0 auto; /* Center the video */
}

.chatbot-video video:hover {
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot {
        padding: 15px;
    }

    .chatbot-container {
        flex-direction: column;
        gap: 30px;
        max-width: none;
    }

    .chatbot-content {
        order: 1;
        max-width: none;
        min-height: auto;
    }

    .chatbot-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .chatbot-badges {
        flex-wrap: wrap;
        gap: 8px;
    }

    .chatbot-video {
        order: 2;
        width: 75%;
        text-align: center;
    }

    .chatbot-video video {
        border-radius: 15px;
    }

    .chatbot-video .video-description {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .chatbot-title {
        font-size: 1.5em;
    }

    .chatbot-badge {
        padding: 5px 10px;
        font-size: 0.9em;
    }

    .chatbot-video video {
        max-width: 90%;
    }
}
