/* Global Styles */
html {
    overflow-x: hidden;
    overflow-y: scroll;
    /* Fix for shaky scrollbar transition */
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #667eea;
    min-height: 100vh;
    color: #fff;
    position: relative;
    width: 100%;
    max-width: 100vw;
    /* max-width: 100vw removed to prevent scrollbar overlap issues */
    /* Prevent horizontal scroll */
    /* Default text color to white for better contrast */
}

/* Prevent horizontal overflow - but allow vertical effects like card hovers */
.container,
.container-fluid {
    max-width: 100%;
    /* overflow-x removed to allow card hover effects to show properly */
}

/* Specifically prevent overflow only where needed */
.hero-section {
    overflow-x: hidden;
    /* Keep world map from overflowing */
    overflow-y: visible;
    /* Allow effects to show vertically */
}

/* Quick Access section allows all overflow for card hover effects */
.quick-access-section {
    overflow: visible !important;
    /* Defined in main section below */
}


* {
    box-sizing: border-box;
}

/* World Map Positioning on Index Page */
.world-map-background {
    /* Removed transform: translateX(80px) to prevent horizontal scroll */
    max-width: 100%;
    overflow: hidden;
}

.world-map-background .trade-map {
    transform-origin: center;
    max-width: 100%;
}

/* Homepage Hero Text - Bold and Highly Visible */
.display-4 {
    font-weight: 400 !important;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: 0.5px;
}

.lead {
    font-weight: 400 !important;
    font-size: 1.3rem !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(0, 0, 0, 0.3),
        1px 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* Headings and Paragraphs on the main background */
h1,
h2,
h3,
h4,
h5,
h6,
.lead {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mute text override for dark background */
.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Navigation - Bold and Visible */
.navbar-nav .nav-link {
    font-weight: 700 !important;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    padding: 4px;
    object-fit: contain;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* Make navbar more prominent */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        text-align: center;
        margin: 0.2rem 0;
        padding: 0.8rem 1rem;
        border-radius: 8px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }
}

/* Card & Content Text Visibility Fixes */
.card .card-title,
.card .card-text,
.card .text-muted,
.error-code,
.error-description,
.search-result-item .text-muted,
.search-result-item h5,
.search-result-item h6,
.faq-modal-content h4,
.faq-modal-content p,
.error-modal-content h4,
.error-modal-content p,
.modal-content h5,
.modal-body,
.product-carousel-container h3,
.product-carousel-container .lead,
.product-carousel-container p {
    color: #000 !important;
    /* Force black text as requested */
    text-shadow: none !important;
    opacity: 1 !important;
}

/* Specific overrides for sub-text */
.card .text-muted,
.search-result-item .text-muted,
.faq-modal-content .text-muted,
.product-carousel-container .text-muted {
    color: #666 !important;
}

.error-description,
.error-description p,
.error-description * {
    color: #000 !important;
    margin-bottom: 5px;
}

.error-description strong,
.error-description b {
    font-weight: 700 !important;
}

/* Ensure all headers inside white sub-containers are dark */
.search-result-item h1,
.search-result-item h2,
.search-result-item h3,
.search-result-item h4,
.search-result-item h5,
.search-result-item h6,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content h5,
.modal-content h6 {
    color: #333 !important;
    text-shadow: none !important;
}

/* Pagination indicator (outside cards) */
#pageIndicator.text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Cards */
/* Navbar - Make transparent to blend with gradient */
.navbar {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky !important;
    top: 0 !important;
    padding: 0.8rem 0;
    z-index: 1020 !important;
}

.navbar-brand span {
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Cards - White styling similar to Admin Dashboard cards */
.card {
    background: #fff;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    /* Fixes border-radius on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-body {
    color: #333;
    /* Reset text color for inside white cards */
}

/* Card Titles inside white cards should be dark */
.card .card-title {
    color: #333;
    font-weight: 700;
}

.card .card-text {
    color: #6c757d;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Buttons - Modern Admin Gradient Style with SMOOTH Color Transition */
.btn-primary {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
    overflow: hidden;
    z-index: 1;
}

/* Hover gradient overlay for smooth color transition */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: -1;
    border-radius: 8px;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Outline buttons - Transparent with Fill on Hover - Override Bootstrap Blue */
.btn-outline-primary {
    position: relative;
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid #667eea !important;
    color: #667eea !important;
    font-weight: 600;
    transition: color 0.6s ease-in-out, border-color 0.6s ease-in-out, transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out !important;
    overflow: hidden;
    z-index: 1;
}

/* Remove Bootstrap's default focus/active states */
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background: transparent !important;
    background-color: transparent !important;
    border-color: #667eea !important;
    color: #667eea !important;
    box-shadow: none !important;
}

/* Gradient fill overlay - hidden by default, shows on hover */
.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: -1;
    border-radius: inherit;
}

.btn-outline-primary:hover::before {
    opacity: 1;
}

.btn-outline-primary:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Search Bar */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Specific White Glow for Global Search on Gradient Background */
#globalSearch:focus,
#faqSearch:focus,
#videoSearch:focus,
#errorSearch:focus {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
    /* Strong white glow */
    outline: none;
    transform: scale(1.02);
    /* Slight pop effect */
    transition: all 0.3s ease;
}

/* FAQ Accordion */
/* FAQ Accordion */
.accordion-item {
    margin-bottom: 15px;
    border: none;
    /* Remove border for cleaner look */
    border-radius: 10px !important;
    /* Force rounded corners */
    overflow: hidden;
    background: #fff;
    /* Ensure white background for visibility */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Add shadow for depth */
}

.accordion-button {
    background-color: #fff;
    color: #333;
    /* Dark text for question */
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    font-size: 1.05rem;
    box-shadow: none !important;
    /* Remove default focus shadow */
}

.accordion-button:not(.collapsed) {
    background: #fff;
    /* White background to stand out against page gradient */
    color: #764ba2;
    /* Theme color for text */
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125) !important;
    font-weight: 700;
}

/* Fix accordion arrow icon color */
.accordion-button:not(.collapsed)::after {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23764ba2'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    /* Use colored arrow matches text */
    transform: rotate(-180deg);
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
    /* Light grey for answer area */
    color: #333;
    /* Dark text for answer readability */
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Video Cards */
.video-card {
    margin-bottom: 30px;
}

.video-card-clickable {
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card-clickable:hover .video-thumbnail img,
.video-card-clickable:focus .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Theme Gradient */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.4);
    /* Theme Shadow */
}

