/* Free Jobs Bharat - Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --accent: #25D366;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --text-dark: #1a1a2e;
    --text-gray: #666;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --radius: 12px;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
/* Tiranga colors applied via .logo-free, .logo-jobs, .logo-bharat */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}
.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover { background: #e3f2fd; }
.btn-whatsapp {
    background: var(--accent);
    color: var(--white);
}
.btn-whatsapp:hover { background: #1da851; }
.btn-danger {
    background: #e53935;
    color: var(--white);
}
.btn-danger:hover { background: #c62828; }

/* Section */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}
.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.category-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.category-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.salary-tag {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Stats */
.stats-section {
    background: var(--light-bg);
    padding: 50px 20px;
}
.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item h2 {
    font-size: 2.5rem;
    color: var(--primary);
}
.stat-item p {
    color: var(--text-gray);
    font-weight: 500;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}
.testimonial-card .stars { color: #ffc107; margin-bottom: 10px; }
.testimonial-card p { color: var(--text-gray); margin-bottom: 15px; font-style: italic; }
.testimonial-card .name { font-weight: 600; color: var(--primary); }
.testimonial-card .role { font-size: 0.85rem; color: var(--text-gray); }

/* WhatsApp CTA */
.whatsapp-cta {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
}
.whatsapp-cta h2 { font-size: 2rem; margin-bottom: 15px; }
.whatsapp-cta p { opacity: 0.9; margin-bottom: 25px; font-size: 1.1rem; }

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 20px 20px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer h3 { margin-bottom: 15px; color: var(--primary-light); }
.footer a { color: #ccc; display: block; padding: 3px 0; }
.footer a:hover { color: var(--white); }
.footer-badge {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Jobs Page */
.jobs-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}
.filter-bar {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.filter-bar select, .filter-bar input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    flex: 1;
    min-width: 200px;
}
.jobs-grid {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.job-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}
.job-card:hover { box-shadow: var(--shadow-hover); }
.job-card h3 { color: var(--primary); margin-bottom: 8px; }
.job-meta { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 5px; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.job-tag {
    background: #e3f2fd;
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}
.job-tag.urgent { background: #ffebee; color: #c62828; }
.job-tag.new { background: #e8f5e9; color: #2e7d32; }
.job-actions { display: flex; gap: 10px; margin-top: 15px; }

/* Apply Form */
.form-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.form-group .error { border-color: #e53935; }
.error-text { color: #e53935; font-size: 0.85rem; display: none; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}
.contact-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.contact-card h3 { color: var(--primary); margin-bottom: 10px; }
.faq-section { max-width: 800px; margin: 40px auto 0; }
.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}
.faq-answer.open {
    padding: 15px 20px;
    max-height: 500px;
}

/* Admin */
.admin-login {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.admin-login h2 { color: var(--primary); margin-bottom: 25px; }
.admin-login input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: inherit;
}
.admin-login .error-msg {
    color: #e53935;
    display: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.admin-dashboard { display: none; }
.admin-dashboard.active { display: block; }
.dashboard-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: -30px auto 30px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.dash-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
}
.dash-stat-card h3 { font-size: 2rem; color: var(--primary); }
.dash-stat-card p { color: var(--text-gray); }
.admin-section {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}
.admin-section h2 { color: var(--primary); margin-bottom: 15px; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table th {
    background: var(--primary);
    color: var(--white);
    padding: 12px 15px;
    text-align: right;
    font-weight: 600;
}
.admin-table th:first-child { text-align: left; }
.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
}
.admin-table td:first-child { text-align: left; }
.admin-table tr:hover { background: #f5f5f5; }
.admin-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .jobs-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .filter-bar { flex-direction: column; }
}

/* Category Image Cards */
.category-card {
    padding: 0;
    overflow: hidden;
}
.category-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-card:hover .category-img img {
    transform: scale(1.05);
}
.category-body {
    padding: 20px;
    text-align: center;
}
.category-body h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.category-body p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Tiranga Logo Styling */
.nav-logo .logo-free {
    color: #FF9933;
}
.nav-logo .logo-jobs {
    color: #FFFFFF;
    text-shadow: -1px -1px 0 #000080, 1px -1px 0 #000080, -1px 1px 0 #000080, 1px 1px 0 #000080, 0 0 3px rgba(0,0,128,0.3);
}
.nav-logo .logo-bharat {
    color: #138808;
}

/* Admin nav link styling */
.nav-links .admin-link a {
    color: #FF9933;
    font-weight: 700;
    background: linear-gradient(135deg, #FF9933, #138808);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 2px solid #FF9933;
    border-radius: 6px;
    padding: 5px 12px !important;
    transition: all 0.3s;
}
.nav-links .admin-link a:hover {
    background: #FF9933;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    color: #fff;
}
