/* --- Base Styles & Variables --- */
:root {
    --primary-blue: #005A9C;
    --dark-blue: #003366;
    --light-blue: #E6F0F7; /* Used for bg-light */
    --accent-color: #F2A900;
    --text-color: #333;
    --light-text: #f8f9fa;
    --heading-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --body-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --border-radius: 5px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff; /* Main page background */
    /* Adjust this padding based on your final fixed header height */
    padding-top: 75px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--dark-blue);
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
    /* text-decoration: underline; */ /* Removed global underline */
}

a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 60px 0;
}

/* Background for light sections */
.bg-light {
    background-color: #f0f6fa; /* Using slightly adjusted light blue */
    border-top: 1px solid #dee7f0;
    border-bottom: 1px solid #dee7f0;
}

.text-center {
    text-align: center;
}

/* Section Title underline */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 12px auto 0;
}

/* --- Header & Navigation (DARK THEME) --- */
header {
    background: linear-gradient(to right, var(--dark-blue), #002855);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    padding-left: 0;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffffff;
    text-decoration: none;
}

nav ul li a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}
    color: #ffffff;
    text-decoration: none;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: 8px;
    padding: 10px 0;
    border: 1px solid #ddd;
    border-top: none;
    list-style: none;
    padding-left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    color: var(--dark-blue);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}
 .dropdown-content a.active-service {
     font-weight: bold;
     background-color: var(--light-blue);
 }

.dropdown-content a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    text-decoration: none;
}

.dropdown-content a::after { display: none; }

.fa-chevron-down {
    margin-left: 5px;
    font-size: 0.7em;
    color: #e0e0e0;
    transition: color 0.3s ease;
}
nav ul li a:hover .fa-chevron-down,
nav ul li a.active .fa-chevron-down {
    color: #ffffff;
}

/* --- Hero Section --- */
.hero {
    background-image: url('images/hero-background.jpg'); /* Ensure this path is correct */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--light-text);
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.65); /* Overlay opacity */
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero h1 {
    color: var(--light-text);
    font-size: 3.5rem;
    margin-bottom: 0.5em;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 1.5em;
    color: var(--light-text);
}

/* --- Call to Action Button --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-blue);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #d99000;
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--dark-blue);
}

.cta-button:focus {
    outline: 2px solid var(--dark-blue);
    outline-offset: 2px;
}

/* --- About Me Section (UPDATED POP EFFECT) --- */
/* Styles for #about.bg-light are applied via .bg-light */

#about .section-title {
    margin-bottom: 50px; /* Increase space below "About Me" title */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px; /* Increased gap */
    background-color: #fff; /* White background for the card */
    padding: 40px;         /* Padding inside the card */
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.12); /* Card shadow */
}

.about-image {
    flex-basis: 35%;
    max-width: 300px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 100%;
    /* border-radius: 0; */ /* Use for sharp square */
    border-radius: var(--border-radius); /* Use for slightly rounded rectangle */
    border: 6px solid var(--primary-blue); /* Thicker blue border */
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.2); /* Stronger shadow */
}

.about-text {
    flex-basis: 65%;
}


/* --- Highlight Boxes --- */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.highlight-box { background-color: #fff; padding: 30px; border-radius: var(--border-radius); box-shadow: 0 5px 12px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; border: 1px solid #eee; }
.highlight-box:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0, 51, 102, 0.15); }
.highlight-box .icon { font-size: 2.8rem; color: var(--primary-blue); margin-bottom: 18px; }
.highlight-box h3 { margin-bottom: 10px; font-size: 1.3rem; }

/* --- CTA Sections --- */
.cta { background-color: var(--primary-blue); color: var(--light-text); }
.cta h2 { color: var(--light-text); }
.cta .cta-button { margin-top: 20px; }
.cta-simple h2 { color: var(--dark-blue); }

