/* 
 * Main CSS for SarkariExamInfo Frontend
 * assets/css/main.css
 */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --primary-50: #eff6ff;
    
    /* Secondary Colors */
    --secondary: #10b981;
    --secondary-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --purple: #8b5cf6;
    
    /* Neutral Colors */
    --dark: #1e293b;
    --dark-light: #334155;
    --light: #f8fafc;
    --light-dark: #f1f5f9;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-50: #f9fafb;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1 0 auto;
    padding-top: 80px;
}

/* ===== HEADER ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
    transition: transform 0.3s ease;
}

.main-header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: calc(100% - 40px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px auto;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-form {
    position: relative;
}

.search-form .input-group {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    border: 2px solid transparent;
}

.search-form .input-group:focus-within {
    border-color: var(--warning);
    transform: translateY(-2px);
}

.search-form input {
    flex: 1;
    border: none;
    padding: 18px 24px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark);
    outline: none;
    background: transparent;
}

.search-form input::placeholder {
    color: var(--gray-light);
}

.search-form button {
    padding: 0 30px;
    background: var(--warning);
    color: var(--white);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-form button:hover {
    background: #d97706;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
    display: block;
}

.stat-card .count {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-card .label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background: var(--light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--dark);
}

.section-header h2 i {
    color: var(--primary);
    font-size: 1.8rem;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    transition: var(--transition);
    white-space: nowrap;
}

.view-all:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== CARDS SYSTEM ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-dark);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* Card Badges */
.card-badges {
    padding: 15px 15px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.urgent {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.badge.new {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.badge.featured {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.badge.posts {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.badge.result {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge.admit {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Card Body */
.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--dark);
}

.card-org {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-desc {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--light-dark);
}

.detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 0.9rem;
}

.detail i {
    color: var(--primary);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Card Footer */
.card-footer {
    padding: 20px;
    background: var(--light);
    border-top: 1px solid var(--light-dark);
    display: flex;
    gap: 12px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-family: inherit;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    color: var(--primary);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
    transition: var(--transition);
}

.category-card:hover i {
    transform: scale(1.1);
}

.category-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--dark);
    transition: var(--transition);
}

.category-card span {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== JOB DETAIL PAGE ===== */
.job-detail-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px 0;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.job-detail-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(30deg);
}

.job-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.meta-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.meta-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
    color: white;
}

.meta-item .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.meta-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.tabs {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    border: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    background: var(--white);
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== ALERTS ===== */
.alert {
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--gray-light);
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #d1d5db;
}

.contact-info i {
    color: var(--primary-light);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-success { color: var(--secondary); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-gray { color: var(--gray); }
.text-white { color: white; }

.bg-primary { background: var(--primary); }
.bg-light { background: var(--light); }
.bg-white { background: var(--white); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 50%; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Header Mobile */
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        padding: 80px 20px 20px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-links a {
        padding: 16px 20px;
        justify-content: flex-start;
        font-size: 1rem;
    }
    
    /* Hero Mobile */
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .search-form .input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 10px;
    }
    
    .search-form input,
    .search-form button {
        width: 100%;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }
    
    .search-form input {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Section Mobile */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .view-all {
        width: 100%;
        justify-content: center;
    }
    
    /* Cards Mobile */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Categories Mobile */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Job Detail Mobile */
    .job-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .search-container,
    .view-all,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
}
/* ===== BUTTON CUSTOMIZATION ===== */

/* Primary Button (View Details) - Default */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 0;
}

/* Secondary Button (Apply Now) - Default */
.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== ALTERNATIVE STYLES ===== */

/* Style 1: Rounded Buttons */
.btn-rounded {
    border-radius: 50px !important;
}

/* Style 2: Outlined Only */
.btn-outline {
    background: transparent !important;
    border: 2px solid;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary) !important;
    color: white;
}

/* Style 3: 3D Effect */
.btn-3d {
    box-shadow: 0 4px 0 var(--primary-dark);
    transform: translateY(0);
}

.btn-3d:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 var(--primary-dark);
}

.btn-3d:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 0 var(--primary-dark);
}

