

 :root {
            --primary-blue: #003366;
            --secondary-blue: #0066cc;
            --accent-blue: #0099ff;
            --light-blue: #e6f2ff;
            --white: #ffffff;
            --light-gray: #f5f7fa;
            --dark-gray: #333333;
            --shadow: 0 4px 12px rgba(0,0,0,0.08);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--dark-gray);
            background-color: var(--white);
            overflow-x: hidden;
        }

        h1, h2, h3, h4 {
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1rem;
            color: var(--primary-blue);
        }

        p {
            margin-bottom: 1.5rem;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .btn {
            display: inline-block;
            padding: 14px 32px;
            background: var(--primary-blue);
            color: var(--white);
            border: none;
            border-radius: 4px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            font-size: 0.9rem;
        }

        .btn:hover {
            background: var(--accent-blue);
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }

        .btn-light {
            background: var(--white);
            color: var(--primary-blue);
        }

        /* Header Styles */
        header {
            background-color: #ffffff;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 0.8rem 0;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .logo img {
            height: 50px;
            transition: transform 0.3s ease;
        }

        .logo:hover img {
            transform: scale(1.05);
        }
        /* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.dropdown-content a {
    color: var(--dark-gray);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown .dropbtn i {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        background-color: transparent;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown .dropbtn i {
        float: right;
        margin-top: 5px;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropbtn i {
        transform: rotate(180deg);
    }
}

        /* Navigation Styles */
        nav ul {
            display: flex;
            gap: 1.8rem;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        nav a {
            color: #333;
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            position: relative;
            padding: 0.5rem 0;
            transition: color 0.3s ease;
        }

        nav a:hover {
            color: #0066cc;
        }

        /* Animated underline effect */
        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #0066cc;
            transition: width 0.3s ease;
        }

        nav a:hover::after {
            width: 100%;
        }

        /* Mobile Toggle */
        .mobile-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
        }

        /* Nested Dropdown Styles */
.dropdown-nested {
    position: relative;
}

.dropdown-nested .has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-nested .has-submenu i {
    margin-left: 10px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
    z-index: 1001;
}

.dropdown-nested:hover .dropdown-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu a {
    color: var(--dark-gray);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-submenu a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 20px;
}

