/* Firms Page Styles */
.firms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.firms-layout {
    display: flex;
    gap: 30px;
    min-height: calc(100vh - 100px);
}

/* Left Column - Company Listings */
.left-column {
    flex: 2;
    min-width: 0;
}

.firm-type-selector {
    display: flex;
    background: transparent;
    border-radius: 0px;
    padding: 0px;
    margin-bottom: -8px;
    box-shadow: none;
    justify-content: flex-start;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.firm-type-btn {
    flex: none;
    font-family: "Avenir";
    padding: 18px 30px 23px 30px;
    border: none;
    font-size: 1.2rem;
    background: transparent;
    border-radius: 0px;
    font-weight: 100 !important;
    cursor: pointer;
    /* transition: all 0.2s ease; */
    color: #737373;
    white-space: nowrap;
}

.firm-type-btn:hover {
    /* background: rgba(254, 132, 0, 0.1); */
    color: #333;
}

.firm-type-btn.active {
    background: white;
    color: #333;
    border-top: 5px solid #FE5201;
}

.company-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.firm-type-title {
    font-size: 2rem;
    font-weight: 500;
    margin-left: 15px;
    margin-top: 20px;
    color: #333;
    margin-bottom: 0px;
    text-align: left;
}


/* Region Columns */
.region-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.region-columns > div {
    text-align: left;
}

.region-section {

    padding: 16px;
}

.region-title {
    font-size: var(--font-m);
    font-weight: 500;
    color:#333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    /* border-bottom: 2px solid var(--lightorange); */
}

.country-section {
    margin-bottom: 20px;
}

/* .country-title {
    font-size: var(--font-s);
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    margin-top: 16px;
} */

.city-title, .country-title {
    font-size: var(--font-xs);
    font-weight: 400;
    color: #666;
    margin-bottom: 6px;
    margin-top: 12px;
    margin-left: 8px;
    cursor: pointer;
}

.company-link {
    display: block;
    color: #FE8400;
    text-decoration: none;
    font-size: var(--font-xs);
    margin-bottom: 4px;
    margin-left: 16px;
    padding: 2px 0;
    transition: color 0.2s ease;
}

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

/* Right Column - Description */
.right-column {
    flex: 1;
    min-width: 0;
}

.description-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
    margin-top: 64px;
}

.description-card h2 {
    font-size: var(--font-l);
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.description-card h3 {
    font-size: var(--font-l);
    font-weight: 500;
    color: #555;
    margin-top: 20px;
    margin-bottom: 8px;
}

.description-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .firms-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .left-column {
        order: 1;
    }
    
    .right-column {
        order: 2;
    }
    
    .description-card {
        position: static;
    }
    
    .region-columns {
        gap: 0px;
    }
    
    .firm-type-selector {
        gap: 4px;
    }
    
    .firm-type-btn {
        text-align: center;
        font-size: 1rem;
        padding: 18px 10px 23px 10px;
    }
    
}

@media (max-width: 480px) {
    .firms-container {
        padding: 10px;
    }
    
    .description-card {
        padding: 16px;
        margin-top: 0px;
    }

    .company-link {
        font-size: 14px;
    }
    
    .description-card h2 {
        font-size: 20px;
    }
    .company-list {
        padding: 10px;
    }
    
    .region-section {
        padding: 5px;
    }
    .region-title {
        font-size: var(--font-s);
    }
}
