﻿/* Custom CSS for Cards */
/* Custom CSS for Cards */
.card-custom {
    background-color: #673ab7; /* Purple background */
    color: white;
    text-align: left;
    margin-bottom: 20px;
    border-radius: 0px;
}

    /* Smaller Cards for Left Side */
    .card-custom.small-card {
        height: 100px;
        width: 200px;
    }

    /* Larger Cards for Middle and Right Side */
    .card-custom.big-card {
        height: 250px;
    }

.col-md-4 .card-custom {
    margin-bottom: 25px;
}



.card-custom p {
    font-size: 12px;
}



body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

/* Chatbot Container */
.chat-container {
    width: 400px;
    margin: 0 auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Messages Container */
.messages {
    padding: 5px;
    background-color: #f9f9f9;
}

/* Message Styling */
.message {
    margin: 5px 0;
}

    .message.user {
        text-align: right;
    }

/* Input Area */
.input-area {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

button {
    padding: 5px 10px;
    background-color: #673ab7;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Custom scrollbar is now removed */

/* Basic Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
}

/* Highlight animation for chatbot icon */
.chatbot-icon.highlight {
    animation: pulse 1s infinite;
    background-color: #0056b3 !important;
}


/* Keyframes for pulsing effect */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Chatbot Toggle Icon */
.chatbot-icon {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
}

    .chatbot-icon img {
        width: 24px;
        height: 24px;
    }

/* Chatbot Card Styling */
.chatbot-card {
    width: 300px;
    height: 400px;
    position: fixed;
    bottom: 80px;
    right: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

/* Header */
.chatbot-header {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .chatbot-header .close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
    }

/* Messages container */
.messages-container {
    flex-grow: 1;
    padding: 10px;
    background-color: #f9f9f9;
    overflow-y: auto; /* Keep vertical scrolling if needed */
    display: flex;
    flex-direction: column;
    word-wrap: break-word; /* Break long words to avoid overflow */
    max-width: 100%; /* Ensure messages don't exceed the container width */
    box-sizing: border-box; /* Include padding and borders in width calculations */
}



.message {
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 20px;
    max-width: 90%; /* Restrict message width to prevent overflow */
    word-wrap: break-word; /* Handle long words */
    word-break: break-word; /* Break words that are too long */
    box-sizing: border-box; /* Include padding in width calculation */
}


 


    .message.bot {
        background-color: #e2e2e2;
        align-self: flex-start;
        white-space: pre-wrap; /* Preserves line breaks for multi-line messages */
    }


    .message.user {
        background-color: #007bff;
        color: white;
        align-self: flex-end;
    }

/* Input area */
.input-area {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
}

    .input-area input {
        flex-grow: 1;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 14px;
    }

    .input-area button {
        background-color: #007bff;
        color: white;
        padding: 8px 12px;
        border: none;
        border-radius: 50%;
        cursor: pointer;
    }

        .input-area button:hover {
            background-color: #0056b3;
        }

.table-container td div {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.table-container td .btn {
    padding: 5px 10px;
    font-size: 14px;
}

.logout-section {
    margin-top: 10px;
    text-align: right; /* Adjust based on your layout */
}
/* Marquee Animation */
.jumping-test {
    animation: marquee;
}


.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    /*background: #f0f0f0; */
}

.marquee-content {
    display: inline-block;
    animation: marquee 10s linear infinite !important;
}


.marquee h1 {
    display: inline;
    font-size: 25px;
    margin: 0 1em;
    animation: colorChange 5s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}


@keyframes colorChange {
    0% {
        color: #ff0000;
        /* Red */
    }

    50% {
        color: #00ff00;
        /* Green */
    }

    100% {
        color: #ff0000;
        /* Red */
    }
}

.no-marquee .marquee-content {
    animation: none;
}

@media (min-width: 1500px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1800px;
        width: 100%;
    }
}

.container-fluid {
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Adjust row to prevent extra spacing */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Card Styling */
.card-custom {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Hover effects for cards */
    .card-custom:hover {
        transform: scale(1.05);
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    }

    .card-custom:active {
        transform: scale(1.1);
    }

    /* Small Cards */
    .card-custom.small-card {
        width: 100%;
        height: auto;
    }

/* Marquee Animation */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.marquee-content {
    display: inline-block;
    animation: marquee 12s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes colorChange {
    0% {
        color: #ff0000; /* Red */
    }

    50% {
        color: #00ff00; /* Green */
    }

    100% {
        color: #ff0000; /* Red */
    }
}

/* Fade-In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-card {
    animation: fadeIn 0.6s ease-in-out;
}
.card-item {
    opacity: 0; /* Initially hide the cards */
    transform: translateX(-100px); /* Start the cards off the left side */
    animation: slideIn 0.8s forwards;
}

    .card-item:nth-child(1) {
        animation-delay: 0.2s; /* Delay for the first card */
    }

    .card-item:nth-child(2) {
        animation-delay: 0.4s; /* Delay for the second card */
    }

    .card-item:nth-child(3) {
        animation-delay: 0.6s; /* Delay for the third card */
    }

    .card-item:nth-child(4) {
        animation-delay: 0.8s; /* Delay for the fourth card */
    }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0); /* Cards slide in to their normal position */
    }
}
/* Bounce animation for card appearance */
@keyframes bounceIn {
    0% {
        transform: translateY(-50px); /* Start higher */
        opacity: 0; /* Invisible */
    }

    30% {
        transform: translateY(10px); /* Bounce down */
    }

    50% {
        transform: translateY(-5px); /* Bounce up */
    }

    70% {
        transform: translateY(2px); /* Final small bounce */
    }

    100% {
        transform: translateY(0); /* End at normal position */
        opacity: 1; /* Fully visible */
    }
}

/* Apply the bounce-in animation with different delays for each card */
.animated-card {
    animation: bounceIn 0.8s ease-out forwards;
}

    /* Stagger the animation delay for each card */
    .animated-card:nth-child(1) {
        animation-delay: 0s;
    }

    .animated-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .animated-card:nth-child(3) {
        animation-delay: 0.4s;
    }

    .animated-card:nth-child(4) {
        animation-delay: 0.6s;
    }
/* Define the fade-in animation */
@keyframes fadeInTd {
    0% {
        opacity: 0;
        transform: translateX(-20px); /* Start slightly off-screen */
    }

    100% {
        opacity: 1;
        transform: translateX(0); /* End in the normal position */
    }
}

/* Apply the fade-in animation to each td */
.animated-td {
    opacity: 0; /* Start hidden */
    animation: fadeInTd 0.5s ease-out forwards;
}

/* Add staggered delays for each td element to appear one by one */
tr:nth-child(1) .animated-td {
    animation-delay: 0.2s;
}

tr:nth-child(2) .animated-td {
    animation-delay: 0.4s;
}

tr:nth-child(3) .animated-td {
    animation-delay: 0.6s;
}

tr:nth-child(4) .animated-td {
    animation-delay: 0.8s;
}
/* Media Query for Tablets (Devices with width between 768px and 1024px) */
@media (max-width: 1024px) {

    .newcard {
        width: 12rem !important;
        height: 22rem;
        border: 1px solid #ddd;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .col-md-6 {
        width: 100%; /* Make cards take full width */
        margin-bottom: 20px; /* Add some space between the cards */
    }

    .col-lg-3 {
        width: 50%; /* Half width for tablet */
        margin-bottom: 20px;
    }

    /* Adjust the iframe height for smaller screens */
    .card-custom.big-card {
        height: 30vh; /* Reduce the video size on smaller screens */
    }

    .card-body {
        padding: 15px; /* Add padding for better spacing */
    }

    .card-custom.big-card iframe {
        height: 100%; /* Ensure the iframe takes the full card height */
    }

    /* Update icon sizes for smaller screens */
    .fa-2x {
        font-size: 1.5em; /* Adjust the icon size */
    }

    .card-header h5 {
        font-size: 1.2rem; /* Adjust the font size of card headers */
    }
}

/* Media Query for Mobile Phones (Devices with width between 576px and 768px) */
@media (max-width: 768px) {
    .col-12 {
        width: 100%; /* Make cards take full width */
    }

    /* Make video smaller on mobile */
    .card-custom.big-card {
        height: 20vh; /* Reduce the height of the video */
    }
    .newcard {
        /* width: 40rem !important;*/
        width: 33rem !important;
        height: 22rem;
        border: 1px solid #ddd;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .col-md-6, .col-lg-3 {
        width: 100%; /* Make each card take full width */
    }

    .card-body h3 {
        font-size: 1.2rem; /* Adjust the font size inside cards */
    }

    .card-body p {
        font-size: 0.9rem; /* Adjust the paragraph font size */
    }

    .card-header h5 {
        font-size: 1.1rem; /* Adjust the font size of card headers */
    }

    .card-custom.small-card .card-body {
        padding: 10px; /* Reduce padding for small screens */
    }

    /* Adjust the icons */
    .fa-2x {
        font-size: 1.5em;
    }

    /* For better alignment of the chatbot and helpline */
    .card-custom.big-card .card-body {
        text-align: center; /* Center-align the text */
    }
    .card-custom {
        height: 30vh; /* Adjust height for tablet screens */
    }

    .big-card iframe {
        height: 100%; /* Ensure video takes full height on tablet */
    }

    .news-items h5 {
        font-size: 1rem; /* Adjust title font size */
    }

    .news-items p {
        font-size: 0.9rem; /* Adjust text size */
    }
}

/* Media Query for Mobile Portrait (Devices with width below 576px) */
@media (max-width: 576px) {
    .card-custom {
        height: 25vh; /* Adjust height for mobile screens */
    }
    .newcard {
        width: 25rem !important;
        height: 22rem;
        border: 1px solid #ddd;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .big-card iframe {
        height: 100%; /* Ensure video takes full height on mobile */
    }

    .news-items h5 {
        font-size: 0.9rem; /* Adjust title font size */
    }

    .news-items p {
        font-size: 0.8rem; /* Adjust text size */
    }
    /* Adjust the size of cards and text for smaller mobile devices */
    .col-12 {
        width: 100%; /* Full width for mobile */
    }

    .card-custom.big-card {
        height: 25vh; /* Further reduce the height of the video */
    }

    .card-body h3 {
        font-size: 1.1rem;
    }

    .card-body p {
        font-size: 0.8rem;
    }

    .card-header h5 {
        font-size: 1rem;
    }

    /* Adjust icons and layout */
    .fa-2x {
        font-size: 1.2em;
    }

    /* For chat and helpline sections */
    .card-custom.big-card .card-body {
        padding: 8px;
    }

    /* Adjust layout of table and links */
    table.table {
        font-size: 0.9rem;
    }

    .card-body d-flex {
        flex-direction: column; /* Stack items vertically */
        align-items: center;
    }
}
.news-scroll-container {
    height: 12rem; /* Adjust based on your content height */
    overflow: hidden;
    position: relative;
}

.news-items {
    display: flex;
    flex-direction: column;
    animation: scrollUp 20s linear infinite;
}

    .news-items h5, .news-items p {
        margin: 0;
        padding: 5px 0;
    }

@keyframes scrollUp {
    0% {
        transform: translateY(0); /* Start at the normal position */
    }

    50% {
        transform: translateY(-100%); /* Move up by 100% of the container height */
    }

    100% {
        transform: translateY(-200%); /* Move up to show more content */
    }
}


@media (min-width: 768px) and (max-width: 1023px) {

    .newcard {
        width: 151% !important; /* Ensure the card width is responsive */
        height: auto; /* Adjust height for better scaling */
        max-width: 22rem; /* Prevent the card from becoming too wide */
        max-height: 22rem; /* Prevent the card from becoming too tall */
        border: 1px solid #ddd;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px; /* Add margin for spacing between cards */
    }

    .col-md-6 {
        width: 100%; /* Make cards take full width */
        margin-bottom: 20px; /* Add space between the cards */
    }

    .col-lg-3 {
        width: 50%; /* Half width for tablet */
        margin-bottom: 20px;
    }

    .card-custom.big-card {
        height: 30vh; /* Adjust video size for smaller screens */
        max-height: 30vh; /* Ensure card doesn't exceed desired height */
    }

    .card-body {
        padding: 15px; /* Add padding for better spacing */
    }

    .card-custom.big-card iframe {
        height: 100%; /* Ensure iframe takes full card height */
    }

    .fa-2x {
        font-size: 1.5em; /* Adjust icon size for smaller screens */
    }

    .card-header h5 {
        font-size: 1.2rem; /* Adjust card header font size */
    }
    .card-text:last-child {
        margin-bottom: 0;
        font-size: 11px;
    }


    .card-body {
        padding: 10px; /* Add padding for better spacing */
    }

    .card {
        margin: 0 10px; /* Add margin to avoid overflow */
    }

    .table {
        width: 100%; /* Ensure table takes full width */
        table-layout: fixed; /* Prevent content overflow */
    }

        .table td {
            word-wrap: break-word; /* Break words to avoid overflow */
            white-space: normal; /* Ensure text wraps within cells */
            padding: 8px; /* Adjust padding for smaller screens */
        }

    .animated-td {
        padding-left: 10px; /* Ensure padding inside cells */
        padding-right: 10px; /* Ensure padding inside cells */
    }

    .card-header h5 {
        font-size: 1.1rem; /* Adjust card header font size for tablets */
    }

}