.video-card-clickable:focus {
    outline: 3px solid rgba(13, 110, 253, 0.4);
    outline-offset: 2px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 5px;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.card .video-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    color: #000 !important;
    /* Black text as requested */
    min-height: 50px;
    line-height: 1.4;
}

.video-topic-badge {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
    line-height: 1.4;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Theme Gradient */
    color: white !important;
}

/* Error Code Items */
.error-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-item:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.error-code {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    /* Dark black */
    margin-bottom: 5px;
}

.error-description {
    color: #212529 !important;
    /* Dark black text */
    margin: 0;
    margin-bottom: 10px;
}

.error-description strong,
.error-description b {
    font-weight: 700 !important;
    color: #000 !important;
    /* Even darker for bold text */
}

/* Search Results */
/* Search Results */
.search-result-item {
    display: block;
    background: white;
    border: none;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333 !important;
    /* Force dark text for visibility */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-result-item:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #333 !important;
    text-decoration: none;
}

/* Result Badges Base Style */
.result-type-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    margin-right: 10px;
    letter-spacing: 0.5px;
}

/* Custom Tag Colors as requested */
.badge-faq-custom {
    background-color: #0d6efd !important;
    /* Blue */
}

.badge-video-custom {
    background-color: #dc3545 !important;
    /* Red */
}

.badge-error-custom {
    background-color: #ffc107 !important;
    /* Yellow */
    color: #000 !important;
    /* Dark text for yellow bg */
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-chip {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.suggestion-chip .count {
    background: #e9ecef;
    border-radius: 10px;
    padding: 2px 8px;
    margin-left: 6px;
    font-size: 0.8rem;
    color: #333;
}

.suggestion-chip.active,
.suggestion-chip:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #0d6efd;
}

/* Search Text Highlighting - Yellow like Ctrl+F */
.search-highlight,
mark.search-highlight {
    background-color: #ffeb3b;
    color: #000 !important;
    /* Force black text on yellow highlight */
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

/* Real-time progressive highlighting animation */
@keyframes highlightPulse {
    0% {
        background-color: #ffeb3b;
        transform: scale(1);
    }

    50% {
        background-color: #ffd700;
        transform: scale(1.05);
    }

    100% {
        background-color: #ffeb3b;
        transform: scale(1);
    }
}

.search-highlight.realtime {
    animation: highlightPulse 0.5s ease-in-out;
}

/* FAQ Highlight */
.highlight {
    background-color: #ffff00;
    color: #000;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

/* Spelling Suggestion Box - "Did you mean...?" */
.spelling-suggestion-box {
    display: none;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 12px 18px;
    margin-top: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.spelling-suggestion-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
    animation: pulse 2s infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.spelling-suggestion-box .suggestion-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.spelling-suggestion-box .fa-spell-check {
    color: #ff9800;
    font-size: 1.1rem;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spelling-suggestion-box .suggestion-text {
    color: #5d4037;
    font-weight: 600;
    font-size: 0.95rem;
}

.spelling-suggestion-box .suggestion-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #bbdefb;
}

.spelling-suggestion-box .suggestion-link:hover {
    background: #fff;
    color: #0d47a1;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
    transform: translateY(-1px);
    border-color: #1976d2;
}

.spelling-suggestion-box .suggestion-link strong {
    font-weight: 800;
}

/* Responsive adjustments for suggestion box */
@media (max-width: 768px) {
    .spelling-suggestion-box {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .spelling-suggestion-box .suggestion-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .spelling-suggestion-box .suggestion-link {
        margin-top: 5px;
    }
}

/* Search Results Section - Dynamic Spacing */
.search-results-section {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: all 0.3s ease;
}

/* When search results are present, add bottom margin */
.search-results-section:has(#searchResults:not(:empty)) {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
}

/* Hero Section - Compact spacing to keep cards in viewport */
.hero-section {
    padding-bottom: 1rem;
    position: relative;
    min-height: auto;
    /* Remove fixed height - let content determine size */
}

/* Search Results Section - Minimal reserved space */
.search-results-section {
    min-height: 0;
    /* No reserved space when empty */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Quick Access Section - Bring cards up into viewport */
.quick-access-section {
    margin-top: 1rem !important;
    /* Reduced from 3rem */
    margin-bottom: 2rem;
    padding-top: 0;
    /* Removed extra padding */
    transition: all 0.3s ease;
    overflow: visible !important;
    /* Allow card hover effects to show */
}

/* Quick Access Cards - Enhanced hover effects */
.quick-access-section .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 15px !important;
    /* Rounded corners */
    overflow: visible;
    /* Allow shadow to extend */
}

.quick-access-section .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 0 20px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    border-radius: 15px !important;
    /* Maintain rounded corners on hover */
    z-index: 10;
    /* Bring card above others on hover */
}

.quick-access-section .card-body {
    overflow: visible;
    border-radius: 15px;
    /* Match card border-radius */
}



/* Ensure smooth transition when search results appear/disappear */
#searchResults {
    transition: all 0.3s ease;
    min-height: 0;
}

/* When empty, collapse the search results container */
#searchResults:empty {
    display: none;
    margin: 0;
    padding: 0;
}

/* When search results are visible - add spacing */
#searchResults:not(:empty) {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}



/* Search Result Items Styling - Prevent Overlapping */
.search-result-item {
    background: #fff !important;
    border-radius: 10px;
    padding: 15px 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: block !important;
    clear: both !important;
    overflow: hidden;
    isolation: isolate;
    /* Force new stacking context */
    contain: layout style;
    /* Contain the layout */
    width: 100%;
}

.search-result-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-result-item .result-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.search-result-item h6 {
    color: #333 !important;
    font-weight: 600;
    margin-top: 8px !important;
    margin-bottom: 6px !important;
    display: block;
}

.search-result-item p {
    color: #666 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0 !important;
    display: block;
}

/* Specific result type styling */
.faq-result {
    border-left: 4px solid #17a2b8 !important;
}

.video-result {
    border-left: 4px solid #dc3545 !important;
}

.error-result {
    border-left: 4px solid #ffc107 !important;
}

/* Ensure no float or positioning conflicts */
.search-result-item * {
    position: relative;
    z-index: 1;
}

/* Force separation between consecutive items */
.search-result-item+.search-result-item {
    margin-top: 15px !important;
}


/* Category Headers in Search Results */
#searchResults h5 {
    color: #fff;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

#searchResults h5:first-of-type {
    margin-top: 10px;
}


.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1055;
}

