:root {
    --nehcs-navy: #0c203a;
    --nehcs-cream: #fefefe;
    --nehcs-card: #fffcec;
    --nehcs-dark-cream: #f4e8dbde;
    --nehcs-light-blue: #fffced;
    --nehcs-hover-blue: #2c5282;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--nehcs-cream);
    color: var(--nehcs-navy);
}

h1{
    font-family: 'nunito sans' sans-serif;
    font-weight: bold;
    color: var(--nehcs-navy);
}

h2, h3, h4, h5, h6 {
    font-family: 'nunito sans' sans-serif;
    color: var(--nehcs-navy);
}

/* Navigation */
.navbar-custom {
    background-color: var(--nehcs-navy);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(26, 40, 65, 0.1);
}

.navbar-custom .navbar-brand {
    padding: 0;
}

.navbar-custom .navbar-brand img {
    height: 140px;
    width: auto;
}

.navbar-custom .nav-link {
    color: var(--nehcs-cream);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--nehcs-light-blue);
}

.navbar-custom .navbar-toggler {
    border-color: var(--nehcs-cream);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(248, 240, 221, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: .5rem 1rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--nehcs-navy);
    border-color: var(--nehcs-navy);
    color: var(--nehcs-cream);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--nehcs-hover-blue);
    border-color: var(--nehcs-hover-blue);
    color: var(--nehcs-cream);
}

/* Cards - Global Styling */
.card, .team-card, .service-card, .team-member-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

.card:hover, .team-card:hover, .service-card:hover, .team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-body, .team-card-content, .service-card-content, .team-member-card-content {
    padding: 25px;
    text-align: center;
}

.card h3, .team-card h3, .service-card h3, .team-member-card h3, .card-title {
    color: var(--nehcs-navy);
    margin-bottom: 5px;
    font-weight: 600;
}

.card .text-muted, .team-card .text-muted, .service-card .text-muted, .team-member-card .text-muted {
    font-style: italic;
    margin-bottom: 15px;
}

/* Layout */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Footer */
.footer {
    background-color: var(--nehcs-navy);
    color: var(--nehcs-cream);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-logo {
    max-height: 150px;
    width: auto;
    /* filter: brightness(0) invert(1); Makes the logo white */
}

/* Alerts */
.alert {
    border: none;
    border-radius: 4px;
}

.alert-success {
    background-color: var(--nehcs-light-blue);
    color: var(--nehcs-navy);
    border-left: 4px solid var(--nehcs-navy);
}

/* Forms */
.form-control {
    border: 1px solid rgba(26, 40, 65, 0.1);
    border-radius: 4px;
    padding: 0.75rem;
    background-color: var(--nehcs-cream);
}

.form-control:focus {
    border-color: var(--nehcs-navy);
    box-shadow: 0 0 0 0.2rem rgba(26, 40, 65, 0.1);
    background-color: var(--nehcs-cream);
}

.form-select {
    background-color: var(--nehcs-cream);
    border: 1px solid rgba(26, 40, 65, 0.1);
}

.form-select:focus {
    border-color: var(--nehcs-navy);
    box-shadow: 0 0 0 0.2rem rgba(26, 40, 65, 0.1);
    background-color: var(--nehcs-cream);
}

.form-label {
    color: var(--nehcs-navy);
    font-weight: 500;
}

/* Lists */
ul:not(.navbar-nav) {
    padding-left: 1.5rem;
}

ul:not(.navbar-nav) li {
    margin-bottom: 0.5rem;
    color: var(--nehcs-navy);
}

/* Section Headings */
.section-heading {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--nehcs-navy);
}

/* Service Cards Container */
.section-container {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.section-container .row {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Service Cards */
.service-card {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--nehcs-navy);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--nehcs-navy);
}

.service-card ul li:last-child {
    margin-bottom: 0;
}

/* Team Member Cards */
.team-member-card {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--nehcs-card);
}

.team-member-card .member-title {
    color: var(--nehcs-hover-blue);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Service Features */
.service-features {
    margin: 1.5rem 0;
}

.service-features p {
    margin-bottom: 0.75rem;
    color: var(--nehcs-navy);
    font-style: italic;
    font-weight: bold;
}

/* Carousel Styles */
.carousel {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26, 40, 65, 0.1);
}