/* --- Footer --- */
footer { background-color: var(--dark-blue); color: var(--light-text); padding: 40px 0 20px; font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-left, .footer-right { flex-basis: calc(50% - 20px); }
.footer-right p, .footer-right a { color: #ccc; }
.footer-right a:hover { color: #fff; text-decoration: underline; }
.footer-nav { text-align: center; width: 100%; margin-top: 20px; padding-top: 20px; border-top: 1px solid #4a6a8a; }
.footer-nav a { color: #ccc; margin: 0 10px; }
.footer-nav a:hover { color: #fff; }

/* --- Page Header (Inner Pages - DARK) --- */
.page-header {
    background: linear-gradient(to right, var(--dark-blue), #002855);
    color: var(--light-text);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    margin-bottom: 40px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}
.page-header h1 { color: var(--light-text); margin-bottom: 0.2em; font-size: 2.5rem; }
.page-header p { font-size: 1.2rem; color: #e0e0e0; max-width: 700px; margin: 0 auto; }

/* --- Services Overview Page (BOLDER BOXES) --- */
.services-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item { background-color: #fff; padding: 35px 30px; border-radius: var(--border-radius); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e0e0e0; border-top: 5px solid var(--primary-blue); box-shadow: 0 5px 15px rgba(0, 51, 102, 0.1); }
.service-item:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0, 51, 102, 0.18); border-color: #ccc; }
.service-item h3 { font-size: 1.5rem; margin-top: 10px; margin-bottom: 15px; }
.service-item h3 a { color: var(--dark-blue); text-decoration: none; }
.service-item h3 a:hover { color: var(--primary-blue); text-decoration: none; }
.service-item p { color: #555; font-size: 0.95rem; }
.icon-large { font-size: 3.5rem; color: var(--primary-blue); margin-bottom: 15px; }
.learn-more-link { display: inline-block; margin-top: 20px; font-weight: bold; color: var(--primary-blue); padding: 8px 15px; border: 1px solid transparent; border-radius: var(--border-radius); transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.learn-more-link:hover { color: #fff; background-color: var(--primary-blue); border-color: var(--primary-blue); text-decoration: none; }

/* --- Service Detail Page --- */
.service-detail .service-content { display: flex; gap: 40px; align-items: flex-start; }
.service-detail .service-image { flex-basis: 40%; border-radius: var(--border-radius); box-shadow: 0 4px 8px rgba(0,0,0,0.1); margin-bottom: 20px; }
.service-detail .service-text { flex-basis: 60%; }
.service-detail .service-text ul { list-style: disc; margin-left: 20px; margin-bottom: 1em; padding-left: 0; }
.service-detail .cta-button { margin-top: 20px; }

/* Specific Styles for Service Detail pages */
.key-areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-top: 30px; }
.key-area-item { background-color: #fff; padding: 25px; border-radius: var(--border-radius); box-shadow: 0 3px 8px rgba(0,0,0,0.07); border-left: 5px solid var(--primary-blue); transition: box-shadow 0.3s ease; }
.key-area-item:hover { box-shadow: 0 6px 15px rgba(0, 51, 102, 0.1); }
.key-area-item i { color: var(--primary-blue); margin-right: 8px; }
.expertise-highlight { background-color: white; padding: 25px; margin-bottom: 20px; border-radius: var(--border-radius); box-shadow: 0 4px 10px rgba(0, 51, 102, 0.08); border: 1px solid #e0e0e0; transition: box-shadow 0.3s ease; }
.expertise-highlight:hover { box-shadow: 0 7px 18px rgba(0, 51, 102, 0.12); }
.expertise-highlight strong { color: var(--dark-blue); display: block; margin-bottom: 8px; font-size: 1.1rem; }

/* --- Insights/Blog Page --- */
.blog-feed .blog-preview { display: flex; gap: 30px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #eee; background-color: #fff; padding: 20px; border-radius: var(--border-radius); box-shadow: 0 2px 5px rgba(0,0,0,0.07); transition: box-shadow 0.3s ease; }
.blog-feed .blog-preview:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.blog-feed .blog-preview:last-child { border-bottom: none; margin-bottom: 0; }
.blog-preview img { flex-basis: 30%; max-width: 30%; height: 200px; object-fit: contain; border-radius: var(--border-radius); background-color: #f9f9f9; }
.blog-preview-content { flex-basis: 70%; }
.blog-preview-content h2 a { color: var(--dark-blue); text-decoration: none; }
.blog-preview-content h2 a:hover { color: var(--primary-blue); }
.post-meta { font-size: 0.9rem; color: #777; margin-bottom: 10px; }
/* Pagination */
.pagination { text-align: center; margin-top: 40px; }
.pagination a { color: var(--primary-blue); padding: 8px 16px; text-decoration: none; border: 1px solid #ddd; margin: 0 4px; border-radius: var(--border-radius); transition: background-color 0.3s ease, color 0.3s ease; }
.pagination a.active { background-color: var(--primary-blue); color: white; border-color: var(--primary-blue); }
.pagination a:hover:not(.active):not(.disabled) { background-color: #ddd; }
.pagination a.disabled { color: #ccc; pointer-events: none; border-color: #eee; }

/* --- Single Blog Post Page Styles --- */
.blog-post-header-image { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--border-radius); margin-bottom: 30px; }
.blog-post-content { max-width: 800px; margin: 0 auto; }
.post-meta-single { font-size: 0.9rem; color: #777; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.references-section { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.9rem; color: #555; }
.references-section h3 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 10px; }
.references-section ul { list-style: disc; margin-left: 20px; padding-left: 0; }
.back-link { display: inline-block; margin-top: 30px; color: var(--primary-blue); font-weight: bold; text-decoration: none; padding: 8px 15px; border: 1px solid var(--primary-blue); border-radius: var(--border-radius); transition: background-color 0.3s ease, color 0.3s ease; }
.back-link:hover { background-color: var(--primary-blue); color: white; text-decoration: none; }
.back-link i { margin-right: 5px; }

/* --- Contact Page --- */
.contact-wrapper { display: flex; gap: 40px; background-color: var(--light-blue); padding: 40px; border-radius: var(--border-radius); }
.contact-info { flex-basis: 40%; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; display: flex; align-items: center; }
.contact-info i { margin-right: 10px; color: var(--primary-blue); width: 20px; text-align: center; }
.contact-info a { color: var(--primary-blue); }
.contact-info a:hover { color: var(--dark-blue); }
.contact-form { flex-basis: 60%; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--dark-blue); }
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: var(--border-radius); font-size: 1rem; font-family: var(--body-font); }
.form-group input[type="text"]:focus, .form-group input[type="email"]:focus, .form-group textarea:focus { outline: 2px solid var(--primary-blue); outline-offset: 2px; border-color: var(--primary-blue); }
.form-group textarea { resize: vertical; }
.contact-form .cta-button { width: auto; padding: 12px 30px; }


/* --- Responsiveness --- */
@media (max-width: 992px) {
    .highlight-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .about-content { gap: 40px; padding: 30px; } /* About Me adjustments */
    .about-image { flex-basis: 40%; max-width: 250px; } /* About Me adjustments */
    .about-text { flex-basis: 60%; } /* About Me adjustments */
    .service-detail .service-content { flex-direction: column; }
    .service-detail .service-image { max-width: 400px; align-self: center; }
    .blog-feed .blog-preview { flex-direction: column; }
    .blog-preview img { max-width: 100%; flex-basis: auto; margin-bottom: 20px; height: 250px; object-fit: contain; background-color: #f9f9f9; }
    .contact-wrapper { flex-direction: column; }
    /* body { padding-top: 100px; } Example if header wraps */
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .hero { height: 50vh; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    /* Adjust sticky header padding */
    body { padding-top: 68px; } /* Re-evaluate this value */
    header .container { flex-wrap: wrap; justify-content: space-between; }
    .logo { margin-bottom: 10px; }
    nav { width: 100%; margin-top: 10px; }
    nav ul { justify-content: center; flex-wrap: wrap;}
    nav ul li { margin: 5px 10px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-left, .footer-right { flex-basis: 100%; margin-bottom: 10px; }
    .footer-nav { margin-top: 10px; padding-top: 10px; }
    /* About Me adjustments for smaller screens */
    .about-content { flex-direction: column; padding: 25px; gap: 30px; }
    .about-image { flex-basis: auto; width: 60%; max-width: 220px; margin-bottom: 10px; }
    .about-text { flex-basis: auto; text-align: center; }
    #about .section-title { margin-bottom: 40px; }
    /* body { padding-top: 120px; } Example if nav wrap increases header height */
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .cta-button { padding: 10px 20px; font-size: 0.9rem; }
    .section-padding { padding: 40px 0; }
    nav ul li { margin: 5px; }
    nav ul li a { font-size: 0.9rem; }
    .highlight-grid { grid-template-columns: 1fr; }
    .about-image { width: 70%; max-width: 200px;} /* Further adjust About Me image on very small screens */
}