/* Use modern, clean font */

body {
    margin: 0;
    padding: 0 10px; /* Adds left and right padding for content */
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't break layout */
}


body {
    font-family: 'Inter', sans-serif; /* Modern font */
    font-size: 12.6px; /* Previously 14px, reduced by 10% */
}



/* ✅ Ensure the main content container grows to push the footer down */
.container {
    flex-grow: 1; /* Makes content take up available space */
}




.beta-banner {
    width: calc(100% - 40px); /* ✅ Adds left/right spacing */
    height: 200px; /* ✅ Fixed height */
    background: url("images/stars.png") center/cover no-repeat; /* ✅ Image moves with the banner */
    border-radius: 4.5px;
    display: flex;
    justify-content: left; /* ✅ Centers inner content */
    align-items: center; /* ✅ Centers text vertically */
    padding: 15px 40px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    margin: 10px auto 16px auto; /* ✅ Centers it and adds spacing */
    position: relative; /* ✅ Keeps overlay and text inside */
}

/* ✅ Optional: Add an Overlay for Readability */
.beta-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(95, 162, 223, 0.2); /* ✅ Light blue overlay for readability */
    border-radius: 4.5px;
    z-index: 1;
}

/* ✅ Inner Content Stays Above the Background */
.beta-banner-content {
    max-width: 1100px;
    width: 100%;
    text-align: left;
    font-size: 14.6px;
    color: white;
    position: relative;
    z-index: 2; /* ✅ Ensures content stays above overlay */
}

/* ✅ Strapline Styling */
.beta-banner-content h2 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-align: left;
    margin-bottom: 6px; /* 🔽 Reduced spacing */
}

/* ✅ New Structure for Emoji as Bullets */
.beta-banner-item {
    display: flex;
    align-items: center; /* ✅ Ensures emoji and text are vertically aligned */
    gap: 10px; /* ✅ Space between emoji and text */
    margin-bottom: 3px; /* 🔽 Reduced spacing between lines */
}

.beta-banner-item .emoji {
    font-size: 18px; /* ✅ Makes emoji larger */
    line-height: 1; /* ✅ Fixes vertical alignment */
    flex-shrink: 0; /* ✅ Prevents emoji from resizing */
    display: flex;
    align-items: center; /* ✅ Ensures perfect centering */
}

/* ✅ Style the link */
.beta-banner-content a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.beta-banner-content a:hover {
    color: white;
    text-decoration: underline;
}



/* ✅ Full-screen overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* ✅ Semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* ✅ Pop-up styling */
.popup {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    width: 600px; /* ✅ Increased width */
    max-width: 90%;
    border: 3px solid #0073e6; /* ✅ Blue border */
}

/* ✅ Buttons inside the pop-up */
.popup-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* ✅ Close & Propose Buttons */
.popup-buttons button {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
}

/* ✅ Close Button */
#close-popup {
    background: #ccc;
    color: black;
}

#close-popup:hover {
    background: #aaa;
}

/* ✅ Propose Company Button */
#propose-company {
    background: #0073e6;
    color: white;
}

#propose-company:hover {
    background: #005bb5;
}




/*--------------------------------*/

/* ✅ Unique styling for the intro banner */
.intro-banner {
    width: 100%; /* ✅ Ensure it takes full width without shrinking */
    max-width: 100vw; /* ✅ Prevents it from exceeding the viewport width */
    min-height: 320px;
    background: url("images/stars.png") center/cover no-repeat;
    border-radius: 4.5px;
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 20px 30px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    margin: 10px auto 16px auto;
    position: relative;
    overflow: hidden; /* ✅ Prevents internal elements from causing overflow */
    box-sizing: border-box; /* ✅ Ensures padding doesn’t add extra width */
}




/* ✅ Inner content split into two equal sections */
.intro-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* ✅ Prevents overflow */
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-align: left;
    font-size: 14.6px;
    color: white;
    position: relative;
    margin: 0;
    padding-left: 0;

}

/* ✅ Left Section */
.intro-left {
    flex-grow: 1; /* Takes remaining space */
    color: white;
}

.intro-left h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* ✅ Left section text items */
.intro-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.intro-item .emoji {
    font-size: 18px;
    flex-shrink: 0;
}

/* ✅ Right Section */
.intro-right {
    max-width: 300px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ✅ Magic Wand Title */
.intro-right h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.magic-wand {
    font-size: 20px;
    color: #0073e6;
}

/* ✅ Form Styling */
#categorize-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
}

/* ✅ Input Fields */
#categorize-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* ✅ Submit Button */
#categorize-form button {
    background: #0073e6;
    color: white;
    border: none;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

