/* HT Companies
   Directory + single company styles
   Designed to work with ht-companies-fixed.php and single-ht_company-fixed.php */

/* =========================
   Archive / Directory
========================= */
.ht-company-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ht-company-logo img {
    display: block;
    max-width: 40px;
    height: auto;
}

.ht-company-logo-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ht-company-archive-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ht-company-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.09);
    border-color: rgba(190, 30, 45, 0.18);
}

.ht-company-archive-image {
    display: block;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
    overflow: hidden;
}

.ht-company-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    background: #fff;
}

.ht-company-archive-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.ht-company-archive-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
}

.ht-company-archive-title a,
.ht-company-archive-link {
    color: #111;
    text-decoration: none;
}

.ht-company-archive-title a:hover,
.ht-company-archive-link:hover {
    color: #be1e2d;
}

.ht-company-archive-category,
.ht-company-archive-country,
.ht-company-archive-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    font-weight: 600;
}

/* =========================
   Single Company Layout
========================= */
.single-ht_company .main-container.ht-company-template-full,
.ht-company-template-full {
    width: 100%;
    max-width: 100%;
}

.single-ht_company .main-left.full-width-left,
.ht-company-template-full .full-width-left {
    width: 100%;
    max-width: 100%;
    float: none;
}

.single-ht_company .main-content.ht-company-main-content,
.ht-company-main-content {
    width: 100%;
    max-width: 100%;
}

.single-ht_company .site-content.ht-company-single-wrap-full,
.ht-company-single-wrap-full {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 18px 34px;
}

.single-ht_company .sidebar,
.single-ht_company .main-right {
    display: none !important;
}

.ht-company-single {
    display: block;
}

.ht-company-breadcrumbs {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.ht-company-breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.ht-company-breadcrumbs a:hover {
    color: #be1e2d;
}

.ht-company-breadcrumb-sep {
    display: inline-block;
    margin: 0 8px;
    color: #999;
}

.ht-company-breadcrumb-current {
    color: #111;
    font-weight: 700;
}

.ht-company-header {
    margin-bottom: 22px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.05);
}

.ht-company-header-main {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

.ht-company-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
}

.ht-company-brand img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
}

.ht-company-header-text {
    min-width: 0;
}

.ht-company-name {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
}

.ht-company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 18px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.ht-company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #be1e2d;
    border: 1px solid #be1e2d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ht-btn:hover {
    background: #a31826;
    border-color: #a31826;
    color: #fff;
}

.ht-btn-alt {
    background: #fff;
    color: #111;
    border-color: rgba(0,0,0,0.12);
}

.ht-btn-alt:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.ht-company-dashboard {
    margin: 0 0 24px;
}

.ht-company-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.ht-company-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

.ht-company-stat-label {
    font-size: 11px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    font-weight: 700;
}

.ht-company-stat-value {
    font-size: 18px;
    line-height: 1.35;
    color: #111;
    font-weight: 700;
}

.ht-company-stat-value a {
    color: #111;
    text-decoration: none;
}

.ht-company-stat-value a:hover {
    color: #be1e2d;
}

.ht-company-summary,
.ht-company-section {
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.ht-company-summary > :first-child,
.ht-company-section > :first-child {
    margin-top: 0;
}

.ht-company-summary > :last-child,
.ht-company-section > :last-child {
    margin-bottom: 0;
}

.ht-company-section h2,
.ht-company-section h3,
.ht-company-section h4 {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.2;
}

.ht-company-country-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ht-company-country-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.08);
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ht-company-country-pill:hover {
    background: #be1e2d;
    border-color: #be1e2d;
    color: #fff;
}

.ht-company-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ht-company-info-card {
    padding: 20px;
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
}

.ht-company-info-card h3,
.ht-company-info-card h4 {
    margin: 0 0 14px;
}

.ht-company-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ht-company-info-list li {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.ht-company-info-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.ht-company-info-list strong {
    color: #111;
}

.ht-company-info-list a {
    color: #111;
    text-decoration: none;
}

.ht-company-info-list a:hover {
    color: #be1e2d;
}

/* =========================
   Coverage Grid
========================= */
.ht-company-coverage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ht-company-coverage-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ht-company-coverage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.09);
}

.ht-company-coverage-image {
    display: block;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
    overflow: hidden;
}

.ht-company-coverage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ht-company-coverage-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.ht-company-coverage-date {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.ht-company-coverage-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.28;
}

.ht-company-coverage-title a {
    color: #111;
    text-decoration: none;
}

.ht-company-coverage-title a:hover {
    color: #be1e2d;
}

.ht-company-coverage-excerpt {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.65;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1280px) {
    .ht-company-dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ht-company-coverage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .single-ht_company .site-content.ht-company-single-wrap-full,
    .ht-company-single-wrap-full {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ht-company-header-main,
    .ht-company-info-grid {
        grid-template-columns: 1fr;
    }

    .ht-company-brand {
        min-height: 140px;
    }

    .ht-company-dashboard-grid,
    .ht-company-coverage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ht-company-header,
    .ht-company-summary,
    .ht-company-section {
        padding: 18px;
        border-radius: 16px;
    }

    .ht-company-name {
        font-size: 30px;
    }

    .ht-company-dashboard-grid,
    .ht-company-coverage-grid {
        grid-template-columns: 1fr;
    }

    .ht-company-info-list li {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ht-btn {
        width: 100%;
    }
}
