/* RKMSJOB Custom Stylesheet & Design System */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0f172a;
    --accent-color: #10b981;
    --accent-hover: #059669;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --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);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar */
.navbar-rkms {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar-rkms .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.navbar-rkms .navbar-brand span {
    color: var(--primary-color);
}

.navbar-rkms .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-rkms .nav-link:hover,
.navbar-rkms .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.06);
}

/* Dropdown Navigation */
@media (min-width: 992px) {
    .navbar-rkms .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.2s ease-in-out;
    }
}
.navbar-rkms .dropdown-menu {
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}
.navbar-rkms .dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.navbar-rkms .dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}

/* Buttons */
.btn-primary-rkms {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.btn-primary-rkms:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-outline-rkms {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-rkms:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e40af 100%);
    color: #ffffff;
    padding: 5rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    filter: blur(80px);
}

.hero-search-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.hero-search-box .form-control,
.hero-search-box .form-select {
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Job Cards */
.job-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.company-logo-wrapper {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.company-logo,
.company-logo-square,
img.company-logo {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 2px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.badge-job-type {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: capitalize;
}

.badge-govt { background: #dbeafe; color: #1e40af; }
.badge-private { background: #e0e7ff; color: #3730a3; }
.badge-walkin { background: #fef3c7; color: #92400e; }
.badge-internship { background: #dcfce7; color: #166534; }
.badge-remote { background: #f3e8ff; color: #6b21a8; }

/* Category Cards */
.category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

.category-card:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover i {
    color: #ffffff;
}

/* Stats Counter */
.stats-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 4rem 0;
}

.stat-item h2 {
    font-weight: 800;
    font-size: 2.5rem;
    color: #60a5fa;
}

/* Footer */
.footer-rkms {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
}

.footer-rkms h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-rkms a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-rkms a:hover {
    color: #60a5fa;
}

/* Global Mobile Responsiveness Safeguards */
@media (max-width: 991.98px) {
    html, body {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .container, .container-fluid {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero-section {
        padding: 3rem 0 4rem 0 !important;
        overflow: hidden !important;
    }

    .hero-section h1 {
        font-size: 2.1rem !important;
        word-break: break-word !important;
    }

    .hero-search-box {
        padding: 0.85rem !important;
        border-radius: 14px !important;
    }

    .hero-search-box .col-md-4,
    .hero-search-box .col-md-3,
    .hero-search-box .col-md-2 {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }

    .hero-search-box .btn {
        width: 100% !important;
    }
}