.video-modal.visible {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.video-modal-dialog {
    position: relative;
    width: min(900px, 92vw);
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 1;
}

.video-modal-body {
    position: relative;
    padding-bottom: 56.25%;
}

.video-modal-body iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}



/* Overlay to block the "pop-out" button on Google Drive embeds */
#videoPlayerModal .ratio::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    z-index: 10;
    /* Highest z-index to cover the iframe's controls */
    background: transparent;
    /* Invisible but blocks clicks */
    pointer-events: auto;
}

/* Ensure Video Modal fits screen without scrolling */
@media (min-width: 992px) {
    #videoPlayerModal .modal-dialog {
        /* Calculate max width based on available height to prevent vertical scroll */
        /* Formula: (100vh - HeaderHeight - Margins) * AspectRatio */
        /* Approx: (100vh - 120px) * 1.777 */
        max-width: calc((100vh - 120px) * 1.7778);
        width: 100%;
    }
}

#videoPlayerModal .modal-content {
    max-height: 95vh;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.video-modal-close:hover {
    color: #ff0000;
}

body.video-modal-open {
    overflow: hidden;
}

body.faq-modal-open,
body.error-modal-open {
    overflow: hidden;
}

.faq-highlight {
    border: 2px solid #0d6efd !important;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

.faq-modal,
.error-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1055;
}

.faq-modal.visible,
.error-modal.visible {
    display: flex;
}

.faq-modal-backdrop,
.error-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.faq-modal-dialog,
.error-modal-dialog {
    position: relative;
    width: min(700px, 90vw);
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Modal for PDF - Centered with room for sidebar */
.error-modal-dialog.error-modal-with-pdf {
    width: 75vw;
    max-width: 1400px;
    max-height: 95vh;
    height: 95vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* PDF Container - Dark background with padding */
.pdf-preview-container {
    margin: 0;
    padding: 0;
    width: 100%;
    height: calc(95vh - 70px);
    background: #2d2d30;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    position: relative;
    display: block;
    box-sizing: border-box;
}

/* PDF iframe - Full features enabled */
#pdfViewer,
#errorPdfViewer {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: #fff !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 0 8px 8px;
}

/* Remove any pseudo-elements */
#pdfViewer::before,
#errorPdfViewer::before,
#pdfViewer::after,
#errorPdfViewer::after {
    display: none !important;
}

/* Modal content - clean layout */
.error-modal-dialog.error-modal-with-pdf .error-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
    /* Allow Google Drive controls to overflow if needed */
    background: #fff;
    padding: 0;
    border-radius: 8px;
}

/* Title bar - Combined with description (no border) */
.error-modal-dialog.error-modal-with-pdf #errorModalTitle {
    margin: 0;
    padding: 0.6rem 1.5rem 0.3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    background: #fff;
    border-bottom: none;
    /* Removed to combine */
    border-radius: 8px 8px 0 0;
}

/* Description - No bottom border to remove gap */
.error-modal-dialog.error-modal-with-pdf #errorModalDescription {
    margin: 0;
    padding: 0.3rem 1.5rem 0.3rem;
    /* Reduced bottom */
    font-size: 0.9rem;
    color: #555;
    background: #fff;
    border-bottom: none;
}

/* Close button - Right side of title bar */
.error-modal-dialog.error-modal-with-pdf .error-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    z-index: 10;
}

.error-modal-dialog.error-modal-with-pdf .error-modal-close:hover {
    background: transparent;
    color: #ff0000;
}

/* No outer scroll - Google Drive handles it */
.error-modal-dialog.error-modal-with-pdf {
    overflow: hidden;
    position: relative;
    /* For close button positioning */
}

/* Prevent body scroll when modal is open */
body.error-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* Prevent body scroll when modal is open */
body.error-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}


.faq-modal-close,
.error-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
}

.faq-modal-close:hover,
.error-modal-close:hover,
.btn-close:hover {
    background-color: transparent !important;
    color: #ff0000 !important;
    opacity: 1;
    filter: invert(21%) sepia(100%) saturate(7482%) hue-rotate(359deg) brightness(104%) contrast(117%);
}

.faq-modal-content p,
.error-modal-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529 !important;
    /* Dark text */
}

.error-modal-content h4 {
    font-weight: 700;
    color: #1a1a1a;
    /* Dark black for error code */
    margin-bottom: 1rem;
}

.error-modal-content strong,
.error-modal-content b {
    font-weight: 700 !important;
    color: #000 !important;
    /* Even darker for bold */
}

/* Specific styling for error modal description */
#errorModalDescription {
    color: #212529 !important;
    line-height: 1.6;
    margin-bottom: 1rem;
}

#errorModalDescription * {
    color: #212529 !important;
}

#errorModalDescription strong,
#errorModalDescription b {
    font-weight: 700 !important;
    color: #000 !important;
}

.error-modal-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 2rem;
        /* Better size for mobile */
    }

    h1.display-4 {
        font-size: 2.2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    /* Stack product carousel items properly */
    .product-carousel-container {
        padding: 1.5rem !important;
        text-align: center;
    }

    .product-carousel-container .row {
        flex-direction: column-reverse;
        /* Image on top? No, let's keep Text then Image but center it */
    }

    .product-carousel-container .d-flex {
        justify-content: center !important;
    }

    .product-carousel-container .text-md-start {
        text-align: center !important;
    }

    #productImage {
        margin-top: 1.5rem;
        max-height: 250px !important;
    }

    /* Adjust Global Search Input text size */
    #globalSearch {
        font-size: 1rem;
        padding: 0.8rem;
    }

    /* PDF Viewer Responsive for Mobile */
    .error-modal-dialog.error-modal-with-pdf {
        width: 99vw;
        max-width: 99vw;
        padding: 0.1rem;
        /* Minimal for near-zero side borders */
        max-height: 98vh;
    }

    .pdf-preview-container {
        height: 78vh;
        /* Taller to show controls */
        min-height: 650px;
        /* Ensure Google Drive controls visible */
        margin-top: 0.1rem;
        border-radius: 0;
    }

    #pdfViewer,
    #errorPdfViewer {
        min-height: 650px;
        /* Match container */
    }

    .error-modal-dialog.error-modal-with-pdf #errorModalTitle {
        font-size: 1.2rem;
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .error-modal-dialog.error-modal-with-pdf #errorModalDescription {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .error-modal-dialog.error-modal-with-pdf .error-modal-content {
        padding: 0.3rem 0.1rem;
    }
}

