/* === Global Styles === */
:root {
    --primary-color: #47c9a9; /* Updated primary color */
    --secondary-color: #495057; /* Dark Gray */
    --accent-color: #47c9a9; /* Set accent to match new primary */
    --background-color: #f8f9fa; /* Light Gray */
    --text-color: #343a40; /* Darker Gray */
    --heading-color: #212529; /* Almost Black */
    --border-color: #dee2e6;
    --white-color: #ffffff;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --font-primary: 'Montserrat', sans-serif; /* Updated Heading Font */
    --font-secondary: 'Open Sans', sans-serif; /* Updated Body/Nav Font */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 600; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    /* color: darken(var(--primary-color), 10%); */ /* Removed non-functional rule */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

section {
    padding: 4rem 0;
}

/* === Header === */
#header {
    /* background-color: var(--white-color); */ /* Removed background */
    /* box-shadow: var(--box-shadow); */ /* Removed shadow */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1.5rem 0; /* Increased padding slightly for better spacing */
    transition: background-color 0.3s ease, padding 0.3s ease;
    will-change: background-color, padding, box-shadow; /* Hint browser about changes */
}

/* Add a background on scroll */
#header.scrolled {
    background-color: var(--white-color);
    padding: 0.8rem 0;
    box-shadow: var(--box-shadow);
}

#header nav {
    display: flex;
    justify-content: space-between; /* Keeps logo left, nav-right-group right */
    align-items: center;
}

.logo {
    flex-shrink: 0; /* Prevent the logo container from shrinking */
}

.logo img {
    height: 100px; /* Reduced to 100px */
    display: block; /* Ensure image behaves like a block element */
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)); /* Add slight shadow to logo for visibility */
}

/* New styles for the right-side group */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 2rem; /* Maintain gap between links and button */
}

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

.nav-links a {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary-color); /* Set default color to primary */
    padding: 0.5rem 0;
    position: relative;
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); */ /* Remove text shadow */
}

/* Style for nav links when header has background (color rule removed, inherits default) */
#header.scrolled .nav-links a {
    /* color: var(--primary-color); */ /* Removed redundant color rule */
    text-shadow: none; /* Keep this to ensure no shadow */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white-color); /* Line color white */
    transition: width 0.3s ease;
}

#header.scrolled .nav-links a::after {
    background-color: var(--primary-color); /* Line color primary when scrolled */
}

.nav-links a:hover::after,
.nav-links a.active::after { /* Add 'active' class with JS */
    width: 100%;
}

.apply-now-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-secondary);
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.apply-now-btn:hover {
    background-color: #3aa88f; /* Darker teal */
    transform: translateY(-1px);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2.5rem; /* Slightly larger */
    cursor: pointer;
    color: var(--primary-color); /* Set default color to primary */
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); */ /* Remove text shadow */
}

#header.scrolled .menu-toggle {
    color: var(--text-color); /* Keep text color for scrolled state */
    text-shadow: none;
}

/* === Hero Section === */
.hero-section {
    /* background: linear-gradient(to right, rgba(0, 123, 255, 0.05), rgba(248, 249, 250, 0.1)); */ /* Optional: Remove gradient if using background image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('nursing.jpg'); /* Changed image to nursing.jpg */
    background-size: cover;
    background-position: center;
    padding-top: 4rem; /* Reset or adjust padding-top now that it's not first */
    min-height: auto; /* Adjust height if needed, maybe remove min-height */
    display: flex;
    align-items: center;
    color: var(--white-color); /* Set default text color to white for hero */
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: var(--white-color); /* Ensure heading is white */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem; /* For stacking on mobile */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.cta-button.primary:hover {
    background-color: #3aa88f; /* Darker teal */
    border-color: #3aa88f; /* Darker teal */
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.cta-button.secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-image img {
    /* Remove border/shadow if hero image is part of the main background */
    /* border-radius: var(--border-radius); */
    /* box-shadow: var(--box-shadow); */
    display: none; /* Hide the separate hero image element if using background */
}

/* === About Section === */
.about-section {
    background-color: var(--white-color);
}

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

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease; /* Removed box-shadow from transition */
    will-change: transform; /* Hint for browser optimization */
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.03); /* Keep lift and scale */
    /* box-shadow: var(--box-shadow); */ /* Removed shadow change on hover */
}

