body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
}

#map {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #1a1a1a;
}

body {
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

body.loaded {
  opacity: 1;
}

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

.company-logo-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 3px;
    cursor: pointer;
    box-sizing: border-box;
    height: 22px;
    min-width: 32px;
    max-width: 90px;
    overflow: hidden;
    white-space: nowrap;

    height: 26px;
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;

    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-radius 0.2s ease,
                background-color 0.2s ease,
                border-color 0.2s ease, 
                box-shadow 0.2s ease,
                padding 0.3s ease;
}

.company-logo-pin .pin-hover-tooltip {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    font-family: system-ui, -apple-system, sans-serif;
    opacity: 0;
    margin-left: 0px;
    margin-right: 0px;
    pointer-events: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.2s ease, margin 0.3s ease;
    display: none;
}

.company-logo-pin:hover {
    max-width: 280px; 
    background-color: #ffffff;
    border-color: #323232;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    width: auto;
    aspect-ratio: auto;
}

.company-logo-pin:hover .pin-hover-tooltip {
    opacity: 1;
    margin-left: 8px;
    margin-right: 8px;
    display: inline-block;
}

.company-logo-pin.active {
    max-width: 280px;
    background-color: #ffffff;                  /* Soft blue background tint */
    border-color: #323232;                      /* Highlights border blue */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    padding: 3px;                               /* Spacing inside the pill */
    width: auto;
    aspect-ratio: auto;
    border-radius: 4px;
}

.company-logo-pin.active .pin-hover-tooltip {
    opacity: 1;
    margin-left: 8px;
    margin-right: 8px;
    display: inline-block;
}

.company-logo-pin img {
    width: auto;
    height: 14px;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 550px;
    height: 100vh;
    background-color: #323232;
    border-right: 1px solid #666666;
    z-index: 10; /* Ensures the sidebar stays on top of the map layer */
    padding: 0px;
    padding-top: 60px; /* Pushes content down below the navbar */
    box-sizing: border-box;
    font-family: sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#sidebar-content {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding: 0 24px;
    margin-bottom: 24px;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s ease;
}

#sidebar-content::-webkit-scrollbar {
    display: none;
}
#sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}
#sidebar-content::-webkit-scrollbar-thumb {
    background-color: #555555;
    border-radius: 3px;
}
#sidebar-content::-webkit-scrollbar-thumb:hover {
    background-color: #888888;
}

.sidebar-block:first-of-type {
    padding-top: 30px;
}

.sidebar-title {
    margin-top: 0; 
    color: #FFFFFF; /* #FFFFFF, #F7DC6F, #7DCEA0 */ 
    font-size: 18px; 
    font-weight: bold;
}

.sidebar-heading {
    color: #666666; /* #b3b3b3 is a lighter gray for headings */
    display: block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px; 
    margin-bottom: 6px;
    text-align: left;
}

.sidebar-description {
    color: #cccccc; 
    font-size: 14px; 
    line-height: 1.5; 
    margin: 0 0 24px;
}

.sidebar-divider {
    border: 0; 
    border-top: 1px solid #666666; 
    margin-bottom: 20px;
}

.sidebar-instructions {
    margin-bottom: 24px;
}

.sidebar-list {
    color: #cccccc; 
    font-size: 14px; 
    line-height: 1.6; 
    padding-left: 20px; 
    margin-bottom: 32px;
}

.sidebar-list li {
    margin-bottom: 6px;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-contact-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    flex-shrink: 0;
    bottom: 0;
    left: auto;
    right: auto;
}

.contact-label {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin-right: 4px;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
}

.contact-link:hover {
    color: #cccccc;
}

.contact-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  text-decoration: none;
  border: 0;
  vertical-align: middle;
}

.contact-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(86%) sepia(0%) saturate(1%) hue-rotate(186deg) brightness(101%) contrast(80%);
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.contact-icon:hover img {
  opacity: 0.8;
}

.sidebar-legal {
    font-size: 12px;
    color: #666666;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    gap: 12px;
}

.sidebar-block {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.legal-link {
    color: #cccccc;
    text-decoration: none;
}

.legal-link:hover {
    text-decoration: underline;
}

.sidebar-copyright {
    font-size: 11px;
    color: #cccccc; /* #666666 */
    line-height: 1.4;
}

.company-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 12px;
}

.company-header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 32px;
    gap: 12px;
}

.company-header-top-row .logo-wrapper,
.company-header-top-row .flag-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.company-header-top-row .flag-wrapper {
    margin-left: auto; /* Pushes flag wrapper to the far right */
}