@media (max-width: 576px) {
    h1.display-4 {
        font-size: 1.8rem;
    }

    .navbar-brand-logo {
        width: 36px;
        height: 36px;
    }

    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* Simple & Elegant Footer Styles */
/* Simple & Elegant Footer Styles */
/* Compact Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    margin-top: 4rem;
    width: 100%;
    position: relative;
    /* Remove conflicting border-top rules */
}

.footer-content {
    padding: 3rem 0 2rem;
    background: transparent;
}

/* Ensure footer rows are aligned properly */
.footer .row {
    margin-left: 0;
    margin-right: 0;
    /* Override Bootstrap row margins that can cause misalignment */
}

.footer .row>* {
    padding-left: 15px;
    padding-right: 15px;
    /* Consistent padding across all columns */
}

.footer-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    letter-spacing: 0.5px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Stylish Circular Icons */
.footer-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin: 0;
    /* Reset margin */
}

/* Override all specific colors to White for consistency */
.footer-item .fa-map-marker-alt,
.footer-item .fa-phone,
.footer-item .fa-mobile-alt,
.footer-item .fa-phone-alt,
.footer-item .fa-whatsapp,
.footer-item .fa-envelope,
.footer-item .fa-book,
.footer-item .fa-question,
.footer-item .fa-globe {
    color: #fff !important;
}

.footer-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-item a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Footer Icon Hover Effects matching Social Icons */
.footer-icon {
    cursor: pointer;
    /* Ensure it looks interactive */
}

.footer-icon:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific Hover Colors for Footer Icons */
/* Overriding the !important white color from line 764 */
.footer-icon:hover.fa-map-marker-alt {
    color: #ea4335 !important;
    /* Google Maps Red */
}

.footer-icon:hover.fa-phone,
.footer-icon:hover.fa-phone-alt,
.footer-icon:hover.fa-mobile-alt {
    color: #34a853 !important;
    /* Phone Green */
}

.footer-icon:hover.fi-sr-phone-office {
    color: #0d6efd !important;
    /* Office Phone Black */
}

.footer-icon:hover.fa-envelope {
    color: #ea4335 !important;
    /* Gmail Red */
}

.footer-icon:hover.fa-whatsapp {
    color: #25D366 !important;
    /* WhatsApp Green */
}

.footer-icon:hover.fa-globe {
    color: #4285f4 !important;
    /* Internet Blue */
}

.footer-icon:hover.fa-book {
    color: #0d6efd !important;
    /* Brochure Blue */
}

.footer-icon:hover.fa-question {
    color: #FBBC04 !important;
    /* Enquiry Form Yellow/Gold */
}

/* Social Media Icons - Glassmorphism */
.footer-social {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: #fff;
    color: #764ba2;
    /* Theme Dark Purple */
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Remove old specific gradients for social icons to keep cleaner look */
.social-icon.youtube,
.social-icon.linkedin,
.social-icon.twitter,
.social-icon.instagram {
    background: rgba(255, 255, 255, 0.1);
}

.social-icon.youtube:hover,
.social-icon.linkedin:hover,
.social-icon.twitter:hover,
.social-icon.instagram:hover {
    background: #fff;
    /* Use brand colors on hover? Or theme? Let's use brand colors on hover for a nice pop */
}

.social-icon.youtube:hover {
    color: #FF0000;
}

.social-icon.linkedin:hover {
    color: #0077B5;
}

.social-icon.twitter:hover {
    color: #000000;
}

.social-icon.instagram:hover {
    color: #E1306C;
}


/* Footer Bottom */
.footer-bottom {
    background: transparent;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    /* Ensure no transforms or rotations */
    transform: none;
    position: relative;
    width: 100%;
    /* Explicitly set width to prevent Bootstrap container issues */
    overflow: hidden;
    /* Prevent any overflow that might cause visual issues */
    /* Clear any floats */
    clear: both;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    /* Prevents layout shift when scrollbar appears */
}

.footer-bottom-content {
    display: block;
    /* Changed from flex to block to prevent alignment issues */
    text-align: center;
    width: 100%;
    /* Remove flexbox that was causing misalignment */
}

/* Ensure footer-bottom container matches main footer container */
.footer-bottom .container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    /* Consistent with Bootstrap container but explicit */
}

.footer-copyright {
    color: #95a5a6;
    margin: 0 auto;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: block;
    width: 100%;
    text-align: center;
    /* Ensure horizontal alignment */
    line-height: 1.5;
}

/* Google Maps Container - Ensure Perfect Level Positioning */
.footer-map-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    /* Force no transforms or skewing */
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    position: relative;
    transform-origin: center center;
    /* Ensure container is block-level and full width */
    display: block;
    /* Prevent any rotation */
    rotate: 0deg;
    /* Force horizontal alignment */
    text-align: left;
}

.footer-map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    margin: 0 auto;
    /* Force iframe to be perfectly level */
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    /* Prevent any skewing or rotation */
    transform-origin: top left;
    position: relative;
    top: 0;
    left: 0;
    /* Ensure no perspective distortion */
    perspective: none;
    transform-style: flat;
}

/* Ensure the column containing the map is also level */
.footer .col-12 {
    padding-left: 15px;
    padding-right: 15px;
    /* Ensure no rotation or transform */
    transform: none;
}

/* Pagination Styles - White Rounded Boxes */
.pagination-btn {
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 5px;
    /* Slightly rounded as requested */
    padding: 8px 16px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 100px;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #0d6efd;
    /* Highlight text on hover */
}

