/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F5F5F5;
  color: #333333;
}

/* Navbar Styles */
.navbar {
  position: fixed; /* Fix the navbar at the top */
  top: 0; /* Make sure it sticks to the top */
  left: 0; /* Align it to the left edge */
  width: 100%; /* Make the navbar full width */
  background-color: #42b983;
  padding: 10px 20%; /* Adjust padding to add space on the sides */
  display: flex;
  height: 50px;
  justify-content: space-between; /* Distribute space between logo and links */
  align-items: center;
  z-index: 1000; /* Ensure the navbar stays on top of other content */
}

.logo {
  font-size: 24px;
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
}

.hero-logo{
  color: #FFD700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  justify-content: center; /* Center the nav links */
  flex-grow: 1; /* Allow the links to take up available space */
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: #FFD700;
  color: #333333;
}

.nav-link.active {
  background-color: #FFD700;
  color: #333333;
}


/* Hero Section */
.hero {
  position: relative; /* Set relative positioning for the overlay */
  text-align: center;
  padding: 0 20px; /* Remove top and bottom padding */
  background-color: #42b983;
  background-image: url('/assets/images/hero.jpg');
  /* background-image: url('/home/elly/Desktop/websites/projects/youthfund/assets/images/hero.jpg'); Add your background image here */
  background-size: cover; /* Make the background cover the entire hero section */
  background-position: center; /* Center the background image */
  color: white;
  height: 100vh; /* Make the hero section fill the entire viewport height */
  display: flex; /* Use Flexbox to center the content */
  flex-direction: column; /* Stack the content vertically */
  justify-content: center; /* Vertically center the content */
  align-items: center; /* Horizontally center the content */
  margin-top: 60px; /* Add top margin to avoid content being hidden behind the fixed navbar */
}

.hero::before {
  content: ''; /* Create an empty pseudo-element */
  position: absolute; /* Position it absolutely inside the .hero section */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(66, 185, 131, 0.7); /* Overlay with the color from the color scheme (#42b983) and some opacity */
  z-index: 1; /* Make sure the overlay stays behind the text */
}

.hero h1, .hero p, .cta-btn {
  z-index: 2; /* Make sure the text and button are on top of the overlay */
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;  
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-btn {
  background-color: #FFD700;
  color: #333333;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: white;
  color: #42b983;
}


/* Footer */
footer {
  text-align: center;
  padding: 10px 0;
  background-color: #333333;
  color: white;
}

.brand-highlight {
  color: #FFD700;
  font-weight: bold;
  font-weight: bolder;
}

.highlight {
  color: #42b983;
  font-weight: bold;
}

/* About Us Section */
.about-us {
  height: 86vh;
  padding: 50px 20px;
  background-color: #F5F5F5;
  text-align: center;
}

.abt-section{
  height: 90vh;
  padding: 110px 20px;
}

.about-us h1 {
  font-size: 32px;
  color: #42b983;
  margin-bottom: 20px;
}

.about-us p {
  font-size: 18px;
  color: #333333;
  margin-bottom: 10px;
}

/* About Us Container */
.about-us-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-top: 2rem;
}

/* Information Div */
.info-div {
  position: absolute;
  z-index: 1;
  background-color: white;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 40%;
  height: auto;
  left: 20%;
  top: 20%;
  transform: translateY(-20%);
  border-radius: 8px;
}

/* Motivating Title */
.info-div h2 {
  color: #42b983;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: bold;
}

/* Paragraph Text */
.info-div p {
  line-height: 1.4;
  color: #333;
  text-align: justify;
}

/* Image Div */
.image-div {
  flex: 1;
  height: 500px;
  background-color: #f5f5f5;
  display: flex;
  justify-content: right;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  margin-right: 5%;
  margin-bottom: 7%;
}

.image-div img {
  width: 45%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Team Section */
.team-section {
  text-align: center;
  padding: 50px 20%;
  background-color: #f5f5f5;
  background: linear-gradient(135deg, #f5f5f5 50%, #bfc4c8 100%);
  /* Adds a subtle gradient for differentiation */
  border-top: 3px solid #42b983; /* Optional: a border divider at the top */
  /* background-image: url('/path/to/background-pattern.png'); */
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.8; /* Slight transparency for subtlety */
}

.team-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333333;
}

.team-section p {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 40px;
}

.team-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr); /* First Row: 2 Cards */
}

.first-two{
  display: grid;  
  grid-template-columns: repeat(2, 1fr);
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  padding: 20px;
}

.team-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
}

.card-image {
  width: 100px;
  height: 100px;
  margin: 0 auto -50px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #42b983;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-top: 60px;
  font-size: 1.2rem;
  color: #333333;
}