.carousel-inner {
    background-color: var(--nehcs-light-blue);
    padding: 1.5rem;
    min-height: 150px;
}

.carousel-content {
    padding: 1rem;
    text-align: center;
}

.carousel-content h4 {
    color: var(--nehcs-navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.carousel-content p {
    color: var(--nehcs-navy);
    margin-bottom: 0;
}

.carousel-indicators {
    margin-bottom: 0;
}

.carousel-indicators button {
    background-color: var(--nehcs-navy);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    filter: invert(15%) sepia(30%) saturate(1000%) hue-rotate(190deg) brightness(90%) contrast(90%);
}

/* Section Container for Scroll Animations */
.section-container {
    padding: 2rem 0;
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section-container.aos-animate {
    opacity: 1;
}

/* AOS Animation Overrides */
[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* Service Section Spacing */
.service-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(26, 40, 65, 0.1);
}

.service-section:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    transition: height 0.3s ease, padding 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    transition: font-size 0.3s ease, margin-bottom 0.3s ease;
}

.hero-section p {
    transition: font-size 0.3s ease, margin-bottom 0.3s ease;
}

/* Contact Form Overlay */
.contact-form-overlay {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Contact Page */
.contact-page {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 80px 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contact-page .container {
    position: relative;
    z-index: 2;
}

/* Team Hero Section */
.team-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.team-hero-section .container {
    position: relative;
    z-index: 2;
}

/* Team Cards Container */
.team-cards-container {
    position: relative;
    margin-top: -100px;
    z-index: 3;
}

/* Responsive Images - Continuous Scaling */
@media (max-width: 1400px) {
    .hero-section {
        height: 68vh;
        padding: 90px 0;
    }
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        height: 65vh;
        padding: 80px 0;
    }
    .hero-section h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 60vh;
        padding: 70px 0;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 55vh;
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2.4rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
        padding: 50px 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
}

/* Responsive Grid - Earlier Breakpoints */
@media (max-width: 1400px) {
    .service-card {
        min-width: 220px;
    }
}

@media (max-width: 1200px) {
    .service-card {
        min-width: 200px;
    }
}

@media (max-width: 992px) {
    .service-card {
        aspect-ratio: auto;
        min-height: 300px;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .service-card {
        min-height: 250px;
        min-width: 160px;
    }
}

@media (max-width: 576px) {
    .service-card {
        min-height: 220px;
        min-width: 140px;
    }
}

/* Info Sections */
.info-section-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.info-section {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--nehcs-navy);
}

.info-section p {
    text-align: center;
    margin-bottom: 25px;
}

.two-column-list {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.two-column-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.two-column-list li {
    margin-bottom: 15px;
    color: var(--nehcs-navy);
}

.two-column-list li:last-child {
    margin-bottom: 0;
}

/* About Page */
.about-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.about-hero-section .container {
    position: relative;
    z-index: 2;
}

.about-content-section {
    position: relative;
    margin-top: -50px;
    z-index: 3;
    padding-bottom: 50px;
}

.about-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.about-values-list {
    list-style: none;
    padding: 0;
}

.about-values-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.about-values-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--nehcs-navy);
}

.about-values-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-hero-section {
        height: 50vh;
        padding: 60px 0;
    }
    
    .about-card {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .about-hero-section {
        height: 40vh;
        padding: 40px 0;
    }
    
    .about-card {
        padding: 25px;
    }
}

/* Form Required Fields */
.required-field {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Only show validation styles after form submission */
.form-submitted .form-control:invalid {
    border-color: #dc3545;
}

.form-submitted .form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Form Placeholder Styling */
.form-control::placeholder {
    font-style: italic;
    color: #6c757d;
}

/* Select Placeholder Styling */
select.form-control option[value=""] {
    color: #6c757d;
    font-style: italic;
}

select.form-control:invalid {
    color: #6c757d;
}

select.form-control:valid {
    color: #212529;
}

/* Searchable Select Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid rgba(26, 40, 65, 0.1);
    border-radius: 4px;
    background-color: var(--nehcs-cream);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
    color: #6c757d;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--nehcs-navy);
}

.select2-dropdown {
    border: 1px solid rgba(26, 40, 65, 0.1);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid rgba(26, 40, 65, 0.1);
    border-radius: 4px;
    padding: 6px;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--nehcs-light-blue);
    color: var(--nehcs-navy);
} 