/* --- Global Styles & Variables --- */
:root {
    --primary-color: #F76902; /* Calm blue */
    --secondary-color: #6c757d; /* Gray */
    --bg-color: #ffffff; /* White background */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --font-family: 'Lato', sans-serif;
    --dark-grey-bg: #f8f9fa; /* New background for content sections */
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--dark-grey-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content {
    padding-top: 40px;
    padding-bottom: 60px;
    min-height: 60vh; /* Ensures footer isn't too high */
}

h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 900; /* Bolder headings */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: #333; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1em; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- DEFAULT Navigation Bar (for all pages EXCEPT home) --- */
.navbar {
    background-color: #222; /* Default dark background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Add border back */
    padding: 1rem 0;
    position: sticky; /* Sticks to top on sub-pages */
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff; /* White logo text */
    text-decoration: none;
    letter-spacing: 2px;
}
.logo:hover { text-decoration: none; }

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-grow: 1; /* Allows links to push social icons to the right */
    justify-content: center; /* Center navigation links */
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #fff; /* White nav links */
    font-weight: 700;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color); /* Primary color for active/hover */
    border-bottom: 2px solid var(--primary-color);
}

.navbar-social {
    display: flex;
    gap: 15px;
    margin-left: 20px; /* Space between nav links and social icons */
}

.navbar-social .social-icon {
    color: #fff; /* White icons */
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.navbar-social .social-icon:hover {
    color: var(--primary-color); /* Hover effect for icons */
}

/* --- Class for Sticky Navbar (after scroll) --- */
.navbar.scrolled {
    background-color: #222;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed; /* Becomes fixed instead of absolute */
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}


/* --- Buttons (Global) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* Rounded buttons */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-white {
    background-color: #fff;
    color: #333;
    border: 1px solid #fff;
}
.btn-white:hover {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    text-decoration: none;
}
.btn-dark {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.btn-dark:hover {
    background-color: #fff;
    color: #333;
    text-decoration: none;
}
/* --- Team Page (Global Styling) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.team-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Optional hover effect for consistency */
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}
.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--light-gray);
}
.team-role {
    font-weight: 700;
    color: var(--primary-color);
    margin: 5px 0;
}
.team-bio {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* --- Contact Page (Global Styling) --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}
@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 2fr 1fr;
    }
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    box-sizing: border-box; /* Important for width */
}
.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}
.contact-info h3 {
    margin-top: 0;
}
.social-link-dark { /* Link style within contact-info box */
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}
.social-link-dark:hover {
    text-decoration: underline;
}
/* --- Footer (Global) --- */
.footer {
    background-color: #222; /* Darker footer background */
    color: #f4f4f4;
    padding-top: 40px;
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 2fr; /* <-- CHANGED */
    }
}
.footer-col h4 {
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}
.footer-col a {
    color: #fff;
}
.footer-col a.social-link {
    display: block;
    margin-bottom: 10px;
}
.google-map {
    width: 100%;
    /* height: 180px; <-- REMOVED */
    border: 0;
    border-radius: 8px;
}
.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #444; /* Lighter border for distinction */
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}
/* New layout for the footer map column */
.footer-col-map {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* <-- CHANGED from 'center' */
    gap: 20px; /* Space between the text and the map */
}
.footer-col-map h4 {
    flex-shrink: 0; /* Stops the "Location" text from shrinking */
}
.footer-col-map .google-map {
    flex-grow: 1; /* Makes the map fill the rest of the column's space */
    height: 280px; /* We can use a slightly shorter map now */
}