/* static/job_portal_style.css */

/* --- Fonts and Root Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --jp-primary: #16a34a; /* Main Green */
    --jp-primary-dark: #15803d;
    --jp-secondary: #4f46e5; /* A nice Indigo/Blue */
    --jp-text-dark: #1f2937; 
    --jp-text-light: #6b7280;
    --jp-bg-light: #f9fafb; 
    --jp-border-color: #e5e7eb;
}

body.job-portal-body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: var(--jp-text-dark);
}

/* --- Header --- */
.jp-header {
    background-color: var(--jp-primary);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.jp-header .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
}
.jp-header .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.jp-header .nav-link:hover, .jp-header .nav-link.active {
    color: white !important;
    border-bottom-color: white;
}
/* In static/job_portal_style.css, at the end of the Header section */

.jp-header .btn-signin,
.jp-header .user-dropdown .dropdown-toggle {
    background-color: white !important;
    color: var(--jp-text-dark) !important;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jp-header .btn-signin:hover,
.jp-header .user-dropdown .dropdown-toggle:hover {
    background-color: #f3f4f6;
    transform:scale(1.05);
    z-index: 2;
}



.jp-header .user-dropdown .dropdown-toggle::after {
    display: inline-block; /* Make sure the Bootstrap arrow is visible */
}

.jp-header .user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; /* Slightly smaller icon */
    height: 28px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: var(--jp-text-light);
}
/* --- Hero Section --- */
.jp-hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to right,#e4f7f4,#d5f7f1, #fff);
}
.jp-hero .highlight-green { color: #15803d; }
.jp-hero .highlight-blue { color: #4f46e5; }
.jp-hero .tagline {
    display: inline-block;
    background-color: #fff;
    color: black;
    border: 1px solid #a7f3d0;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 300;
    font-color:blue;
}
.jp-hero .jp-section-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.jp-hero .jp-section-subtitle {
    font-size: 1.25rem;
    color: var(--jp-text-light);
    max-width: 650px;
    margin: 1.5rem auto 2.5rem auto;
}
.jp-hero .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.1s ease-in-out;
}
.jp-hero .btn-primary { background-color: var(--jp-primary); color: white
; min-width: 220px; }
.jp-hero .btn-primary:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2); z-index: 2;}
.jp-hero .btn-secondary {
    background-color: white;
    color: var(--jp-secondary); /* Blue text */
    border: 1px solid var(--jp-secondary); /* Blue border */
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.jp-hero .btn-secondary:hover {
    background-color: var(--jp-secondary); /* Fill blue on hover */
    color: white;
    transform: scale(1.05);
}

.jp-hero .scroll-down { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-15px); } 60% { transform: translateY(-8px); } }

/* --- Feature Sections --- */
.jp-section { padding: 6rem 0; }
.jp-section .jp-section-title { font-size: 3.25rem; font-weight: 800;}
.jp-section .jp-section-subtitle{font-size: 1.25rem; color:#657070;} 
.feature-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    border: 1px solid var(--jp-border-color);
    transition: all 0.3s ease;
}
.feature-card:hover {
  transform: scale(1.05); /* Scales card up to 105% */
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
  z-index: 2;
}

.feature-card .icon-bg {
    width: 60px; height: 60px; border-radius: 0.75rem;
    background-color: #e0e7ff; color: var(--jp-secondary);
    display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}
.feature-card .step-number { position: absolute; top: 0.75rem; right: 0.75rem; background-color: #f3f4f6; color: #9ca3af; width: 1.75rem; height: 1.75rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.feature-card ul { list-style-type: none; padding-left: 0; }
.feature-card ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.feature-card ul li::before { content: '•'; color: var(--jp-primary); font-weight: bold; display: inline-block; position: absolute; left: 0; }

/* static/job_portal_style.css */

/* --- Footer --- */
.jp-footer {
    background-color: #1f2937; /* Dark Slate Blue/Gray */
    color: #9ca3af; /* text-gray-400 */
    padding: 4rem 0 0 0;
    font-size: 0.9rem;
}

.jp-footer .footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* The little colored line under the titles */
.jp-footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--jp-primary), var(--jp-secondary));
}

.jp-footer .footer-text {
    color: #d1d5db; /* text-gray-300 */
    line-height: 1.6;
}

.jp-footer .footer-links li {
    margin-bottom: 0.75rem;
}

.jp-footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}
.jp-footer a:hover {
    color: white;
}

