/* This file contains all the custom styles from your original index page.
    No third-party CSS (Bootstrap, Elementor, etc.) is included.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #DB3243;
    --secondary-color: #ff6b6b;
    --dark-color: #333;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
}

/*
========================================
✅ FIX: Header Overlap
========================================
This rule pushes the main content down
to make space for your fixed header.
*/
.site-main {
    /*
    IMPORTANT:
    Adjust this '100px' value to match
    the exact height of your 'header.php'.
    */
    padding-top: 80px; 
}


/* Preloader - STYLES KEPT BUT HTML/JS REMOVED TO FIX SLOWNESS */
#preloader-0005 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-logo-0005 {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.preloader-text-0005 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 20px;
    font-weight: 500;
    animation: fadeInOut 2s infinite;
}

/* Slideshow Container */
.slideshow-container-0005 {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #EEE; /* Fallback for when JS is loading */
}

.slide-0005 {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide-0005.active {
    opacity: 1;
}

.slide-content-0005 {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 20px;
    /* Animation for content */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.slide-0005.active .slide-content-0005 {
    transform: translateY(0);
    opacity: 1;
}


.slide-content-0005 h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.slide-content-0005 p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Navigation Buttons */
.prev-0005, .next-0005 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    z-index: 100;
    transition: all 0.3s ease;
}

.prev-0005 { left: 20px; }
.next-0005 { right: 20px; }

.prev-0005:hover, .next-0005:hover {
    background: rgba(219, 50, 67, 0.8);
}

/* Features Section */
.features-section-0005 {
    padding: 60px 20px;
    background: white;
}

.features-grid-0005 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.feature-card-0005 {
    text-align: center;
    padding: 30px;
    background: var(--light-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-card-0005:hover {
    transform: translateY(-10px);
}

.feature-icon-0005 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card-0005 h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card-0005 p {
    color: #666;
    font-size: 0.9rem;
}

/* Computer Analytical Section */
.computer-analytical-0005 {
    background: white;
    padding: 60px 20px;
    text-align: center;
}

.computer-analytical-0005 h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.computer-analytical-0005 p {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    margin-bottom: 40px;
}

/* Journal Articles Section */
.journal-articles-0005 {
    background: #f8f9fa;
    padding: 60px 20px;
}

.journal-header-0005 {
    text-align: center;
    margin-bottom: 40px;
}

.journal-header-0005 h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.year-tabs-0005 {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.year-tab-0005 {
    padding: 8px 20px;
    border: none;
    background: white;
    color: var(--dark-color);
    cursor: pointer;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.year-tab-0005:hover,
.year-tab-0005.active {
    background: var(--primary-color);
    color: white;
}

.journal-list-0005 {
    max-width: 1200px;
    margin: 0 auto;
}

.journal-item-0005 {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.journal-info-0005 {
    flex: 1;
}

.journal-title-0005 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.journal-meta-0005 {
    color: #666;
    font-size: 0.9rem;
}

.journal-doi-0005 {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.journal-pdf-0005 {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.journal-pdf-0005:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid-0005 {
        grid-template-columns: 1fr;
    }

    .slide-content-0005 h1 {
        font-size: 2rem;
    }

    .slide-content-0005 p {
        font-size: 1rem;
    }

    .slideshow-container-0005 {
        height: 400px;
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInOut {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Enhanced Associates & Indexing Section Header */
.associates-section-0005 {
    padding: 70px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.associates-header-0005 {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.associates-header-0005::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.associates-header-0005 h2 {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

@media (max-width: 900px) {
    .associates-header-0005 h2 {
        font-size: 2.2rem;
    }
}

/* Associates & Indexing Section */
.associates-slider-container-0005 {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Gradient fade effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.associates-slider-0005 {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.associate-item-0005 {
    min-width: 200px;
    text-align: center;
    flex-shrink: 0;
    pointer-events: none; /* Make unclickable */
}

.associate-image-0005 {
    width: 200px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.associate-item-0005:hover .associate-image-0005 {
    transform: scale(1.05);
}

.associate-name-0005 {
    font-size: 0.9rem;
    color: #fff;
    background: var(--primary-color);
    margin: 10px auto 0 auto;
    width: 200px;
    border-radius: 0 0 8px 8px;
    padding: 4px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: block;
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        /* --total-items is set by JS */
        transform: translateX(calc(-230px * var(--total-items))); /* 200px item + 30px gap */
    }
}

.associates-slider-0005 {
    animation: slideRight var(--animation-duration, 60s) linear infinite;
}

.associates-slider-0005:hover {
    animation-play-state: paused;
}

/* Important Notice Section */
.notice-section-0005 {
    width: 100%;
    background: rgba(219, 50, 67, 0.05);
    padding: 12px 0;
    overflow: hidden;
}

.notice-container-0005 {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.notice-label-0005 {
    background: var(--primary-color);
    color: white;
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 20px;
    white-space: nowrap;
    z-index: 1;
}

.notice-content-0005 {
    overflow: hidden;
    position: relative;
    height: 24px;
    flex-grow: 1;
}

.notice-text-0005 {
    position: absolute;
    white-space: nowrap;
    animation: scrollText 40s linear infinite;
    color: var(--dark-color);
    padding-left: 100%; /* Start off-screen */
    font-size: 0.95rem;
    line-height: 24px; /* Center text vertically */
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.notice-text-0005:hover {
    animation-play-state: paused;
}

/* Enhanced Conferences Section */
.conferences-section-0005 {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    padding: 70px 20px;
    position: relative;
}

.conferences-header-0005 {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.conferences-header-0005::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.conferences-header-0005 h2 {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.conferences-list-0005 {
    max-width: 1000px;
    margin: 0 auto;
}

.conference-item-0005 {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column */
    gap: 20px;
    align-items: center;
}

/* Use media query for larger screens */
@media (min-width: 768px) {
    .conference-item-0005 {
        grid-template-columns: 2fr 1.5fr auto; /* 3 columns on desktop */
    }
}


.conference-item-0005:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(219, 50, 67, 0.1);
    border-color: rgba(219, 50, 67, 0.1);
}

.conference-name-0005 {
    font-size: 1.15rem;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conference-info-group-0005 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conference-info-0005 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conference-venue-0005,
.conference-datetime-0005 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.conference-venue-0005 i,
.conference-datetime-0005 i {
    color: var(--primary-color);
    font-size: 1rem;
    opacity: 0.9;
    width: 15px; /* Align icons */
    text-align: center;
}

.conference-venue-0005 span,
.conference-datetime-0005 span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}

.conference-actions-0005 {
    text-align: left; /* Default for mobile */
}

@media (min-width: 768px) {
    .conference-actions-0005 {
        text-align: right; /* Right-aligned on desktop */
    }
}

.conference-details-btn-0005 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    white-space: nowrap;
}

.conference-details-btn-0005:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(219, 50, 67, 0.2);
}

.view-all-conferences-0005 {
    display: block;
    width: fit-content;
    margin: 35px auto 0;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 50, 67, 0.15);
}

.view-all-conferences-0005:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 50, 67, 0.25);
}

@media (max-width: 900px) {
    .conference-item-0005 {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .conference-actions-0005 {
        text-align: left;
    }

    .conference-details-btn-0005 {
        width: 100%;
        justify-content: center;
    }

    .conferences-header-0005 h2 {
        font-size: 2.2rem;
    }
}

/* Enhanced About Section */
.about-section-0005 {
    background: linear-gradient(to right, rgba(219, 50, 67, 0.03), rgba(219, 50, 67, 0.01));
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.about-container-0005 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-title-0005 {
    position: relative;
    padding-left: 20px;
}

.about-title-0005::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-title-0005 h2 {
    font-size: 2.8rem;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-content-0005 {
    position: relative;
    padding-right: 20px;
}

.about-content-0005 p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
    position: relative;
    text-align: justify;
}

.about-content-0005 p::first-letter {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    float: left;
    padding-right: 12px;
    line-height: 1;
}

@media (max-width: 900px) {
    .about-container-0005 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-title-0005 {
        text-align: left;
    }

    .about-title-0005 h2 {
        font-size: 2.2rem;
    }

    .about-content-0005 {
        padding-right: 0;
    }

    .about-content-0005 p {
        font-size: 1rem;
    }
}

/* Banner Image Section */
.banner-image-section-0005 {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: var(--light-color);
}

.banner-image-0005 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-overlay-0005 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

/* Video Player Section */
.video-section-0005 {
    padding: 70px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.video-container-0005 {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-thumbnail-0005 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    z-index: 1;
}

.play-button-0005 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.play-button-0005::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent white;
}

.play-button-0005:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff4757;
    box-shadow: 0 0 30px rgba(219, 50, 67, 0.3);
}

.video-overlay-0005 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-iframe-0005 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 0; /* Hidden initially */
}

.video-container-0005.playing .video-thumbnail-0005,
.video-container-0005.playing .play-button-0005,
.video-container-0005.playing .video-overlay-0005 {
    opacity: 0;
    pointer-events: none;
}

.video-container-0005.playing .video-iframe-0005 {
    z-index: 3; /* Bring to front when playing */
}


/* Floating Chat Button */
.chat-button-0005 {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(219, 50, 67, 0.3);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}

.chat-button-0005 i {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.chat-button-0005::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.chat-button-0005:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(219, 50, 67, 0.4);
}

.chat-button-0005:hover i {
    transform: scale(1.1);
}

.chat-tooltip-0005 {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: var(--dark-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chat-tooltip-0005::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent white;
}

.chat-button-0005:hover .chat-tooltip-0005 {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .chat-button-0005 {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .chat-button-0005 i {
        font-size: 20px;
    }
}

/* Chat Options and AI Chat Interface */
.chat-options-popup-0005 {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    width: 250px;
    padding: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-options-popup-0005.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-option-btn-0005 {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: var(--dark-color);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.chat-option-btn-0005:last-child {
    margin-bottom: 0;
}

.chat-option-btn-0005:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.chat-option-btn-0005 i {
    font-size: 18px;
}

/* AI Chat Interface */
.ai-chat-interface-0005 {
    position: fixed;
    bottom: 30px; /* Aligned with buttons */
    right: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .ai-chat-interface-0005 {
        bottom: 100px; /* Above chat button on desktop */
    }
}


.ai-chat-interface-0005.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header-0005 {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-0005 h3 {
    font-size: 16px;
    margin: 0;
}

.close-chat-0005 {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-chat-0005:hover {
    background-color: rgba(255,255,255,0.2);
}

.chat-messages-0005 {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.chat-messages-0005::-webkit-scrollbar {
    width: 6px;
}
.chat-messages-0005::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}
.chat-messages-0005::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.message-0005 {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.user-message-0005 {
    background: #f0f2f5;
    color: var(--dark-color);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.ai-message-0005 {
    background: var(--primary-color);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-input-area-0005 {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input-0005 {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input-0005:focus {
    border-color: var(--primary-color);
}

.send-message-0005 {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-message-0005:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .ai-chat-interface-0005 {
        width: calc(100% - 40px);
        height: 60vh;
        bottom: 90px;
        right: 20px;
    }

    .chat-options-popup-0005 {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
}

/* Latest Updates Floating Section */
.latest-updates-section-0005 {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 300px;
    max-height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 998;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.latest-updates-section-0005.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.latest-updates-button-0005 {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(219, 50, 67, 0.3);
    z-index: 999; /* Above the section */
    transition: all 0.3s ease;
}

.latest-updates-button-0005:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(219, 50, 67, 0.4);
}

.updates-count-0005 {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #2ecc71;
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.latest-updates-header-0005 {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.latest-updates-title-0005 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.latest-updates-content-0005 {
    padding: 15px;
    overflow-y: auto;
    height: 400px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.latest-updates-content-0005::-webkit-scrollbar {
    width: 6px;
}
.latest-updates-content-0005::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}
.latest-updates-content-0005::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}


.latest-updates-list-0005 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.update-item-0005 {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.update-item-0005:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
    background: white;
}

.update-image-0005 {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.update-content-0005 {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.update-heading-0005 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    text-overflow: ellipsis;
}

.update-text-0005 {
    font-size: 12px;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.update-link-0005 {
    text-decoration: none;
    color: inherit;
    display: block;
}

.update-link-0005.disabled {
    pointer-events: none;
    cursor: default;
}

.close-updates-0005 {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-updates-0005:hover {
    background-color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .latest-updates-section-0005 {
        left: 20px;
        right: 20px;
        width: auto;
        bottom: 90px;
        max-height: 60vh;
    }

    .latest-updates-button-0005 {
        left: 20px;
        bottom: 20px;
        width: 55px;
        height: 55px;
    }

    .latest-updates-content-0005 {
        height: auto; /* Let max-height control it */
        padding: 12px;
    }

    .update-item-0005 {
        padding: 8px;
    }

    .update-image-0005 {
        width: 45px;
        height: 45px;
    }
}

/* Draggable Button Styles */
.draggable-button-0005 {
    touch-action: none;
    cursor: grab;
    transition: transform 0.3s ease;
}

.draggable-button-0005.dragging {
    cursor: grabbing;
    transition: none;
    z-index: 1001; /* Ensure it's on top while dragging */
}