.pagination-btn:disabled {
    background-color: rgba(255, 255, 255, 0.5);
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

#pageIndicator {
    color: #fff !important;
    /* Force white text */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer {
        margin-top: 2rem;
    }

    .footer-content {
        padding: 1.5rem 0 1rem;
    }

    .footer-title {
        font-size: 1rem;
        text-align: center;
        display: block;
        border-bottom: none;
        border-left: 3px solid #d1b5ed;
        padding-left: 0.5rem;
        text-align: left;
    }

    .footer-item {
        font-size: 0.85rem;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-bottom-content {
        display: block;
        /* Keep as block, not flex */
        text-align: center;
        width: 100%;
    }

    .footer-copyright {
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }

    .footer-quick-links {
        justify-content: center;
    }

    .footer-map-container {
        padding: 0 10px;
        /* Add small padding on mobile */
    }
}

@media (max-width: 480px) {
    .footer-item {
        font-size: 0.8rem;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .footer-quick-links a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Product Carousel Styles */
.product-carousel-container {
    position: relative;
    min-height: 450px;
    height: auto;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.product-img-transition {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid #dee2e6;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev-btn {
    left: -20px;
}

.carousel-nav-btn.next-btn {
    right: -20px;
}

@media (max-width: 991px) {
    .carousel-nav-btn.prev-btn {
        left: 10px;
    }

    .carousel-nav-btn.next-btn {
        right: 10px;
    }

    .product-carousel-container {
        padding: 2rem 1rem !important;
    }
}

/* Product Icon Transition */
.product-icon-transition {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Quick Access Card Transitions */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
    transition: background-color 0.3s ease;
}

.card:hover .card-body {
    background-color: #f8f9fa;
}

/* Preloader Overrides */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.loader-content .spinner-border {
    border-width: 4px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* View Documentation Button - Premium Style */
.btn-view-doc {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    padding: 8px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view-doc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    /* Reverse gradient on hover */
    color: white !important;
}

.btn-view-doc i {
    font-size: 0.9em;
}

.error-item:hover .btn-view-doc {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5);
}

/* ================================================== */
/* ANIMATED WORLD MAP BACKGROUND                      */
/* Professional logistics & import/export theme       */
/* ================================================== */

/* Hero Section - Contains the world map background */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    overflow: visible;
    padding-top: 80px;
    padding-bottom: 40px;
    background: transparent;
}

/* World Map Container - Fixed within hero section, doesn't expand */
.world-map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateX(80px);
}

/* Hero Content - Above the world map, can overflow hero section */
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 20px;
}

/* Search Results Section - Separate from Hero and Products */
.search-results-section {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    margin-top: -40px;
    background: transparent;
    z-index: 2;
}

.search-results-section .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Ensure search results don't overlap with products */
.search-results-section #searchResults {
    margin-bottom: 20px;
}

/* Quick Access Cards Section - After Search Results */
.quick-access-section {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 0;
    background: transparent;
    z-index: 2;
}

.quick-access-section .container {
    padding-top: 80px;
    padding-bottom: 60px;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Fix hover effect isolation for quick access cards */
.quick-access-section .card {
    isolation: isolate;
    position: relative;
    z-index: auto;
}

/* SVG Map Styling */
.trade-map {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.75;
    filter: blur(0.2px);
}

/* Trade Route Lines - Dashed Animation */
.trade-route {
    stroke-dasharray: 8 12;
    stroke-linecap: round;
    opacity: 1.0;
    animation: dash-flow 25s linear infinite;
}

/* Different animation speeds for each route */
.route-1 {
    animation-duration: 20s;
    animation-delay: 0s;
}

.route-2 {
    animation-duration: 25s;
    animation-delay: 2s;
}

.route-3 {
    animation-duration: 30s;
    animation-delay: 4s;
}

.route-4 {
    animation-duration: 18s;
    animation-delay: 1s;
}

.route-5 {
    animation-duration: 22s;
    animation-delay: 3s;
}

.route-6 {
    animation-duration: 24s;
    animation-delay: 5s;
}

.route-7 {
    animation-duration: 20s;
    animation-delay: 2.5s;
}

/* Dash Flow Animation */
@keyframes dash-flow {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.7;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        stroke-dashoffset: -200;
        opacity: 0.7;
    }
}

/* Port Dots - Pulsing Effect */
.port-dot {
    animation: pulse-port 3s ease-in-out infinite;
}

.port-1 {
    animation-delay: 0s;
}

.port-2 {
    animation-delay: 0.5s;
}

.port-3 {
    animation-delay: 1s;
}

.port-4 {
    animation-delay: 1.5s;
}

.port-5 {
    animation-delay: 2s;
}

.port-6 {
    animation-delay: 2.5s;
}

@keyframes pulse-port {

    0%,
    100% {
        r: 3;
        opacity: 0.5;
    }

    50% {
        r: 5;
        opacity: 0.9;
    }
}

/* Shipping Containers - Moving Along Routes */
.shipping-container {
    transform-origin: center;
    animation: move-container 40s linear infinite;
}

.container-1 {
    animation-name: move-route-1;
    animation-duration: 35s;
}

.container-2 {
    animation-name: move-route-3;
    animation-duration: 45s;
    animation-delay: 5s;
}

/* Container Movement Along Route 1 (Trans-Atlantic) */
@keyframes move-route-1 {
    0% {
        transform: translate(220px, 150px) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.7;
    }

    45% {
        opacity: 0.7;
    }

    50% {
        transform: translate(480px, 120px) rotate(5deg);
        opacity: 0;
    }

    100% {
        transform: translate(480px, 120px) rotate(5deg);
        opacity: 0;
    }
}

/* Container Movement Along Route 3 (Trans-Pacific) */
@keyframes move-route-3 {
    0% {
        transform: translate(750px, 140px) rotate(180deg);
        opacity: 0;
    }

    5% {
        opacity: 0.7;
    }

    45% {
        opacity: 0.7;
    }

    50% {
        transform: translate(220px, 140px) rotate(175deg);
        opacity: 0;
    }

    100% {
        transform: translate(220px, 140px) rotate(175deg);
        opacity: 0;
    }
}

/* Continents Subtle Glow */
.continents path {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    animation: continent-glow 10s ease-in-out infinite;
}

@keyframes continent-glow {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 0.65;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .world-map-background {
        top: 80px;
        height: calc(100% - 80px);
    }

    .trade-map {
        opacity: 0.3;
    }

    .trade-route {
        stroke-width: 1.5;
    }

    .shipping-container {
        transform: scale(0.8);
    }
}

/* Ensure content is above the background */
.container,
.navbar,
.card,
.footer {
    position: relative;
    z-index: 1;
}

/* Add subtle overlay to improve text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.88) 0%,
            rgba(118, 75, 162, 0.88) 100%);
    z-index: -3;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE DESIGN - COMPREHENSIVE MEDIA QUERIES
   ======================================== */