/* Images render centered inside their wrappers */
.company-header-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    filter:
        drop-shadow(1px 0px 0px #ffffff)
        drop-shadow(-1px 0px 0px #ffffff)
        drop-shadow(0px 1px 0px #ffffff)
        drop-shadow(0px -1px 0px #ffffff);
}

.company-header-top-row .flag-icon {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

.company-header-title {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0; 
    color: #ffffff; 
    font-size: 22px; 
    line-height: 1.2;
    word-break: break-word;
}

.company-description-box {
    color: #cccccc; 
    font-size: 14px; 
    line-height: 1.5; 
    margin-bottom: 24px;
}

/* Two-Column Matrix Layout */
.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 10px;
}

/* Single Column Technology List Layout */
.sidebar-field.full-width {
    margin-top: 8px;
}

.sidebar-link {
    color: #cccccc;            /* 👈 Medium-light gray color */
    text-decoration: none;     /* Removes the default underline */
    word-break: break-all;      /* Prevents long links from overflowing the sidebar */
    transition: color 0.2s ease;
}

.sidebar-link:hover {
    color: #ffffff;            /* 👈 Brightens to white when hovered */
    text-decoration: underline; /* Optional: adds subtle underline on hover */
}

.sidebar-hero-banner {
    display: block;
    box-sizing: border-box;
    width: calc(100% + 48px);
    height: 160px;                /* Change this height value whenever you want */
    margin: 0 -24px 16px;  
    background-size: cover;       /* Scales image proportionally to fill container */
    background-position: center;  /* Centers image horizontally and vertically */
    background-repeat: no-repeat;
    
    position: relative;
    overflow: hidden;
}

.sidebar-hero-banner + * {
    margin-top: 0;
}

.sidebar-hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0) 20%, 
        rgba(50, 50, 50, 0.6) 70%, 
        #323232 100%
    );
    pointer-events: none; /* Allows mouse interactions to pass through */
}

.tech-list {
    display: block;
    color: #cccccc;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 4px;
}

/* Container for the technology section */
.tech-stack-container {
    margin-top: 24px;
}

/* Wrapper to enclose the rows and give them a structured border wrapper */
.tech-rows-wrapper {
    border: 1px solid #2d2d2d;
    border-radius: 4px;
    overflow: hidden; /* Keeps the rounded corners looking clean */

}

/* Base style for every vertical row line */
.tech-row {
    background-color: #222222; /* Default background color for odd rows */
    color: #e0e0e0;
    padding: 10px 14px;
    font-size: 13px;
    font-family: sans-serif; /* "monospace" gives it a highly technical asset system feel */
    border-bottom: 1px solid #2d2d2d;
    width: 100%; /* Forces uniform width across all elements */
    box-sizing: border-box; /* Includes padding in width calculations */
}

/* Remove the bottom border from the very last element in the stack */
.tech-row:last-child {
    border-bottom: none;
}

/* AUTOMATIC ALTERNATING COLOR: Every second row gets a unique dark shade */
.tech-row:nth-child(even) {
    background-color: #1a1a1a; 
}

.tech-row.available-highlight {
    color: #99daff !important;   /* Vibrant green text color */
    font-weight: 600;            /* Make it slightly bolder to stand out */
}

/* Hide scrollbar visually while retaining scroll functionality */
.tech-rows-wrapper,
.tech-item-list,
.tech-item-description,
.tech-window {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.tech-rows-wrapper::-webkit-scrollbar,
.tech-item-list::-webkit-scrollbar,
.tech-item-description::-webkit-scrollbar,
.tech-window::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* ==========================================================================
   FLOATING OVERLAPPING NAVBAR (UPDATED)
   ========================================================================== */
#top-navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #323232;
    border-bottom: 1px solid #666666;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
    
    font-family: sans-serif; /* Aligned font family */
    z-index: 3000; 
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 32px;
    width: 64px;
    background-color: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.05); 
}

.navbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Safeguards image from stretching out of proportion */
}

.navbar-title-group {
    display: flex;
    align-items: baseline;
    gap: 50px;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.navbar-main-title {
    margin: 0;
    font-size: 24px;
    font-family: sans-serif;
    font-weight: 550;
    color: #ffffff; /* #7dcea0 */
    line-height: 1;
    -webkit-text-stroke: 2px #000000;
    paint-order: stroke fill;
    text-transform: uppercase;
}

.nav-section-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    font-size: 20px;
    font-family: sans-serif;
    font-weight: bold;
    color: #ffffff;
}

.nav-section-btn.active {
    color: #cccccc;
    opacity: 1;
}

.nav-section-btn:focus {
    outline: none;
}

.navbar-section {
    display: flex;
    gap: 1rem;
}

