@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --brand-green: #5da62d;
    --brand-green-light: #7bc248;
    --white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --link-color: var(--brand-green);
    --link-hover-color: #4c8a25;
    --footer-bg-dark-gray: #2c2c2c;
    --footer-text: var(--white);
    --footer-link: var(--brand-green-light);
    --footer-link-hover: var(--white);
    --menu-border-color: #d1d1d1;
    --light-gray: #d3d3d3; /* New variable for light gray */
    --navbar-border-color: #e0e0e0; /* New variable for navbar border color */
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: var(--text-primary);
    background-color: #ffffff;
}

strong, b {
    font-weight: 600;
    color: var(--text-primary);
}

em, i {
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    color: var(--text-primary);
}

h1 { font-size: 48px; }
h2 { font-size: 40px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

a:hover {
    color: var(--link-hover-color);
}

header .social-icons a,
header .social-icons a i {
    color: var(--brand-green) !important;
    margin-left: 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

header .social-icons a:hover,
header .social-icons a:hover i {
    color: var(--link-hover-color) !important;
}

header .social-icons a:not(:hover),
header .social-icons a:not(:hover) i {
    color: var(--brand-green) !important;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--navbar-border-color);
    padding: 0.5rem 1rem;
    box-shadow: none;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 400;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--brand-green);
}

/* Dropdown styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: var(--text-primary);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: var(--brand-green);
    text-decoration: none;
    background-color: #f8f9fa;
}

/* Show dropdown on hover */
.navbar-nav .nav-item:hover > .dropdown-menu {
    display: block;
}

.btn-primary {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--white);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--link-hover-color);
    border-color: var(--link-hover-color);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-text {
    flex-grow: 1;
}

.card .btn {
    align-self: flex-start;
    margin-top: auto;
}

footer {
    background-color: var(--footer-bg-dark-gray);
    color: var(--footer-text);
    padding: 2rem 0;
}

footer h5 {
    color: var(--white);
    font-weight: 500;
}

footer p {
    color: var(--footer-text);
}

footer a {
    color: var(--footer-link);
    font-weight: 400;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

footer .social-icons a {
    color: var(--footer-link);
    margin-left: 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: var(--light-gray);
}

footer .social-icons a:hover i {
    color: var(--light-gray);
}

footer .text-muted {
    color: #b0b0b0 !important;
}

@media (max-width: 767px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }
    h6 { font-size: 16px; }
}

/* Hero Section Styles */
.hero-container {
    background-color: #f8f9fa;
    border-bottom: 3px solid var(--brand-green);
    padding: 6rem 0;
}

.hero-container h1.hero-title {
    font-size: 2.5rem;
    /* font-weight: 700; */
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.hero-container .hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 4rem 0;
    }

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

    .hero-container .hero-subtitle {
        font-size: 1.25rem;
    }
}



/* Welcome Section */
/* .welcome-section {
    background-image: url('../img/panorama-centroamerica.png');
    background-size: 30%;
    background-repeat: no-repeat; 
    background-position: center;
    padding: 4rem 0;
    min-height: 300px;
} */

.welcome-section {
    position: relative;
    padding: 4rem 0;
    min-height: 300px;
    z-index: 1; /* Ensure the content is above the pseudo-element */
}

.welcome-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/panorama-centroamerica.png');
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3; 
    z-index: -1;
}

/* Ensure text is readable */
.welcome-section h2,
.welcome-section p {
    position: relative;
    z-index: 2; /* Ensure text is above the pseudo-element */
    color: var(--text-primary); /* Adjust color if needed for better contrast */
}

/* Services Section Styles */
.services-section {
    background-color: #f5f5f5;
    padding: 4rem 0;
}

.services-section .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.services-section .card-title {
    font-weight: 400;
    margin-bottom: 1rem;
}

.services-section .card-text {
    flex-grow: 1;
}

.services-section .far {
    color: var(--brand-green);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.services-section .button-wrapper {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.btn-brand {
    background-color: var(--brand-green);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-brand:hover {
    background-color: var(--brand-green-light);
    color: white;
}

.impact-list {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.brand-green-icon {
    color: var(--brand-green);
}

.text-justify {
    text-align: left;
}

.text-aligned {
    text-align: justify;
}