/* Mobile Devices (320px - 767px) */
@media (max-width: 767px) {

    /* Typography adjustments */
    h1,
    .display-4 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.2rem !important;
    }

    .navbar-brand-logo {
        width: 35px;
        height: 35px;
    }

    .navbar-collapse {
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 1rem;
    }

    /* Search bar */
    #globalSearch,
    .input-group-lg .form-control {
        font-size: 0.9rem !important;
        padding: 0.5rem !important;
    }

    .input-group-lg .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Quick access cards - stack on mobile */
    .col-md-4 {
        margin-bottom: 1rem;
    }

    /* Product carousel */
    .product-carousel-container {
        padding: 1rem !important;
    }

    .carousel-nav-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .carousel-nav-btn.prev-btn {
        left: 5px !important;
    }

    .carousel-nav-btn.next-btn {
        right: 5px !important;
    }

    #productIcon {
        width: 40px !important;
        height: 40px !important;
    }

    #productTitle {
        font-size: 1.2rem !important;
    }

    #productTagline {
        font-size: 0.9rem !important;
    }

    #productImage {
        max-height: 200px !important;
    }

    /* Footer */
    .footer-content {
        padding: 2rem 0;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .footer-item {
        font-size: 0.85rem;
    }

    .footer-social {
        justify-content: center;
    }

    /* Video cards */
    .video-card {
        margin-bottom: 1.5rem;
    }

    .video-title {
        font-size: 1rem !important;
        min-height: auto !important;
    }

    /* Error items */
    .error-item {
        padding: 10px;
    }

    .error-code {
        font-size: 1rem;
    }

    /* Modals */
    .faq-modal-dialog,
    .error-modal-dialog {
        width: 95vw !important;
        padding: 1rem !important;
    }

    .faq-modal-close,
    .error-modal-close {
        top: 5px;
        right: 10px;
        font-size: 1.5rem;
    }

    /* Search results */
    .search-result-item {
        padding: 12px;
    }

    .result-type-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    /* Accordion */
    .accordion-button {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    /* World map background - hide on very small screens for performance */
    .world-map-background {
        display: none;
    }
}

/* Extra Small Mobile - Specific fixes for 320px - 374px */
@media (max-width: 374px) {

    /* Even smaller typography */
    h1,
    .display-4 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    .lead {
        font-size: 0.9rem !important;
    }

    /* Tighter container */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 1rem !important;
    }

    .navbar-brand-logo {
        width: 30px;
        height: 30px;
    }

    .navbar-collapse {
        padding: 0.75rem;
    }

    .nav-link {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* Search */
    #globalSearch,
    .input-group-lg .form-control {
        font-size: 0.85rem !important;
        padding: 0.4rem !important;
    }

    .input-group-lg .btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    /* Cards */
    .card-body {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 1rem !important;
    }

    .card-text {
        font-size: 0.85rem !important;
    }

    /* Product carousel */
    .product-carousel-container {
        padding: 0.75rem !important;
    }

    .carousel-nav-btn {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.7rem !important;
    }

    #productTitle {
        font-size: 1rem !important;
    }

    #productTagline {
        font-size: 0.8rem !important;
    }

    #productImage {
        max-height: 150px !important;
    }

    /* Footer */
    .footer-title {
        font-size: 1rem;
    }

    .footer-item {
        font-size: 0.8rem;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* Modals */
    .faq-modal-dialog,
    .error-modal-dialog {
        padding: 0.75rem !important;
    }

    .faq-modal-content h4,
    .error-modal-content h4 {
        font-size: 1.1rem !important;
    }

    /* Video cards */
    .video-title {
        font-size: 0.9rem !important;
    }

    .video-topic-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Error items */
    .error-code {
        font-size: 0.9rem;
    }

    .error-description {
        font-size: 0.85rem;
    }

    /* Accordion */
    .accordion-button {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .accordion-body {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

/* Small Mobile - Specific for 375px - 424px */
@media (min-width: 375px) and (max-width: 424px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar-brand-logo {
        width: 32px;
        height: 32px;
    }

    .card-body {
        padding: 0.85rem;
    }

    #productImage {
        max-height: 180px !important;
    }
}

/* Tablet Devices (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Typography */
    h1,
    .display-4 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    /* Container */
    .container {
        max-width: 720px;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 1.4rem;
    }

    /* Cards in rows */
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Product carousel */
    .product-carousel-container {
        padding: 2rem !important;
    }

    #productImage {
        max-height: 300px !important;
    }

    /* Footer */
    .footer .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }

    .footer .col-lg-4:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Video cards - 2 columns */
    .video-card {
        margin-bottom: 2rem;
    }

    /* Modals */
    .faq-modal-dialog,
    .error-modal-dialog {
        width: 85vw;
    }

    /* World map - slightly reduced */
    .trade-map {
        opacity: 0.3;
    }
}

/* Laptop Devices (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 960px;
    }

    /* Product carousel */
    #productImage {
        max-height: 320px !important;
    }

    /* Maintain 3-column layout for cards */
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Desktop Devices (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    /* Larger typography for better readability */
    h1,
    .display-4 {
        font-size: 3rem !important;
    }

    /* Product carousel */
    #productImage {
        max-height: 380px !important;
    }

    /* Footer extra spacing */
    .footer-content {
        padding: 3rem 0;
    }
}

