/* Version 1.26 */
/* General Site Styling */
body {
    font-family: 'Open Sans', sans-serif;
    color: #4A4E69; /* Cool gray for text */
    margin: 0;
    padding: 0;
    padding-top: 60px; /* Add padding to prevent overlap with sticky nav */
    background: linear-gradient(to bottom right, #006d77, #7FB6BF 25%, #FFFFFF); /* Base gradient for the page */
}

/* Header Styling */
header {
    text-align: center;
    padding: 20px 20px 0; /* Reduced bottom padding to 0 to minimize gap */
    overflow: hidden; /* Ensure no overflow affects layout */
}

.logo-container {
    position: relative;
    display: inline-block;
    width: 315px; /* Default size for all pages except homepage */
    height: 315px;
}

/* Specific size for homepage */
.logo-container.homepage {
    width: 450px; /* Homepage logo size */
    height: 450px;
}

/* Single logo image */
.logo-image {
    width: 100%;
    height: 100%;
    background-image: url('images/heart-text-logo.png');
    background-size: cover;
    background-position: center;
}

/* Hero Section Styling for Homepage */
.hero {
    max-width: 900px; /* Slightly wider for impact */
    margin: 0 auto; /* No extra margin-top */
    padding: 30px;
    text-align: center;
    background: transparent; /* Fully transparent to blend with page gradient */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtler shadow for depth */
    border-radius: 15px;
}

.hero h1 {
    font-size: 2.5em;
    color: #006d77; /* Main color */
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero .tagline {
    font-size: 1.2em;
    color: #4A4E69; /* Text color */
    margin-bottom: 20px;
    font-style: italic;
}

.hero .cta-button {
    display: inline-block;
    background-color: #006d77; /* Main color */
    color: #FFFFFF;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero .cta-button:hover {
    background-color: #004d57; /* Darker shade of #006d77 */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.hero .intro {
    margin-top: 20px;
    font-size: 1.1em;
    color: #4A4E69; /* Text color */
    text-align: center; /* Center this specific paragraph */
}

.hero .statistic {
    font-size: 1em;
    color: #006d77; /* Main color */
    font-weight: bold;
    text-align: center; /* Center this specific paragraph */
}

/* Funding Table Styling */
.funding-section {
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
}

.funding-section h2 {
    font-size: 1.8em;
    color: #006d77;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.funding-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.funding-table th,
.funding-table td {
    padding: 10px;
    border: 1px solid #006d77;
    font-size: 0.9em;
}

.funding-table th {
    background-color: #006d77;
    color: #FFFFFF;
    font-weight: bold;
    text-align: center; /* Headers remain centered */
}

.funding-table td:nth-child(1),
.funding-table td:nth-child(4) {
    text-align: left; /* Left-align Category (1st column) and Key Deliverable (4th column) */
}

.funding-table td:nth-child(2),
.funding-table td:nth-child(3) {
    text-align: center; /* Keep Estimated Cost (2nd column) and Percentage of Total (3rd column) centered */
}

.funding-table tr:nth-child(even) {
    background-color: #E0F7FA; /* Light cyan for alternating rows */
}

.funding-table tr:nth-child(odd) {
    background-color: #FFFFFF;
}

.funding-section .outcome {
    font-size: 1em;
    color: #4A4E69;
    text-align: center;
    line-height: 1.6;
}

/* Section Styling for Body Text */
section {
    max-width: 800px; /* Constrain text width for readability */
    margin: 0 auto; /* Center the section */
    padding: 1px 20px 20px 20px; /* Top padding reduced previously */
    text-align: center; /* Center headings and other centered elements */
}

section p, section li {
    text-align: justify; /* Justify body text */
    line-height: 1.6;
    margin: 10px 0;
}

/* Center specific paragraphs with the centered-message class */
section p.centered-message {
    text-align: center;
}

/* Justified text for bio and body paragraphs */
section p.bio-text {
    text-align: justify;
    line-height: 1.6;
    margin: 10px 0;
}

/* Ensure headings remain centered and adjust margin */
section h1, section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Navigation Bar Styling */
.navigation {
    background: linear-gradient(to bottom, #006d77, #7FB6BF); /* Gradient blends with page background */
    padding: 8px 0; /* Reduced padding for a more minimal look */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navigation a {
    margin: 0 10px; /* Reduced margin for tighter spacing */
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em; /* Slightly smaller font size for minimal look */
    padding: 8px 0; /* Reduced padding */
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: #92c6ef; /* Lighter shade for hover, no underline effect */
}

/* Style for current page in navigation (if used) */
.navigation .nav-current {
    margin: 0 10px;
    display: inline-block;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1em;
    padding: 8px 0;
}

/* Service Boxes (for services.html) */
.service-box {
    background-color: #E0F7FA; /* Light cyan */
    border: 1px solid #006d77;
    margin: 10px auto;
    padding: 15px;
    width: 300px;
    display: inline-block;
    vertical-align: top;
    text-align: left; /* Ensure text inside service boxes is justified */
}

/* Contact Form Styling (for contact.html) */
form .mb-3 {
    text-align: left; /* Left-align the form field wrappers */
}

form .form-control {
    margin-bottom: 15px;
    border: 1px solid #006d77;
    width: 50%; /* Set default width to 50% of the parent container (~380px) */
}

form #email.form-control {
    width: 100%; /* Double the width for the "Your Email" field (~760px) */
}

form .form-label {
    display: block; /* Ensure labels are on a new line */
    text-align: left; /* Left-align labels */
}

form button {
    background-color: #006d77;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

form button:hover {
    background-color: #004d57; /* Darker shade of #006d77 */
}

/* Footer Styling */
footer {
    background: linear-gradient(to bottom, #7FB6BF, #006d77); /* Gradient blends with page background */
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #92c6ef; /* Lighter shade for links */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}