/* Enhanced Typography */
        body {
            font-family: var(--font-sans);
            color: var(--text-dark);
            line-height: 1.7;
            overflow-x: hidden;
            background: #000;
        }

        p,
        li,
        a,
        button,
        input,
        select,
        textarea,
        label,
        small,
        .btn,
        .form-control {
            font-family: var(--font-sans);
        }

        /* Preserve readability after switching primary color to black. */
        [style*="color: var(--primary-color)"] {
            color: var(--text-dark) !important;
        }

        /* Keep text visible on white/light inline backgrounds. */
        [style*="background: white"][style*="color: var(--primary-color)"],
        [style*="background:#fff"][style*="color: var(--primary-color)"],
        [style*="background: #fff"][style*="color: var(--primary-color)"],
        [style*="background:white"][style*="color: var(--primary-color)"] {
            color: #000 !important;
        }

        .btn[style*="background: white"],
        .btn[style*="background:#fff"],
        .btn[style*="background: #fff"] {
            color: #000 !important;
        }

        main,
        section,
        .container,
        .container-fluid {
            color: var(--text-dark);
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: var(--font-serif);
            font-weight: 600;
        }

        /* Migrate old inline font declarations to the new global pair. */
        [style*="font-family: 'Montserrat'"],
        [style*='font-family: "Montserrat"'] {
            font-family: var(--font-sans) !important;
        }

        [style*="font-family: 'Cormorant Garamond'"],
        [style*='font-family: "Cormorant Garamond"'],
        [style*="font-family: 'Playfair Display'"],
        [style*='font-family: "Playfair Display"'] {
            font-family: var(--font-serif) !important;
        }

        /* Enhanced Navbar with Glass Effect */
        .navbar {
            background: rgba(0, 0, 0, 0.96);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
            padding: 0.8rem 0;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .navbar.scrolled {
            padding: 0.5rem 0;
            box-shadow: 0 6px 40px rgba(0, 0, 0, 0.12);
        }

        .navbar-brand {
            display: inline-flex;
            align-items: center;
            line-height: 1;
            position: relative;
            transition: all 0.3s ease;
        }

        .navbar-brand img {
            height: 34px;
            width: auto;
            display: block;
            object-fit: contain;
        }

        .navbar-brand::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--secondary-color), transparent);
            transition: width 0.3s ease;
        }

        .navbar-brand:hover::after {
            width: 100%;
        }

        .navbar-nav .nav-link {
            font-family: 'Montserrat', sans-serif;
            color: #fff;
            font-weight: 500;
            margin: 0 1rem;
            padding: 0.4rem 0;
            position: relative;
            transition: all 0.3s ease;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.8px;
        }

        .navbar-nav .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: var(--secondary-color);
            transition: width 0.3s ease;
        }

        .navbar-nav .nav-link:hover::before,
        .navbar-nav .nav-link.active::before {
            width: 100%;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: var(--accent-gold);
        }

        /* Enhanced Footer with Luxury Design */
        footer {
            background: #000;
            color: white;
            padding: 5rem 0 2rem;
            margin-top: 6rem;
            position: relative;
            overflow: hidden;
        }

        footer,
        footer * {
            font-family: var(--font-sans);
        }

        footer h5,
        footer p,
        footer a,
        footer li,
        footer span {
            font-family: var(--font-sans) !important;
        }

        .dropdown-menu {
            background: #121212;
            border-color: rgba(255, 255, 255, 0.15);
        }

        .dropdown-item {
            color: #fff;
        }

        .dropdown-item:hover,
        .dropdown-item:focus {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
        }

        .dropdown-divider {
            border-top-color: rgba(255, 255, 255, 0.15);
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
        }

        footer h5 {
            font-family: var(--font-sans);
            font-weight: 700;
            font-size: 1.4rem;
            margin-bottom: 1.8rem;
            color: var(--accent-gold);
            position: relative;
            padding-bottom: 0.8rem;
        }

        footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--secondary-color);
        }

        footer a {
            color: #fff !important;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
        }

        footer a:hover {
            color: #fff !important;
            transform: translateX(5px);
        }

        footer .social-links a,
        footer .social-links a i,
        footer a i {
            color: #fff !important;
        }

        footer ul li {
            margin-bottom: 0.8rem;
        }

        footer .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 3rem;
            padding-top: 2rem;
        }

        /* Scroll to Top Button */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            left: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
        }

        .scroll-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .scroll-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
        }

        /* Pagination Styles */
        .pagination {
            gap: 0.5rem;
        }

        .pagination .page-link {
            border: 1px solid #ddd;
            color: var(--text-dark);
            padding: 0.5rem 0.75rem;
            border-radius: 0.375rem;
            transition: all 0.3s ease;
            font-weight: 500;
            background: transparent;
            border-color: rgba(255, 255, 255, 0.35);
        }

        .pagination .page-link:hover {
            background: rgba(255, 255, 255, 0.12);
            color: white;
            border-color: rgba(255, 255, 255, 0.6);
        }

        .pagination .page-item.active .page-link {
            background: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
        }

        .pagination .page-item.disabled .page-link {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Hide default pagination arrows text */
        .pagination .page-link[rel="prev"]::before {
            content: "‹";
            font-size: 1.5rem;
            line-height: 1;
        }

        .pagination .page-link[rel="next"]::before {
            content: "›";
            font-size: 1.5rem;
            line-height: 1;
        }

        .pagination .page-link[rel="prev"],
        .pagination .page-link[rel="next"] {
            font-size: 0;
        }

        .pagination .page-link[rel="prev"]::before,
        .pagination .page-link[rel="next"]::before {
            font-size: 1.5rem;
        }

        /* Floating chat button */
        .chat-fab {
            position: fixed;
            right: 24px;
            bottom: 24px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, #434d58, #515d69);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
            z-index: 9999;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.3rem;
        }

        .chat-fab:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
            background: linear-gradient(135deg, #515d69, #5d6b7a);
            color: #fff;
        }

        /* Chat Popup Styles */
        .chat-popup {
            position: fixed;
            right: 24px;
            bottom: 90px;
            width: 380px;
            max-width: calc(100vw - 48px);
            height: 550px;
            max-height: calc(100vh - 150px);
            background: #1a1e25;
            border-radius: 16px;
            box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 10000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .chat-popup-header {
            background: linear-gradient(135deg, #434d58 0%, #515d69 100%);
            color: white;
            padding: 1rem 1.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }

        .chat-close-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }

        .chat-close-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        .chat-popup-body {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 1rem;
            background: #15181d;
            scroll-behavior: smooth;
            will-change: scroll-position;
        }

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

        .chat-popup-body::-webkit-scrollbar-track {
            background: #1a1e25;
        }

        .chat-popup-body::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #434d58, #515d69);
            border-radius: 10px;
        }

        .chat-popup-footer {
            padding: 1rem;
            background: #1a1e25;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .chat-input {
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 0.65rem 1rem;
            resize: none;
            transition: all 0.3s;
            font-size: 0.9rem;
            background: #171b22;
            color: #e5e7eb;
        }

        .chat-input::placeholder {
            color: #8f9aaa;
        }

        .chat-input:focus {
            border-color: #515d69;
            box-shadow: 0 0 0 0.2rem rgba(81, 93, 105, 0.25);
            outline: none;
            background: #171b22;
            color: #fff;
        }

        .btn-send {
            background: linear-gradient(135deg, #434d58, #515d69);
            color: #fff;
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
        }

        .btn-send:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
        }

        /* Message Bubbles */
        .chat-msg {
            margin: 10px 0;
            display: flex;
        }

        .chat-msg.user {
            justify-content: flex-end;
        }

        .chat-bubble {
            max-width: 75%;
            padding: 10px 14px;
            border-radius: 14px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            word-wrap: break-word;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .chat-msg.user .chat-bubble {
            background: #2a3038;
            color: #e5e7eb;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 14px 14px 4px 14px;
        }

        .chat-msg.admin .chat-bubble {
            background: linear-gradient(135deg, #434d58 0%, #515d69 100%);
            color: #fff;
            border-radius: 14px 14px 14px 4px;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .chat-empty {
            text-align: center;
            padding: 3rem 1.5rem;
            color: #aab2bf;
        }

        .chat-empty i {
            font-size: 3rem;
            color: #ffffff;
            opacity: 0.5;
            margin-bottom: 1rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .navbar-brand {
                padding: 0;
            }

            .navbar-brand img {
                height: 28px;
            }

            .navbar-nav .nav-link {
                margin: 0.5rem 0;
                text-align: center;
                font-size: 0.9rem;
            }

            .scroll-to-top {
                left: 15px;
                bottom: 15px;
                width: 45px;
                height: 45px;
            }
        }