/* Newsletter Form */
.jp-footer .newsletter-form .form-control {
    background-color: #374151; /* A slightly lighter dark */
    border-color: #4b5563;
    color: white;
    border-radius: 0.5rem 0 0 0.5rem;
}
.jp-footer .newsletter-form .form-control::placeholder {
    color: #9ca3af;
}
.jp-footer .newsletter-form .btn-subscribe {
    background: linear-gradient(to right, #10b981, #16a34a); /* Green gradient */
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Social Media Icons */
.jp-footer .social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #374151;
    color: #d1d5db;
    margin-right: 0.75rem;
    transition: all 0.2s;
}
.jp-footer .social-icons .social-icon:hover {
    background-color: var(--jp-primary);
    color: white;
    transform: translateY(-2px);
}

/* Bottom Bar */
.jp-footer .footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #374151;
}
/* static/job_portal_style.css */

/* ================================== */
/* BROWSE JOBS PAGE STYLES
/* ================================== */

/* --- Page Header --- */
.jp-page-header {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--jp-bg-light);
}
.jp-page-header .jp-section-title {
    color: var(--jp-primary);
}

/* --- Filter & Results Bar --- */
.jp-results-bar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--jp-border-color);
}
.jp-results-bar .job-count {
    font-weight: 600;
    color: var(--jp-text-dark);
}
.jp-results-bar .btn-filters {
    border: 1px solid var(--jp-border-color);
    font-weight: 500;
    color: var(--jp-text-light);
}
.jp-results-bar .btn-filters:hover {
    background-color: var(--jp-bg-light);
}

/* --- Job Cards (Browse Page) --- */
.jp-browse-grid {
    padding: 3rem 0;
}
.jp-job-card {
    background-color: white;
    border: 1px solid var(--jp-border-color);
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.jp-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07);
}

.jp-job-card .job-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700;
    color: var(--jp-text-dark);
}
.jp-job-card .job-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--jp-primary);
    background-color: #ecfdf5; /* A light green */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}
.jp-job-card .job-company-info {
    font-size: 0.875rem;
    color: var(--jp-text-light);
}
.jp-job-card .job-company-info i {
    width: 1rem; /* for alignment */
    text-align: center;
}
.jp-job-card .job-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f3f4f6; /* bg-gray-100 */
    color: #4b5563; /* text-gray-600 */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}
.jp-job-card .btn-apply {
    background-color: var(--jp-primary);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
}
.jp-job-card .btn-apply:hover {
    background-color: var(--jp-primary-dark);
}


/* --- Collapsible Filter Bar --- */
.jp-filter-bar {
    background-color: white;
    border: 1px solid var(--jp-border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Inputs inside the filter bar */
.jp-filter-bar .form-control,
.jp-filter-bar .form-select {
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--jp-bg-light);
    border: 1px solid var(--jp-border-color);
}

.jp-filter-bar .form-control:focus,
.jp-filter-bar .form-select:focus {
    background-color: white;
    border-color: var(--jp-primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Green border and slight scale when filters are active */
#filtersCollapse.show .jp-filter-bar {
    border: 2px solid var(--jp-primary) !important;
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.15) !important;
    transform: scale(1.01);
}

/* Animate "Apply Filters" button on hover */
button.btn-success {
    transition: all 0.3s ease !important;
    background-color: var(--jp-primary, #25D366);
    border: 1px solid var(--jp-primary, #25D366);
    font-weight: 600;
}

button.btn-success:hover {
    background-color: #1ebe5d !important;
    border: 2px solid #1ebe5d !important;
    color: white !important;
}
/* Filters toggle button base style */
.btn-filters {
    background-color: #f8f9fa; /* Light gray background */
    color: #212529;
    border: 1px solid var(--jp-border-color, #ced4da);
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

/* Hover effect: scale + green border */
.btn-filters:hover {
    transform: scale(1.05);
    border-color: var(--jp-primary, #25D366);
    color: var(--jp-primary, #25D366);
    background-color: rgba(37, 211, 102, 0.05); /* subtle green highlight */
}

/* Optional: active state after clicking */
.btn-filters:focus,
.btn-filters[aria-expanded="true"] {
    border: 2px solid var(--jp-primary, #25D366);
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--jp-primary, #25D366);
    outline: none;
}

.whatsapp-channel-btn {
    display: inline-block;
    background-color: #25D366 !important;
    color: #fff !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    border: none !important;
}
.whatsapp-channel-btn:hover {
    background-color: #1ebe5d !important;
    transform: scale(1.05) !important;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2) !important;
    text-decoration: none !important;
    z-index: 2 !important;
}
#browse {
    font-size: 2.8rem;
    font-weight: 900;
    }
.card {
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15); /* Stronger initial shadow */
        border: 1px solid var(--custom-green); /* Added a subtle green border */
        border-radius: 0.5rem; /* Slightly more rounded corners */
        transition: all 0.3s ease-in-out; /* Smooth transition for transform, shadow, and potentially border color */
    }
