/* Jobs Styles */

/* Jobs Grid */
.jobs-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.jobs-grid-1-cols {
    grid-template-columns: 1fr;
}

/* Single Column Layout - Horizontal Cards */
.jobs-grid-1-cols .job-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 200px;
}

.jobs-grid-1-cols .job-image {
    flex: 0 0 300px;
    height: auto;
    min-height: 200px;
}

.jobs-grid-1-cols .job-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

.jobs-grid-1-cols .job-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.jobs-grid-1-cols .job-company {
    font-size: 16px;
}

.jobs-grid-1-cols .job-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.jobs-grid-1-cols .job-meta-item {
    font-size: 14px;
}

.jobs-grid-1-cols .job-excerpt {
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.jobs-grid-1-cols .job-footer {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: auto;
}

.jobs-grid-1-cols .job-apply-btn {
    flex: 0 0 auto;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.jobs-grid-1-cols .job-view-btn {
    flex: 0 0 auto;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
}

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

.jobs-grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.jobs-grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Job Card */
.job-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Job Badges */
.job-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.job-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.job-badge-featured {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.job-badge-urgent {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Job Image */
.job-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.job-card:hover .job-image img {
    transform: scale(1.05);
}


.job-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.job-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: #791093;
}

.job-company {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Job Meta */
.job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.job-meta-item svg {
    color: #791093;
    flex-shrink: 0;
}

.job-meta-item span {
    line-height: 1.4;
}

/* Job Excerpt */
.job-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Job Footer */
.job-footer {
    display: flex;
    gap: 10px;
    align-items: center;
}

.job-apply-btn {
    background: linear-gradient(135deg, #791093 0%, #9c27b0 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 15px rgba(121, 16, 147, 0.3);
}

.job-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 16, 147, 0.4);
    color: white;
    text-decoration: none;
}

.job-view-btn {
    background: transparent;
    color: #791093;
    padding: 12px 20px;
    border: 2px solid #791093;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.job-view-btn:hover {
    background: #791093;
    color: white;
    text-decoration: none;
}

/* No Results */
.jobs-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .jobs-grid-4-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .jobs-grid-4-cols,
    .jobs-grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .job-content {
        padding: 20px;
    }
    
    .job-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .jobs-grid-4-cols,
    .jobs-grid-3-cols,
    .jobs-grid-2-cols {
        grid-template-columns: 1fr;
    }
    
    .jobs-grid {
        gap: 20px;
    }
    
    /* Single Column Mobile Layout */
    .jobs-grid-1-cols .job-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .jobs-grid-1-cols .job-image {
        flex: none;
        height: 200px;
        min-height: 200px;
    }
    
    .jobs-grid-1-cols .job-content {
        padding: 20px;
    }
    
    .jobs-grid-1-cols .job-title {
        font-size: 20px;
    }
    
    .jobs-grid-1-cols .job-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .jobs-grid-1-cols .job-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .jobs-grid-1-cols .job-apply-btn,
    .jobs-grid-1-cols .job-view-btn {
        width: 100%;
        text-align: center;
    }
    
    .job-content {
        padding: 20px;
    }
    
    .job-image {
        height: 180px;
    }
    
    .job-title {
        font-size: 18px;
    }
    
    .job-footer {
        flex-direction: column;
    }
    
    .job-apply-btn,
    .job-view-btn {
        width: 100%;
    }
    
    .job-badges {
        top: 10px;
        right: 10px;
    }
    
    .job-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .job-content {
        padding: 15px;
    }
    
    .job-image {
        height: 160px;
    }
    
    .job-title {
        font-size: 16px;
    }
    
    /* Single Column Small Mobile */
    .jobs-grid-1-cols .job-content {
        padding: 15px;
    }
    
    .jobs-grid-1-cols .job-image {
        height: 160px;
        min-height: 160px;
    }
    
    .jobs-grid-1-cols .job-title {
        font-size: 18px;
    }
    
    .jobs-grid-1-cols .job-company {
        font-size: 14px;
    }
    
    .jobs-grid-1-cols .job-meta-item {
        font-size: 12px;
    }
    
    .jobs-grid-1-cols .job-excerpt {
        font-size: 13px;
    }
    
    .jobs-grid-1-cols .job-apply-btn,
    .jobs-grid-1-cols .job-view-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .job-meta-item {
        font-size: 12px;
    }
    
    .job-excerpt {
        font-size: 13px;
    }
    
    .job-apply-btn,
    .job-view-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Animation */
.job-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation */
.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }
.job-card:nth-child(5) { animation-delay: 0.5s; }
.job-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   SINGLE JOB PAGE STYLES
   ======================================== */

/* Single Job Container */
.single-job {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Job Header - Banner Section */
.job-header {
    background: linear-gradient(135deg, #791093 0%, #9c27b0 50%, #e91e63 100%);
    color: white;
    border-radius: 15px;
    margin: 20px 0 30px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(121, 16, 147, 0.25);
}

.job-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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.job-header-content {
    position: relative;
    display: flex;
    flex-direction: column;
}

.job-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Job Badges - Fixed positioning */
.job-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 150px;
}

.job-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.job-badge-featured {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    animation: pulse 2s infinite;
}

.job-badge-urgent {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    animation: urgentPulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes urgentPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6); }
}

/* Job Meta Large */
.job-meta-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.job-meta-item-large {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.job-meta-item-large:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.job-meta-item-large svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.job-meta-item-large span {
    font-weight: 600;
    font-size: 14px;
}

/* Job Actions */
.job-actions {
    margin-top: 20px;
}

.job-apply-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.95);
    color: #791093;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.job-apply-btn-large:hover {
    background: white;
    color: #791093 ;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.job-apply-btn-large::after {
    content: '→';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.job-apply-btn-large:hover::after {
    transform: translateX(5px);
}

/* Job Header Image */
.job-header-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    opacity: 0.1;
    overflow: hidden;
}

