/* === GLOBAL STYLES === */
:root {
    --primary-color: #0d214c;  /* Deep Corporate Blue */
    --secondary-color: #f4f7fc; /* Light background grey */
    --accent-color: #00bfa5;   /* Bright Teal for CTAs */
    --text-dark: #333;
    --text-light: #fdfdfd;
    --border-color: #ddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: var(--primary-color);
    line-height: 1.3;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === HEADER & NAVIGATION === */
.main-header {
    background-color: var(--primary-color); /* CHANGED from #fff */
    border-bottom: 1px solid var(--border-color);
    padding: 0px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    flex-direction: column; /* This stacks the logo and nav */
    align-items: center;   /* This centers them */
    padding: 0px 0 10px 0; /* Give it some padding */
}

.logo img {
    height: 160px; 
    width: auto;
    margin-bottom: 15px; /* Adds space between logo and nav */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin: 0 10px; /* Symmetrical spacing */
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light); /* CHANGED from --primary-color */
    font-weight: 600;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
}

/* Mobile Nav (Simple toggle) */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* === MAIN CONTENT & HERO === */
.hero {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}
.hero h1 {
    color: var(--text-light);
    font-size: 2.8rem;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 10px auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #00a892;
    text-decoration: none;
}

.content-section {
    padding: 40px 0;
}
.content-section:nth-child(even) {
    background-color: var(--secondary-color);
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}
.form-group textarea {
    min-height: 150px;
}

/* === FOOTER === */
.main-footer {
    background-color: var(--primary-color);
    color: #a9b4c9; /* Lighter text for footer */
    padding: 40px 0;
    font-size: 0.9rem;
}
.main-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-col {
    flex-basis: 100%;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .footer-col {
        flex-basis: 48%; /* 2 columns on tablet */
    }
}
@media (min-width: 992px) {
    .footer-col {
        flex-basis: 22%; /* 4 columns on desktop */
    }
}

.main-footer h4 {
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 15px;
}
.main-footer p {
    margin-bottom: 10px;
}
.main-footer a {
    color: #a9b4c9;
}
.main-footer a:hover {
    color: var(--text-light);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #3a4f7a;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.85rem;
}

/* === RESPONSIVE (Mobile) === */
@media (max-width: 768px) {
    .main-header .container {
        position: relative; /* Allows absolute positioning of the toggle */
    }

    .main-nav {
        display: none; /* Hide nav by default */
        width: 100%;
        position: static; /* Let it sit naturally in the flow */
        background-color: var(--primary-color);
        margin-top: 10px;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 10px;
    }
    .main-nav li {
        margin: 10px 0;
        text-align: center;
    }
    .menu-toggle {
        display: block; /* Show hamburger icon */
        position: absolute; /* Put it in the top corner */
        top: 25px; /* Adjust to look good */
        right: 5%;
        color: var(--text-light); /* Make sure it's visible */
    }
    .main-nav.active {
        display: block; /* Show nav when active */
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* This is from your other CSS, make sure it stays */
    .split-layout {
        flex-direction: column;
    }
}
/* === DROPDOWN MENU === */
.main-nav li {
    position: relative; /* Needed for the dropdown */
}

.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 220px;
    z-index: 200;
}

.main-nav li:hover > .dropdown {
    display: block;
}

.main-nav .dropdown li {
    margin: 0;
}

.main-nav .dropdown a {
    color: var(--text-dark); /* THIS IS THE NEW LINE */
    display: block;
    padding: 8px 15px;
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't break layout */
}

.main-nav .dropdown a:hover {
    color: var(--accent-color);
    background-color: var(--secondary-color);
}

/* Arrow for dropdown */
.has-dropdown > a {
    padding-right: 15px; /* Make space for arrow */
}
.has-dropdown > a::after {
    content: ' ▼';
    font-size: 0.7em;
    display: inline-block;
}

/* === HERO IMAGE BACKGROUND === */
.hero-image-bg {
    background-image: linear-gradient(rgba(13, 33, 76, 0.85), rgba(13, 33, 76, 0.85)), url('images/hero-wave-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}
.hero-image-bg h1 {
    color: var(--text-light);
    font-size: 2.8rem;
    margin-bottom: 10px;
}
.hero-image-bg p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 10px auto 30px;
}

/* === SPLIT LAYOUT (Image + Text) === */
.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.split-text {
    flex: 1;
    min-width: 300px;
}
.split-image {
    flex: 1;
    min-width: 300px;
}
.split-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* On mobile, stack them */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }
}