.team-card p {
  font-size: 0.9rem;
  color: #777777;
  margin: 10px 0 20px;
}

.view-profile-btn {
  background-color: #42b983;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.view-profile-btn:hover {
  background-color: #369f72;
}


/* Team Member Container */
.team-member-p{
  padding-top: 6%;
  height: 85vh;
  padding-bottom: 5px;
}

fieldset{
  width: 70%;
  height: 76vh;
  margin: 20px auto;
}

.team-member-container {
  display: flex; /* Flex layout for side-by-side divs */
  align-items: stretch; /* Ensure equal height */
  gap: 20px; /* Add space between the divs */
  margin: 20px auto;
  max-width: 1200px;
  /* width: 50%; */
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: #369f72 solid 2px;
  border-radius: 5px;
}

/* Portrait Image Div */
.portrait {
  flex: 1; /* Take up 1 part of the available space */
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: #777777 solid 1px;
}

.portrait img {
  max-width: 100%;
  height: auto;
  width: 60%;
  border-radius: 100%;
  object-fit: cover;
  border: 3px solid #369f72;
}

/* Biography Information Div */
.biography {
  flex: 2; /* Take up 2 parts of the available space */
  display: flex;
  flex-direction: column;
  padding: 8px;
  width: 70%;
  height: 40%;
  justify-content: center;
  /* background-color: #FFD700; */
}

.biography h2 {
  font-size: 1.8rem;
  color: #42b983;
  margin-bottom: 15px;
}

.biography p {
  line-height: 1.6;
  color: #333333;
  text-align: justify;
}

.more-bio{
  height: 35vh;
  height: 90%;
}


/* Social media incons */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Contact form */

.contact-section {
  padding: 40px 20px;
  background-color: #f5f5f5;
}
.contact-section-single{
  height: 70vh;
  /* padding:50px 20px; */
  padding-top: 110px;
}
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form{
  padding: 30px;

}
.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #42b983;
  outline: none;
}

#message{
  resize: none;
}

.contact-form .submit-button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #42b983;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .submit-button:hover {
  background-color: #369766;
}


/* end contact form */

/* Apply form */
.loan-application-section {
  padding: 110px 10px;
  background-color: #f5f5f5;
}

.loan-application-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loan-application-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.loan-application-form {
  padding: 0px 30px;
}
.loan-application-form .form-group {
  margin-bottom: 15px;
}

.loan-application-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.loan-application-form input,
.loan-application-form select {
  width: 90%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
}

.loan-application-form input:focus,
.loan-application-form select:focus {
  border-color: #42b983;
  outline: none;
}
.radio-group{
  display: flex;
}
.loan-application-form .radio-group label {
  display: flex;
  margin-right: 10px;
  font-size: 16px;
  color: #333;
}

.radio-group label{
  margin-left: 30px;
}

.loan-application-form .radio-group input {
  margin-right: 5px;
}

.loan-application-form .submit-button {
  display: block;
  width: 50%;
  padding: 10px;
  background-color: #42b983;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: auto;
  margin-right: auto;
}

.loan-application-form .submit-button:hover {
  background-color: #369766;
}

/* end Apply form */

/* News page */
.learn-page {
  padding:  120px 0px 0px 0px;
  background-color: #f5f5f5;
  height: 80vh;
}

.learn-container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar {
  flex: 1;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sidebar h3 {
  margin-bottom: 15px;
  color: #333;
}

.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  margin-bottom: 15px;
}

.article-list a {
  font-weight: bold;
  color: #42b983;
  text-decoration: none;
}

.article-list a:hover {
  text-decoration: underline;
}

.article-list p {
  font-size: 14px;
  color: #666;
  margin: 5px 0 0;
}

.main-content {
  flex: 2;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-content h2 {
  margin-bottom: 20px;
  color: #333;
}

.main-content article {
  margin-bottom: 20px;
}

.main-content article h3 {
  margin-bottom: 10px;
  color: #42b983;
}

.main-content article p {
  color: #555;
  line-height: 1.6;
}

/* End News page */

/* Responsive section */
/* Tablet in portriat mode */
@media (min-width: 576px) {
  .team-container:not(:nth-child(1)) {
    grid-template-columns: repeat(4, 1fr); /* Rest: 4 Cards Per Row */
  }
/* 
  .info-div h2 {
    color: #03100a;
  } */
  
  /* Paragraph Text */
  .info-div p {
    line-height: 1.4;
    /* color: #d81717; */
    text-align: justify;
  }
}


/* Tablet in landscape mode */
@media (min-width: 768px) {
  .team-container:not(:nth-child(1)) {
    grid-template-columns: repeat(4, 1fr); /* Rest: 4 Cards Per Row */
  }
  /* .info-div h2 {
    color: #5220a7;
  } */
}