/* General & Body */
:root {
    --primary-color: #007bff;
    --dark-text: #333;
    --light-bg: #f4f4f4;
    --white: #fff;
    --border-color: #ccc;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--dark-text);
    padding: 1rem 0;
    text-align: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a.active {
    background-color: var(--primary-color);
}

nav a:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tab Content */
.tab-content {
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-in-out;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Home Tab Specifics */
#home-content {
    height: calc(100vh - 150px); /* Adjust height for nav */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.centered-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.centered-content p {
    font-size: 1.2rem;
}

.centered-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Careers Tab Specifics */
.job-description {
    margin-bottom: 2rem;
}

.job-description h2, .job-description h3 {
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
}

.job-description ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.apply-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
}

/* Form Styling */
#application-form {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
}

/* File Upload Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.drop-zone:hover {
    background-color: #e9e9e9;
    border-color: var(--primary-color);
}

.drop-zone__input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.drop-zone__prompt {
    font-size: 1rem;
    color: var(--dark-text);
}

.drop-zone--active {
    border-color: var(--primary-color);
    background-color: #e8f0fe;
}

.drop-zone__file-name {
    font-weight: bold;
    padding: 0.25rem 0;
    display: block;
}

.captcha-group {
    display: flex;
    justify-content: center;
}

button {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white);
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Messages and Errors */
.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.message-box {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.message-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    header {
        padding: 0.5rem 0;
    }

    nav a {
        font-size: 1rem;
        padding: 8px 12px;
        margin: 0 5px;
    }

    .container {
        margin: 10px auto;
        padding: 0 10px;
    }
}

/* === NEW STYLES ADDED FOR HOMEPAGE === */

/* Homepage Background Image */
body.home-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('home.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* Apply a dark overlay for text readability */
    filter: brightness(0.6);
}

/* Homepage Text Styling */
.home-page .centered-content h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.home-page .centered-content p {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.home-page .centered-content a {
    color: #a7d7ff; /* A lighter blue for better contrast */
}

.home-page .centered-content .tagline {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 2rem;
}