/* ==========================================
   SITE HEADER (Reduced Height)
========================================== */
.site-header {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    min-height: auto !important;
}

/* ==========================================
   LOGO
========================================== */
.custom-logo {
    max-height: 45px !important;
    width: auto;
    display: inline-block;
    padding-left: 50px;
}

/* ==========================================
   VENDOR CARD BASE (Tightened)
========================================== */
.hp-vendor--view-block {
    background: #fff;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    border-radius: 8px !important;
    padding: 15px 1px !important; 
}

.hp-vendor__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    padding-top: 0 !important; /* Forces top spacing to zero */
    margin-top: 0 !important;
}

/* Hidden Elements (This removes the huge blank space at the top) */
.hp-vendor__header,
.hp-vendor__attribute--gender,
.hp-vendor__attribute--tc-template-cv {
    display: none !important;
}

/* ==========================================
   HEADER LAYOUT (Compact)
========================================== */
.tc-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important; /* REDUCED distance between image and name */
    margin-top: 0 !important; 
    margin-bottom: 6px !important; 
    padding-bottom: 6px !important;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.hp-vendor__image {
    width: 50px !important; /* Slightly smaller */
    height: 50px !important;
    flex-shrink: 0;
    margin: 0 !important;
    border-radius: 50%;
    overflow: hidden;
    position: static !important; 
}

.hp-vendor__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.tc-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;
    flex-grow: 1;
}

.hp-vendor__name {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 500;
    color: #111;
    line-height: 1.2;
}

.hp-vendor__name a {
    color: #111;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Verify Badge */
.hp-vendor__verified-badge {
    color: #10b981 !important; 
    font-size: 12px !important;
    margin: 0 !important;
    position: static !important; 
    float: none !important;
}

.tc-profile-heading {
    margin: 2px 0 0 0 !important;
    font-size: 12px !important;
    font-style: italic;
    color: #555;
    line-height: 1.3;
}

/* ==========================================
   ATTRIBUTES & ICONS (Compact List)
========================================== */
.hp-vendor__attributes--secondary .hp-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
}

.hp-vendor__attributes .hp-vendor__attribute,
.tc-member-since {
    display: flex;
    align-items: flex-start;
    gap: 8px !important;
    padding: 3px 0 !important; /* Super tight padding */
    color: #4b5563;
    font-size: 12.5px !important;
}

.hp-vendor__attributes i {
    color: #6b7280;
    margin-top: 3px !important; 
    font-size: 13px !important;
    flex-shrink: 0;
}

/* Strict 2-Line Enforcement for ALL fields */
.tc-clamped-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    max-height: 2.6em; 
}

/* Removes space below Member Since */
.tc-member-since {
    margin-bottom: 0 !important; 
}

/* ==========================================
   FOOTER & BUTTONS
========================================== */
.hp-vendor__footer {
    margin-top: auto; /* Keeps buttons aligned to bottom of card */
    border-top: 1px solid #e5e5e5;
    padding: 10px 0 0 0;
}

.tc-footer-buttons {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px; 
    width: 100%;
}

/* Buttons style */
.tc-footer-buttons > * {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex: 1 1 0;
    height: 40px;
    border: 1px solid #0d47a1 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #0d47a1 !important;
    text-decoration: none;
    font-size: 11.5px !important; 
    font-weight: 600 !important;
    white-space: nowrap !important; 
    transition: 0.25s;
    margin: 0 !important;
    padding: 0 6px !important; 
}

/* Button Hover States */
.tc-footer-buttons > *:hover {
    background: #0d47a1 !important;
    color: #fff !important;
}


/* ==========================================
   VENDOR PROFILE PAGE OVERHAUL 
   (Strictly isolates the Vendor Details Page)
========================================== */

/* Page Background Fix */
.hp-vendor--view-page {
    background-color: #f8fafc !important; 
    padding: 20px 0;
}

/* --- Top Header Card --- */
.tc-profile-header-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: row;
    gap: 35px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tc-header-left {
    flex-shrink: 0;
}
.tc-header-left img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}