.job-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
}

/* Job Content Layout */
.job-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    margin-bottom: 40px;
}

.job-main-content {
    background: transparent;
    padding: 0;
}

/* Job Sidebar */
.job-sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.job-sidebar-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

/* Content Styling - Black text, justified */
.job-description {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    color: #000000 !important;
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
}

.job-section-content {
    color: #000000 !important;
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
}

/* Rich Text Editor Content Styling */
.job-section-content p {
    color: #000000 !important;
    text-align: justify;
    margin-bottom: 15px;
    line-height: 1.8;
}

.job-section-content ul,
.job-section-content ol {
    color: #000000 !important;
    text-align: left;
    margin: 15px 0;
    padding-left: 25px;
}

.job-section-content li {
    color: #000000 !important;
    margin-bottom: 8px;
    line-height: 1.7;
}

.job-section-content strong,
.job-section-content b {
    color: #333;
    font-weight: 700;
}

.job-section-content em,
.job-section-content i {
    font-style: italic;
    color: #555;
}

.job-section-content a {
    color: #791093;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.job-section-content a:hover {
    color: #9c27b0;
    text-decoration: underline;
}

.job-section-content h1,
.job-section-content h2,
.job-section-content h3,
.job-section-content h4,
.job-section-content h5,
.job-section-content h6 {
    color: #333;
    font-weight: 700;
    margin: 20px 0 15px 0;
    line-height: 1.4;
}

.job-section-content h1 { font-size: 24px; }
.job-section-content h2 { font-size: 22px; }
.job-section-content h3 { font-size: 20px; }
.job-section-content h4 { font-size: 18px; }
.job-section-content h5 { font-size: 16px; }
.job-section-content h6 { font-size: 14px; }

.job-description h2,
.job-section h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #791093;
}

.job-description p,
.job-section-content p {
    color: #000000 !important;
    text-align: justify;
    margin-bottom: 15px;
    line-height: 1.8;
}

.job-description ul,
.job-description ol,
.job-section-content ul,
.job-section-content ol {
    color: #000000 !important;
    text-align: left;
    margin: 15px 0;
    padding-left: 25px;
}

.job-description li,
.job-section-content li {
    color: #000000 !important;
    margin-bottom: 8px;
    line-height: 1.7;
}

.job-description strong,
.job-section-content strong {
    color: #333;
    font-weight: 700;
}

/* Job Section */
.job-section {
    margin: 30px 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.job-section:last-child {
    margin-bottom: 0;
}

.job-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #791093;
    border-radius: 2px;
}

/* Sidebar Navigation - ScrollSpy */
.job-sidebar-nav {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.job-sidebar-nav h4 {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-sidebar-nav li {
    margin-bottom: 8px;
}

.job-sidebar-nav a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.job-sidebar-nav a:hover,
.job-sidebar-nav a.active {
    background: #791093;
    color: white;
    transform: translateX(5px);
}

/* Contact Information */
.job-contact-info {
    background: linear-gradient(135deg, #791093 0%, #9c27b0 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.job-contact-info h4 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.job-contact-item svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.job-contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.job-contact-item a:hover {
    opacity: 0.8;
}

/* Social Sharing */
.job-sharing {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.job-sharing h4 {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sharing-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 40px;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-btn-facebook {
    background: #1877f2;
    color: white;
}

.share-btn-twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-whatsapp {
    background: #25d366;
    color: white;
}

.share-btn-email {
    background: #6c757d;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .job-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .job-sidebar {
        position: static;
    }
    
    .job-header-image {
        display: none;
    }
    
    .job-header-content {
        padding: 40px 30px;
    }
    
    .job-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .single-job {
        padding: 0 15px;
    }
    
    .job-sidebar {
        position: relative;
        top: auto;
        display: block;
        flex: none;
        width: 100%;
    }
    
    .job-header {
        margin: 20px 0 30px 0;
        border-radius: 15px;
    }
    
    .job-header-content {
        padding: 30px 20px;
    }
    
    .job-header h1 {
        font-size: 28px;
    }
    
    .job-meta-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .job-meta-item-large {
        padding: 10px 12px;
    }
    
    .job-meta-item-large span {
        font-size: 13px;
    }
    
    .job-apply-btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .job-main-content {
        padding: 25px;
    }
    
    .job-sidebar-content {
        padding: 20px;
    }
    
    .job-badges {
        top: 15px;
        right: 15px;
        max-width: 120px;
    }
    
    .job-badge {
        padding: 6px 12px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .job-header-content {
        padding: 25px 15px;
    }
    
    .job-header h1 {
        font-size: 24px;
    }
    
    .job-meta-large {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .job-meta-item-large {
        padding: 10px 12px;
    }
    
    .job-meta-item-large span {
        font-size: 13px;
    }
    
    .job-apply-btn-large {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .job-main-content {
        padding: 20px;
    }
    
    .job-sidebar-content {
        padding: 15px;
    }
    
    .job-badges {
        top: 10px;
        right: 10px;
        max-width: 100px;
    }
    
    .job-badge {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .sharing-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}
