/* Grid Container */
.rjb-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Card Wrapper - Left Aligned Structure */
.rjb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-align: left !important;
    align-items: flex-start !important;
}

.rjb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

/* 1st Line: Logo (Left) + Posted Time (Right) */
.rjb-card-row-1 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 12px !important;
}

.rjb-logo-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rjb-company-logo-img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

.rjb-avatar {
    width: 48px !important;
    height: 48px !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
}

.rjb-posted-time {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

/* 2nd Line: Job Title */
.rjb-card-title {
    margin: 0 0 2px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    width: 100%;
}

.rjb-card-title a {
    color: #004182 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* 3rd Line: Company Name */
.rjb-company-name {
    margin: 0 0 1px 0 !important;
    color: #475569 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: left !important;
    line-height: 1.2 !important;
    width: 100%;
}

/* 4th Line: Work Mode | Job Type */
.rjb-card-meta {
    margin: 0 0 16px 0 !important;
    color: #64748b !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-align: left !important;
    line-height: 1.2 !important;
    width: 100%;
}

/* Divider & Buttons */
.rjb-card-divider {
    height: 1px;
    background-color: #edf2f7;
    width: 100%;
    margin-bottom: 16px;
    margin-top: auto;
}

.rjb-card-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    width: 100%;
}

.rjb-btn {
    flex: 1;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.rjb-btn-apply {
    background-color: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.rjb-btn-share {
    background-color: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

/* Single Job Details Page Styling */
.rjb-full-width-details {
    width: 100%;
    box-sizing: border-box;
}

.rjb-single-meta-header {
    margin-bottom: 20px;
    margin-top: -10px;
}

.rjb-single-company {
    font-size: 17px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    margin: 0 0 1px 0 !important;
    line-height: 1.2 !important;
}

.rjb-single-posted-time {
    font-size: 14px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.rjb-single-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.rjb-single-section h2 {
    font-size: 20px;
    margin-top: 0;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    color: #0f172a;
}

.rjb-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
    font-size: 15px;
}

.rjb-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rjb-skill-pill {
    background-color: #f0f2f5;
    color: #475569;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.rjb-summary-text, .rjb-jd-content {
    line-height: 1.6;
    color: #334155;
}

/* Links Table */
.rjb-links-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    font-size: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.rjb-links-table th, .rjb-links-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.rjb-links-table th { background-color: #f8fafc; color: #0f172a; font-weight: 700; }
.rjb-links-table tr:last-child td { border-bottom: none; }

.rjb-table-link {
    color: #004182 !important;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: none !important;
}

.rjb-no-link { color: #94a3b8; }

/* Responsive */
@media (max-width: 768px) {
    .rjb-grid-container, .rjb-details-grid { grid-template-columns: 1fr; }
    .rjb-btn { font-size: 11px; padding: 8px 4px; }
}