/* Corporate Design System */

/* Rotating Text in Body */
.rotating-text-container {
    font-size: 1.25rem;
    color: var(--text-muted);
    min-height: 2.5rem; /* Reserve space to prevent layout shifting */
    margin: 1rem 0;
}

.rotating-text {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    display: inline-block;
}

:root {
    /* Palette - Modern Pastel Greens */
    --primary-color: #1a3c34;
    /* Sage Dark - Authority & Trust */
    --secondary-color: #4a6b5d;
    /* Sage Medium - Professional Text */
    --accent-color: #88c9a1;
    /* Pastel Green - Modern, vibrant but soft */
    --accent-hover: #71b88e;
    /* Pastel Green Darker */

    --bg-color: #f7faf9;         /* Sophisticated Pastel Mint-Green */
    /* Off-white Mint - Structured, not stark white */
    --card-bg: #ffffff;
    /* Pure white for content focus */

    --text-main: #2b3a35;
    /* Dark Green-Grey - High legibility */
    --text-muted: #5e736b;
    /* Medium Green-Grey */

    --success: #10b981;
    /* Emerald-500 */
    --border-color: #d8e3dc;
    /* Light Sage - Slightly more definition */

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

/* Header */
/* Header */
/* Top Navigation Bar */
.top-nav {
    background: #f8fafc; /* Very light slate 50 */
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
    width: 100%;
}

.top-nav-container {
    padding: 0 40px;
    display: flex;
    justify-content: flex-end; /* Move all links to the right */
}

/* Header Main Content (Logo & Tagline) */
header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    margin-bottom: 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    position: relative;
    justify-content: space-between;
}

.header-center-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.header-tagline {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1d4e89;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    pointer-events: none;
    line-height: 1;
}

.header-nav-small {
    margin-top: 8px;
    display: flex;
    gap: 15px;
    justify-content: center; /* Centered as requested */
}

.header-nav-link {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.header-nav-link:hover {
    color: #1e293b;
    border-bottom-color: #cbd5e1;
}

.logo-left {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
    text-decoration: none;
}

.logo-left:hover {
    transform: scale(1.02);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    /* White logo on dark header */
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #1e293b;
}

.logout-btn-small {
    background: none;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn-small:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.2s;
}

.btn-nav:hover {
    background: var(--bg-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Vacancy Cards */
.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.vacancy-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vacancy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.vacancy-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.tag {
    background: #eaf5ee;
    color: #2b6e4d;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

/* Dashboard Components */
.dashboard-container {
    padding: 2rem 0;
    margin-top: 1rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-card h4 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

@media screen and (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dashboard-section {
        padding: 1.25rem;
    }

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(136, 201, 161, 0.2);
    /* Pastel Green Ring */
}

/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    padding: 4rem 0 2rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    /* No bullets */
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    padding-left: 0;
    /* Remove default padding */
}

.footer-col p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-col ul li a {
    color: var(--secondary-color);
    transition: color 0.2s;
    text-decoration: none;
    /* Ensure no underline unless hovered */
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* --- Responsive Media Queries --- */

/* Tablets & Small Laptops (under 1024px) */
@media screen and (max-width: 1024px) {
    .header-tagline {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
}

/* Tablets & Large Phones (under 768px) */
@media screen and (max-width: 768px) {
    .top-nav-container,
    .header-main-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem 20px;
        gap: 1rem;
    }

    .header-center-area {
        position: static;
        transform: none;
        width: 100%;
    }

    .header-tagline {
        font-size: 1.2rem;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
    }

    .header-nav-small {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Hide the balancing div on mobile */
    .header-main-content > div:last-child {
        display: none;
    }

    .logo-left {
        justify-content: center;
        margin-bottom: 10px;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .vacancy-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    align-items: flex-start;
}

.kanban-column {
    min-width: 280px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1rem;
    flex-shrink: 0;
}

.kanban-column h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.kanban-card {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.1s;
    border: 1px solid transparent;
}

.kanban-card:hover {
    border-color: var(--accent-color);
}

.kanban-card strong a {
    text-decoration: none;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.kanban-card .match-badge {
    font-size: 0.75rem;
    font-weight: bold;
}

.kanban-card .tags-container {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.kanban-card .ui-tag {
    font-size: 0.7rem;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
/* Data Tables & Lists */
.data-table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table thead tr {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    padding: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.search-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    max-width: 400px;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Badge System */
.ui-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.ui-badge-success { background: #dcfce7; color: #166534; }
.ui-badge-info { background: #e0f2fe; color: #0369a1; }
.ui-badge-neutral { background: #f1f5f9; color: #475569; }

/* Content Layouts */
.content-card {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 3rem auto;
}

@media screen and (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
        border-radius: 0; /* Full width feel on small screens */
        border-left: none;
        border-right: none;
    }
}

@media screen and (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        max-width: none;
    }

    .data-table th:nth-child(3), 
    .data-table td:nth-child(3),
    .data-table th:nth-child(4), 
    .data-table td:nth-child(4) {
        display: none; /* Hide less critical columns on mobile */
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0; /* Removed white line space */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 52, 0.65); /* Sage dark with opacity */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content .rotating-text-container {
    color: #f0fdf4; /* Very light green */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content .rotating-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #f0fdf4;
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-features {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-style: italic;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

@media screen and (max-width: 768px) {
    .hero-content .rotating-text {
        font-size: 1.5rem;
    }
    .hero-section {
        min-height: 300px;
    }
    .services-section {
        padding: 3rem 0;
    }
}
html {
    scroll-behavior: smooth;
}

/* Hero buttons moved to header */

@media screen and (max-width: 480px) {
    .top-nav-container,
    .header-main-content {
        padding: 0 15px;
    }

    .header-tagline {
        font-size: 0.9rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .btn {
        width: 100%; /* Full width buttons on mobile */
        text-align: center;
    }

    .footer-grid {
        text-align: center;
    }
}