@charset "UTF-8";
@import url("EUfund.css");

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
main {
    padding-top: 100px; /* Buffer to prevent content from being hidden behind the header */
}

.buffer-top {
    padding-top: 120px; /* Ensure buffer to prevent content from being hidden behind the header */
}
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}

.bodyp {
    padding-left: 20px;
    padding-right: 20px;
}

h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0d8f19;
    text-align: center;
}

#intro {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

#intro1 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}
/* General styles for header, logo, and navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #F5F8FF;
    position: fixed;
    width: 100%;
    top: 0;
    transition: padding 0.3s;
    z-index: 1000;
}

header.shrink {
    padding: 10px 50px;
}

header .logo img {
    height: 40px;
    width: auto;
}

header nav {
    flex: 1;
    text-align: right;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 0;
    margin: 0;
}

header nav ul li {
    position: relative;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #0D8F19;
}

/* Styles for dropdown menu */
.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #F5F8FF;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #0D8F19;
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: #0D8F19;
}

.video-section {
    margin-top: 80px;
}

video {
    width: 100%;
    height: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 10px;
}

.service-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    max-width: 100px; /* Ensure images are the same size */
    height: auto;
    margin-bottom: 15px;
}

.service-item p {
    margin: 0;
}

.light-section {
    background-color: #F5F8FF;
}

.dark-section {
    background-color: #E8EAF6;
    color: #333;
}

#services h2, #additional-services h2, #about h2, #clients h2, #contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.additional-service-list {
    display: flex;
    justify-content: space-between; /* Ensure even spacing between items */
    padding: 20px;
}

.additional-service-item {
    flex: 1 1 30%; /* Allow each item to take up 30% of the container */
    max-width: 30%; /* Ensure each item does not exceed 30% of the container */
    margin: 10px; /* Adjust margin for spacing */
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    border-radius: 5px;
}

.additional-service-item img {
    max-width: 100%;
    height: 150px; /* Consistent height for all images */
    display: block;
    margin: 0 auto 15px auto;
    object-fit: cover; /* Ensure the image covers the area without distortion */
}

.additional-service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.additional-service-item p {
    font-size: 0.9rem;
    color: #333;
}

#services button, #contact button {
    background-color: #0d8f19;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#services button:hover, #contact button:hover {
    background-color: #0D8F19;
}

/* about section */
#about {
    color: white;
    padding: 100px 20px;
    position: relative;
}

#about h2, #about p {
    position: relative;
    z-index: 2;
}

#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.parallax {
    background-image: url("images/germination.jpg"); /* Replace with your background image */
    min-height: 400px; /* Adjust as needed */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    position: relative;
}

.parallax h2, .parallax .about-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.parallax .about-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    max-width: 1200px;
    gap: 20px;
    padding: 20px;
}

.parallax .about-content p {
    flex: 1;
    margin: 0;
}

.parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1;
}

/* client card */
.client-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.client-card {
    flex: 1 1 30%;
    max-width: 30%;
    height: 200px;
    perspective: 1000px;
    margin: 20px;
    position: relative;
}

.client-card div {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0d8f19;
    transition: transform 0.6s;
}

