/* trade-schools/css/trade-schools.css — Styles for Trade School Directory */

/* ========== Page Chrome (matches companies.css) ========== */

body {
    background: linear-gradient(180deg, #78a6c8 0%, #e6eef3 30%, #e6eef3 100%);
    min-height: 100vh;
}

.hero-section {
    padding: 2rem 0;
    padding-bottom: 0;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #34495e;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

.search-filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

/* ========== Listing Page ========== */

.ts-section {
    padding: 2rem 0 3rem;
}

/* School Card */
.ts-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.ts-card:hover {
    border-color: #3172ae;
    box-shadow: 0 4px 12px rgba(49, 114, 174, 0.12);
    text-decoration: none;
    color: inherit;
}

.ts-card-inner {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.ts-card-logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ts-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ts-card-logo .ts-logo-fallback {
    color: #9ca3af;
    font-size: 1.5rem;
}

.ts-card-body {
    flex: 1;
    min-width: 0;
}

.ts-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #111827;
}

.ts-card-location {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.ts-card-location i {
    margin-right: 0.25rem;
    color: #9ca3af;
}

.ts-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.ts-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ts-card-meta-item i {
    color: #9ca3af;
    font-size: 0.8rem;
}

.ts-grad-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #eff6ff;
    color: #1e40af;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== Detail Page ========== */

.ts-profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- Zone 1: Profile Header --- */

.ts-profile-header {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.ts-profile-header-inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ts-profile-logo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ts-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ts-profile-logo .ts-logo-fallback {
    color: #9ca3af;
    font-size: 2.5rem;
}

.ts-profile-identity h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.ts-profile-program {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 400;
    margin: 0 0 0.25rem;
}

.ts-profile-location {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.ts-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.ts-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.ts-badge--accredited {
    background: #ecfdf5;
    color: #059669;
}

.ts-action-link {
    color: #3172ae;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ts-action-link:hover {
    text-decoration: underline;
}

/* Quick Stats Row */
.ts-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.ts-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ts-stat i {
    color: #3172ae;
    font-size: 1.1rem;
}

.ts-stat-value {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.ts-stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* --- Zone 2: Overview + Map --- */

.ts-overview-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ts-overview-card {
    flex: 3;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ts-map-card {
    flex: 2;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ts-overview-card h2,
.ts-map-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.ts-overview-grid {
    display: flex;
    flex-direction: column;
}

.ts-overview-field {
    display: flex;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.ts-overview-field:last-child {
    border-bottom: none;
}

.ts-overview-label {
    width: 140px;
    flex-shrink: 0;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
}

.ts-overview-value {
    flex: 1;
    color: #111827;
    font-size: 0.9rem;
}

.ts-overview-value a {
    color: #3172ae;
    text-decoration: none;
}

.ts-overview-value a:hover {
    text-decoration: underline;
}

.ts-overview-description {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.ts-overview-description p {
    color: #374151;
    line-height: 1.7;
    font-size: 0.925rem;
    margin: 0;
}

#ts-location-map {
    min-height: 300px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* --- Zone 3: Graduates --- */

/* Section cards */
.ts-section-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.ts-section-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.ts-graduates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Empty state dual CTA */
.ts-empty-state {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.ts-empty-cta {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.ts-empty-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eff6ff;
    color: #3172ae;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.ts-empty-cta h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ts-empty-cta p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Graduate talent cards (within trade school profile) */
.ts-graduates-grid .talent-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ts-graduates-grid .talent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.ts-graduates-grid .talent-card-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ts-graduates-grid .talent-card-body {
    flex: 1;
    min-width: 0;
}

.ts-graduates-grid .talent-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

/* --- Zone 4: Employer CTA --- */

.ts-cta-section {
    background: linear-gradient(135deg, #3172ae 0%, #1e5a8a 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

.ts-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ts-cta-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.ts-cta-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.ts-cta-btn {
    background: #fff;
    color: #3172ae;
    font-weight: 600;
    border: none;
    white-space: nowrap;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
}

.ts-cta-btn:hover {
    background: #f0f4f8;
    color: #3172ae;
    text-decoration: none;
}

/* Breadcrumbs */
.ts-breadcrumb {
    padding: 1rem 0 0;
    font-size: 0.85rem;
}

.ts-breadcrumb a {
    color: #3172ae;
    text-decoration: none;
}

.ts-breadcrumb a:hover {
    text-decoration: underline;
}

.ts-breadcrumb .separator {
    margin: 0 0.4rem;
    color: #9ca3af;
}

/* ========== Responsive ========== */

@media (max-width: 992px) {
    .ts-overview-row {
        flex-direction: column-reverse;
    }

    .ts-overview-card,
    .ts-map-card {
        flex: 1;
    }

    #ts-location-map {
        min-height: 250px;
        height: 250px;
    }

    .ts-graduates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ts-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ts-card-meta {
        justify-content: center;
    }

    .ts-profile-header {
        padding: 1.5rem;
    }

    .ts-profile-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ts-profile-identity h1 {
        font-size: 1.5rem;
    }

    .ts-profile-actions {
        justify-content: center;
    }

    .ts-quick-stats {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .ts-overview-field {
        flex-direction: column;
        gap: 0.25rem;
    }

    .ts-overview-label {
        width: auto;
    }

    .ts-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .ts-empty-state {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .ts-graduates-grid {
        grid-template-columns: 1fr;
    }
}
