/* =========================================
   PUBLIC JOB LISTING STYLES
   ========================================= */

/* Button Gradients */
.btn-grad-hover {
    transition: all 0.3s ease;
}
.btn-grad-hover:hover {
    background: linear-gradient(135deg, #28a745 0%, #9C27B0 100%) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.hover-gradient-text {
    transition: all 0.2s ease;
}
.hover-gradient-text:hover {
    background: linear-gradient(135deg, #28a745 0%, #9C27B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Job Cards & Layouts */
.job-save-card {
    transition: all 0.3s ease;
    border: 1px solid #eef2f6 !important;
}

.job-save-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important;
    border-color: #28a745 !important; 
}

/* Specific styling to highlight Featured jobs */
.featured-job-border {
    border: 1px solid #f59e0b !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.05) !important;
}

/* Toggles */
.jobs-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.jobs-list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sidebar & Ads */
.filter-sidebar {
    position: sticky;
    top: 90px; 
}

.sponsored-ad {
    border: 2px solid #f8f9fa;
}

.sponsored-ad-inline {
    background: linear-gradient(to right, #ffffff, #f4f7fe);
}

/* Star Rating & Media Lightbox CSS */
.star-icon {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}
.star-icon:hover {
    transform: scale(1.2);
}

.media-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
    height: 120px;
    width: 100%;
}
.media-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Social Share Icons */
.social-share-icon {
    transition: all 0.3s ease;
}
.social-share-icon:hover {
    background: linear-gradient(135deg, #28a745 0%, #9C27B0 100%);
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.2);
}

/* Modals & Scrollbars */
.border-end-lg {
    border-right: 1px solid #eef2f6;
}

.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: #f1f1f1; }
.modal-body::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }

/* =========================================
   PUBLIC JOB LISTING STYLES
   ========================================= */

/* FULL PAGE GRADIENT BACKGROUND */
body {
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%) fixed !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.page-wraper, .page-content {
    background: transparent !important;
}

/* Make the main content area float above the gradient */
.main-content-area {
    background: transparent !important;
}

/* Add a subtle glassmorphism effect to the filter sidebar to make it pop against the dark background */
.filter-sidebar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Button Gradients */
.btn-grad-hover {
    transition: all 0.3s ease;
}


/* Mobile Responsive */
@media (max-width: 991px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    .border-end-lg {
        border-right: none;
    }
    .sponsored-ad {
        display: block; /* ensure it stays visible below filters */
    }
}

@media (max-width: 768px) {
    .main-content-area { padding-top: 20px !important; padding-bottom: 40px !important; }
    .twm-right-section-panel { padding: 15px !important; }
    
    .media-thumbnail { height: 90px; }
    
    .sponsored-ad-inline {
        flex-direction: column !important;
        text-align: center;
    }
}