#categorize-form button:hover {
    background: #005bb5;
}

/* ✅ Responsive Design */
@media screen and (max-width: 768px) {
    .intro-content {
        flex-direction: column;
    }

    .intro-left {
        width: 100%;
        padding-right: 0;
    }

    .intro-right {
        max-width: 90%;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background: white;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    #categorize-form {
        max-width: 100%;
    }
}

/* ✅ Ensure links in .intro-left stay white */
.intro-left a,
.intro-left a:visited,
.intro-left a:active {
    color: white !important;
    font-weight: bold;
    text-decoration: none;
}

/* ✅ Add a hover effect */
.intro-left a:hover {
    text-decoration: underline;
}


/*--------------------------------*/



#market-map {
    display: flex;
    flex-wrap: wrap; /* ✅ Allows multiple rows */
    justify-content: flex-start; /* ✅ Aligns items from the left */
    align-items: stretch; /* ✅ Ensures equal heights */
    gap: 20px; /* ✅ Keeps spacing consistent */
}



.main-category-box {
    border: 2px solid white; /* White border */
    border-radius: 4.5px; /* Slightly rounded */
    padding: 18px; /* Previously 20px */
    margin-bottom: 18px; /* Reduced by 10% */
    background-color: #f4f4f4; /* Light grey background */
    display: inline-block; /* Adjusts width to fit content */
    min-height: 280px; /* ✅ Fixes height (adjust as needed) */
}


/* Main Category Title */
.main-category-title {
    font-size: 14.4px; /* Previously 16px, reduced by 10% */
    font-weight: bold;
    color: #0073e6;
    padding-bottom: 9px; /* Adjusted padding */
}

/* Subcategory Container */
.sub-category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px; /* Reduced gap between categories */
}

/* Subcategory Box */
.category-box {
    background: white;
    border-radius: 5.4px; /* Previously 6px */
    box-shadow: 0 3.6px 5.4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    width: 198px; /* Previously 220px, reduced by 10% */
    min-height: 198px; /* Previously 220px */
    display: block;
    overflow: hidden;
    padding-bottom: 9px; /* Adjusted padding */
    max-width: 100%;
}

/* ✅ Fixed Height & Vertically Centered Wrapping Text */
.category-header {
    background-color: #0073e6;
    color: white;
    padding: 7.2px 10.8px; /* ✅ Maintains proper spacing */
    font-size: 12.6px; /* ✅ Keeps existing font size */
    font-weight: bold;
    text-align: left;
    width: 100%;
    height: auto; /* ✅ Allows height to expand for wrapping */
    min-height: 40px; /* ✅ Ensures consistent look when single-line */
    display: flex; /* ✅ Enables flexbox */
    align-items: center; /* ✅ Vertically centers text */
    word-wrap: break-word; /* ✅ Ensures long words wrap */
    overflow-wrap: break-word; /* ✅ Alternative text-wrapping support */
    white-space: normal; /* ✅ Allows multiple lines */
    box-sizing: border-box;
}



/* Company List */
.company-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    flex-grow: 1;
    font-size: 10.8px; /* Previously 12px */
}

/* Company List Items */
.company-list li {
    padding-left: 9px; /* Adjusted spacing */
    padding-right: 22.5px; /* Ensures space for the flag */
    padding-top: 1.8px; /* Adjusted */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease-in-out;
    position: relative;
}

/* First Company Item - Extra Spacing Above */
.company-list li:first-child {
    padding-top: 5.4px; /* Adjusted */
}

/* Bullet Icon Before Each Company Name */
.company-list li::before {
    content: "•";
    color: #0073e6;
    font-size: 12.6px; /* Previously 14px */
    font-weight: bold;
    margin-right: 5.4px; /* Adjusted */
}

/* Country Icon - Positioned to the Right */
.company-list li .country-icon {
    width: 14.4px; /* Previously 16px */
    height: 10.8px; /* Previously 12px */
    margin-left: auto;
}

/* Company Name Hover Effect */
.company-list li:hover {
    cursor: pointer;
    color: #005bb5;
    text-decoration: none;
}

/* "See More" Link */
.show-more {
    color: #0073e6;
    text-decoration: none;
    display: block;
    text-align: left;
    padding-left: 14.4px;
    font-size: 10.8px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
    margin-top: 3.6px;
}

.show-more:hover {
    color: #005bb5;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px; /* Previously 80px */
    background-color: #5FA2DF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    font-size: 14.4px; /* Previously 16px */
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 1.8px 3.6px rgba(0, 0, 0, 0.2);
}

