/* ===================================
   Form Mitra - Complete Stylesheet
   Government Jobs Portal - Final Version
   Updated: September 10, 2025
   =================================== */

/* CSS Variables */
:root {
    --primary-blue: #1e3a8a;
    --primary-dark: #1e2a5e;
    --orange-accent: #f97316;
    --orange-dark: #ea580c;
    --green-success: #10b981;
    --green-dark: #059669;
    --light-gray: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1e293b;
    --gray-900: #111827;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================================
   HEADER STYLES
   =================================== */

/* Top Navigation Bar */
.top-nav-bar {
    background: var(--gray-800);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.contact-info span {
    color: var(--gray-300);
    font-size: 0.875rem;
}

.social-links .social-link {
    color: var(--gray-300);
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links .social-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Main Header */
.main-header {
    background: var(--primary-blue);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
    background: var(--primary-blue) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--white) !important;
    text-decoration: none;
}

.govt-logo {
    width: 75px;
    height: 50px;
    margin-right: 0.75rem;
    color: var(--primary-blue);
    border-radius: 5px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.125rem;
}

.brand-text {
    color: var(--white);
}

.brand-accent {
    color: var(--orange-accent);
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-form .input-group {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-form .form-control {
    border: none;
    background: var(--white);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 0;
    outline: none;
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
    outline: none;
}

.search-form .form-control::placeholder {
    color: var(--gray-400);
    font-style: italic;
}

.search-form .btn-search {
    background: var(--orange-accent);
    border: none;
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
}

.search-form .btn-search:hover {
    background: var(--orange-dark);
    color: var(--white);
}

/* Dashboard Button */
.dashboard-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
    text-decoration: none;
}

/* Secondary Navigation */
.secondary-nav {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    text-decoration: none;
}

.nav-item i {
    font-size: 0.75rem;
    width: 14px;
}

/* Mobile Navigation */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    color: var(--white);
    font-size: 1.125rem;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 42, 94, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23f59e0b"/><stop offset="50%" stop-color="%23ea580c"/><stop offset="100%" stop-color="%231e3a8a"/></linearGradient></defs><rect fill="url(%23bg)" width="1200" height="400" opacity="0.3"/><g fill="rgba(0,0,0,0.2)"><circle cx="600" cy="200" r="80"/><path d="M500 150h200l-100 100z"/></g></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 450px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
}

.apply-now-btn {
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-dark) 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    text-shadow: none;
}

.apply-now-btn:hover {
    background: linear-gradient(135deg, var(--orange-dark) 0%, #dc2626 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
}

.apply-now-btn i {
    transition: var(--transition);
}

.apply-now-btn:hover i {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats .stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-accent);
    display: block;
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

/* ===================================
   QUICK ACCESS CARDS
   =================================== */

.quick-access-section {
    background: var(--gray-50);
    padding: 4rem 0 3rem;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.quick-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--orange-accent) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.quick-card:hover::before {
    transform: scaleX(1);
}

.quick-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    position: relative;
    box-shadow: var(--shadow-md);
}

.quick-card-icon.results {
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-dark) 100%);
}

.quick-card-icon.admit-cards {
    background: linear-gradient(135deg, var(--green-success) 0%, var(--green-dark) 100%);
}

.quick-card-icon.answer-keys {
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-dark) 100%);
}

.quick-card h5 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.stats-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================
   MAIN CONTENT
   =================================== */

.main-content {
    padding: 4rem 0;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.filters-toggle {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filters-toggle:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(30, 58, 138, 0.05);
}


/* Search highlight styles */
.highlight {
    background-color: #fef3c7;
    color: #92400e;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.job-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

.no-jobs-found {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}




/* ===================================
   JOB CARDS
   =================================== */

.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--orange-accent) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: scaleX(0);
    transition: var(--transition);
}

.job-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-content {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.job-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.job-info {
    flex: 1;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    cursor: pointer;
    transition: var(--transition);
}

.job-title:hover {
    color: var(--primary-blue);
}

.job-title a {
    color: inherit;
    text-decoration: none;
}

.job-title a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.job-organization {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.job-details {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.job-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.job-badge.latest {
    background: linear-gradient(135deg, var(--green-success) 0%, var(--green-dark) 100%);
}

.job-badge.new {
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-dark) 100%);
}

.job-views {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    text-align: right;
}

.apply-btn {
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-dark) 100%);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.apply-btn:hover {
    background: linear-gradient(135deg, var(--orange-dark) 0%, #dc2626 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.job-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Job Card Compact */
.job-card-compact {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.job-card-compact:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

/* ===================================
   HOMEPAGE SPECIFIC STYLES
   =================================== */

.job-search-section .search-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.latest-jobs-section {
    background: var(--gray-50);
}

.category-card {
    display: block;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--green-success) 0%, var(--green-dark) 100%);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: inherit;
    text-decoration: none;
}

.category-card:hover::before {
    left: 0;
}

.category-card-inner h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--green-success);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    opacity: 1;
    transform: translateX(5px);
}

/* ===================================
   PAGE HEADERS
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--white);
}

.page-stats .stat-item {
    text-align: center;
    padding: 1rem;
}

.page-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-accent);
}

.page-stats .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ===================================
   SIDEBAR
   =================================== */

.sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.jobs-sidebar {
    position: sticky;
    top: 140px;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--orange-accent);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-widget .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stats-widget .stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.stats-widget .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.category-item:hover {
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
}

.category-count {
    background: var(--orange-accent);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===================================
   FOOTER STYLES
   =================================== */

.main-footer {
    background: var(--gray-800) !important;
    color: #e2e8f0;
    padding: 4rem 0 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.main-footer .container {
    position: relative;
    z-index: 2;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-govt-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--orange-accent) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-brand-accent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange-accent);
}

.footer-tagline {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: -4px;
}

.footer-description {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Footer Titles */
.footer-title {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--orange-accent) 100%);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
    transform: translateX(4px);
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    margin-right: 8px;
    transition: var(--transition);
    color: var(--orange-accent);
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer .social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer .social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

.footer .social-link.facebook { background: #1877f2; }
.footer .social-link.twitter { background: #1da1f2; }
.footer .social-link.youtube { background: #ff0000; }
.footer .social-link.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.footer .social-link.linkedin { background: #0077b5; }
.footer .social-link.telegram { background: #0088cc; }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    margin-top: 2rem;
}

.copyright p {
    margin: 0;
    color: #d1d5db;
}

.copyright .small {
    color: #9ca3af;
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.25rem 0;
}

.footer-nav a:hover {
    color: var(--orange-accent);
}

/* ===================================
   FORMS & INPUTS
   =================================== */

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--green-success) 0%, var(--green-dark) 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--green-dark) 0%, #047857 100%);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   PAGINATION
   =================================== */

.pagination-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination .page-link {
    color: var(--primary-blue);
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.pagination .page-item.active .page-link {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.pagination .page-link:hover {
    background: var(--light-gray);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-primary { color: var(--primary-blue) !important; }
.text-orange { color: var(--orange-accent) !important; }
.text-success { color: var(--green-success) !important; }
.bg-primary { background-color: var(--primary-blue) !important; }
.bg-orange { background-color: var(--orange-accent) !important; }
.bg-success { background-color: var(--green-success) !important; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large screens */
@media (max-width: 1200px) {
    .search-container {
        max-width: 300px;
        margin: 0 1rem;
    }
    
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .search-container {
        display: none;
    }
    
    .secondary-nav {
        display: none !important;
    }
    
    .sidebar,
    .jobs-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .job-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .job-actions {
        align-items: center;
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background: rgba(0, 0, 0, 0.1);
        border-radius: var(--radius);
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9) !important;
        transition: var(--transition);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white) !important;
    }
    
    .dashboard-btn {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .footer-nav {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Small screens */
@media (max-width: 768px) {
    .hero-section {
        min-height: 350px;
        text-align: center;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .quick-access-section {
        padding: 3rem 0 2rem;
        margin-top: -60px;
    }
    
    .quick-card {
        padding: 2rem 1.25rem;
    }
    
    .quick-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: 3rem 0;
    }
    
    .job-card {
        padding: 1.25rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .top-nav-bar {
        display: none !important;
    }
    
    .main-footer {
        padding: 3rem 0 0;
    }
    
    .footer-brand {
        justify-content: center;
        text-align: center;
    }
    
    .footer-widget {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .govt-logo {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .apply-now-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .quick-card {
        padding: 1.5rem 1rem;
    }
    
    .quick-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .job-avatar {
        width: 50px;
        height: 50px;
    }
    
    .job-title {
        font-size: 1.125rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
}

/* ===================================
   ACCESSIBILITY & SPECIAL MODES
   =================================== */

/* Screen Reader Only */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus,
.dashboard-btn:focus,
.social-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .jobs-sidebar,
    .apply-btn,
    .filters-toggle,
    .secondary-nav,
    .top-nav-bar,
    .main-footer {
        display: none !important;
    }
    
    .job-card {
        break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
    
    .hero-section {
        background: #f8fafc !important;
        color: #000 !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Selection Color */
::selection {
    background-color: rgba(30, 58, 138, 0.3);
    color: var(--text-dark);
}

::-moz-selection {
    background-color: rgba(30, 58, 138, 0.3);
    color: var(--text-dark);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.pulse-hover:hover {
    animation: pulse 0.6s ease-in-out infinite;
}

/* Smooth appearance for elements */
.job-card,
.quick-card,
.category-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.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; }

.quick-card:nth-child(1) { animation-delay: 0.2s; }
.quick-card:nth-child(2) { animation-delay: 0.4s; }
.quick-card:nth-child(3) { animation-delay: 0.6s; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--orange-accent) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   FINAL OPTIMIZATIONS
   =================================== */

/* Performance optimizations */
.job-card,
.quick-card,
.category-card {
    will-change: transform;
}

.job-card:hover,
.quick-card:hover,
.category-card:hover {
    will-change: auto;
}

/* Ensure proper stacking context */
.hero-section {
    z-index: 1;
}

.quick-access-section {
    z-index: 2;
}

.main-header {
    z-index: 1000;
}

/* Final responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .search-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
}