/* Login Page Responsive */
@media (max-width: 767px) {
    .login-container {
        padding: 25px !important;
        margin: 15px;
    }

    .login-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .logo-container img {
        max-width: 70px !important;
    }

    .chrome-save-dialog {
        width: 280px !important;
        right: 10px !important;
    }

    .chrome-save-dialog::before {
        right: 15px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .login-container {
        max-width: 450px;
        padding: 45px;
    }
}

/* Admin Dashboard Responsive */
@media (max-width: 991px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }

    .sidebar.collapsed {
        width: 100%;
    }

    .sidebar .logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .sidebar .logo img {
        max-width: 50px;
    }

    .sidebar .logo h5 {
        opacity: 1 !important;
        max-height: none !important;
        margin: 0;
    }

    .sidebar .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar .nav-link {
        flex: 1 1 45%;
        text-align: center;
        justify-content: center;
        padding: 10px;
        font-size: 0.9rem;
    }

    .sidebar .nav-link i {
        margin-right: 5px;
    }

    .sidebar .nav-link span {
        opacity: 1 !important;
        max-width: none !important;
    }

    #sidebarToggle {
        display: none;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 15px;
    }

    .main-content.collapsed {
        margin-left: 0;
    }

    .header {
        margin: -15px -15px 15px -15px;
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header h4 {
        font-size: 1.25rem;
    }

    /* Admin tables - make scrollable */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.85rem;
    }

    .table-actions {
        min-width: 120px;
    }

    .table-actions .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        margin: 2px;
    }

    /* Card adjustments */
    .card-header {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    .card-body {
        padding: 15px;
    }

    /* Management cards on dashboard */
    .row.g-4 .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Global search */
    #globalSearchResults .list-group-item {
        font-size: 0.9rem;
        padding: 10px;
    }

    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        font-size: 0.9rem;
    }

    .modal-header,
    .modal-footer {
        padding: 12px 15px;
    }

    .modal-body {
        padding: 15px;
    }

    /* Quill editor */
    #faqAnswerEditor,
    #errorDescriptionEditor {
        min-height: 150px !important;
    }

    /* Pagination controls */
    #faqPaginationControls,
    #videoPaginationControls,
    #errorDocPaginationControls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch !important;
    }

    #faqPaginationControls button,
    #videoPaginationControls button,
    #errorDocPaginationControls button {
        width: 100%;
    }

    #faqPageIndicator,
    #videoPageIndicator,
    #errorDocPageIndicator {
        text-align: center;
        order: -1;
        margin-bottom: 5px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }

    .sidebar.collapsed {
        width: 70px;
    }

    .main-content.collapsed {
        margin-left: 70px;
    }

    table {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {

    .sidebar,
    .navbar,
    .footer,
    .btn,
    .world-map-background {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    body {
        background: white !important;
    }

    * {
        color: #000 !important;
    }
}

/* Landscape orientation adjustments for phones */
@media (max-width: 767px) and (orientation: landscape) {
    .login-container {
        max-width: 500px;
        padding: 20px;
    }

    .header {
        padding: 10px 15px;
    }

    .sidebar .nav {
        max-height: 150px;
        overflow-y: auto;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .navbar-brand-logo,
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .world-map-background {
        display: none;
    }
}

/* ========================================
   Image Protection - Comprehensive Anti-Download
   ======================================== */

/* Protect all images from right-click, drag, and selection */
img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-touch-callout: none;
    /* Disable long-press on mobile */
}

/* Additional protection for images with protected-image class */
.protected-image {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    /* Allow clicking but prevent other interactions */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    cursor: default;
    /* Normal cursor, not grab */
}

/* Prevent image saving via CSS overlay (optional layer of protection) */
.protected-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Wrapper for protected images */
.product-image-wrapper {
    position: relative;
}

.product-image-wrapper a {
    position: relative;
    display: inline-block;
}

/* ========================================
   Back to Top Floating Button
   ======================================== */
#backToTop {
    position: fixed;
    bottom: 115px;
    /* Positioned above WhatsApp button */
    right: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 3px solid white;
    /* White border for contrast */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    /* Reduced icon size for better proportion */
    cursor: pointer;
    z-index: 1000;
    /* Dual shadow: dark for depth + white glow for visibility */
    /* Reduced shadow for subtler look */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.3);
    /* Subtle glow */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

/* Show button when scrolled */
#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover effect - enhanced visibility with stronger glow */
#backToTop:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255, 255, 255, 1);
    /* Brighter white border */
    transform: translateY(-3px) scale(1.15);
    /* Slightly larger scale */
    /* Enhanced glow on hover */
    /* Reduced glow on hover */
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(255, 255, 255, 0.5);
}

/* Active/Click effect */
#backToTop:active {
    transform: translateY(-1px) scale(1.08);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.7);
}

/* Icon centering */
#backToTop i {
    line-height: 1;
}

/* Optional: Subtle pulse animation to draw attention (remove if too distracting) */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 25px rgba(255, 255, 255, 0.6),
            0 0 40px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 35px rgba(255, 255, 255, 0.8),
            0 0 50px rgba(255, 255, 255, 0.4);
    }
}

/* Uncomment to enable pulse animation */
/*
#backToTop.show {
    animation: pulseGlow 2s ease-in-out infinite;
}
*/

/* Responsive adjustments for tablets */
@media (max-width: 768px) {
    #backToTop {
        width: 55px;
        height: 55px;
        bottom: 100px;
        /* Positioned above WhatsApp button */
        right: 25px;
        font-size: 1.3rem;
        border-width: 2.5px;
        /* Slightly thinner border on tablet */
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    #backToTop {
        width: 50px;
        height: 50px;
        bottom: 85px;
        /* Positioned above WhatsApp button */
        right: 20px;
        font-size: 1.2rem;
        border-width: 2px;
        /* Thinner border on mobile */
    }
}

/* ========================================
   Chat Widget Floating Button & Popup
   ======================================== */

/* Chat Floating Button - Pill Shape Interaction */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    border-radius: 30px;

    /* Default State: Collapsed Circle */
    width: 60px;
    height: 60px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4),
        0 0 15px rgba(139, 92, 246, 0.3);

    /* Transition for smooth expansion */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Light white border */
    outline: none;
    overflow: hidden;
}