/* Hover effect for parent item with submenu */
.dropdown-nested:hover > .has-submenu {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.dropdown-nested:hover .has-submenu i {
    transform: translateX(3px);
}

/* Mobile Nested Dropdown Styles */
@media (max-width: 768px) {
    .dropdown-nested {
        position: relative;
    }

    .dropdown-nested .has-submenu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1rem 2rem;
        background: none;
        border: none;
        color: #333;
        text-align: left;
        cursor: pointer;
    }

    .dropdown-nested .has-submenu i {
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .dropdown-submenu {
        position: static;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: #f0f0f0;
        border-top: 1px solid #e0e0e0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 0;
    }

    .dropdown-nested.active .dropdown-submenu {
        display: block;
        max-height: 500px;
    }

    .dropdown-nested.active .has-submenu i {
        transform: rotate(90deg);
    }

    .dropdown-submenu a {
        padding: 0.8rem 3.5rem;
        border-bottom: 1px solid #e0e0e0;
        color: #555;
        font-size: 0.9rem;
        background-color: #f0f0f0;
    }

    .dropdown-submenu a:hover {
        background-color: #e0e0e0;
        color: var(--primary-blue);
        padding-left: 4rem;
    }

    .dropdown-submenu a:last-child {
        border-bottom: none;
    }

    /* Prevent desktop hover on mobile */
    .dropdown-nested:hover .dropdown-submenu {
        display: none;
    }

    .dropdown-nested.active:hover .dropdown-submenu {
        display: block;
    }
}

/* Triple Nested Dropdown (Level 3 - Liability Insurance sub-items) */
        .dropdown-triple-nested {
            position: relative;
        }

        .dropdown-triple-nested .has-submenu-triple {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .dropdown-triple-nested .has-submenu-triple i {
            margin-left: 10px;
            font-size: 0.8em;
            transition: transform 0.3s ease;
        }

        .dropdown-submenu-triple {
            display: none;
            position: absolute;
            left: 100%;
            top: 0;
            background-color: var(--white);
            min-width: 250px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
            border-radius: 4px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            transform: translateX(10px);
            z-index: 1003;
        }

        .dropdown-triple-nested:hover .dropdown-submenu-triple {
            display: block;
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }

        .dropdown-submenu-triple a {
            color: #333;
            padding: 10px 16px;
            text-decoration: none;
            display: block;
            transition: all 0.2s ease;
            font-size: 0.9rem;
        }

        .dropdown-submenu-triple a:hover {
            background-color: var(--light-blue);
            color: var(--primary-blue);
            padding-left: 20px;
        }

        /* Hover effects */
        .dropdown-nested:hover > .has-submenu,
        .dropdown-triple-nested:hover > .has-submenu-triple {
            background-color: var(--light-blue);
            color: var(--primary-blue);
        }

        .dropdown-nested:hover .has-submenu i,
        .dropdown-triple-nested:hover .has-submenu-triple i {
            transform: translateX(3px);
        }

        /* Mobile Styles */
        @media (max-width: 768px) {
            .mobile-toggle {
                display: block;
                z-index: 1001;
            }

            nav {
                position: fixed;
                top: 80px;
                left: 0;
                width: 100%;
                background: white;
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s ease;
                z-index: 1000;
            }

            nav.active {
                max-height: 80vh;
                overflow-y: auto;
                overflow-x: visible; /* ADDED: Allow dropdown to show */
            }

            nav ul {
                flex-direction: column;
                gap: 0;
                padding: 0;
            }

            nav li {
                border-bottom: 1px solid #f1f1f1;
            }

            nav a {
                display: block;
                padding: 1rem 2rem;
            }

            @media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%; /* ADDED */
    }

    nav li {
        border-bottom: 1px solid #f1f1f1;
        width: 100%; /* ADDED */
    }

    nav a {
        display: block;
        padding: 1rem 2rem;
        width: 100%; /* ADDED */
        box-sizing: border-box; /* ADDED */
    }
}

            /* Mobile dropdown adjustments */
            @media (max-width: 768px) {
                .dropdown {
                    position: relative; /* ADDED: Keep dropdown contained */
                }

                .dropdown-content {
                    position: static;
                    box-shadow: none;
                    display: none;
                    opacity: 1;
                    visibility: visible;
                    transform: none;
                    padding: 0; /* ADDED: Remove extra padding */
                    background-color: #f8f9fa;
                    width: 100%; /* ADDED: Full width */
                }

                .dropdown.active .dropdown-content {
                    display: block;
                    max-height: 500px;
                }

                .dropdown-content a {
                    padding: 0.8rem 3rem;
                    border-bottom: 1px solid #e9ecef;
                    font-size: 0.95rem;
                    width: 100%; /* ADDED: Full width links */
                    box-sizing: border-box; /* ADDED: Include padding in width */
                }

                /* Prevent desktop hover on mobile */
                .dropdown:hover .dropdown-content {
                    display: none;
                }

                .dropdown.active:hover .dropdown-content {
                    display: block;
                }

                .dropdown .dropbtn i {
                    float: right;
                    margin-top: 5px;
                }

                .dropdown.active .dropbtn i {
                    transform: rotate(180deg);
                }
            }

            /* Mobile Level 2 (General Insurance submenu) */
            /* Mobile Level 2 (General Insurance submenu) */
            .dropdown-submenu {
                position: static;
                box-shadow: none;
                display: none;
                opacity: 1;
                visibility: visible;
                transform: none;
                background-color: #f0f0f0;
                border-top: 1px solid #e0e0e0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
                width: 100%; /* ADDED */
            }

            .dropdown-nested.active .dropdown-submenu {
                display: block;
                max-height: 600px;
            }

            .dropdown-submenu a {
                padding: 0.8rem 3.5rem;
                border-bottom: 1px solid #e0e0e0;
                color: #555;
                background-color: #f0f0f0;
                width: 100%; /* ADDED */
                box-sizing: border-box; /* ADDED */
            }

            /* Mobile Level 3 (Liability Insurance submenu) */
            .dropdown-submenu-triple {
                position: static;
                box-shadow: none;
                display: none;
                opacity: 1;
                visibility: visible;
                transform: none;
                background-color: #e8e8e8;
                border-top: 1px solid #d0d0d0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
            }

            .dropdown-triple-nested.active .dropdown-submenu-triple {
                display: block;
                max-height: 400px;
            }

            .dropdown-submenu-triple a {
                padding: 0.7rem 4.5rem;
                border-bottom: 1px solid #d0d0d0;
                color: #444;
                background-color: #e8e8e8;
                font-size: 0.9rem;
            }

            .dropdown-nested .has-submenu,
            .dropdown-triple-nested .has-submenu-triple {
                display: flex;
                justify-content: space-between;
                width: 100%;
            }

            .dropdown-nested .has-submenu i,
            .dropdown-triple-nested .has-submenu-triple i {
                transition: transform 0.3s ease;
            }

            .dropdown-nested.active .has-submenu i,
            .dropdown-triple-nested.active .has-submenu-triple i {
                transform: rotate(90deg);
            }

            /* Prevent desktop hover on mobile */
            .dropdown-nested:hover .dropdown-submenu,
            .dropdown-triple-nested:hover .dropdown-submenu-triple {
                display: none;
            }

            .dropdown-nested.active:hover .dropdown-submenu,
            .dropdown-triple-nested.active:hover .dropdown-submenu-triple {
                display: block;
            }
        }

        /* Demo content */
        .content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .content h1 {
            color: var(--primary-blue);
            margin-bottom: 20px;
        }

        .content p {
            line-height: 1.6;
            color: #333;
        }


        /* Media Section */
        .media-section {
            padding: 100px 0;
            background: radial-gradient(circle at center,
                #b8dcff 30%,      /* light blue center */
                #e4f2ff 80%,     /* softer blue */
                #ffffff 100%      /* white edges */
            );;
        }

       /* Updated Section Title Styles */
        .section-title {
            text-align: left; /* Changed from center to left */
            margin-bottom: 45px;
        }

        .section-title h2 {
            font-size: 2.5rem;
            position: relative;
            display: inline-block;
            padding-bottom: 15px;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0; /* Changed from left: 50% and transform: translateX(-50%) */
            width: 1150px; /* Control the length of the line */
            height: 4px; /* Control the thickness of the line */
            background: var(--primary-blue); /* Same color as the heading */
        }

        .videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(366px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }

        .video-card {
            background: var(--white);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .video-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        }

        .video-wrapper {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            overflow: hidden;
        }

        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .video-content {
            padding: 25px;
        }

        .video-content h3 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: var(--primary-blue);
        }

        .video-content p {
            color: var(--dark-gray);
            margin-bottom: 15px;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .video-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 0.9rem;
            color: #666;
        }

        .video-meta i {
            color: var(--accent-blue);
        }

        /* Articles Section */
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }

        .article-card {
            background: var(--white);
            border-radius: 12px;
            padding: 30px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border-left: 4px solid var(--accent-blue);
        }

        .article-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        }

        .article-content h3 {
            font-size: 1.3rem;
            margin-bottom: 10px;
            color: var(--primary-blue);
            line-height: 1.3;
        }

        .article-source {
            font-weight: 600;
            color: var(--accent-blue);
            font-size: 0.9rem;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .article-content p:not(.article-source) {
            color: var(--dark-gray);
            margin-bottom: 20px;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .article-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--primary-blue);
            text-decoration: none;
            font-weight: 600;
            font-size: 1.3rem;
            transition: var(--transition);
        }

        .article-link:hover {
            color: var(--accent-blue);
            padding-left: 5px;
        }

        .article-link i {
            font-size: 1.1rem;
        }

        /* Seminars Section */
        .seminars-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }

        .seminar-card {
            background: var(--white);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .seminar-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        }

        .seminar-header {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
            color: var(--white);
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .seminar-header i {
            font-size: 1.3rem;
        }

        .seminar-type {
            background: rgba(255,255,255,0.2);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .seminar-content {
            padding: 25px;
        }

        .seminar-content h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--primary-blue);
            line-height: 1.3;
        }

        .seminar-source {
            font-weight: 600;
            color: var(--accent-blue);
            font-size: 0.9rem;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .seminar-content p:not(.seminar-source) {
            color: var(--dark-gray);
            margin-bottom: 20px;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .seminar-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--primary-blue);
            text-decoration: none;
            font-weight: 600;
            font-size: 1.3rem;
            transition: var(--transition);
        }

        .seminar-link:hover {
            color: var(--accent-blue);
            padding-left: 5px;
        }

        .seminar-link i {
            font-size: 1.5rem;
        }



      /* Footer */
