:root {
    --navy: #0F172A;
    --gold: #C5A059;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0F172A;
    --white: #FFFFFF;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--white); 
    color: var(--slate-900); 
    line-height: 1.6; 
    overflow-x: hidden; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}
body.page-template-page-search { background-color: var(--slate-50); }

.container { max-width: 1200px !important; margin: 0 auto !important; padding: 0 2rem !important; width: 100% !important; }
.container::before, .container::after { display: none !important; content: none !important; }
main.container { flex: 1; }

/* Navigation */
nav { 
    position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; 
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-200); padding: 1.25rem 0;
    transition: var(--transition);
}
/* If the admin bar is present, push the sticky nav down */
body.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar nav { top: 46px; }
}

.nav-inner { 
    display: flex !important; justify-content: space-between !important; align-items: center !important; width: 100% !important;
}
.logo { 
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; 
    color: var(--navy); text-decoration: none; display: flex !important; align-items: center !important; gap: 0.5rem !important;
    margin: 0 !important; justify-content: flex-start !important; text-align: left !important;
}
.logo img { height: 40px !important; width: auto !important; max-width: none !important; }
.logo span { background: var(--navy); color: white; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 1rem; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--slate-600); font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active, .nav-links .current-menu-item > a { color: #2563eb !important; }
.btn-cta { 
    background: var(--navy); color: white; padding: 0.75rem 1.5rem; 
    border-radius: 999px; font-weight: 700; transition: var(--transition); 
    border: 1px solid var(--navy); text-decoration: none; display: inline-flex;
}
.btn-cta:hover { background: var(--gold); border-color: var(--gold); color: white; transform: translateY(-2px); }
.btn-cta.logout {
    background: transparent; color: var(--navy) !important; border-color: var(--slate-200);
}
.btn-cta.logout:hover {
    background: var(--slate-50); border-color: var(--navy); color: var(--navy);
}

/* Language Selector */
.lang-selector { font-size: 0.8rem; font-weight: 700; color: var(--slate-600); cursor: pointer; display: flex; gap: 0.5rem; }
.lang-selector span.active { color: var(--navy); border-bottom: 2px solid var(--gold); }

/* Burger Menu */
.burger { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.burger div { width: 25px; height: 3px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* Hero Section (Front Page) */
.hero { 
    padding: 12rem 2rem 8rem; background-color: var(--navy); 
    text-align: center; position: relative; color: white;
    background-image: url('../img/hero_color_bg.webp');
    background-size: cover;
    background-position: center;
}
.hero::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero h1 { 
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 4.5rem; 
    line-height: 1.1; letter-spacing: -0.04em; color: white; margin-bottom: 1.5rem; 
}
.hero p { font-size: 1.25rem; color: var(--slate-200); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Search Interface (Front Page) */
.search-wrap { 
    max-width: 700px; margin: 0 auto 4rem; position: relative;
    background: white; padding: 0.5rem 0.8rem 0.5rem 0.5rem; border-radius: 999px; 
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
    display: flex; align-items: center; border: 1px solid var(--slate-200);
}
.search-input { 
    flex: 1; border: none; padding: 1.25rem 2rem; font-size: 1.1rem; 
    outline: none; font-family: inherit; color: var(--navy);
    background: transparent; border-radius: 999px;
}
.btn-search { 
    background: var(--navy); color: white; border: none; 
    padding: 1rem 2rem; border-radius: 999px; font-weight: 700; 
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem;
}
.btn-search:hover { background: var(--gold); }

.search-hints { margin-top: -3rem; margin-bottom: 4rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); position: relative; z-index: 2; line-height: 1.8; max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.search-hints .label { display: block; margin-bottom: 0.75rem; color: rgba(255,255,255,0.8); font-weight: 500; }
.hint-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.hint-chips span { 
    color: rgba(255,255,255,0.9); font-weight: 500; cursor: pointer; text-decoration: none; 
    transition: var(--transition); background: rgba(255,255,255,0.1); 
    padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap; font-size: 0.8rem;
}
.hint-chips span:hover { background: rgba(255,255,255,0.2); color: white; border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }

/* Pillars Section */
.pillars { padding: 4rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pillar-card { 
    background: var(--white); padding: 3rem 2rem; border-radius: 1.5rem; 
    text-align: center; border: 1px solid var(--slate-100); transition: var(--transition); 
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--slate-200); }
.pillar-icon { 
    display: flex; justify-content: center; align-items: center; width: 64px; height: 64px; 
    background: var(--slate-50); border-radius: 1rem; margin: 0 auto 1.5rem; 
    color: var(--navy); border: 1px solid var(--slate-100); transition: var(--transition); 
}
.pillar-card:hover .pillar-icon { background: var(--navy); color: white; transform: scale(1.05); }
.pillar-card h3 { font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 0.75rem; color: var(--navy); }
.pillar-card p { font-size: 0.95rem; color: var(--slate-600); }

/* Results Section (Front Page) */
.results { padding: 6rem 0; background: var(--slate-50); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.5rem; color: var(--navy); margin-bottom: 1rem; }

/* Slider for Featured Partners */
.slider-wrapper { position: relative; margin: 0 auto; max-width: 100%; }
.slider-container { overflow: hidden; padding: 1rem 0; }
.slider-track { display: flex; gap: 2rem; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.slide-card { flex: 0 0 calc(50% - 1rem); min-width: 0; }
.promo-card { transition: all 0.2s; cursor: pointer; }
.promo-card:hover { transform: translateY(-4px); border-color: #93c5fd !important; border-style: solid !important; box-shadow: var(--shadow) !important; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; background: white; border: 1px solid var(--slate-200);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--navy); font-size: 1.25rem; font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); z-index: 10; transition: var(--transition);
}
.slider-arrow:hover { background: var(--navy); color: white; border-color: var(--navy); }
.slider-arrow.prev { left: -22px; }
.slider-arrow.next { right: -22px; }

.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--navy); transform: scale(1.2); }

.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.company-card { 
    background: white; border-radius: 1.5rem; overflow: hidden; 
    border: 1px solid var(--slate-200); transition: var(--transition);
    display: flex; flex-direction: column; cursor: pointer;
}
.company-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy); }
.card-image { height: 180px; background: #e2e8f0; position: relative; }
.card-badge { position: absolute; top: 1rem; right: 1rem; background: var(--gold); color: white; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.company-content { padding: 2rem; flex: 1; }
.company-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--navy); font-weight: 700; }
.company-location { display: flex; gap: 1rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--slate-600); }
.company-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.company-tags span { background: var(--slate-100); color: var(--slate-600); padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }

.card-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--slate-100); display: flex; justify-content: space-between; align-items: center; }
.btn-profile { background: var(--slate-100); color: var(--navy); padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: var(--transition); border: none; }
.btn-profile:hover { background: var(--slate-200); transform: translateY(-1px); }
.btn-quote { background: #1718ff; color: white; padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: var(--transition); }
.btn-quote:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Company img placeholder */
.company-img-placeholder {
    height: 180px; background-image: url('../img/company_placeholder_bg.webp'); background-size: cover; background-position: center; position: relative;
    width: 100%;
}
.tier-badge {
    background: var(--gold); color: white; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; display: inline-block; white-space: nowrap;
}

/* Footer */
.site-footer { padding: 4rem 0 !important; background: var(--navy) !important; color: white !important; border-top: 1px solid rgba(255,255,255,0.1) !important; margin-top: auto !important; width: 100% !important; text-align: left !important; }
.footer-grid { display: grid !important; grid-template-columns: 2fr 1fr 1fr !important; gap: 4rem !important; text-align: left !important; width: 100% !important; align-items: start !important; }
.footer-col { text-align: left !important; margin: 0 !important; }
.footer-logo { font-family: 'Plus Jakarta Sans', sans-serif !important; font-size: 1.8rem !important; font-weight: 800 !important; color: white !important; margin: 0 0 1.5rem 0 !important; letter-spacing: -0.04em !important; text-align: left !important; display: block !important; }
.footer-col h4 { color: var(--gold) !important; margin-bottom: 1.5rem !important; text-align: left !important; }
.footer-links { list-style: none; color: var(--slate-400); font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.75rem; }


/* Search Layout (Search Page) */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; padding: 4rem 0; }

