/* Nelitika Recruitment Portal - Professional Styles */
:root {
    --primary-color: #064e3b; /* Deep Green */
    --primary-light: #065f46;
    --primary-dark: #022c22;
    --accent-color: #10b981;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --tips-bg: #fefce8;
    --tips-border: #fef08a;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--primary-color);
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Reduced slightly to fit card nicely */
}

.navbar-brand {
    height: 60px; /* Increased from 50px */
    width: auto; /* Changed to auto to fit text */
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align logo and text to the left */
    gap: 12px; /* Space between logo and text */
    text-decoration: none;
    background: white;
    padding: 5px 15px;
    border-radius: 0; /* Changed from 4px to 0 */
}

.navbar-logo {
    height: 45px; /* Size for the mini logo */
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.2rem;
    color: var(--primary-color); /* Deep green text */
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hero-message {
    margin: 40px 0 30px;
    text-align: left;
}

.hero-message h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-message p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white; /* Changed to white for green background */
    transition: all 0.3s;
    transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar-nav {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center; /* Center buttons vertically */
    gap: 10px; /* Add gap between button-like links */
}

.navbar-nav li {
    display: flex;
    align-items: center;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 4px; /* Requested button style */
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: var(--primary-light);
}

/* Welcome Banner */
.welcome-banner {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.welcome-banner h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Search Section */
.search-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.search-box {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-box-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.search-box-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.search-box-header span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group-row label {
    text-align: right;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.search-actions {
    margin-top: 20px;
    text-align: center;
}

/* Tips Box */
.tips-box {
    background: var(--tips-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--tips-border);
}

.tips-box h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #854d0e;
}

.tips-box p {
    font-size: 0.9rem;
    color: #713f12;
    margin-bottom: 15px;
}

.tips-box strong {
    color: #451a03;
}

/* Section Header */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #cbd5e1;
}

.section-title h2 {
    display: inline-block;
    background: var(--bg-light);
    padding: 0 20px;
    position: relative;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
}

/* Job Cards */
.job-card {
    background: var(--bg-white);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.job-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.job-title-alt {
    font-size: 1.05rem;
    color: #1e3a8a; /* Deep blue color from image */
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.job-meta-alt {
    margin-bottom: 15px;
}

.job-meta-alt p {
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.4;
}

.job-actions-alt {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-card-alt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    width: fit-content;
}

.btn-card-alt:hover {
    background: var(--primary-color);
    color: white;
}

.btn-card-alt .icon {
    font-size: 0.75rem;
    font-weight: 700;
}

/* FAQ Styling update to match image */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-header {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    font-size: 0.95rem;
    color: #334155;
    transition: background 0.2s;
}

.faq-header:hover {
    background: #f8fafc;
}

.faq-icon {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.2s;
}

.faq-icon.open {
    transform: rotate(90deg);
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-outline {
    background: white;
    border: 1px solid #1e293b;
    color: #1e293b;
    border-radius: 6px;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

footer p {
    font-size: 0.95rem;
    color: #a7f3d0;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 2;
    }

    .navbar .container {
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-brand {
        height: 50px;
        min-width: auto;
        padding: 5px;
        background: transparent;
        order: 1;
    }

    .brand-text {
        display: none;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-nav {
        position: fixed;
        top: 70px;
        right: -100%; /* Change to right to slide from the right */
        left: auto; /* Remove left pinning */
        width: 70%; /* Reduced width so it doesn't cover the whole page */
        max-width: 300px; /* Optional: limit maximum width */
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 10px rgba(0,0,0,0.1); /* Shadow on the left */
        z-index: 99;
    }

    .navbar-nav.active {
        right: 0;
        left: auto;
    }

    .navbar-nav li {
        width: 100%;
        height: auto;
    }

    .nav-link {
        height: 60px;
        justify-content: center;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:hover, .nav-link.active {
        background: var(--primary-light);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 900px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .form-group-row label {
        text-align: left;
    }

    /* Vertical card arrangement on small screens */
    .search-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .results-column {
        width: 100%;
    }

    .faq-column {
        width: 100%;
        margin-top: 20px;
    }

    .job-card {
        padding: 15px;
    }

    .job-card[style*="display: flex"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    #sortForm {
        width: 100%;
    }

    #sortForm select {
        max-width: 100% !important;
        width: 100%;
    }
}