/* Right Section: Controls contained side-by-side */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px; /* Pulls dropdowns and search input closely together */
}

.navbar-middle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px; /* Controls space between search and filter boxes */
}

.search-wrapper,
.filter-wrapper {
    position: relative !important;
    display: inline-block;
    width: 320px;
    min-width: 320px;
}

.select-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #cccccc;
    pointer-events: none;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #cccccc;
}
.search-wrapper input {
    width: 100%;
    background-color: #22222299;
    border: 1px solid #666666;
    border-radius: 4px;
    padding: 8px 10px 8px 28px;
    font-size: 14px;
    font-family: sans-serif;
    color: #cccccc; /* #8C8C8C grey color */
    box-sizing: border-box;
}
.search-wrapper input::placeholder {
    color: #cccccc; /* 8c8c8c last grey color */
    opacity: 1;
}
.search-wrapper input:focus {
    outline: none;
    border-color: #ffffff;
}

.search-wrapper {
    position: relative; /* Essential for absolute positioning of results */
}

.dropdown-menu {
    display: none;                  /* Hides items immediately on page load */
    position: absolute !important;  
    top: calc(100% + 4px) !important;/* Locks menu right below the input box */
    left: 0 !important;
    width: 100% !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    border-radius: 4px;
    z-index: 4000 !important;      /* Floats above map and navbar */
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
    box-sizing: border-box;
}

.search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #262626;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0e0e0;
    font-size: 13px;
}

.search-result-item:hover {
    background: #2a2a2a;
}

.result-type {
    font-size: 11px;
    background: #333;
    color: #aaa;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.dropdown-menu .search-result-item:first-child {
    color: #8C8C8C;
}

/* Bring the hovered marker wrapper to the front */
.maplibregl-marker:has(.company-logo-pin:hover) {
    z-index: 9999 !important;
}

/* Keep the active/selected marker wrapper right behind the hovered one */
.maplibregl-marker:has(.company-logo-pin.active) {
    z-index: 9998 !important;
}

.flag-icon {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 1px;
}

.sidebar-field {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.sidebar-field b {
    color: #666666;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sidebar-title {
    margin-top: 0;
    color: #FFFFFF; /* Previous options: #FFFFFF, #F7DC6F, #7DCEA0 */
    font-size: 24px;
    font-weight: bold;
} 

.sidebar-list {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
    margin-bottom: 32px;
}

/* Targets the static tech block in index.html only */
#sidebar-content > section:nth-of-type(3) .tech-rows-wrapper .tech-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  cursor: default;
}

#sidebar-content > section:nth-of-type(3) .tech-rows-wrapper .tech-count {
  text-align: right;
  font-weight: 700;
}


/* Window Backdrop Overlay */
.tech-window-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding-left: 280px; 
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Active State for Showing Window */
.tech-window-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Glassmorphism Rectangular Window */
.tech-window {
    display: block;
    flex-direction: column;
    position: relative;
    width: 900px;
    max-width: 900px;
    max-height: 85vh; /* Never overflows visible map height */
    overflow-y: auto;
    padding: 40px;
    box-sizing: border-box;
    pointer-events: auto;

    /* Styling & Glass Effect */
    background-color: rgba(50, 50, 50, 0.85); /* #323232 with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ffffff;
}

.tech-window-overlay.active .tech-window {
    pointer-events: auto;
}

/* Plain Unstyled Close Button in Top Right */
.tech-window-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

/* Title & Subtext Styling */
.tech-window-title {
    margin-top: 0;
    margin-bottom: 10px;
    margin-top: 0; 
    color: #FFFFFF; /* #FFFFFF, #F7DC6F, #7DCEA0 */ 
    font-size: 24px; 
    font-weight: bold;
    font-family: sans-serif;
}

.tech-window-description {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: normal;
    color: #dddddd;
    font-family: sans-serif;
}

/* Card Container Grid */
.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Card Styling (Large Rectangular Button) */
.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

/* Image Inside Card */
.tech-card-image {
    position: relative; /* Essential for absolute positioning of ::after */
    width: 100%;
    height: 140px;
    display: block;
    object-fit: cover;
}

/* Title Inside Card */
.tech-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
}

.country-card-flag {
    width: auto;
    height: 1em;
    object-fit: contain;
    flex: 0 0 auto;
}

.tech-view {
    display: none;
    height: auto;
    min-height: 0;
}

.tech-view.active {
    display: block;
}

#tech-detail-view {
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
}

/* ==========================================
   DETAIL VIEW STYLING
   ========================================== */