.client-card .card-front {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.client-card .card-back {
    background-color: #0d8f19;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.client-card:hover .card-front {
    transform: rotateY(180deg);
}

.client-card:hover .card-back {
    transform: rotateY(360deg);
}

.client-card img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

/* contact section */
.contact-section {
    text-align: center; /* Center-aligns the content within the section */
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

#contact-button {
    background-color: #0d8f19;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-button:hover {
    background-color: #0D8F19;
}

footer {
    background-color: #0d8f19;
    color: white;
    text-align: center;
    padding: 5px 10px 5px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer {
    padding: 5px 20px 5px;
    text-align: center;
    color: #fff;
    /* background-color: #008000;  // if you need the green here */
}

/* Row that holds the three logos */
.footer-logos {
    display: flex;
    align-items: center;
    justify-content: space-between; /* left / center / right */
    margin-top: 5px;
    width: 100%;
}

.security-seal {
    margin-top: 0px;
    height: auto;
    width: auto;
}

.seal-left {
    margin-right: auto;      /* push it to the far left */
	height: 90px !important; 
	width: 300px !important;
	display: block;/* bigger than the others */
}

.seal-center {
    margin-top: 10px;
}
.seal-right {
    margin-left: auto;       /* push it to the far right */
}
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

form label {
    display: block;
    margin-top: 10px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

/* blog style */
.blog-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align items to the left */
    padding: 20px;
}

.blog-post {
    flex: 1 1 22%;
    min-width: 250px; /* Set a minimum width to prevent shrinking */
    max-width: 22%;
    margin: 20px;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.blog-post:hover {
    transform: translateY(-10px);
}

.blog-post img {
    max-width: 100%;
    height: 150px; /* Consistent height for all images */
    display: block;
    margin: 0 auto 15px auto;
    object-fit: cover; /* Ensure the image covers the area without distortion */
}

.blog-post h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-post h3 a {
    text-decoration: none;
    color: #0d8f19;
    transition: color 0.3s;
}

.blog-post h3 a:hover {
    color: #0d6b13;
}

.blog-post p {
    font-size: 0.9rem;
    color: #333;
}

/* EIC Acc style */
#eic-accelerator .content-section {
    padding: 20px;
    margin: 20px auto; /* Center the section */
    max-width: 1200px; /* Set a maximum width */
    width: 90%; /* Ensure the content does not extend to the edges */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

#eic-accelerator ul {
    list-style: disc inside;
    padding: 0;
    margin: 10px 0;
}

#eic-accelerator p, #eic-accelerator ul {
    text-align: left;
}

.sidebar {
    flex: 0 0 30%; /* Set the sidebar to 30% width */
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 20px;
    background-color: #E8EAF6;
    border-radius: 5px;
    margin-right: 20px;
}

.sidebar-content {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
}
.content {
    flex: 1; /* Remaining space for the content */
}

/* contact section */
.contact-section {
    padding-top: 100px; /* Ensure content is not hidden behind the fixed header */
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-form {
    flex: 1 1 45%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.contact-form label {
    display: block;
    margin-top: 10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form input[type="submit"] {
    background-color: #0d8f19;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.contact-form input[type="submit"]:hover {
    background-color: #0D8F19;
}

.contact-details {
    flex: 1 1 45%;
    padding: 20px;
}

.location, .additional-info {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.security-seal-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.security-seal {
    max-width: 100px;
    width: 100%;
    height: auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form, .contact-details {
        flex: 1 1 100%;
        max-width: 600px;
    }

    /* Stacking additional-service-item elements */
    #additional-services .additional-service-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 16px;          /* optional: a bit of side padding */
    }
.services-grid {

    padding: 0px;
}
    .additional-service-item {
        flex: 0 0 100%;           /* full-width card */
        width: 100%;
        max-width: 100%;          /* override the desktop 30% max-width */
        margin: 10px 0;
    }
	    .service-item {
        flex: 0 0 100%;           /* full-width card */
        width: 100%;
        max-width: 100%;          /* override the desktop 30% max-width */
        margin: 10px 0;
    }

    /* Disable spinning client cards */
    .client-card {
        transform: none !important;
    }

    .client-card .card-front, .client-card .card-back {
        transform: none !important;
        transition: none !important;
    }

    .client-card .card-back {
        display: none; /* Hide the text on hover */
    }

    /* Hamburger Menu */
   header nav ul {
        display: none !important; /* Hide the main nav bar on mobile */
    }

    header nav .hamburger-menu {
        display: block;
        cursor: pointer;
    }

    header nav .hamburger-menu div {
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
    }

    header nav ul.show {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #F5F8FF;
        z-index: 1001;
    }

    header nav ul.show li {
        margin: 10px 0;
    }
    header nav .dropdown-content {
        display: none !important; /* Disable dropdown menu on mobile */
    }
    header .logo {
        margin-left: 20px; /* Adjust this value to keep the logo in place */
    }
    header nav .hamburger-menu {
        position: absolute;
        right: 20px; /* Adjust this value as needed to place it correctly */
        top: 20px;
		margin-right: 20px;
    }

	
	/* about section */
    #about {
        display: block !important;   /* override any flex/grid */
    }

    #about p {
        display: block !important;   /* no inline-block / flex item */
        width: 100% !important;      /* full width */
        float: none !important;      /* kill any floating */
        margin-right: 0 !important;  /* remove column spacing */
        margin-bottom: 1rem;         /* space between the two <p>s */
    }
	    /* Stack ABOUT / OUR MISSION text on mobile */
    .parallax .about-content {
        flex-direction: column;      /* vertical instead of side-by-side */
        align-items: flex-start;     /* left-align text (optional) */
        text-align: left;            /* keep text left-aligned */
        gap: 12px;                   /* space between the two blocks */
    }

    .parallax .about-content p {
        flex: 0 0 auto;              /* stop them trying to share row space */
        width: 100%;                 /* full width */
    }
	
	.client-card {
    flex: 1 1 30%;
    max-width: 55%;
    height: 60px;
    perspective: 1000px;
    margin: 10px;
    position: relative;}
	
	 .seal-left,
  .seal-right {
    display: none;
  }
	  .seal-center {
    max-height: 70px;
    width: auto;
	position: center;
  }
	  .footer-logos {
    justify-content: center;
  }
}
