/* =========================================================
   COMPANY DETAIL PAGE
   Fully self-contained stylesheet
   ========================================================= */

.company-detail-page {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    box-sizing: border-box;
    overflow: visible;
    font-family: Inter, sans-serif;
    color: #202b38;
}

/* Banner */

.company-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1128 / 191;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(135deg, #071a2a, #23233a);
}

.company-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Identity */

.company-identity-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin: -48px 24px 0;
    padding: 20px 28px;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    box-sizing: border-box;
}

.company-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    margin-top: -36px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
    font-size: 34px;
}

.company-logo-box img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    box-sizing: border-box;
}

.company-identity-info {
    flex: 1 1 220px;
    min-width: 220px;
}

.company-sector-tag {
    margin-bottom: 6px;
    color: #173f9f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.company-identity-info h1 {
    margin: 0 0 4px;
    color: #071a2a;
    font-family: Inter, sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.company-tagline {
    margin: 0;
    color: #687586;
    font-size: 15px;
    line-height: 1.5;
}

/* Buttons */

.company-identity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.company-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
            transform .2s ease,
            background-color .2s ease,
            border-color .2s ease,
            color .2s ease;
}

.company-btn:hover {
    transform: translateY(-1px);
}

.company-btn-website {
    background: #071a2a;
    border-color: #071a2a;
    color: #fff;
}

.company-btn-website:hover {
    background: #173f9f;
    border-color: #173f9f;
    color: #fff;
}

.company-btn-linkedin {
    background: #fff;
    border-color: #d8dee6;
    color: #173f9f;
}

.company-btn-linkedin:hover {
    background: #f4f7fb;
    border-color: #173f9f;
    color: #173f9f;
}

/* Stats */

.company-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 32px;
}

.company-stat-card {
    min-width: 0;
    padding: 18px 14px;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 9px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 35, 55, .045);
}

.company-stat-value {
    overflow: hidden;
    color: #071a2a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.company-stat-label {
    margin-top: 5px;
    color: #687586;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Main layout */

.company-detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    width: 100%;
    align-items: stretch;
    overflow: visible;
}

.company-main-content {
    min-width: 0;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: 0 5px 18px rgba(15, 35, 55, .055);
    box-sizing: border-box;
}

.company-section-header {
    margin-bottom: 16px;
}

.company-section-header h2 {
    margin: 0;
    color: #071a2a;
    font-family: Inter, sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
}

.company-description {
    color: #202b38;
    font-size: 16px;
    line-height: 1.85;
}

.company-description p {
    margin: 0 0 20px;
}

.company-description p:last-child {
    margin-bottom: 0;
}

.company-description h2,
.company-description h3,
.company-description h4 {
    margin: 28px 0 14px;
    color: #071a2a;
    line-height: 1.35;
}

.company-description ul,
.company-description ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.company-description li {
    margin-bottom: 7px;
}

.company-description a {
    color: #173f9f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Sidebar */

.company-sidebar-card {
    position: relative;
    align-self: stretch;
    height: auto;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(15, 35, 55, .055);
}

.company-sidebar-sticky {
    position: sticky;
    top: 100px;
    height: max-content;
}

.company-sidebar-section {
    padding: 22px 24px;
}

.company-sidebar-section + .company-sidebar-section {
    border-top: 1px solid #e5e9ee;
}

.company-sidebar-section h4 {
    margin: 0 0 14px;
    padding-bottom: 11px;
    color: #071a2a;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid #e5e9ee;
}

/* Company details */

.company-detail-item {
    padding: 9px 0;
    border-bottom: 1px solid #edf0f3;
}

.company-detail-item-last {
    border-bottom: 0;
}

.company-detail-label {
    margin-bottom: 3px;
    color: #687586;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.company-detail-value {
    color: #202b38;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.company-products-list {
    color: #202b38;
    font-size: 13px;
    line-height: 1.5;
}

.company-products-list ul {
    margin: 3px 0 0;
    padding-left: 19px;
}

.company-products-list li {
    margin: 3px 0;
}

/* Other companies */

.company-other-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.company-other-item:last-child {
    margin-bottom: 0;
}

.company-other-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    overflow: hidden;
    background: #f7f9fb;
    border: 1px solid #dfe5eb;
    border-radius: 6px;
    color: #071a2a;
    font-size: 14px;
    text-decoration: none;
}

