/* Styling for the cards on the home page. This will show the content when hovered above the image */
/*.image-container {
    position: relative;
    height: 50%;*/
   /* height: 100%;*/
/*}

    .image-container img {
        height: 200%;*/
        /*height: 297%;*/
    /*}

.card-img-top {
    width: 100%;
    transition: opacity 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.image-container:hover .card-img-top {
    opacity: 0.15;
}

.image-container:hover .overlay {
    opacity: 1;
}

.card-text {
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

.col-card {
    background-color: #1c1847;
    color: white;
}*/

/*.header-div{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}*/

/* Card container styling */
/*.body-container {
    padding: 20px;
    margin-top: 9vh;
    height: 85vh;
    overflow-y: scroll;
    -ms-overflow-style: none;*/  /* Hide scrollbar in Internet Explorer and Edge */
    /*scrollbar-width: none;*/  /* Hide scrollbar in Firefox */
/*}

.body-container::-webkit-scrollbar {
    display: none;*/  /* Hide scrollbar in Chrome, Safari, and Opera */
/*}*/


/* Card styling */
/*.card {
    height: 350px;*/ /* Fixed height for all cards */
    /*width: 100%;*/ /* Take full width of column */
    /*overflow: hidden;
    margin-bottom: 20px;
}*/

/* Image container styling */
/*.image-container {
    position: relative;
    height: 310px;*/ /* Fixed height for image container */
    /*overflow: hidden;
}*/

    /* Image styling */
    /*.image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;*/ /* Maintains aspect ratio while covering container */
        /*transition: opacity 0.3s ease;
    }*/

/* Overlay styling */
/*.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
}*/

/* Hover effects */
/*.image-container:hover .card-img-top {
    opacity: 0.15;
}

.image-container:hover .overlay {
    opacity: 1;
}*/

/* Text styling */
/*.card-text {
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}*/

/* Card title section */
/*.col-card {
    background-color: #1c1847;
    color: white;
    height: 40px;*/ /* Fixed height for title section */
    /*display: flex;
    align-items: center;
    padding: 0 5px;
}

.card-title {
    margin: 0;*/ /* Remove default margins */
/*}


.footer-div {
    background-color: #eeeeee;
    height: auto;
}

.footer-div p {
    width: 70%;
    margin: 0 auto;
    color: black;
    text-align: justify;
    font-size: 0.7em;
}



#chatbot-main {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 1000;
}

#chatbot-url {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background-color: white;
    border: none;
}

    #chatbot-url img {
        width: 100px;
        display: block;
        margin: 0;
        padding: 0;
    }

#chatbot-main:hover {
    transform: scale(1.1);
}

#chatbot-url h3 {
    color: #00A7DE;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}*/


/*#popover-chatbot {
    position: fixed;
    top: 20px;
    right: -68vw;
    width: 30vw;
    height: 85vh;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: black;
    border: 1px solid grey;
}*/


/*#popover-chatbot {
    position: fixed;
    top: 0px;
    right: -70vw;
    width: 30vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: black;
    border: 1px solid grey;
    overflow: auto; 
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    #popover-chatbot::-webkit-scrollbar {
        display: none; 
    }*/

/* Close button styling */
/*#close-chatbot {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5c5c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

    #close-chatbot:hover {
        background-color: #ff1c1c;
    }*/

/*-------------------------------------------------------------------Design 2--------------------------------------------------------------------------------*/


/* Page styling */
/*.header-div {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}*/

/* Body and background styling */
/*body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

#homepage-maincontent {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}*/

/* Card container styling */
/*.body-container {
    padding: 20px;
    margin-top: 9vh;
    height: 85vh;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 100px;
}

    .body-container::-webkit-scrollbar {
        display: none;
    }*/

/* Card styling with modern enhancements */
/*.card {
    height: 350px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }*/

/* Image container styling */
/*.image-container {
    position: relative;
    height: 310px;
    overflow: hidden;
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease, opacity 0.3s ease;
    }

.card:hover .image-container img {
    transform: scale(1.05);
}*/

/* Overlay styling with gradient */
/*.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(28, 24, 71, 0.85), rgba(0, 167, 222, 0.75));
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.image-container:hover .card-img-top {
    opacity: 0.3;
}

.image-container:hover .overlay {
    opacity: 1;
}*/

/* Text styling with better readability */
/*.card-text {
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}*/

/* Card title section with gradient */
/*.col-card {
    background: linear-gradient(135deg, #1c1847, #2a2463);
    color: white;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.card-title {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}*/

/* Footer styling - fixed at bottom */
/*.footer-div {
    background-color: #eeeeee;
    height: auto;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

    .footer-div p {
        width: 70%;
        margin: 0 auto;
        color: black;
        text-align: justify;
        font-size: 0.7em;
    }*/