/* Remove SVG icon styles */
/* .feature-icon-svg { ... } */

/* Styles for new image icons */
.feature-icon-img {
    width: 65px; /* Adjust size as needed */
    height: 65px; /* Adjust size as needed */
    margin: 0 auto 1.5rem auto;
    object-fit: contain; /* Ensure image scales nicely */
}

/* === Apply Section === */
.apply-section .section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === Staffing Solutions Section === */
.staffing-section {
    background-color: var(--white-color); /* Or a slightly different shade */
    text-align: center;
    padding-top: 120px; /* Add padding-top to account for fixed header */
    padding-bottom: 4rem; /* Ensure some space below */
}

.staffing-section .section-subtitle {
    /* Inherits centering from .apply-section, but we can adjust if needed */
    max-width: 700px;
    margin-bottom: 2rem;
}

.contact-staffing p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--heading-color);
}

.cta-button.tertiary {
    display: inline-block;
    padding: 0.8rem 1.2rem; /* Reduced horizontal padding */
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem; /* Reduced font size */
    transition: all 0.3s ease;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cta-button.tertiary:hover {
    background-color: #3aa88f; /* Darker teal */
    border-color: #3aa88f; /* Darker teal */
    color: var(--white-color);
    transform: translateY(-2px);
}

.application-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1; /* Span full width */
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--heading-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* This uses the variable, should be fine */
    box-shadow: 0 0 0 2px rgba(71, 201, 169, 0.3); /* Adjusted focus shadow color */
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    border: none;
    padding-left: 0;
}

.form-group input[type="file"]::file-selector-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-right: 1rem;
    transition: background-color 0.3s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: #3aa88f; /* Darker teal */
}

.file-info {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 0.3rem;
}

/* Style for error messages */
.error-message {
    color: red;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block; /* Ensure it takes its own line */
}

