
/* CSS Variables - Official NoviStage Brand Colors */
:root {
    --primary-navy: #211d3e;
    --primary-orange: #ff6b00;
    --primary-red: #ff2938;
    --primary-green: #68d300;
    --primary-cyan: #00c4ff;
    --secondary-blue: #0066ff;
    --secondary-purple: #6600cc;
    --secondary-gray: #a6a6a6;
    --secondary-red: #ff0000;
}

/* Page Layout */
.companies-page {
    background: #fafbfc;
    min-height: 100vh;
    padding: 0;
}

/* Header Section */
.companies-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2d2654 100%);
    padding: 5rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.companies-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
}

.companies-header .container {
    position: relative;
    z-index: 2;
}

.companies-header h1 {
    color: white;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 2.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.companies-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Form */
.search-form {
    background: white;
    border-radius: 0;
    padding: 3rem 0;
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: 1px solid #e9ecef;
}

.search-form .container {
    max-width: 800px;
}

.search-form .form-label {
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Search Input with Icon */
.search-input-wrapper {
    position: relative;
}

.search-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fff;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Select with Custom Arrow */
.select-wrapper {
    position: relative;
}

.search-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.875rem 3rem 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fff;
    font-family: 'Inter', sans-serif;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.8rem;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.search-input:focus, .search-select:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(33, 29, 62, 0.08);
    outline: none;
}

.search-input:focus + .search-icon {
    color: var(--primary-navy);
}

.search-select:focus + .select-arrow {
    color: var(--primary-navy);
}

.search-btn {
    background: var(--primary-navy);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.search-btn:hover {
    background: #1a1633;
    transform: translateY(-1px);
}

/* Companies Grid */
.companies-grid {
    padding: 3rem 0;
    background: #fafbfc;
}

/* Company Cards */
.company-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(33, 29, 62, 0.06);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 29, 62, 0.12);
    border-color: var(--primary-navy);
}

.company-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.company-logo {
    width: 52px;
    height: 52px;
    background: var(--primary-navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.company-info {
    flex: 1;
    min-width: 0;
}

.company-info h3 {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.375rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.3;
}

.company-sector {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.company-description {
    color: #495057;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
    font-size: 0.9rem;
    /* Ensure text truncation with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em; /* Approximately 3 lines */
    word-wrap: break-word;
}

.company-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.internship-count {
    background: var(--primary-green);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.internship-count.zero {
    background: #6c757d;
}

.company-location {
    color: #6c757d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.company-location i {
    margin-right: 0.375rem;
    font-size: 0.75rem;
}


/* See More Button - Orange theme */
.btn-see-more {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e55a00 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
    font-family: 'Inter', sans-serif;
}

.btn-see-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    background: linear-gradient(135deg, #e55a00 0%, var(--primary-orange) 100%);
    color: white;
}

.btn-see-more i {
    transition: transform 0.3s ease;
}

.btn-see-more:hover i {
    transform: rotate(90deg);
}

.loading-spinner {
    padding: 2rem 0;
}

.loading-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
}

.loading-spinner p {
    font-size: 0.9rem;
    margin: 0;
}


/* Responsive */
@media (max-width: 768px) {
    .companies-header {
        padding: 3.5rem 0;
    }
    
    .companies-header h1 {
        font-size: 2.25rem;
        font-weight: 800;
    }
    
    .companies-header p {
        font-size: 1.05rem;
    }
    
    .search-form {
        padding: 2rem 0;
    }
    
    .companies-grid {
        padding: 2rem 0;
    }
    
    .company-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .company-logo {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .company-info h3 {
        font-size: 1rem;
    }
    
    .company-description {
        font-size: 0.85rem;
    }
    
    .btn-see-more {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}