/* Default logo size */
.header-logo {
    height: 45px; /* Adjust logo size */
    margin-right: 13.5px;
}

/* 📱 Reduce logo size for mobile screens (max-width: 768px) */
@media (max-width: 768px) {
    .header-logo {
        height: 30px; /* Smaller logo for mobile */
        margin-right: 10px; /* Adjust spacing */
    }
}

/* Push content below header */
body {
    padding-top: 72px; /* Previously 80px */
}

/* BETA Label */
.beta-label {
    font-size: 10.8px;
    vertical-align: super;
}

/* Button Wrapper */
.button-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    padding-right: 18px;
}

/* Propose Company Button */
.propose-button {
    margin-right: 18px;
    padding: 7.2px 13.5px;
    font-size: 12.6px;
    border: none;
    background-color: #005bb5;
    color: white;
    border-radius: 4.5px;
    cursor: pointer;
}

.propose-button:hover {
    background-color: #004494;
}

/* Reload Button */
.reload-button {
    margin-top: 9px;
    margin-bottom: 13.5px;
    padding: 7.2px 13.5px;
    font-size: 12.6px;
    border: none;
    background-color: #C7C7C7;
    color: white;
    border-radius: 4.5px;
    cursor: pointer;
}

.reload-button:hover {
    background-color: #005bb5;
}

/* Company Profile Container */
.company-profile-container {
    max-width: 720px; /* Previously 800px */
    margin: 45px auto;
    padding: 18px;
    background: #f8f8f8;
    border-radius: 7.2px;
    box-shadow: 0 3.6px 5.4px rgba(0, 0, 0, 0.1);
}

/* Table Adjustments */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 9px;
    border: 1px solid #ddd;
}

th {
    background: #0073e6;
    color: white;
    text-align: left;
}

/* Clickable Company Links */
.clickable-company {
    cursor: pointer;
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.clickable-company:hover {
    color: #005bb5;
}


/* Wrapper for Logo, Title, and Search */
.logo-title-search-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}


/* Header Title (Hidden on Mobile) */
.header-title {
    font-size: 14px;
    white-space: nowrap;
}

/* Button Wrapper */
.button-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    padding-right: 18px;
}

/* Propose Company Button */
.propose-button {
    margin-right: 18px;
    padding: 7.2px 13.5px;
    font-size: 12.6px;
    border: none;
    background-color: #005bb5;
    color: white;
    border-radius: 4.5px;
    cursor: pointer;
}

.propose-button:hover {
    background-color: #004494;
}

/* ✅ Hide "Propose Company" Button & Title on Mobile */
@media (max-width: 768px) {
    .propose-button {
        display: none;
    }

    .header-title {
        display: none;
    }
}


@media screen and (max-width: 768px) {
    .category-box {
        width: 100% !important; /* ✅ Makes sub-category boxes full width */
        display: block !important; /* ✅ Ensures they stack properly */
        box-sizing: border-box !important; /* ✅ Prevents overflow */
    }
}


/* Search Bar Styling */
.search-container {
    display: inline-block;
    align-items: center;
    gap: 5px;
    position: relative;
}

/* Search Input */
.search-input {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
}

.search-button {
    background: #005bb5;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
    padding: 4px 8px;
    margin-right: 10px; /* ✅ Added space to the right */
}

.search-button:hover {
    background: #5FA2DF;
}

.search-dropdown {
    position: absolute;
    top: 100%; /* Position below search bar */
    left: 0;
    width: 100%; /* Match search bar width */
    background: white;
    border: 1px solid #ccc;
    border-top: none; /* Remove top border for seamless look */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 200px; /* Prevent overflow */
    overflow-y: auto; /* Enable scroll for long lists */
}

/* ✅ Style each search result */
.search-option {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.search-option:hover {
    background: #0073e6;
    color: white;
}

/*--------------CONTACT FORM---------------*/

/* ✅ Ensures Full-Width Blue Background */
.contact-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px; /* ✅ Add rounded corners */
    height: 100vh; /* ✅ Full screen height */
}

/* ✅ Contact Form Container */
.contact-form-container {
    background-color: #5FA2DF; /* ✅ Matches header */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* ✅ Center the container itself */
    border-radius: 10px; /* ✅ Add rounded corners */
    overflow: hidden; /* ✅ Ensures children don't "bleed" over rounded corners */
    padding: 30px 20px; /* ✅ Adds vertical padding + fixes side spacing */
    width: 100%; /* ✅ Ensures container spans full width */
    max-width: 1100px; /* ✅ Prevents it from getting too wide */
    box-sizing: border-box; /* ✅ Prevents padding from increasing width */
    margin-bottom: 40px; /* ✅ Extra space below the container */
}