footer {
	background: linear-gradient(rgba(0, 51, 102, 0.95)), url('../media/backgrounds/footer-background.webp') no-repeat center center;
	color: var(--primary-blue);
	background-size: cover;
    color: white;
	padding: 60px 0 30px;
}
.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 50px;
}
.footer-logo {
	height: 40px;
	margin-bottom: 20px;
}
.footer-about p {
	opacity: 0.8;
	margin-bottom: 20px;
}
.social-links {
	display: flex;
	gap: 15px;
}
.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: var(--white);
	transition: var(--transition);
}
.social-links a:hover {
	background: var(--accent-blue);
	transform: translateY(-5px);
}
.footer-links h3 {
	color: var(--white);
	margin-bottom: 25px;
	font-size: 1.3rem;
}
.footer-links ul {
	list-style: none;
}
.footer-links li {
	margin-bottom: 12px;
}
.footer-links a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: var(--transition);
	white-space: nowrap;
}
.footer-links a:hover {
	color: var(--accent-blue);
	padding-left: 5px;
}
.copyright {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	opacity: 0.7;
}

        /* Responsive Design */
        @media (max-width: 768px) {
            .mobile-toggle {
                display: block;
            }

            nav ul {
                position: fixed;
                top: 90px;
                left: 0;
                right: 0;
                background: var(--white);
                flex-direction: column;
                align-items: center;
                padding: 30px 0;
                box-shadow: 0 10px 15px rgba(0,0,0,0.1);
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                transition: var(--transition);
            }

            nav ul.active {
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }

            nav li {
                margin: 15px 0;
            }

            .hero h1 {
                font-size: 2.8rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .videos-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .articles-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .seminars-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .newsletter-form {
                flex-direction: column;
                gap: 15px;
            }

            .newsletter-form .btn {
                align-self: center;
            }
        }

        @media (max-width: 576px) {
            .hero {
                padding: 100px 0 60px;
            }

            .hero h1 {
                font-size: 2.2rem;
            }

            .videos-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .articles-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .seminars-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .video-card {
                margin: 0 10px;
            }

            .article-card,
            .seminar-card {
                margin: 0 10px;
            }
        }

        /* Chatbot Styles */
        .hidden {
            display: none !important;
        }

        #chatbot-toggle {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
            color: white;
            font-size: 0; /* Hide emoji text */
            padding: 0; /* Remove padding since we're using image */
            border-radius: 50%;
            cursor: pointer;
            z-index: 9999;
            box-shadow: 0 6px 15px rgba(0, 97, 255, 0.4);
            border: none;
            width: 100px; /* Adjust this to change size */
            height: 100px; /* Adjust this to change size */
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            overflow: hidden; /* Ensures image doesn't overflow */
        }

        #chatbot-toggle img {
            width: 100%; /* Makes image fill the button */
            height: 100%;
            object-fit: cover; /* Ensures image covers the area properly */
            border-radius: 50%; /* Makes image circular */
        }

        #chatbot-toggle:hover {
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 8px 20px rgba(0, 97, 255, 0.6);
        }

        /* Responsive sizing for mobile */
        @media (max-width: 768px) {
            #chatbot-toggle {
                width: 60px; /* Smaller on mobile */
                height: 60px;
                bottom: 20px;
                right: 20px;
            }
        }

        @media (max-width: 480px) {
            #chatbot-toggle {
                width: 50px; /* Even smaller on very small screens */
                height: 50px;
                bottom: 15px;
                right: 15px;
            }
        }

        #chatbot-overlay {
            position: fixed;
            top: 100px;
            right: 20px;
            bottom: 20px;
            width: 400px;
            background-color: white;
            border-radius: 20px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
            display: none;
            z-index: 9998;
            opacity: 0;
            transform: translateX(20px);
            transition: all 0.4s ease;
            padding: 20px;
            box-sizing: border-box;
            overflow: hidden;
            border: 1px solid #e0e0e0;
        }

        #chatbot-overlay.show {
            display: block;
            opacity: 1;
            transform: translateX(0);
        }

        .chatbot-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: white;
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            cursor: pointer;
            font-size: 22px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            color: #666;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .chatbot-close:hover {
            background: #f0f0f0;
            color: #000;
            transform: rotate(90deg);
        }

        .integrated-chatbot-container {
            height: 100%;
            display: flex;
            flex-direction: column;
            background: white;
            border-radius: 12px;
            overflow: hidden;
        }

        .chatbot-header {
            background: linear-gradient(135deg, #0d3d75 0%, #0066cc 100%);
            color: white;
            padding: 20px;
            text-align: center;
        }

        .chatbot-header h2 {
            font-size: 1.7em;
            margin-bottom: 5px;
            font-weight: 700;
            background: linear-gradient(90deg, #0066cc, #00aaff, #0066cc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
        }

        .chatbot-header p {
            font-size: 1.1em;
            opacity: 0.9;
            margin: 0;
        }

        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: #f8f9fa;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .message {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 18px;
            font-size: 1.05em;
            line-height: 1.4;
            animation: slideIn 0.3s ease-out;
        }

        .bot-message {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            color: #1565c0;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
        }

        .user-message {
            background: linear-gradient(135deg, #0d3d75 0%, #0066cc 100%);
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        .options-container {
            margin-top: 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .option-btn {
            background: white;
            border: 2px solid #0066cc;
            color: #0066cc;
            padding: 10px 15px;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9em;
            text-align: left;
            font-weight: 500;
        }

        .option-btn:hover {
            background: #0066cc;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,102,204,0.3);
        }

        .typing-indicator {
            display: none;
            align-self: flex-start;
            background: #e9ecef;
            padding: 12px 16px;
            border-radius: 18px;
            border-bottom-left-radius: 4px;
        }

        .typing-dots {
            display: flex;
            gap: 4px;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            background: #6c757d;
            border-radius: 50%;
            animation: typing 1.4s infinite ease-in-out;
        }

        .typing-dot:nth-child(1) { animation-delay: -0.32s; }
        .typing-dot:nth-child(2) { animation-delay: -0.16s; }

        @keyframes typing {
            0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
            40% { transform: scale(1); opacity: 1; }
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .chat-messages::-webkit-scrollbar {
            width: 6px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        /* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #0d3d75 0%, #0066cc 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 9997;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0078d8 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.5);
}

#scrollToTop.show {
    display: flex;
}

/* Responsive sizing for mobile */
@media (max-width: 768px) {
    #scrollToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
        font-size: 20px;
    }
}