/* Filters Sidebar */
.filters { 
    background: white; border-radius: 1rem; padding: 1.25rem; 
    border: 1px solid var(--slate-200); position: sticky; top: 100px;
    align-self: start; max-height: calc(100vh - 120px); overflow-y: auto;
}
body.admin-bar .filters { top: 132px; max-height: calc(100vh - 152px); }

.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.filters h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; color: var(--navy); margin: 0; }
.clear-filters { font-size: 0.8rem; color: var(--slate-500); text-decoration: underline; cursor: pointer; transition: var(--transition); }
.clear-filters:hover { color: var(--navy); }

.filter-group { margin-bottom: 0.6rem; padding-bottom: 0; border-bottom: none; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); font-weight: 800; margin-bottom: 0.2rem; }

/* Tom Select Compact Overrides */
.ts-control { font-family: inherit; border: 1px solid var(--slate-200); border-radius: 6px; box-shadow: none; padding: 6px 10px; background-color: white; font-size: 0.85rem; }
.ts-control.focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1); background-color: white; }
.ts-control input { font-size: 0.8rem !important; }
.ts-dropdown { font-family: inherit; font-size: 0.9rem; border-radius: 8px; border-color: var(--slate-200); box-shadow: var(--shadow); }
.ts-dropdown .option:hover { background: var(--slate-50); color: var(--navy); }
.ts-dropdown .option.active { background: var(--slate-100); font-weight: 600; color: var(--navy); }
.ts-wrapper.multi .ts-control > div { padding: 0 4px !important; font-size: 0.75rem !important; border-radius: 4px !important; margin: 1px !important; }
.ts-control .item { background: var(--slate-200) !important; color: var(--navy) !important; border: none !important; border-radius: 4px; padding: 2px 8px; font-size: 0.85rem; font-weight: 500; }
.ts-control .item.active { background: var(--navy) !important; color: white !important; }


.filter-option { 
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.2rem; 
    font-size: 0.95rem; cursor: pointer; color: var(--slate-600);
    padding: 0.4rem 0.5rem; border-radius: 8px; transition: var(--transition);
    margin-left: -0.5rem;
}
.filter-option:hover { background: var(--slate-50); color: var(--navy); }
.filter-option input { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }

/* Results List */
.results-header { margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: center; }
.results-header h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; color: var(--navy); }
.results-count { font-size: 0.9rem; color: var(--slate-600); }

.result-card { 
    background: white; border-radius: 1.25rem; border: 1px solid var(--slate-200); 
    padding: 1.5rem; margin-bottom: 1rem; transition: var(--transition);
    display: block; position: relative; cursor: pointer;
}
.result-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-4px); }

.card-inner-layout { display: flex; gap: 1.5rem; width: 100%; align-items: stretch; }
.company-img-wrapper {
    width: 120px; height: 120px; border-radius: 1rem; overflow: hidden;
    position: relative; flex-shrink: 0; background: var(--slate-100);
}
.company-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; background-image: url('../img/company_placeholder_bg.webp'); background-size: cover; background-position: center; }

.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; gap: 1rem; }
.card-header-left { flex: 1; min-width: 0; }
.card-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1.25rem; flex-shrink: 0; }
.badge-group { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }

.action-buttons-inline { display: flex; gap: 0.5rem; align-items: center; }

.company-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.3rem; 
    color: var(--navy); margin-bottom: 0.25rem; font-weight: 800;
    word-break: break-word;
}
.location-row {
    font-size: 0.85rem; color: var(--slate-500); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem;
}
.pin-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: -2px; }