/* Hover & Active State: Expanded Pill */
.whatsapp-float:hover,
.whatsapp-float.active {
    width: 240px;
    /* Expand capability */
    padding: 0 24px;
    border-radius: 30px;
    background: linear-gradient(135deg, #5457E0 0%, #7A4BE5 100%);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6),
        0 0 25px rgba(139, 92, 246, 0.5);
    justify-content: center;
    /* Keep centered, content will flow */
}

/* Active state adjustment */
.whatsapp-float.active {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    /* Maintain normal gradient or specific active color if needed */
}

.whatsapp-float:active {
    transform: translateY(0);
}

.whatsapp-float i {
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Text visibility transition */
.widget-text {
    font-size: 1rem;
    white-space: nowrap;
    font-weight: 600;

    /* Hidden by default */
    opacity: 0;
    max-width: 0;
    margin-left: 0;
    transform: translateX(-10px);

    transition: all 0.3s ease;
}

/* Show text on Hover/Active */
.whatsapp-float:hover .widget-text,
.whatsapp-float.active .widget-text {
    opacity: 1;
    max-width: 200px;
    /* Space for text */
    margin-left: 10px;
    transform: translateX(0);
}

/* Chat Popup */
.whatsapp-popup {
    position: fixed;
    bottom: 100px;
    /* Above button */
    right: 30px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Slower transition */
    pointer-events: none;
    overflow: visible;
}

.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Popup Header */
.popup-header {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    padding: 18px 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: white;
}

/* Popup Body */
.popup-body {
    padding: 20px;
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.popup-greeting {
    margin: 0 0 20px 0;
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Options (Email & WhatsApp) */
.contact-option-wrapper {
    margin-bottom: 15px;
    position: relative;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #F8F9FA;
    /* Light gray default */
    border: 1.5px solid #E5E7EB;
    /* Default border */
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    position: relative;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-option:last-of-type {
    margin-bottom: 0;
}

.contact-option:hover {
    background: #FFFFFF;
    /* White on hover */
    border-color: #6366F1;
    /* Purple border */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.15);
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-info strong {
    color: #111827;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-info span {
    color: #6B7280;
    font-size: 0.8rem;
}

.contact-method {
    margin-top: 2px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.whatsapp-link .contact-method {
    color: #25D366;
    /* WhatsApp Green */
}

.email-link .contact-method {
    color: #6366F1;
    /* App Blue/Purple */
}

.contact-icon {
    font-size: 24px;
    margin-left: auto;
}

.whatsapp-link .contact-icon {
    color: #25D366;
}

.email-link .contact-icon {
    color: #6366F1;
}

/* Embedded email dropdown styles removed as dropdown is no longer used */

.popup-footer-text {
    margin-top: 20px;
    /* Added more space above footer text */
    text-align: center;
    font-size: 0.8rem;
    color: #9CA3AF;
}

/* Staggered Slide-Up Animations for Popup Elements */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        /* Start from below */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* End at normal position */
    }
}



/* Apply staggered animations when popup is active */
.whatsapp-popup.active .popup-header {
    animation: slideUpFadeIn 0.5s ease 0.1s forwards;
    /* Slower animation */
    opacity: 0;
    /* Start invisible */
}

.whatsapp-popup.active .popup-greeting {
    animation: slideUpFadeIn 0.5s ease 0.2s forwards;
    /* Slower animation */
    opacity: 0;
    /* Start invisible */
}

.whatsapp-popup.active .contact-option {
    animation: slideUpFadeIn 0.6s ease 0.3s forwards;
    /* Slower animation, target .contact-option instead of specific classes */
    opacity: 0;
    /* Start invisible */
}

/* Helper for staggered animation on multiple contact options */
.whatsapp-popup.active .contact-option:nth-of-type(2) {
    animation-delay: 0.4s;
}

.whatsapp-popup.active .popup-footer-text {
    animation: slideUpFadeIn 0.5s ease 0.5s forwards;
    /* Slower animation */
    opacity: 0;
    /* Start invisible */
}

/* Reset animation when popup is closed */
.whatsapp-popup:not(.active) .popup-header,
.whatsapp-popup:not(.active) .popup-greeting,
.whatsapp-popup:not(.active) .contact-option,
.whatsapp-popup:not(.active) .popup-footer-text {
    opacity: 1;
    /* Normal state when closed */
    animation: none;
}

/* Responsive adjustments for tablets */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 25px;
        /* Positioned at bottom */
        right: 25px;
    }

    .whatsapp-popup {
        width: 320px;
        bottom: 100px;
        /* Above WhatsApp button */
        right: 25px;
    }

    .whatsapp-float.active i {
        font-size: 13px;
        /* X icon smaller on tablets */
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        /* Positioned at bottom */
        right: 20px;
    }

    .whatsapp-popup {
        width: calc(100vw - 40px);
        max-width: 300px;
        bottom: 95px;
        /* Above WhatsApp button */
        right: 20px;
    }

    .popup-header {
        padding: 12px 15px;
    }

    .popup-title {
        font-size: 1rem;
    }

    .popup-body {
        padding: 15px;
    }

    .whatsapp-contact {
        padding: 12px;
        gap: 10px;
    }

    .contact-avatar {
        width: 45px;
        height: 45px;
    }

    .contact-info strong {
        font-size: 0.95rem;
    }

    .whatsapp-contact>i {
        font-size: 24px;
    }
}

/* ===== RESPONSIVE SPACING ADJUSTMENTS FOR HERO SECTION ===== */

/* Large desktops (1440px and up) */
@media (min-width: 1440px) {
    .hero-section {
        padding-bottom: 1.5rem;
        min-height: auto;
    }

    .search-results-section {
        min-height: 0;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .quick-access-section {
        margin-top: 1.5rem !important;
        padding-top: 0;
    }

    #searchResults:not(:empty) {
        margin-bottom: 1.75rem;
        margin-top: 1.25rem;
    }
}

/* Laptops (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-section {
        padding-bottom: 1.25rem;
        min-height: auto;
    }

    .search-results-section {
        min-height: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .quick-access-section {
        margin-top: 1.25rem !important;
        padding-top: 0;
    }

    #searchResults:not(:empty) {
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }
}

/* Tablets (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        padding-bottom: 1rem;
        min-height: auto;
    }

    .search-results-section {
        min-height: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .quick-access-section {
        margin-top: 1rem !important;
        padding-top: 0;
    }

    #searchResults:not(:empty) {
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .hero-section {
        padding-bottom: 0.75rem;
        min-height: auto;
    }

    .search-results-section {
        min-height: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .quick-access-section {
        margin-top: 0.75rem !important;
        padding-top: 0;
        margin-bottom: 1.5rem;
    }

    #searchResults:not(:empty) {
        margin-bottom: 1.25rem;
        margin-top: 0.75rem;
    }
}

/* Spell Checker Suggestions */
.spelling-suggestion-box {
    margin-top: 10px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 5px;
    color: #856404;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease-in-out;
}

.spelling-suggestion-box .suggestion-content {
    display: flex;
    align-items: center;
}

.spelling-suggestion-box i {
    color: #856404;
}

.spelling-suggestion-box a {
    color: #856404;
    text-decoration: underline;
    margin-left: 5px;
    cursor: pointer;
}

.spelling-suggestion-box a:hover {
    color: #533f03;
}

/* Fix invisible search icon in suggestions dropdown (white on white) */
.list-group-item .text-muted {
    color: #6c757d !important;
    /* Standard Bootstrap gray */
}