/* Import fonts from index.html */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Merriweather&display=swap');

body {
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 1.25em;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    text-align: left; /* or center, right */
    box-shadow: 0 0.125em 0.3125em rgba(0, 0, 0, 0.1); /* Adjusted for em */;
}

header {
    background: linear-gradient(to right, #003087, #0059b3);
    color: white;
    padding: 3em 0;
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically center the items */
}

header .logo {
    max-width: 10%; /* Adjust this value as needed */
    height: auto; /* Maintains aspect ratio */
    margin-right: 10px; /* Adds space between the image and the title */
    filter: invert(1); /* Inverts the colors of the image */
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 2.8em;
}

header p.tagline {
    font-size: 1.2em;
    margin: 0.5em 0;
    text-align: center; /* Center the tagline */
}

/* Additional wrapper for title and tagline */
.title-container {
    flex: 1 /* Allows title container to take up remaining space */
    display: flex;
    flex-direction: column; /* Stack title and tagline vertically */
    align-items: center; /* Center align the title and tagline */
    text-align: center; /* center text within the container */
    width: 100%
}

nav {
    background: #4d4d4d;
    padding: 1em;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1.5em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

nav a:hover {
    color: #00cc00;
}


.container {
    max-width: 1000px;
    margin: 2em auto;
    padding: 0 20px;
}

.section {
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2em;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #003087;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #00cc00;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    margin-top: 1em;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #009900;
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: space-between;
}

.value-item {
    flex: 1 1 45%;
    padding: 1em;
    background: #e6e6e6;
    border-radius: 4px;
}

form {
    background: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2em;
}

label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
}

textarea {
    height: 150px;
    resize: vertical;
}

input[type="file"] {
    display: block;
    margin-bottom: 10px;
    font-family: 'Merriweather', serif;
}

button {
    padding: 10px 20px;
    background: #00cc00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 700;
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background: #009900;
}

#result {
    margin-top: 20px;
    padding: 2em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Merriweather', serif;
    color: #003366; /* Updated color */
}

#result p {
    margin: 10px 0;
}

#result p.error {
    color: red;
}

#photoPreview {
    max-width: 100%; /* Allows the image to scale with its container */
    margin-top: 10px; /* Adds space above the image */
    border-radius: 4px; /* Rounds the corners of the image */
    display: block; /* Change to 'block' or 'inline-block' to make it visible */
}

#consultForm input,
#consultForm textarea {
    width: 100%;
    margin-bottom: 10px;
}

.error {
    color: red;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.loading {
    color: #003087;
    font-style: italic;
    font-family: 'Merriweather', serif;
}

footer {
    text-align: center;
    padding: 1em;
    background: #4d4d4d;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    nav a {
        display: block;
        margin: 0.5em 0;
    }
    .container {
        padding: 0 10px;
    }
    .section,
    form,
    #result {
        padding: 1.5em;
    }
    .value-item {
        flex: 1 1 100%;
    }
    .founder-bio {
        flex-direction: column; /* Stack photo and text */
        text-align: center;
    }

    .founder-image {
        width: 120px; /* Slightly smaller on mobile */
        height: 120px;
    }

    .founder-bio h3 {
        font-size: 1.5em; /* Adjust heading size for mobile */
    }
}

.podcast-player {
    margin-top: 1em;
    width: 100%;
    max-width: 1000px; /* Adjust as needed for player size */
}

nav a.current {
    color: #00cc00; /* Matches hover color */
    text-decoration: underline;
}

/* Founder Bio Section */
.founder-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em; /* Space between photo and text */
}

.founder-bio h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #003087; /* Matches section h2 color */
    margin: 0;
    font-size: 1.8em; /* Consistent with other headings */
}

.founder-bio p {
    font-family: 'Merriweather', serif;
    color: #333; /* Matches body text */
    margin: 0.5em 0;
    font-size: 1rem; /* Matches body font size */
}

.founder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Circular photo */
    object-fit: cover; /* Ensures photo fills space without distortion */
    margin-bottom: 0.5em; /* Space below photo on mobile */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Matches section shadow */
}

/* Responsive layout for larger screens */
@media (min-width: 768px) {
    .founder-bio {
        flex-direction: row; /* Photo and text side-by-side */
        text-align: left; /* Left-align text for readability */
        align-items: flex-start; /* Align items at top */
    }

    .founder-image {
        margin-right: 2em; /* Space between photo and text */
        margin-bottom: 0; /* Remove bottom margin on desktop */
    }
}