/* ✅ Wrapper to Center Form */
.contact-form-wrapper {
    width: 100%; /* ✅ Takes full width of container */
    max-width: 500px; /* ✅ Restricts form from stretching */
    display: flex;
    justify-content: center;
}

/* ✅ Actual Contact Form */
.contact-form {
    width: 100%; /* ✅ Takes full available space */
    max-width: 500px; /* ✅ Prevents it from being too large */
    background: white;
    padding: 20px; /* ✅ Increased padding inside form */
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    text-align: left;
    box-sizing: border-box; /* ✅ Ensures padding doesn't add to width */
}

/* ✅ Form Styling */
form {
    width: 100%;  /* ✅ Takes full width of container */
    display: flex;
    flex-direction: column;
}

/* ✅ Increase spacing before form labels */
label {
    font-weight: bold;
    margin-top: 15px; /* ✅ More space above labels */
    padding-bottom: 5px; /* ✅ Space between label & input field */
    color: black;
}

/* ✅ Fix Inputs Overflowing */
input, textarea {
    width: 100%; /* ✅ Ensures fields do not overflow */
    padding: 12px; /* ✅ More padding */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box; /* ✅ Prevents overflow due to padding */
}

/* ✅ Add extra padding below Submit Button */
button {
    background: #005bb5;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 20px; /* ✅ Adds space below the button */
}

button:hover {
    background: #004494;
}



/*-----------------------------*/

/* ✅ Mobile: Search Bar Moves Next to Logo */
@media (max-width: 768px) {
    .logo-title-search-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .search-container {
        width: auto;
    }

    .search-input {
        width: 120px; /* Slightly reduced for better fit */
    }
}

/*-----------------------------*/

/* ✅ Styled pop-up modal */
.search-modal {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
    width: 300px;
}

.search-modal p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.search-modal a {
    text-decoration: none;
    color: #0073e6;
    font-weight: bold;
}

.search-modal a:hover {
    text-decoration: underline;
}

/* ✅ Modal background overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}


/* ✅ --------CATEGORY SELECTOR ON INDEX PAGE--------- */

.category-selector-wrapper {
    display: flex;
    align-items: center; /* Keep everything aligned horizontally */
    gap: 10px; /* Space between dropdown and example text */
    padding-bottom: 10px; /* Space below the dropdown */
}

#category-dropdown {
    width: 175px; /* Set dropdown width */
    padding: 6px; /* Padding inside dropdown */
    background-color: #005bb5; /* Match "Suggestions" button background */
    color: white; /* White text for dropdown */
    border: none; /* Remove default border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    font-weight: bold; /* Ensure text is clear */
    text-align: center; /* Center text */
}

/* ✅ Ensure the dropdown options keep their original styling */
#category-dropdown option {
    background-color: white; /* Keep normal dropdown colors */
    color: black; /* Keep category text readable */
}

/* ✅ Example category styling */
.example-text {
    font-weight: normal; /* Not bold */
    color: #555; /* Subtle grey color */
}

#category-example {
    font-size: 14px;
}

.example-text {
    font-weight: normal; /* Keeps text normal */
    color: #5FA2DF; /* Example text color */
    text-decoration: none; /* Removes underline */
    white-space: normal; /* ✅ Allows text to wrap */
    word-wrap: break-word; /* ✅ Ensures text wraps properly */
    max-width: 100%; /* ✅ Prevents text from extending beyond container */
}


/* ✅ Styling for the example hyperlink */
.example-text a {
    color: #5FA2DF; /* ✅ Ensures link is blue */
    text-decoration: underline; /* ✅ Removes underline */
}

.example-text a:hover {
    text-decoration: underline; /* ✅ Optional: Add underline on hover */
}


/* ✅ Footer always at bottom, full width */
footer {
    width: 100%; /* Full width, no calc */
    padding: 20px 10px; /* Match body's left/right padding */
    background-color: #333;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    box-sizing: border-box;
}

.footer-left {
    text-align: left;
    padding-left: 10px; /* Optional if you want extra spacing */
}

.footer-right {
    text-align: right;
    padding-right: 10px; /* Optional if you want extra spacing */
}

.footer-right a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-right a:hover {
    text-decoration: underline;
}


/* ✅ Green Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 5px solid rgba(40, 167, 69, 0.3);
    border-top-color: #28a745; /* Green top border */
    border-radius: 50%;
    animation: spin 1s linear infinite !important; /* Forces animation */
}