.company-desc {
    font-size: 0.9rem; color: var(--slate-600); margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.tags, .tags-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.tags .tag, .tags-container .tag {
    background: var(--slate-100); color: var(--slate-600); padding: 0.3rem 0.6rem; 
    border-radius: 4px; font-size: 0.75rem; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; display: inline-block; vertical-align: bottom;
}

.btn-quote { background: #1718ff; color: white; padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.85rem; text-align: center; border: none; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-quote:hover { background: #1718ff; filter: brightness(1.1); transform: translateY(-1px); }
.btn-profile { background: var(--slate-100); color: var(--navy); padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.85rem; text-align: center; border: none; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-profile:hover { background: var(--slate-200); transform: translateY(-1px); }

/* Custom Dropdown */
.header-actions { display: flex; gap: 1rem; align-items: center; }
.btn-mobile-filter { 
    display: none; background: white; border: 1px solid var(--slate-200); border-radius: 8px;
    padding: 0.6rem 1rem; color: var(--navy); font-weight: 600; cursor: pointer;
    align-items: center; gap: 0.5rem; font-family: inherit; font-size: 0.9rem; transition: var(--transition);
}
.btn-mobile-filter:hover { border-color: var(--navy); }
.btn-mobile-filter svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.custom-dropdown {
    position: relative; width: 240px; font-family: inherit; font-size: 0.9rem; user-select: none;
}
.dropdown-selected {
    background-color: white; border: 1px solid var(--slate-200); border-radius: 8px;
    padding: 0.6rem 2.5rem 0.6rem 1rem; color: var(--navy); font-weight: 600; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center;
    transition: var(--transition);
}
.dropdown-selected:hover { border-color: var(--navy); }
.custom-dropdown.open .dropdown-selected { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1); }
.dropdown-options {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: white; border: 1px solid var(--slate-200);
    border-radius: 8px; box-shadow: var(--shadow); z-index: 100; display: none; overflow: hidden;
}
.custom-dropdown.open .dropdown-options { display: block; animation: fadeIn 0.15s ease; }
.dropdown-option { padding: 0.75rem 1rem; color: var(--slate-700); cursor: pointer; transition: background 0.2s; }
.dropdown-option:hover { background: var(--slate-50); color: var(--navy); }
.dropdown-option.active { background: var(--slate-100); font-weight: 700; color: var(--navy); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Heart Button */
.company-img { position: relative; width: 100px; height: 100px; background: var(--slate-100); border-radius: 1rem; flex-shrink: 0; }
.heart-btn {
    position: absolute; top: 0.5rem; left: 0.5rem; width: 28px; height: 28px;
    background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: var(--transition); border: none; backdrop-filter: blur(4px);
}
.heart-btn:hover { transform: scale(1.1); }
.heart-btn svg { width: 16px; height: 16px; stroke: #64748b; stroke-width: 2; fill: none; transition: var(--transition); }
.profile-fav-btn svg { width: 20px; height: 20px; margin-right: 8px; stroke: #64748b; stroke-width: 2; fill: none; transition: var(--transition); }
.heart-btn.active svg, .profile-fav-btn.active svg { fill: #ef4444 !important; stroke: #ef4444 !important; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 4rem; }
.page-btn { 
    background: white; border: 1px solid var(--slate-200); padding: 0.5rem 1rem; 
    border-radius: 8px; font-weight: 600; color: var(--slate-600); cursor: pointer; 
    transition: var(--transition); font-family: inherit; font-size: 0.9rem;
}
.page-btn:hover:not([disabled]) { border-color: var(--navy); color: var(--navy); background: var(--slate-50); }
.page-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.page-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.filter-backdrop { display: none; }
.btn-close-mobile { display: none; }

/* Profile Hero */
html.is-modal nav, html.is-modal .site-footer { display: none !important; }
html.is-modal .profile-hero { padding-top: 4rem !important; }

.profile-hero { 
    padding: 8rem 0 6rem; 
    background-color: var(--navy); 
    background-size: cover;
    background-position: center;
    position: relative;
}
.profile-hero::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
    z-index: 1;
}
.profile-header { display: flex; gap: 4rem; align-items: flex-start; position: relative; z-index: 2; }
.profile-img { width: 240px; height: 240px; background: white; border-radius: 2rem; border: 1px solid var(--slate-200); padding: 2rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); flex-shrink: 0; }
.profile-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.profile-info { flex: 1; padding-top: 1rem; }
.badge-verified { background: white; color: var(--navy); border: 1px solid var(--slate-200); padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom: 1rem; }
.badge-premium { background: white; color: var(--navy); border: 1px solid var(--gold); padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom: 1rem; }
.badge-gold { background: white; color: var(--navy); border: 1px solid #fbbf24; padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom: 1rem; }
.badge-silver { background: white; color: var(--navy); border: 1px solid #94a3b8; padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom: 1rem; }
.badge-bronze { background: white; color: var(--navy); border: 1px solid #b45309; padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom: 1rem; }
.profile-info h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 3.5rem; color: white; margin-bottom: 1rem; line-height: 1.1; }
.profile-meta { display: flex; gap: 2rem; color: var(--slate-200); font-weight: 500; margin-bottom: 2.5rem; }

.btn-group { display: flex; gap: 1rem; }
.btn-main { background: #1718ff; color: white; padding: 1.25rem 3rem; border-radius: 999px; text-decoration: none; font-weight: 700; transition: var(--transition); border: 2px solid #1718ff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; }
.btn-main:hover { transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.1); }
.btn-outline { background: white; color: var(--navy); padding: 1.25rem 3rem; border-radius: 999px; text-decoration: none; font-weight: 700; transition: var(--transition); border: 2px solid white; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; }
.btn-outline:hover { background: var(--slate-100); transform: translateY(-2px); }

/* Profile Content Layout */
.profile-layout { display: grid; grid-template-columns: 1fr 350px; gap: 4rem; padding: 6rem 0; }

.section-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.75rem; color: var(--navy); margin-bottom: 1.5rem; border-left: 4px solid var(--gold); padding-left: 1.5rem; }
.content-section { margin-bottom: 4rem; }

/* Rich Text Formatting */
#companyDescription p { margin-bottom: 1.2rem; }
#companyDescription p:last-child { margin-bottom: 0; }
#companyDescription ul, #companyDescription ol { margin-bottom: 1.2rem; margin-left: 1.5rem; }
#companyDescription li { margin-bottom: 0.25rem; }
#companyDescription a { color: var(--gold); text-decoration: underline; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat-card { background: var(--slate-50); padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--slate-200); }
.stat-card h4 { font-size: 0.75rem; text-transform: uppercase; color: var(--slate-500); margin-bottom: 0.5rem; }
.stat-card p { font-weight: 700; font-size: 1.1rem; color: var(--navy); }

/* Capabilities List */
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; list-style: none; }
.cap-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; color: var(--slate-700); }
.cap-list li::before { content: "✓"; color: var(--gold); font-weight: 900; }

/* Sidebar Info */
.sidebar-col { position: sticky; top: 120px; align-self: start; }
body.admin-bar .sidebar-col { top: 152px; }

.sidebar-card { background: white; border: 1px solid var(--slate-200); border-radius: 1.5rem; padding: 2rem; margin-bottom: 2rem; }
.sidebar-card h4 { font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 1rem; }
.info-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--slate-100); font-size: 0.9rem; }
.info-row span:first-child { color: var(--slate-500); }
.info-row span:last-child { font-weight: 600; color: var(--navy); word-break: break-all; text-align: right; margin-left: 1rem; }

/* Rating Stars */
.stars-container { display: flex; align-items: center; }
.stars-interactive { display: flex; gap: 0.1rem; cursor: pointer; }
.rate-star { font-size: 1.2rem; color: var(--slate-300); transition: color 0.2s, transform 0.1s; }
.rate-star:hover { transform: scale(1.2); }
.rate-star.hovered, .rate-star.active { color: var(--gold); }

/* Company Modal */
.company-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
    z-index: 2000; backdrop-filter: blur(4px); align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.company-modal-overlay.show { opacity: 1; display: flex; }
.company-modal-content {
    background: white; width: 90%; max-width: 1200px; height: 90vh; border-radius: 1.5rem;
    position: relative; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.company-modal-overlay.show .company-modal-content { transform: translateY(0); }
.btn-close-modal {
    background: var(--slate-100); border: none; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: var(--slate-600); transition: var(--transition);
}
.btn-close-modal-floating {
    position: absolute; top: 1rem; right: 1rem; z-index: 3000;
    background: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.btn-close-modal:hover { background: var(--slate-200); color: var(--navy); }
.btn-close-modal svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.company-modal-iframe { flex: 1; width: 100%; border: none; background: #f8fafc; }

#loadingOverlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.9);
    z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; color: var(--navy);
}
.spinner {
    width: 50px; height: 50px; border: 4px solid var(--slate-200); border-top-color: var(--gold);
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem;
}
@keyframes spin { 100% { transform: rotate(360deg); } }


/* Native Login Modal */
.modal-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
    z-index: 2000; backdrop-filter: blur(4px); align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-backdrop[style*="display: flex"] { opacity: 1; }
.modal-content {
    background: white; border-radius: 1.5rem; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 90%;
}
.modal-backdrop[style*="display: flex"] .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 1rem; right: 1rem; background: var(--slate-100); border: none;
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--slate-600); transition: var(--transition); font-size: 1.25rem; font-weight: bold;
}
.modal-close:hover { background: var(--slate-200); color: var(--navy); }

/* Responsive */
@media (max-width: 900px) {
    .container { padding: 0 1rem !important; }
    .hero { padding: 6rem 1rem 4rem; }
    .hero h1 { font-size: 2.75rem; }
    .hero p { margin-bottom: 2rem; font-size: 1.1rem; }
    .nav-links { display: none; }
    .burger { display: flex; }
    .pillars { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    
    /* Mobile Menu Active */
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background: white; padding: 2rem; border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow); z-index: 1000;
    }
    .search-layout { grid-template-columns: 1fr; padding-top: 2rem; }
    .filters { display: none; } 
    .mobile-search-container { display: block !important; }
    
    .result-card { padding: 1.25rem; }
    .card-inner-layout { flex-direction: column; gap: 1.25rem; }
    .company-img-wrapper { width: 100%; height: 180px; }
    .card-header-row { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .card-header-right { align-items: flex-start; width: 100%; gap: 1rem; }
    .badge-group { 
        position: absolute; top: 2.25rem; right: 2.25rem; 
        flex-direction: column; align-items: flex-end; gap: 0.25rem; 
    }
    .action-buttons-inline { width: 100%; flex-wrap: wrap; }
    .action-buttons-inline button { flex: 1; min-width: 120px; justify-content: center; text-align: center; }
    
    .match-score { top: 1rem; right: 1rem; }
    
    .company-modal-content {
        width: 100%; height: 100%; max-height: 100vh; border-radius: 0; margin: 0;
    }
    
    .slide-card { flex: 0 0 100%; }

    .btn-mobile-filter { display: flex; }
    #desktopSearchGroup { display: none; }
    .header-actions { width: 100%; flex-wrap: wrap; margin-top: 1.5rem; gap: 0.75rem; justify-content: space-between; }
    .results-header { flex-direction: column; align-items: flex-start; }
    
    /* Mobile Filter Modal */
    .filter-backdrop {
        display: block; position: fixed; inset: 0; background: rgba(15,23,42,0.4); 
        z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.3s;
        backdrop-filter: blur(2px);
    }
    .filter-backdrop.show-mobile { opacity: 1; pointer-events: auto; }

    .filters { 
        display: block; position: fixed; bottom: 0; left: 0; width: 100%; max-height: 85vh; overflow-y: auto;
        background: white; z-index: 999; border-radius: 1.5rem 1.5rem 0 0; padding: 2rem;
        transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        margin-bottom: 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
        visibility: hidden; pointer-events: none;
    }
    .filters.show-mobile { transform: translateY(0); visibility: visible; pointer-events: auto; }
    .btn-close-mobile { display: flex; align-items: center; justify-content: center; background: var(--slate-100); border: none; width: 40px; height: 40px; border-radius: 50%; color: var(--slate-600); cursor: pointer; padding: 0; }
    .btn-close-mobile svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; }
    .mobile-clear-filters.active { display: inline-block !important; }

    /* Profile Mobile */
    .profile-hero { padding: 4rem 1rem 3rem; }
    .profile-header { flex-direction: column; align-items: flex-start; text-align: left; gap: 1.5rem; }
    .profile-img { width: 120px; height: 120px; padding: 1rem; }
    .profile-layout { grid-template-columns: 1fr; padding: 3rem 1rem; gap: 2.5rem; }
    .profile-info h1 { font-size: 2rem; }
    .profile-meta { justify-content: flex-start; flex-wrap: wrap; }
    .cap-list { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-group a { width: 100%; }
}

/* Company Type Tabs */
.company-type-tabs {
    display: flex; gap: 0.5rem; overflow-x: auto;
    -ms-overflow-style: none; scrollbar-width: none;
    max-width: 100%;
}
.company-type-tabs::-webkit-scrollbar { display: none; }
.type-tab {
    background: var(--slate-100); color: var(--slate-600); border: 1px solid transparent;
    padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.85rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.type-tab:hover { background: var(--slate-200); color: var(--navy); }
.type-tab.active { background: var(--navy); color: white; border-color: var(--navy); }
