/* =========================================
   ===== JOB PAGE CUSTOM STYLES =====
   ========================================= */

:root {
    --primary-green: #10b981;
    --light-green: #e8f5e9;
    --dark-blue: #1a2b4c;
    --footer-bg: #1a2332;
    --text-gray: #4b5563;
    --bg-gradient-start: #f8fafc;
    --bg-gradient-end: #f0fdf4;
}

.job-section {
    background: linear-gradient(to bottom, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 4rem 0;
    min-height: 100vh;
}

.job-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.job-page-title span {
    color: var(--primary-green);
}

.job-page-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* =========================================
   ===== MODERN JOB CARD STYLES =====
   ========================================= */

.modern-job-card {
    background-color: #ffffff;
    border-radius: 0.75rem; 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, border-color 0.3s ease;
}

.modern-job-card:hover {
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15); 
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--light-green);
    color: var(--primary-green);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--primary-green);
}

.card-main-content {
    padding: 1.25rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.card-header-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    margin-top: 1rem;
}

.company-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--light-green); 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary-green); 
    overflow: hidden;
    font-weight: bold;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-wrapper {
    flex: 1;
    min-width: 0; /* Ensures truncation works */
}

.title-wrapper h2.job-title-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-wrapper p.company-name-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray); 
    margin: 0.25rem 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2x2 Grid for Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0.75rem;
    column-gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 500;
}

.detail-item span.icon {
    margin-right: 0.35rem;
}

/* Tags */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto; /* Pushes to bottom of main content */
}

.job-tag {
    background-color: var(--light-green);
    color: var(--primary-green);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Footer & Buttons */
.card-footer-buttons {
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    background-color: rgba(249, 250, 251, 0.5);
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-card-view {
    flex: 1;
    padding: 0.5rem 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: var(--dark-blue);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-card-view:hover {
    background-color: #f3f4f6;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-card-apply {
    flex: 1;
    padding: 0.5rem 0;
    background-color: var(--primary-green); 
    color: #ffffff;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    cursor: pointer;
}

.btn-card-apply:hover {
    background-color: #0d9668; 
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    color: #ffffff;
}

/* Custom Modal Button overrides to match theme */
.btn-theme-primary {
    background-color: var(--primary-green) !important;
    color: white !important;
    border: none;
}
.btn-theme-primary:hover {
    background-color: #0d9668 !important;
}
/* =========================================
   ===== CUSTOM SVG ICONS ALIGNMENT =====
   ========================================= */
.custom-icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor; /* Automatically takes the color of the text */
    margin-right: 0.35rem;
    flex-shrink: 0;
    display: inline-block;
}

.text-primary-green {
    color: var(--primary-green) !important;
}
/* =========================================
   ===== PREMIUM MODAL & SVG ICONS CSS =====
   ========================================= */

/* Main Modal Content */
.custom-modal-content {
    border: none;
    border-radius: 0.75rem; /* Match image rounding */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: #ffffff;
}

/* Company Logo Box in Header */
.company-logo-square {
    width: 65px;
    height: 65px;
    border-radius: 0.5rem; /* Rounded square design */
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    background-color: #ffffff;
}

/* Pill Badges (Location, Work Mode, etc.) */
.job-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background-color: #f3f4f6; /* Light gray */
    color: #4b5563; /* Dark gray text */
    border-radius: 50rem; /* Full pill shape */
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
}

/* Specific Pill for Salary */
.job-pill-success {
    background-color: #ecfdf5; /* Light green */
    color: var(--primary-green); /* Darker green text */
    border: 1px solid #a7f3d0;
    font-weight: 600;
}

/* SVG icons inside pills */
.custom-icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    flex-shrink: 0;
    display: inline-block;
}

/* Custom Green Checkmark Lists */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
}

/* Base64 Encoded Green Check SVG Image */
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Apply Button (Solid Green + Hover state) */
.btn-theme-primary {
    background-color: var(--primary-green) !important;
    color: white !important;
    border: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease-in-out, transform 0.1s;
}

.btn-theme-primary:hover {
    background-color: #0d9668 !important;
    transform: translateY(-1px);
}


/* =========================================
   ===== APPLY MODAL SPECIFIC CSS ======
   ========================================= */

/* Make Modal Corners Rounded */
.custom-apply-modal {
    border-radius: 1rem;
}

/* Custom Input Field Styling */
.custom-input {
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    box-shadow: none !important; /* Removes default blue glow */
    transition: border-color 0.2s ease-in-out;
}

/* Green border on focus */
.custom-input:focus {
    border-color: var(--primary-green);
    background-color: #ffffff;
}