.tc-header-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.tc-name {
    margin: 0 0 10px 0 !important;
    font-size: 34px;
    font-weight: 700;
    color: #1e396c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-name .hp-vendor__verified-badge {
    color: #10b981 !important;
    font-size: 22px;
}

.tc-meta-top {
    display: flex;
    gap: 20px;
    color: #475569;
    font-size: 14.5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.tc-meta-top i {
    margin-right: 5px;
    color: #64748b;
}

.tc-summary {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin: 0 0 20px 0;
}

/* Segment Pills */
.tc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tc-pill {
    border: 1px solid #cbd5e1;
    color: #1e396c;
    background-color: #f8fafc;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Bottom Meta Row */
.tc-meta-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.tc-meta-item, .tc-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    border-right: 1px solid #e2e8f0;
    padding-right: 20px;
    font-weight: 500;
}

.tc-meta-item i {
    color: #1e396c;
    font-size: 15px;
}

.tc-status-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.tc-btn-download {
    background-color: #1e396c;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    border: none;
    margin-left: auto; /* Pushes button to the far right */
}

.tc-btn-download:hover {
    background-color: #152951;
}

/* --- Info Cards (Generic Card Style) --- */
.tc-profile-details-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tc-card-heading {
    font-size: 20px;
    font-weight: 700;
    color: #1e396c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-card-heading i {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 50%;
    color: #1e396c;
    font-size: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Professional Info Card (Table View) --- */
.tc-card-body {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.tc-info-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

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

.tc-info-label {
    width: 250px;
    padding: 18px 20px;
    background-color: #f8fafc; /* Light gray background */
    border-right: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 14.5px;
}

.tc-info-label i {
    color: #1e396c;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.tc-info-value {
    padding: 18px 20px;
    color: #334155;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 14.5px;
}

/* --- Detailed Companies Table --- */
.tc-table-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.tc-detailed-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14.5px;
}

.tc-detailed-table th {
    background-color: #f8fafc;
    padding: 16px 20px;
    color: #1e396c;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

.tc-detailed-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.tc-detailed-table tr:last-child td {
    border-bottom: none;
}

/* --- Key Achievements Text --- */
.tc-achievement-text {
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .tc-profile-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .tc-meta-bottom {
        flex-direction: column;
        border-top: none;
        padding-top: 0;
        gap: 15px;
    }
    .tc-meta-item, .tc-status {
        border-right: none;
        padding-right: 0;
    }
    .tc-btn-download {
        margin: 10px auto 0 auto;
    }
    .tc-info-row {
        flex-direction: column;
    }
    .tc-info-label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    /* Mobile Tables */
    .tc-detailed-table th, .tc-detailed-table td {
        padding: 12px;
        font-size: 13px;
    }
}

/* FIX: Add extra padding to the start of the first column (Company) */
.tc-detailed-table th:first-child,
.tc-detailed-table td:first-child {
    padding-left: 35px; 
}

/* FIX: Ensure paragraph tags from the original Key Achievements input are spaced correctly */
.tc-achievement-text p {
    margin-bottom: 15px; 
    line-height: 1.7;
}

.tc-achievement-text p:last-child {
    margin-bottom: 0;
}


/* FIX: Hide Post a Request button from Header */
.hp-menu--site-header .hp-menu__item--request-submit {
    display: none !important;
}

/* FIX: Home Page Hero Section */
.hero-section {
    background: linear-gradient(135deg, #002d62 0%, #0b437f 100%);
    position: relative;
    overflow: visible;
    padding: 70px 0 120px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.hero-columns {
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(107,184,36,0.15);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    color: #ffffff;
    font-size: 58px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-description {
    color: rgba(255,255,255,0.9);
    font-size: 20px;
    line-height: 1.7;
    max-width: 550px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary .wp-block-button__link {
    background: #6bb824;
    color: white;
    border-radius: 10px;
    padding: 16px 28px;
    font-weight: 600;
}

.btn-secondary .wp-block-button__link {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: 14px 28px;
    font-weight: 600;
}

.hero-visual img {
    width: 100%;
    display: block;
}