/* MAS Company Profile Styles */
:root {
    --primary-color: #2271b1;
    --secondary-color: #135e96;
    --success-color: #00a32a;
    --warning-color: #dba617;
    --danger-color: #d63638;
    --gray-50: #f6f7f7;
    --gray-100: #f0f0f1;
    --gray-200: #c3c4c7;
    --gray-300: #a7aaad;
    --gray-700: #2c3338;
    --gray-900: #1d2327;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Dashicons Base Styles */
.dashicons {
    display: inline-block;
    line-height: 1;
    font-family: dashicons;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    vertical-align: top;
    text-align: center;
    text-decoration: inherit;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 20px;
    height: 20px;
}

/* Main Container */
.mas-company-profile {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.company-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.company-hero-section::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 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100% 100px;
    background-position: bottom;
    opacity: 0.2;
}

.company-hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.company-badge {
    position: relative;
    flex-shrink: 0;
}

.company-logo-main {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.company-logo-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.company-logo-placeholder {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.active-jobs-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--success-color);
    color: white;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 2px solid white;
}

.badge-icon.dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.badge-count {
    font-size: 18px;
    font-weight: 700;
}

.badge-text {
    font-size: 14px;
}

.company-header-info h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
    line-height: 1.2;
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.company-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.company-meta .dashicons {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.company-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #f0f0f1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main Layout */
.company-main-wrapper {
    padding: 40px 20px;
}

.company-layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .company-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .company-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .company-meta {
        justify-content: center;
    }
    
    .company-actions {
        justify-content: center;
    }
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 .dashicons {
    color: var(--primary-color);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.company-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.company-details-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.company-details-list li:last-child {
    border-bottom: none;
}

.company-details-list .dashicons {
    color: var(--primary-color);
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.company-details-list li div {
    flex: 1;
}

.company-details-list li strong {
    display: block;
    font-size: 13px;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.company-details-list li span {
    display: block;
    color: var(--gray-900);
    font-weight: 500;
    font-size: 15px;
}

.company-website-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.company-website-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.company-website-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Contact Card */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item .dashicons {
    color: var(--primary-color);
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Share Card */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.share-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.link { background: var(--gray-700); }

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Main Content */
.content-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2 .dashicons {
    color: var(--primary-color);
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.company-description-content {
    line-height: 1.7;
    color: var(--gray-700);
    font-size: 16px;
}

.company-description-content p {
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--gray-900);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Jobs Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.jobs-count {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jobs-count .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Job Filters */
.job-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.job-filter-select {
    padding: 10px 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-900);
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
}

.job-filter-select:hover {
    border-color: var(--primary-color);
}

.job-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    gap: 20px;
}

.job-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
}

.job-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.job-card.featured-job {
    border-color: var(--warning-color);
    background: linear-gradient(to right, #fff8e1, white);
    border-width: 1px;
    border-left-width: 4px;
    border-left-color: var(--warning-color);
}

.job-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.job-badge.featured {
    background: var(--warning-color);
    color: white;
}

.job-badge.urgent {
    background: var(--danger-color);
    color: white;
}

.job-card-header {
    margin-bottom: 15px;
    padding-right: 100px;
}

.job-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.job-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: var(--primary-color);
}

.job-date {
    font-size: 14px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-date .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--gray-500);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

.job-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-700);
    background: var(--gray-50);
    padding: 6px 12px;
    border-radius: 20px;
}

.job-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.meta-item.location .dashicons { color: var(--success-color); }
.meta-item.job-type .dashicons { color: var(--primary-color); }
.meta-item.salary .dashicons { color: var(--warning-color); }
.meta-item.remote .dashicons { color: var(--secondary-color); }

.job-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.job-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.category-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.job-card-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-view-job,
.btn-save-job,
.btn-apply-job {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-view-job .dashicons,
.btn-save-job .dashicons,
.btn-apply-job .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.btn-view-job {
    background: var(--primary-color);
    color: white;
}

.btn-view-job:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-save-job {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-save-job:hover {
    background: var(--gray-200);
    color: var(--primary-color);
}

.btn-apply-job {
    background: var(--success-color);
    color: white;
}

.btn-apply-job:hover {
    background: #008a20;
    transform: translateY(-2px);
}

/* No Jobs Message */
.no-jobs-message {
    text-align: center;
    padding: 60px 40px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 2px dashed var(--gray-200);
}

.no-jobs-icon .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.no-jobs-message h3 {
    font-size: 24px;
    color: var(--gray-700);
    margin: 0 0 15px 0;
}

.no-jobs-message p {
    color: var(--gray-600);
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.btn-reset-filters {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Past Jobs */
.past-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.past-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gray-300);
    transition: all 0.3s ease;
}

.past-job-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.past-job-title {
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
}

.past-job-title .dashicons {
    color: var(--gray-500);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.past-job-date {
    font-size: 14px;
    color: var(--gray-500);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .company-hero-section {
        padding: 40px 0;
    }
    
    .company-header-info h1 {
        font-size: 32px;
    }
    
    .company-meta {
        gap: 10px;
    }
    
    .company-meta .meta-item {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .job-card {
        padding: 20px;
    }
    
    .job-card-footer {
        flex-direction: column;
    }
    
    .btn-view-job,
    .btn-save-job,
    .btn-apply-job {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for filters */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.job-card {
    animation: fadeIn 0.3s ease;
}


.container.company-main-wrapper {
    padding: 10px;
}