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

/* Color palette variables */
:root {
    --primary-color: #8a1538; /* burgundy red */
    --secondary-color: #005fa3; /* saturated blue */
    --text-color: #333333;
    --background-color: #f8f8f8;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Container to center content and control width */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    max-height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Hero section */
/* Hero section */
.hero {
    /* Use the custom illustration as background with a soft burgundy–blue overlay */
    background: linear-gradient(rgba(138, 21, 56, 0.65), rgba(0, 95, 163, 0.65)), url('hr_image.png') center/cover no-repeat;
    color: #ffffff;
    padding: 100px 0;
    text-align: left;
    position: relative;
}

/* Hero text styling */
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    /* Ensure left alignment */
    text-align: left;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    /* Remove auto margin to align content to the left */
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Call‑to‑action button within the hero section */
.hero .cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.hero .cta-button:hover {
    background-color: #00407a;
}

/* Subpage hero: smaller padding for secondary pages */
.hero-subpage {
    padding: 60px 0;
    background: var(--primary-color);
    color: #ffffff;
    /* Align text to the left */
    text-align: left;
}

/* Listings section for jobs and events */
.listings {
    background-color: #f0f4f8;
    padding: 60px 0;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.list-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Align text to the left inside list items */
    text-align: left;
}

.list-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Additional styling for subheadings and lists inside job/event cards */
.list-item h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.list-item ul {
    margin-left: 20px;
    margin-bottom: 1rem;
    list-style-type: disc;
    padding-left: 0;
}

/* Style the link leading to the founder biography */
.founder-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* About image styling */
.about-image {
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Initially hide the founder biography; display it when targeted via the anchor */
.founder-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.founder-section:target {
    display: block;
    opacity: 1;
    margin-top: 20px;
}

.founder-link:hover {
    text-decoration: underline;
}

/* Active link styling */
nav a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* About section */
.about {
    background-color: #ffffff;
    padding: 60px 0;
}

/* About section */
.about h2 {
    margin-bottom: 20px;
    text-align: left;
}

/* Allow paragraphs in about section to span the full container width and align left */
.about p {
    max-width: 100%;
    margin: 0 0 1em 0;
    text-align: left;
}

/* Services section */
.services {
    background-color: #f0f4f8;
    padding: 60px 0;
}

/* Services section */
.services h2 {
    text-align: left;
    margin-bottom: 40px;
}

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

.service-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Align service card content to the left */
    text-align: left;
}

.service-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Contact section */
.contact {
    background-color: #ffffff;
    padding: 60px 0;
}

.contact h2 {
    text-align: left;
    margin-bottom: 20px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.contact-form {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    margin-top: 15px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #00407a;
}

.contact-info {
    flex: 1 1 250px;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info p + p {
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
    .contact-content {
        flex-direction: column;
    }
}