/* File input text styling */
.custom-input[type="file"]::file-selector-button {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    margin-right: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.custom-input[type="file"]::file-selector-button:hover {
    background-color: #e5e7eb;
}
/* =========================================
   ===== JOB PAGE CUSTOM STYLES =====
   ========================================= */

:root {
    --primary-green: #10b981;
    --light-green: #e8f5e9;
    --dark-blue: #1a2b4c;
    --footer-bg: #1a2332;
    --text-gray: #4b5563;
    --bg-gradient-start: #f8fafc;
    --bg-gradient-end: #f0fdf4;
}

.job-section {
    background: linear-gradient(to bottom, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 4rem 0;
    min-height: 100vh;
}

.job-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.job-page-title span {
    color: var(--primary-green);
}

.job-page-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* =========================================
   ===== MODERN JOB CARD STYLES =====
   ========================================= */

.modern-job-card {
    background-color: #ffffff;
    border-radius: 0.75rem; 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, border-color 0.3s ease;
}

.modern-job-card:hover {
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15); 
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--light-green);
    color: var(--primary-green);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--primary-green);
}

.card-main-content {
    padding: 1.25rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.card-header-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    margin-top: 1rem;
}

.company-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--light-green); 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary-green); 
    overflow: hidden;
    font-weight: bold;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-wrapper {
    flex: 1;
    min-width: 0; /* Ensures truncation works */
}

.title-wrapper h2.job-title-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-wrapper p.company-name-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray); 
    margin: 0.25rem 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2x2 Grid for Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0.75rem;
    column-gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 500;
}

.detail-item span.icon {
    margin-right: 0.35rem;
}

/* Tags */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto; /* Pushes to bottom of main content */
}

.job-tag {
    background-color: var(--light-green);
    color: var(--primary-green);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Footer & Buttons */
.card-footer-buttons {
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    background-color: rgba(249, 250, 251, 0.5);
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-card-view {
    flex: 1;
    padding: 0.5rem 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: var(--dark-blue);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-card-view:hover {
    background-color: #f3f4f6;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-card-apply {
    flex: 1;
    padding: 0.5rem 0;
    background-color: var(--primary-green); 
    color: #ffffff;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    cursor: pointer;
}

.btn-card-apply:hover {
    background-color: #0d9668; 
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    color: #ffffff;
}

/* Custom Modal Button overrides to match theme */
.btn-theme-primary {
    background-color: var(--primary-green) !important;
    color: white !important;
    border: none;
}
.btn-theme-primary:hover {
    background-color: #0d9668 !important;
}
/* =========================================
   ===== CUSTOM SVG ICONS ALIGNMENT =====
   ========================================= */
.custom-icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor; /* Automatically takes the color of the text */
    margin-right: 0.35rem;
    flex-shrink: 0;
    display: inline-block;
}

.text-primary-green {
    color: var(--primary-green) !important;
}
/* =========================================
   ===== PREMIUM MODAL & SVG ICONS CSS =====
   ========================================= */

/* Main Modal Content */
.custom-modal-content {
    border: none;
    border-radius: 0.75rem; /* Match image rounding */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: #ffffff;
}

/* Company Logo Box in Header */
.company-logo-square {
    width: 65px;
    height: 65px;
    border-radius: 0.5rem; /* Rounded square design */
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    background-color: #ffffff;
}

/* Pill Badges (Location, Work Mode, etc.) */
.job-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background-color: #f3f4f6; /* Light gray */
    color: #4b5563; /* Dark gray text */
    border-radius: 50rem; /* Full pill shape */
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
}

/* Specific Pill for Salary */
.job-pill-success {
    background-color: #ecfdf5; /* Light green */
    color: var(--primary-green); /* Darker green text */
    border: 1px solid #a7f3d0;
    font-weight: 600;
}

/* SVG icons inside pills */
.custom-icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    flex-shrink: 0;
    display: inline-block;
}

/* Custom Green Checkmark Lists */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
}

/* Base64 Encoded Green Check SVG Image */
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Apply Button (Solid Green + Hover state) */
.btn-theme-primary {
    background-color: var(--primary-green) !important;
    color: white !important;
    border: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease-in-out, transform 0.1s;
}

.btn-theme-primary:hover {
    background-color: #0d9668 !important;
    transform: translateY(-1px);
}


/* =========================================
   ===== APPLY MODAL SPECIFIC CSS ======
   ========================================= */

/* Make Modal Corners Rounded */
.custom-apply-modal {
    border-radius: 1rem;
}

/* Custom Input Field Styling */
.custom-input {
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    box-shadow: none !important; /* Removes default blue glow */
    transition: border-color 0.2s ease-in-out;
}

/* Green border on focus */
.custom-input:focus {
    border-color: var(--primary-green);
    background-color: #ffffff;
}

/* File input text styling */
.custom-input[type="file"]::file-selector-button {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    margin-right: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.custom-input[type="file"]::file-selector-button:hover {
    background-color: #e5e7eb;
}