/* Company Header Section with Grid Layout */
.company-header-section * {
    box-sizing: border-box;
}

.company-header-section {
    background: transparent;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.company-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.company-details-hero {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.company-hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.company-org-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.company-org-number span {
    font-size: 1.125rem;
    color: #4b5563;
    font-weight: 500;
}

.company-org-number button {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
    position: relative;
    transition: color 0.2s ease;
}

.company-org-number button:hover {
    color: #111827;
}

.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff !important;
    padding: 0.3rem 0.55rem;
    border-radius: 0.375rem;
    font-size: 11px !important;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000000;
}

.copy-tooltip.show {
    opacity: 1;
}

.company-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.company-links a {
    display: inline-flex;
    padding: 0.375rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.company-links a:hover {
    color: #111827;
}

.company-description,
.company-purpose {
    font-size: 1.25rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 1.5rem 0;
}

/* Company content text styles - simplified */
.company-info-text {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-gray);
    margin: 1.25rem 0;
}

/* Summary text - smaller */
.company-info-text.company-summary {
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

/* Main purpose text - larger */
.company-info-text:not(.company-summary) {
    margin: 1.25rem 0;
}

/* Section Navigation */
.company-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.section-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.section-nav-link::after {
    content: "›";
    margin-left: 0.25rem;
    opacity: 0.4;
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.section-nav-link:hover {
    background: #111827;
    border-color: #111827;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-nav-link:hover::after {
    opacity: 1;
    transform: translateX(2px);
}

.section-nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .company-header-container {
        grid-template-columns: 1fr;
    }
    
    .company-payment-section {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        position: static;
    }
}

@media (max-width: 768px) {
    .company-header-section {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
        width: 100%;
        overflow-x: hidden;
    }
    
    .company-header-container {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .company-payment-section {
        width: 100% !important;
        max-width: 100% !important;
        position: static;
    }
    
    .company-hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .company-org-number {
        font-size: 0.9375rem;
        flex-wrap: wrap;
    }
    
    .company-org-number span {
        font-size: 0.9375rem;
    }
    
    .company-info-text {
        font-size: 1.125rem;
    }
    
    .company-info-text.company-summary {
        font-size: 0.9375rem;
    }
    
    .company-section-nav {
        gap: 0.375rem;
        margin-top: 1.25rem;
        flex-wrap: wrap;
    }
    
    .section-nav-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
        flex: 0 0 auto;
    }
}

/* Payment Section */
.company-payment-section {
    width: 400px;
    max-width: 100%;
    position: sticky;
    top: 2rem;
}

/* Breadcrumb */
.company-detail-breadcrumb {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.company-detail-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.company-detail-breadcrumb a:hover {
    color: #111827;
}

/* Responsive */
@media (max-width: 768px) {
    .company-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .company-org-number span {
        font-size: 1rem;
    }
}