/* Chatbot styling - keeping original style */
/*#chatbot-main {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 1000;
}

#chatbot-url {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background-color: white;
    border: none;
}

    #chatbot-url img {
        width: 100px;
        display: block;
        margin: 0;
        padding: 0;
    }

#chatbot-main:hover {
    transform: scale(1.1);
}

#chatbot-url h3 {
    color: #00A7DE;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}*/

/* Popover chatbot styling */
/*#popover-chatbot {
    position: fixed;
    top: 0px;
    right: -70vw;
    width: 30vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    background-color: black;
    border: 1px solid grey;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    #popover-chatbot::-webkit-scrollbar {
        display: none;
    }*/

/* Close button styling */
/*#close-chatbot {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5c5c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    #close-chatbot:hover {
        background-color: #ff1c1c;
        transform: scale(1.1);
    }*/

/* Link styling for cards */
/*.image-container a {
    text-decoration: none;
}*/

/* Responsive adjustments */
/*@media (max-width: 768px) {
    .card {
        height: 320px;
    }

    .image-container {
        height: 280px;
    }

    .card-text {
        font-size: 14px;
    }

    #popover-chatbot {
        width: 90vw;
        right: -90vw;
    }
}*/


/*----------------------------------------------------------------------Design 3------------------------------------------------------------------------------------*/

/* Page styling with animated gradient background */
.header-div {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Body with subtle animated gradient background matching header */
body {
    background: linear-gradient(-45deg, #2a2463 0%, #1c1847 25%, #3d3875 50%, #2a2463 75%, #1c1847 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#homepage-maincontent {
    background: transparent;
}

/* Card container styling */
.body-container {
    padding: 30px 20px;
    margin-top: 9vh;
    min-height: calc(91vh - 80px);
    padding-bottom: 20px;
}

/* Remove separate scrollbar from body-container */

/* Make the entire page scrollable */
#homepage-maincontent {
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    #homepage-maincontent::-webkit-scrollbar {
        display: none;
    }

html, body {
    overflow-x: hidden;
}

/* Modern card design with light blue tint */
.card {
    height: 380px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 20px !important;
    background: rgba(230, 240, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 20px;
        padding: 2px;
        background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(0, 167, 222, 0.3));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 60px rgba(0, 167, 222, 0.3);
        background: rgba(240, 248, 255, 0.98);
    }

        .card:hover::before {
            opacity: 1;
        }

/* Image container with modern design */
.image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #e6f0fa;
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        filter: brightness(0.9);
        border-radius: 20px 20px 0 0;
    }

.card:hover .image-container img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(0.4);
}

/* Modern overlay with blur effect */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 24, 71, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.card:hover .overlay {
    opacity: 1;
}

/* Text styling with modern effects */
.card-body {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-body {
    transform: translateY(0);
}

.card-text {
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* Modern card title with gradient */
.col-card {
    background: linear-gradient(135deg, rgba(28, 24, 71, 0.9), rgba(42, 36, 99, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Chatbot styling - keeping original style but adjusted */
#chatbot-main {
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 1001;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

#chatbot-url {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    #chatbot-url img {
        width: 70px;
        display: block;
        margin: 0;
        padding: 0;
    }

#chatbot-main:hover {
    transform: scale(1.08);
}

    #chatbot-main:hover #chatbot-url {
        background-color: rgba(255, 255, 255, 1);
    }

#chatbot-url h3 {
    color: #00A7DE;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Popover chatbot styling */
#popover-chatbot {
    position: fixed;
    top: 0px;
    right: -70vw;
    width: 30vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    background-color: black;
    border: 1px solid grey;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    #popover-chatbot::-webkit-scrollbar {
        display: none;
    }

/* Close button styling */
#close-chatbot {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5c5c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    #close-chatbot:hover {
        background-color: #ff1c1c;
        transform: scale(1.1);
    }

/* Link styling for cards */
.image-container a {
    text-decoration: none;
}

/* Add staggered animation on page load */
.col {
    animation: fadeInUp 0.6s ease-out backwards;
}

    .col:nth-child(1) {
        animation-delay: 0.1s;
    }

    .col:nth-child(2) {
        animation-delay: 0.2s;
    }

    .col:nth-child(3) {
        animation-delay: 0.3s;
    }

    .col:nth-child(4) {
        animation-delay: 0.4s;
    }

    .col:nth-child(5) {
        animation-delay: 0.5s;
    }

    .col:nth-child(6) {
        animation-delay: 0.6s;
    }

    .col:nth-child(7) {
        animation-delay: 0.7s;
    }

    .col:nth-child(8) {
        animation-delay: 0.8s;
    }

    .col:nth-child(9) {
        animation-delay: 0.9s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        height: 350px;
    }

    .image-container {
        height: 290px;
    }

    .card-text {
        font-size: 14px;
    }

    .col-card {
        height: 60px;
    }

    #popover-chatbot {
        width: 90vw;
        right: 0vw;
    }
}