/* Back Button */
.tech-back-btn {
    background: transparent;
    border: none;
    color: #99daff;
    font-size: 14px;
    font-weight: 600;
    font-family: sans-serif;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.tech-back-btn:hover {
    opacity: 0.75;
}

/* 2-Column Split Layout Container */
.detail-split-layout {
    display: flex;
    gap: 20px;
    height: 420px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
    min-height: 0;
}

/* Left Pane: Scrollable List */
.tech-item-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    overflow-y: auto;
    min-height: 0;

    /* Hide scrollbar completely across all browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tech-item-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Buttons Inside Left List */
.tech-item-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #ffffff;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative;
    z-index: 11;
}

.tech-item-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tech-item-btn.active {
    background: rgba(125, 206, 160, 0.2); /* Translucent highlight matching accent: (59, 130, 246, 0.2) */
    border-color: #99daff;
    color: #ffffff;
    font-weight: 600;
}

/* Right Pane: Glass Card Description Display */
.tech-item-description {
    flex: 1.5;
    background: rgba(0, 0, 0, 0.25); /* Darker translucent glass inner card */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 25px;
    overflow-y: auto;
    box-sizing: border-box;
    font-family: sans-serif;
}

.tech-item-description h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.tech-item-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #dddddd;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    font-size: 14px;
}



body.secondary-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 20px 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #e5e5e5;
    color: #333333;
}

body.secondary-page #sidebar.secondary-sidebar {
    position: static;
    width: min(1100px, 90vw);
    height: auto;
    max-height: none;
    margin: 0;
    padding: 24px 0 0;
    background-color: #ffffff;
    border: 0;
}

body.secondary-page #sidebar-content {
    overflow: visible;
    margin: 0;
    padding: 0 40px 40px;
    color: #333333;
}

body.secondary-page #sidebar-content h1,
body.secondary-page #sidebar-content h2,
body.secondary-page #sidebar-content h3,
body.secondary-page #sidebar-content strong {
    color: #000000;
    font-family: sans-serif;
}

body.secondary-page #sidebar-content p,
body.secondary-page #sidebar-content li,
body.secondary-page #sidebar-content span,
body.secondary-page #sidebar-content div {
    color: #4a5568;
    font-family: sans-serif;
    line-height: 1.6;
}

body.secondary-page #sidebar-content a {
    color: #2d2d2d;
    text-decoration: none;
}

body.secondary-page [data-custom-class] {
    background: transparent;
}

.tech-rows-wrapper {
    border: 1px solid #2d2d2d;
    border-radius: 4px;
    overflow: hidden;
    background-color: #222222;
    width: 100%;
    overflow-y: auto;
}

.tech-row {
    display: block;
    background-color: #222222;
    color: #e0e0e0;
    padding: 10px 14px;
    font-size: 13px;
    font-family: sans-serif;
    border-bottom: 1px solid #2d2d2d;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.tech-row:last-child {
    border-bottom: none;
}

.tech-row:nth-child(even) {
    background-color: #1a1a1a;
}

.tech-row:hover {
    color: #cccccc;
}

.tech-row.active {
    color: #99daff;
    font-weight: 600;
    background-color: #222222; /* Keeps default odd row background */
    border-color: #2d2d2d;
    outline: none;
    box-shadow: none;
}

/* Even active state: maintains alternating row background */
.tech-row:nth-child(even).active {
    background-color: #1a1a1a; /* Keeps default even row background */
}

#country-detail-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-detail-flag {
    width: auto;
    height: 1em;
    object-fit: contain;
}

.company-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    margin: 3px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.company-tag-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 1px;
    flex-shrink: 0;
}



/* Responsive Design */
@media (max-width: 700px) {
    #top-navbar {
        height: auto;
        min-height: 60px;
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .navbar-right {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .search-wrapper,
    .filter-wrapper {
        width: auto;
        min-width: 0;
    }

    .navbar-right .search-wrapper:last-child {
        grid-column: 1 / -1;
    }

    #sidebar {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 42dvh;
        max-height: 70dvh;
        padding-top: 0;
        border-right: 0;
        border-top: 1px solid #666;
    }

    #sidebar-content {
        padding: 0 16px;
        margin-bottom: 12px;
    }

    .sidebar-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .company-header-title {
        font-size: 18px;
    }

    .sidebar-hero-banner {
        width: calc(100% + 32px);
        height: 110px;
        margin-left: -16px;
        margin-right: -16px;
    }

    .tech-window-overlay {
        padding: 12px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .tech-window {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 24px);
        padding: 24px 16px;
    }

    .tech-cards-grid {
        grid-template-columns: 1fr;
    }

    .detail-split-layout {
        height: auto;
        flex-direction: column;
    }

    .tech-item-list,
    .tech-item-description {
        max-height: 35dvh;
    }
}