* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #000;
}



.header {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-gap: 5px;
}

.header h2 {
  grid-column: 1/span 3;
}

header, nav, main, footer {
  padding: 10px;
}

header, footer {
  background-color: #659925;
  color: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  display: wrap;
}

.logo img {
  width: auto;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  border: 2px solid #659925;
  border-radius: 8px;
}

nav {
  margin: 10px 0;
}

nav ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
nav li {
	text-align: center;
}
nav a {
  background-color: #9fc73d;
  display: block;
  padding: 0.5em;
  color: #FFFFFF;
  text-decoration: none;
}

nav ul ul li {
  width: auto;
}

nav ul li a:hover {
  background-color: #d2ee54;
}

/* Main styles */
main {
	padding: 2%;
}

/* Footer styles */
footer {
	text-align: center;
	font-size: 1em;
}

.footer-left {
  line-height: 1.6; /* Adjust between 1.2–2 for desired spacing */
  text-align: center;
  color: white; /* if on green background */
}

input {
  margin-top: 20px;
}

.social-icons {
  justify-content: center; /* centers them */
  align-items: center;
  max-width: 60px;
  max-height: 60px;
}

.social-section {
  background-color: #659925;
  text-align: center;
  padding: 20px 0;
}

.follow-text {
  font-size: 1.4rem;
  color: white;
  font-weight: bold;
  margin-bottom: 10px;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.social-icons a img:hover {
  transform: scale(1.2);
}

.home-title {
    background: #659925;
    color: white;
    text-align: center;
    padding: 40px 20px;
    font-size: 2rem;
    font-weight: bold;
  }

  .intro {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
  }

  .media-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
  }

  .media-section .media-item {
    max-width: 200px;
  }

  .media-section img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
  }

  .media-caption {
    font-weight: bold;
    margin-top: 10px;
  }

  .three-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
  }

  .column {
    flex: 1;
    min-width: 280px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
  }

  .column img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
  }

  .column h3 {
    color: #659925;
    margin-bottom: 10px;
  }

  .column p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  #homepage main {
  padding: 20px;
  background-color: #ffffff;
  color: #000;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Block A: Tagline */
#homepage .tagline {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: #659925;
}

/* Block B: Intro paragraph */
#homepage .intro {
  font-size: 1rem;
}

/* Block C: Subheading */
#homepage .highlight-heading {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Hear/See Links */
#homepage .media-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#homepage .media-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: black;
}

#homepage .media-links img {
  width: 50px;
  height: 50px;
}

/* Three Columns (D, E, F) */
#homepage .three-columns {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#homepage .three-columns .column {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

#homepage .three-columns .column img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}



/* Responsive Layout for Desktop */
@media (min-width: 768px) {
  #homepage main {
    gap: 30px;
  }

  input {
    padding: 20px;
  }

  #homepage .media-links {
    flex-direction: row;
    justify-content: center;
  }

  #homepage .three-columns {
    flex-direction: row;
    justify-content: space-between;
  }

  #homepage .three-columns .column {
    width: 32%;
  }

  #homepage .tagline {
    order: 10; /* push tagline to bottom */
    font-size: 2rem;
  }
}


@media screen and (min-width: 600px) {
	.mobile, .mobile-nav {
		display: none;
	}
	
	.tablet-desktop {
		display: block;
	}

	/* Navigation styles for tablet/desktop*/
	nav ul {
		display: grid;
		grid-template-columns: auto auto auto auto auto auto auto;
	}
	
	nav ul li a:hover {
	background-color: #d2ee54;
	}
	
	nav ul li:hover > ul {
		display: block;
		width: inherit;
	}
	
	nav ul ul {
		display: none;
		position: absolute;
	}
	
	nav ul ul li {
		width: auto;
	}

.three-columns {
    flex-direction: column;
  }

  .media-section {
    flex-direction: column;
  }

  .home-title {
    font-size: 1.6rem;
    padding: 30px 10px;
  }
}