/* Basic Reset & Font Styling */
body, h1, h2, h3, p, ul, form {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #f0ad4e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #003366; /* Dark blue */
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #003366;
}

.nav-link {
    text-decoration: none;
    color: #003366;
    font-weight: 600;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f0ad4e; /* Gold/Orange accent */
}

.nav-link.active {
    color: #f0ad4e;
    border-bottom: 2px solid #f0ad4e;
}


/* --- General Page Structure --- */
.page-header {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.page-header h1 {
    font-size: 2.8rem;
}

.content-section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.content-section h2 {
    font-size: 2.2rem;
    color: #003366;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #f0ad4e;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.content-section p {
    margin-bottom: 1rem;
    color: #555;
}

/* --- Homepage Specific --- */
.hero {
    background-image: linear-gradient(rgba(0, 21, 41, 0.7), rgba(0, 21, 41, 0.7)), url('https://images.unsplash.com/photo-1581362446439-9331914a5a4c?q=80&w=2070'); /* Replace with your own high-quality image */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 10rem 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #f0ad4e;
    color: #003366;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e69524;
    text-decoration: none;
}

.services-overview {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f9f9f9;
}

.services-overview h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #003366;
    margin-bottom: 1rem;
}

.cta-section {
    background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-button-secondary {
    background-color: transparent;
    color: #fff;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid #f0ad4e;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: #f0ad4e;
    color: #003366;
    text-decoration: none;
}

/* --- About Page --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #f0ad4e;
}

.team-member h3 {
    color: #003366;
    margin-bottom: 0.25rem;
}

.team-member p {
    color: #777;
    font-style: italic;
}

/* --- Projects Page --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: #003366;
}

.project-info p {
    font-size: 0.9rem;
}

/* --- Contact Page --- */
.contact-layout {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-form, .contact-details {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: #003366;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #004a99;
}

.contact-details p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* --- Project Gallery --- */
.gallery-container {
    margin-top: 2rem;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.thumbnail-strip {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.thumbnail.active-thumbnail, .thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* --- Careers Page --- */
.job-listing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.job-listing:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.job-listing h3 {
    color: #003366;
    margin-bottom: 0.25rem;
}

.job-listing p {
    color: #666;
    margin: 0;
}

.apply-button {
    background-color: #f0ad4e;
    color: #003366;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
}

/* --- News & Media Page --- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.article-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.article-item h3 {
    color: #003366;
    margin-bottom: 0.75rem;
}

.article-excerpt {
    margin-bottom: 1rem;
}

.read-more-btn {
    font-weight: bold;
    color: #003366;
    text-decoration: none;
    transition: color 0.3s;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1d2d3c;
    color: #ccc;
    padding: 1rem 2rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    gap: 1rem;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-banner p {
    margin: 0;
    color: #ccc;
}

.cookie-accept-btn {
    background-color: #f0ad4e;
    color: #003366;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* --- Footer --- */
.main-footer {
    background-color: #1d2d3c;
    color: #ccc;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

/* --- Responsive Design --- */
@media (max-width: 820px) { /* Adjusted breakpoint for better fit */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on header height */
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .job-listing {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}