.company-other-logo img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
    box-sizing: border-box;
}

.company-other-info {
    min-width: 0;
}

.company-other-name {
    display: block;
    overflow: hidden;
    color: #202b38;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-other-name:hover {
    color: #173f9f;
}

.company-other-sector {
    margin-top: 2px;
    overflow: hidden;
    color: #687586;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Small laptop */

@media (max-width: 1100px) and (min-width: 901px) {

    .company-detail-page {
        max-width: 100%;
        padding: 18px 18px 50px;
    }

    .company-detail-columns {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 24px;
    }

    .company-sidebar-sticky {
        top: 90px;
    }

    .company-identity-bar {
        margin-left: 20px;
        margin-right: 20px;
        padding: 18px 22px;
    }

    .company-identity-info h1 {
        font-size: 28px;
    }
}

/* Tablet */

@media (max-width: 900px) {

    .company-detail-page {
        max-width: 100%;
        padding: 16px 16px 50px;
    }

    .company-banner {
        aspect-ratio: 1128 / 230;
    }

    .company-identity-bar {
        margin: -36px 16px 0;
        padding: 18px 20px;
        gap: 18px;
    }

    .company-logo-box {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        margin-top: -28px;
    }

    .company-identity-info h1 {
        font-size: 26px;
    }

    .company-identity-actions {
        width: 100%;
        flex-basis: 100%;
        gap: 8px;
    }

    .company-btn {
        flex: 1 1 auto;
    }

    .company-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 20px 0 28px;
    }

    .company-stat-card {
        padding: 14px 10px;
    }

    .company-stat-value {
        font-size: 19px;
    }

    .company-stat-label {
        font-size: 9px;
    }

    .company-detail-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .company-sidebar-card {
        align-self: auto;
    }

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

/* Mobile */

@media (max-width: 600px) {

    .company-detail-page {
        padding: 14px 12px 45px;
    }

    .company-banner {
        aspect-ratio: 1128 / 260;
        border-radius: 6px;
    }

    .company-identity-bar {
        margin: -30px 8px 0;
        padding: 16px;
        gap: 14px;
        border-radius: 10px;
    }

    .company-logo-box {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        margin-top: -24px;
        border-radius: 10px;
        font-size: 28px;
    }

    .company-logo-box img {
        padding: 8px;
    }

    .company-identity-info {
        min-width: 0;
        flex: 1 1 calc(100% - 84px);
    }

    .company-sector-tag {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .company-identity-info h1 {
        font-size: 23px;
    }

    .company-tagline {
        font-size: 13px;
    }

    .company-identity-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .company-btn {
        width: 100%;
        padding: 9px 10px;
        font-size: 11px;
    }

    .company-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 18px 0 24px;
    }

    .company-stat-card {
        padding: 13px 8px;
    }

    .company-stat-value {
        font-size: 18px;
    }

    .company-stat-label {
        font-size: 8px;
    }

    .company-main-content {
        padding: 24px 20px;
    }

    .company-section-header h2 {
        font-size: 22px;
    }

    .company-description {
        font-size: 15px;
        line-height: 1.75;
    }

    .company-sidebar-section {
        padding: 20px 18px;
    }

    .company-sidebar-section h4 {
        font-size: 16px;
    }
}

/* Very small mobile */

@media (max-width: 420px) {

    .company-detail-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .company-identity-bar {
        margin-left: 6px;
        margin-right: 6px;
        padding: 14px;
    }

    .company-identity-info h1 {
        font-size: 21px;
    }

    .company-identity-actions {
        grid-template-columns: 1fr;
    }

    .company-btn {
        width: 100%;
    }

    .company-stats-row {
        grid-template-columns: 1fr;
    }

    .company-stat-card {
        padding: 14px 10px;
    }
}