/* =========================================================
   MfgWave Phase 1 Styles
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0b5ed7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 14px 0;
    line-height: 1.25;
    color: #111827;
}

p {
    margin: 0 0 14px 0;
}

ul,
ol {
    margin: 0 0 14px 20px;
    padding: 0;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* =========================================================
   Header / Nav
   ========================================================= */

.site-main {
    min-height: 60vh;
    padding: 30px 0;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* 🔥 Blue bottom line */
.site-nav::after {
    content: "";
    position: absolute;
    bottom: 0;   /* 🔥 move to bottom */
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

/* Logo */
.nav-logo img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* Remove old white text styles */
.nav-logo,
.nav-logo:hover {
    color: inherit;
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

/* 🔥 Bigger + cleaner menu text */
.nav-links a {
    position: relative;
    color: #111827;
    font-size: 16px;        /* 🔥 increased */
    font-weight: 600;       /* 🔥 stronger */
    padding: 8px 0;
    text-decoration: none;
}

/* Hover */
.nav-links a:hover {
    color: #2563eb;
}



.nav-links a:hover::after,
.nav-links a.is-active::after {
    width: 100%;
}

/* Buttons (fix dark styling) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Outline button (light theme fix) */
.nav-btn-outline {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
}

.nav-btn-outline:hover {
    background: #f3f4f6;
}

/* Hamburger button */
.nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid #2563eb;
    background: #2563eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;

    display: none; /* default hidden */
    align-items: center;
    justify-content: center;
}


/* =========================================================
   Footer
   ========================================================= */

footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}

/* =========================================================
   Utility
   ========================================================= */

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.hidden {
    display: none;
}

/* =========================================================
   Breadcrumbs
   ========================================================= */

.breadcrumbs {
    font-size: 14px;
    color: #6b7280;
}

.breadcrumbs a {
    color: #0b5ed7;
}

/* =========================================================
   Buttons / Inputs
   ========================================================= */

button,
input,
select,
textarea {
    font: inherit;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

button {
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
    background: #1d4ed8;
}

button:active {
    transform: translateY(1px);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    padding: 40px 0 25px 0;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.hero p {
    max-width: 800px;
    font-size: 18px;
    color: #4b5563;
}

/* =========================================================
   Quick Links
   ========================================================= */

.quick-links {
    padding: 10px 0 25px 0;
}

.quick-links a {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 14px;
}

.quick-links a:hover {
    background: #dbeafe;
    text-decoration: none;
}

/* =========================================================
   Cards / Grids
   ========================================================= */

.company-card,
.feature-card,
.info-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.company-card h3,
.feature-card h3,
.info-card h3 {
    margin-bottom: 10px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================================
   Homepage Sections
   ========================================================= */

.featured-companies,
.top-categories,
.top-locations,
.home-about {
    padding: 30px 0;
}

.featured-companies h2,
.top-categories h2,
.top-locations h2,
.home-about h2 {
    margin-bottom: 18px;
}

.location-name {
    font-size: 15px;
    font-weight: 500;   /* softer than bold */
    color: #111827;
}

/* =========================================================
   Directory Page
   ========================================================= */

.directory-page {
    padding: 10px 0 20px 0;
}

.directory-filters form {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 18px;
    border-radius: 10px;
}

.directory-summary {
    color: #374151;
    font-size: 15px;
}

.active-filters {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.no-results {
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

/* =========================================================
   Company Detail
   ========================================================= */

.company-detail {
    padding: 10px 0 20px 0;
}

.company-detail h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
}

.company-meta {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.company-description,
.company-products,
.company-capabilities {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.company-flags span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    margin: 0 10px 10px 0;
}

/* =========================================================
   Search Page
   ========================================================= */

.search-page {
    padding: 10px 0 20px 0;
}

.search-summary {
    color: #374151;
}

/* =========================================================
   Pagination
   ========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    text-align: center;
}

.pagination-link,
.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    text-decoration: none;
}

.pagination-link:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.pagination-current {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    font-weight: 600;
}

.pagination-ellipsis {
    padding: 0 6px;
    color: #6b7280;
}

/* =========================================================
   Basic Tables
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    font-weight: 700;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-tagline {
        display: none;
    }

	/* Hamburger button */
	.nav-toggle {
		display: none;
		width: 42px;
		height: 42px;
		border: 1px solid #e5e7eb;
		background: #2563eb;       /* blue square */
		border-radius: 8px;
		cursor: pointer;

		/* 🔥 center everything */
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* Wrap lines vertically */
	.nav-toggle-inner {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
	}

	/* Lines */
	.nav-toggle-inner span {
		width: 18px;
		height: 2px;
		background: #ffffff;
		border-radius: 999px;
		display: block;
	}

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        border-bottom: 2px solid #2563eb;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 0;
        color: #111827;
        font-size: 16px;
        font-weight: 600;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links a:hover,
    .nav-links a.is-active {
        color: #2563eb;
    }

    .nav-links a.is-active::after,
    .nav-links a:hover::after {
        display: none;
    }

    .nav-actions {
        width: 100%;
    }

    .nav-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding: 22px 0;
    }

    .hero {
        padding: 20px 0 15px 0;
    }

    .hero p {
        font-size: 16px;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .company-meta,
    .directory-filters form,
    .company-description,
    .company-products,
    .company-capabilities,
    .company-card {
        padding: 14px;
    }

    .nav-logo img {
        height: 36px;
        max-height: 36px;
        max-width: 140px;
    }
}

@media (max-width: 600px) {
    .pagination {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-link,
    .pagination-current {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }

    .company-card-pro {
        flex-direction: column;
    }

    .company-card-top {
        flex-direction: column;
    }

    .company-card-actions a {
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .container {
        width: 94%;
    }

    button {
        width: 100%;
    }
}

/* =========================================================
   Company Cards
   ========================================================= */

.company-card-pro {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.company-card-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.company-card-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    overflow: hidden;
}

.company-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-card-body {
    flex: 1;
    min-width: 0;
}

.company-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.company-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-featured {
    background: #fff7ed;
    color: #c2410c;
}

.badge-verified {
    background: #ecfdf5;
    color: #047857;
}

.company-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.company-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.filter-reset-btn {
    display: inline-block;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
}

.filter-reset-btn:hover {
    background: #f3f4f6;
    text-decoration: none;
}

/* =========================================================
   Directory Search / Filters
   ========================================================= */

.directory-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    margin-bottom: 16px;
}

.directory-search-row input[type="text"] {
    width: 360px !important;
    max-width: 360px !important;
    height: 42px;
}

.directory-search-row button {
    width: auto !important;
    height: 42px;
    padding: 0 18px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .directory-search-row {
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .directory-search-row input[type="text"],
    .directory-search-row button {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   City Suggestions
   ========================================================= */

.city-suggestions {
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-top: 6px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.city-suggestion-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: #ffffff;
    color: #111827;
    text-align: left;
    cursor: pointer;
    border-radius: 0;
}

.city-suggestion-item:hover {
    background: #f3f4f6;
}

/* =========================================================
   Logo
   ========================================================= */

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 42px;
    max-height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* Show only on mobile */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }
}

/* Inner wrapper */
.nav-toggle-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* Lines */
.nav-toggle-inner span {
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    display: block;
}

.company-profile {
    padding: 10px 0 30px;
}

.company-profile-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    margin: 18px 0 24px;
}

.company-profile-header h1 {
    margin-bottom: 10px;
}

.company-profile-header p {
    max-width: 780px;
    color: #4b5563;
    font-size: 17px;
}

.company-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.company-profile-tags a {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.company-profile-actions {
    display: flex;
    gap: 10px;
    align-content: flex-start;
    flex-wrap: wrap;
    min-width: 220px;
    justify-content: flex-end;
}

.company-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.profile-panel {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
}

.profile-panel h2 {
    font-size: 20px;
    margin-bottom: 14px;
}

.profile-panel p {
    color: #374151;
}

.company-profile-sidebar {
    position: sticky;
    top: 92px;
}

.side-panel h2 {
    font-size: 18px;
}

.info-row {
    padding: 13px 0;
    border-top: 1px solid #f3f4f6;
}

.info-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.info-row span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 4px;
}

.info-row strong {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.info-row a {
    word-break: break-word;
}

@media (max-width: 900px) {
    .company-profile-header {
        flex-direction: column;
    }

    .company-profile-actions {
        justify-content: flex-start;
    }

    .company-profile-layout {
        grid-template-columns: 1fr;
    }

    .company-profile-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .company-profile-header,
    .profile-panel {
        padding: 18px;
    }

    .company-profile-actions a {
        width: 100%;
    }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    margin-top: 50px;
    padding: 34px 0 18px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}

.footer-wrap {
    display: block;
}

.footer-brand {
    max-width: 760px;
    margin-bottom: 24px;
}

.footer-brand h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #111827;
}

.footer-brand p {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.footer-col h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #111827;
}

.footer-col a {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
}

.footer-col a:hover {
    color: #2563eb;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.company-mini-map {
    margin-top: 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.company-mini-map iframe {
    width: 100%;
    height: 180px;
    border: 0;
    display: block;
}


.nav-link {
    font-size: 14px;
    color: #374151;
    margin-left: 10px;
    text-decoration: none;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-btn-primary {
    background: #2563eb;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
}

.nav-btn-primary:hover {
    background: #1d4ed8;
}

.nav-user {
    margin-left: 10px;
    font-size: 14px;
    color: #111827;
    font-weight: 500;
}

/* =========================================================
   Shared Auth / Simple Form Pages
   ========================================================= */

.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 0;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.auth-card h1 {
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #4b5563;
    margin-bottom: 22px;
}

.auth-form {
    margin-top: 18px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-footer-text {
    margin-top: 18px;
    margin-bottom: 0;
    color: #4b5563;
    font-size: 14px;
    text-align: center;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 20px;
    }
}

.claimed-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 700;
}

.company-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.company-profile-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
}

.company-gallery-slide {
    display: none;
}

.company-gallery-slide.is-active {
    display: block;
}

.company-gallery-slide img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 14px;
}

.company-gallery-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* Company logo beside company name */
.company-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.company-profile-logo {
    width: 74px;
    height: 74px;
    max-width: 74px;
    max-height: 74px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
    flex-shrink: 0;
}

.company-gallery-slider {
    position: relative;
}

.company-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
    z-index: 5;
    user-select: none;
    font-size: 22px;
    font-weight: 700;
}

.company-gallery-nav:hover {
    background: rgba(17, 24, 39, 0.9);
}

.company-gallery-prev {
    left: 14px;
}

.company-gallery-next {
    right: 14px;
}

@media (max-width: 768px) {
    .company-gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .company-gallery-prev {
        left: 8px;
    }

    .company-gallery-next {
        right: 8px;
    }
}

@media (max-width: 768px) {
    .company-profile-logo {
        width: 58px;
        height: 58px;
        max-width: 58px;
        max-height: 58px;
    }

    .company-gallery-slide img {
        height: 240px;
        max-height: 240px;
    }
}

/* =========================================================
   Marketplace Page
   ========================================================= */

.marketplace-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

.marketplace-results {
    padding: 35px 0;
}

.marketplace-results-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

/* Category cards */
.marketplace-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.marketplace-category-card {
    display: block;
    min-height: 210px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.marketplace-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    text-decoration: none !important;
}

.marketplace-category-card.is-active {
    border-color: #2563eb;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14);
}

.marketplace-category-label {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.marketplace-category-title {
    display: block;
    font-size: 19px;
    line-height: 1.35;
    color: #111827;
    margin-bottom: 10px;
}

.marketplace-category-desc {
    display: block;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.marketplace-category-cta {
    display: block;
    margin-top: 14px;
    color: #2563eb;
    font-weight: 700;
    font-size: 14px;
}

/* Listing rows */
.marketplace-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.marketplace-listing-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    color: #111827;
    text-decoration: none !important;
}

.marketplace-listing-row:hover {
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.marketplace-listing-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.marketplace-listing-type {
    font-weight: 700;
    color: #111827;
}

.marketplace-listing-title {
    display: block;
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 6px;
    color: #111827;
}

.marketplace-listing-desc {
    display: block;
    line-height: 1.45;
    color: #4b5563;
}

.marketplace-listing-price {
    text-align: right;
    min-width: 150px;
}

.marketplace-listing-price strong {
    display: block;
    color: #111827;
    font-size: 16px;
    margin-bottom: 8px;
}

.marketplace-listing-price span {
    color: #2563eb;
    font-weight: 700;
}

@media (max-width: 992px) {
    .marketplace-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .marketplace-category-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-listing-row {
        grid-template-columns: 1fr;
    }

    .marketplace-listing-price {
        text-align: left;
        min-width: 0;
    }
}

/* =========================================================
   Custom Human Check
   ========================================================= */

.custom-captcha-box {
    max-width: 340px;
}

.custom-captcha-check {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 700;
    cursor: pointer;
}

.custom-captcha-check:hover {
    background: #f3f4f6;
}

.custom-captcha-check.is-verified {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.custom-captcha-check.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.captcha-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 1px !important;
    width: 1px !important;
}

/* =========================================================
   Dashboard / Account Tables
   ========================================================= */

.dashboard-page {
    padding: 20px 0 40px;
}

.dashboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.dashboard-header-row h1 {
    margin-bottom: 6px;
}

.dashboard-header-row p {
    color: #4b5563;
    margin-bottom: 0;
}

.table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    margin: 0;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.admin-table th {
    background: #f9fafb;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.admin-table td {
    color: #374151;
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.btn-small:hover {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

.btn-small.btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.btn-small.btn-secondary:hover {
    background: #f3f4f6;
    color: #111827;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-draft {
    background: #f3f4f6;
    color: #374151;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-sold {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-expired,
.status-inactive {
    background: #e5e7eb;
    color: #374151;
}

@media (max-width: 768px) {
    .dashboard-header-row {
        align-items: stretch;
    }

    .dashboard-header-row .btn-primary {
        width: 100%;
    }
}