.submit-button {
    grid-column: 1 / -1;
    background-color: var(--accent-color); /* Green */
    color: var(--white-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: fit-content;
    justify-self: center; /* Center button */
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: #3aa88f; /* Darker teal (since accent is same as primary) */
    /* Slightly lift the button on hover */
    transform: translateY(-2px);
}

/* === Footer === */
.footer-section {
    background-color: var(--heading-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem 0;
}

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

.footer-logo img {
    height: 60px; /* Increased from 45px */
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
    .application-form {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: auto; /* Reset span on smaller screens */
    }

    /* Remove grid stacking rule */
    /* .split-grid {
        grid-template-columns: 1fr;
    } */
}

@media (max-width: 768px) {
    /* --- General Mobile Adjustments --- */
    h1 { font-size: 2.2rem; } /* Slightly smaller main heading */
    h2 { font-size: 1.8rem; } /* Slightly smaller section headings */

    /* Reduce vertical padding for main sections */
    .about-section,
    .apply-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* --- Header Adjustments --- */
    /* Reduce header padding on mobile */
    #header,
    #header.scrolled {
        padding: 0.8rem 0;
    }

    /* Reduce logo size on mobile */
    .logo img {
        height: 60px;
    }

    /* --- Mobile Nav Dropdown --- */
    .nav-links {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .nav-links.active {
        display: flex; /* Show on mobile when active */
        max-height: 300px; /* Adjust as needed */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 1rem;
        display: block;
        color: var(--text-color); /* Set links to text color for mobile dropdown */
        text-shadow: none; /* Remove shadow inherited from overlay */
    }

    /* Ensure the hover/active underline uses the primary color on mobile */
    .nav-links a::after {
        background-color: var(--primary-color);
    }

    .apply-now-btn {
        /* display: none; */ /* Removed rule: Hide header button on mobile, rely on nav link */
        /* Keep other mobile button styles if needed, like padding/font-size */
        padding: 0.6rem 1.2rem; /* Ensure padding is appropriate for mobile */
        font-size: 0.9rem;  /* Ensure font size is appropriate */
    }

    .menu-toggle {
        display: block; /* Show hamburger */
        font-size: 2rem; /* Reduced hamburger size slightly */
    }

    /* --- Top Split Section Stacking --- */
    .split-grid {
        display: flex; /* Switch to Flexbox */
        flex-direction: column; /* Stack items vertically */
        gap: 2rem; /* Keep some gap */
    }
    .staffing-content,
    .hero-content-split {
        min-height: auto; /* Reset min-height */
        padding: 2rem; /* Adjust padding if needed */
    }
     .hero-content-split {
         text-align: center;
     }

    /* --- Why Choose Us Grid --- */
    .features-grid {
        gap: 1.5rem; /* Slightly reduce gap */
    }
    .feature-item {
        padding: 1.5rem; /* Slightly reduce padding */
    }

    /* --- Application Form Stacking --- */
    .application-form {
        grid-template-columns: 1fr; /* Stack form fields */
        padding: 1.5rem; /* Reduce padding */
    }
    .form-group.full-width {
        grid-column: auto; /* Not needed when single column */
    }

    /* --- Button Padding Adjustment --- */
    .cta-button,
    .phone-cta {
        padding: 0.7rem 1.4rem; /* Slightly smaller padding */
        font-size: 0.95rem; /* Slightly smaller font */
    }
    .submit-button {
        padding: 0.9rem 1.8rem; /* Slightly smaller padding */
        font-size: 1rem; /* Slightly smaller font */
    }
}

/* --- 576px Breakpoint (Already Clean) --- */
@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .container {
        padding: 0 1rem;
    }

    .staffing-content,
    .hero-content-split {
        padding: 1.5rem;
    }

    .staffing-content h2, .hero-content-split h1 {
        font-size: 1.8rem; /* Slightly smaller headings */
    }

    .application-form {
        padding: 1.5rem; /* Padding already adjusted */
    }
}

/* === Top Split Section === */
.top-split-section {
    padding-top: 140px;
    padding-bottom: 4rem;
}

.split-grid {
    display: grid; /* Grid for desktop */
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch; /* Make columns equal height by default */
}

.split-column {
    padding: 0; /* Remove padding here, apply within children if needed or to specific column */
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensure content respects border radius */
}

/* Left Column: Staffing Content */
.staffing-content {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('nursing_staff.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem; /* Re-add padding */
}

.staffing-content h2 {
    margin-bottom: 1.5rem;
    color: var(--white-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.staffing-content .section-subtitle {
    max-width: 100%;
    margin-bottom: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.contact-staffing p {
    margin-bottom: 1rem; /* Increased spacing */
    font-size: 1.1rem;
    color: var(--white-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.contact-staffing a {
    display: block; /* Make buttons take full width */
    max-width: 300px; /* Limit button width */
    margin-left: auto;
    margin-right: auto;
}

/* Right Column: Hero Content */
.hero-content-split {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('nursing.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem; /* Re-add padding */
}

.hero-content-split h1 {
    color: var(--white-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero-content-split p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* === Media Query for Stacking with Flexbox === */
@media (max-width: 768px) {
    .split-grid {
        display: flex; /* Switch to Flexbox */
        flex-direction: column; /* Stack items vertically */
        gap: 2rem; /* Keep some gap */
    }

    .staffing-content,
    .hero-content-split {
        min-height: auto; /* Reset min-height */
        padding: 2rem; /* Adjust padding if needed */
    }

     .hero-content-split {
         text-align: center;
     }
}

/* Keep the 576px breakpoint for smaller adjustments if needed */
@media (max-width: 576px) {
    /* ... existing styles ... */
    .staffing-content,
    .hero-content-split {
        padding: 1.5rem;
    }

    .staffing-content h2, .hero-content-split h1 {
        font-size: 1.8rem; /* Slightly smaller headings */
    }
}

/* === About Section === */
.about-section {
    background-color: var(--white-color);
}

/* Style for the phone number link to look like a button */
.phone-cta {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem; /* Add top margin for spacing */
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
    text-decoration: none; /* Remove underline */
}

.phone-cta:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
    transform: translateY(-2px);
} 