/* Style 4: Gradient Buttons */
.btn-gradient-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-gradient-secondary {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
}

.btn-gradient-success {
    background: linear-gradient(45deg, #43e97b 0%, #38f9d7 100%);
    border: none;
    color: white;
}

/* Style 5: Icon Only Buttons */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* Style 6: Ghost Buttons */
.btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Style 7: Shadow Buttons */
.btn-shadow {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-shadow:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ===== SIZE VARIATIONS ===== */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-md {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 1.25rem;
}

/* ===== COLOR VARIATIONS ===== */
.btn-green {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-green:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
}

.btn-red {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-red:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.btn-yellow {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

.btn-yellow:hover {
    background: #d97706;
    border-color: #d97706;
    color: white;
}

.btn-purple {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

.btn-purple:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

/* ===== ANIMATED BUTTONS ===== */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.btn-shake:hover {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-bounce:hover {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== SPECIAL EFFECTS ===== */
.btn-glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.8);
}

.btn-border-anim {
    position: relative;
    border: none;
}

.btn-border-anim::before,
.btn-border-anim::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.btn-border-anim::before {
    top: 0;
    right: 0;
}

.btn-border-anim::after {
    bottom: 0;
    left: 0;
}

.btn-border-anim:hover::before,
.btn-border-anim:hover::after {
    width: 100%;
}
/* Results Management Specific Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Table Styling */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.02);
}

.table tbody tr:last-child td {
    border-bottom: 1px solid #dee2e6;
}

/* Status Badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.35em 0.65em;
    margin-right: 0.25rem;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.bg-primary {
    background-color: #007bff !important;
}

/* Action Buttons */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-outline-primary:hover, 
.btn-outline-info:hover, 
.btn-outline-secondary:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Bulk Actions Form */
#bulkForm {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
}

#bulkForm .form-select {
    border-color: #ced4da;
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Filter Section */
.card .card-body .row.g-3 {
    margin-bottom: -0.5rem;
}

.card .card-body .row.g-3 > * {
    padding-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert Styling */
.alert {
    border: none;
    border-left: 4px solid transparent;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d1e7dd;
    border-left-color: #0f5132;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: #842029;
    color: #842029;
}

.alert .btn-close {
    padding: 1rem;
}

/* Checkbox Styling */
input[type="checkbox"] {
    width: 1.1em;
    height: 1.1em;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Empty State */
.text-center.py-5 {
    padding: 3rem 1rem !important;
}

.text-center.py-5 i.fa-chart-line {
    opacity: 0.5;
    margin-bottom: 1rem;
}

.text-center.py-5 h5 {
    color: #6c757d;
    font-weight: 500;
}

/* Toolbar Buttons */
.btn-toolbar .btn {
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .col-md-9 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
    }
    
    .card-header .btn-group {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }
    
    .btn-group.btn-group-sm {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .btn-group.btn-group-sm .btn {
        margin-bottom: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .btn-toolbar,
    .card-header .btn-group,
    .btn-outline-secondary,
    .btn-outline-success,
    #bulkForm,
    .pagination,
    .btn-group .btn,
    .alert {
        display: none !important;
    }
    
    .table {
        border: 1px solid #000;
    }
    
    .table th {
        background-color: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* Hover Effects */
.btn-outline-primary:hover i,
.btn-outline-info:hover i,
.btn-outline-secondary:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Animation for new items */
@keyframes highlightNew {
    0% { background-color: rgba(255, 193, 7, 0.1); }
    100% { background-color: transparent; }
}

.badge.bg-warning {
    animation: highlightNew 2s ease-in-out infinite alternate;
}

/* Add to your existing CSS */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.sticky-header.hidden {
    transform: translateY(-100%);
}


