/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Reset defaults and apply base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(145deg, #4a5463, #2f3744);
  color: #FFFFFF;
}

/* Headings */
h1, h2, h3 {
  color: #FFFFFF;
  font-weight: 600;
}

/* Header styling */
header {
  background: linear-gradient(to right, #2f3744, #3a424f);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Navigation bar */
nav {
  background-color: #373e4a;
  color: #ffffff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* optional visual polish */
}



.navbar {
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar > li {
  position: relative;
  margin: 0 20px;
}

.navbar a {
  color: #B8B2A6;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  display: block;
  transition: color 0.3s ease;
}

.navbar a:hover {
  background-color: #3a424f;
  color: #ffffff;
}

/* Dropdown */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #373e4a;
  min-width: 200px;
  padding: 10px 0;
  list-style-type: none;
  z-index: 999;
}

.dropdown-menu li a {
  color: #B8B2A6;
  padding: 10px;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #3a424f;
  color: #ffffff;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Main content grid */
main {
  flex: 1;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: block;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 20px;
  width: 100%;
}

article {
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

article:hover {
  transform: scale(1.03);
}

article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

article .content {
  padding: 20px;
}

article h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

article p {
  font-size: 1rem;
  color: #555;
}

/* Footer */
footer {
  background-color: #3a424f;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: auto;
}

footer a {
  color: #B8B2A6;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Buttons */
button {
  background-color: #f56565;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e53e3e;
}

/* Responsive contact sections in columns */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  margin: 0 auto;
  max-width: 1400px;
}

.contact-container section {
  flex: 1 1 45%;
  min-width: 300px;
  background-color: #2f3744;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  color: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-container section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-container p,
.contact-container ul {
  text-align: left;
  line-height: 1.6;
}

.contact-container ul {
  list-style: none;
  padding: 0;
}

.contact-container ul li a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #3a424f;
  border-radius: 999px;
  margin-top: 0.5rem;
  transition: background 0.3s ease;
  color: white;
  text-decoration: none;
}

.contact-container ul li a:hover {
  background: #4a5568;
}

/* Links */
a {
  font-weight: 500;
  color: #63b3ed;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
  color: #ffffff;
  border-bottom: 1px solid #63b3ed;
}

/* Page wrapper */
.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Slideshow */
.slideshow-container {
  max-width: 800px;
  position: relative;
  margin: auto;
}

.slideshow-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: relative; /* remove absolute */
}

.slideshow-image.active {
  opacity: 1;
  position: relative;
}


#slideshow-image-watkinsglen {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide {
  display: none;
  text-align: center;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.caption {
  margin-top: 8px;
  font-size: 1rem;
  color: #ffffff;
}

/* Media Queries */
@media (max-width: 1024px) {
  main {
    grid-template-columns: 1fr 1fr;
  }

  .contact-container {
    flex-direction: column;
  }

  .contact-container section {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  main {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 2.2rem;
  }

  nav {
    flex-direction: column;
  }
}

.about-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #EAEAEA;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-content section {
  width: 100%;
}

.about-content h2 {
  margin-top: 2rem;
  font-size: 1.8rem;
  color: #ffffff;
  border-bottom: 1px solid #4a5568;
  padding-bottom: 0.5rem;
  align-items: center;
}

.about-content p {
  margin-top: 1rem;
  color: #cccccc;
}

.centered {
  text-align: center;
}

.section {
  margin: 2rem auto;
  max-width: 800px;
  padding: 1rem;
}

.map-container {
  margin-top: 1rem;
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

.pdf-links {
  list-style: none;
  padding: 0;
  text-align: center;
}

.pdf-links li {
  margin: 1rem 0;
}

.pdf-links a {
  text-decoration: none;
  font-weight: 500;
  color: #00a;
}

.card {
  background-color: #2d2f35;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  color: white;
}

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

.card h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #f0f0f0;
}

.card a {
  color: #9cc9ff;
  text-decoration: none;
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
}

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

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.two-column-feature {
  display: flex;
  align-items: flex-start; /* Already set */
  gap: 40px;
  height: auto; /* Remove fixed height */
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 20px;
  box-sizing: border-box;
}


/* Shared styling for both sides */
.feature-text, .map-container, .feature-slideshow {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Text-specific tweaks */
.feature-text {
  flex: 1;
  color: #EAEAEA;
}

.feature-text h2, h3 {
  font-size: 1.8rem;
  color: #ffffff;
  border-bottom: 1px solid #4a5568;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 0;
  line-height: 1.2;
  min-height: 3.6rem;
}

.feature-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cccccc;
  margin-bottom: 1.2em;
}

/* Slideshow/image/map settings */
.feature-slideshow,
.map-container {
  display: flex;
  align-items: start;
  justify-content: center;
}

.feature-slideshow {
  flex: 1;
  position: relative;
}

.feature-slideshow {
  margin-top: 0;
  padding-top: 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 10px;
}


.two-column-feature {
  align-items: stretch;
}

.feature-text, .feature-slideshow {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}


/* Responsive behavior */
@media (max-width: 768px) {
  .two-column-feature {
    flex-direction: column;
    align-items: center;
  }

  .feature-text,
  .feature-slideshow,
  .map-container {
    width: 100%;
  }
}

.button-link {
  display: inline-block;
  background-color: #2d3748; /* dark gray */
  color: #ffffff;
  padding: 0.6rem 1rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border: 1px solid transparent;
  width: fit-content;
}

.button-link:hover {
  background-color: #222936; /* lighter on hover */
  text-decoration: none;
}

.button-link:focus {
  outline: none;
  border-color: #cbd5e0; /* soft border on focus */
  box-shadow: 0 0 0 2px #cbd5e0;
}

.slideshow-caption {
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
  color: #cbd5e0;
}


.feature-slideshow {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 250px; /* Choose a fixed height that fits your images */
  overflow: hidden;
}

.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slideshow-image.active {
  opacity: 1;
  z-index: 1;
}


.two-column-feature {
  display: flex;
  align-items: center;
  gap: 2rem; /* optional spacing between columns */
}

.feature-text,
.feature-slideshow {
  flex: 1 1 50%;
  max-width: 50%;
}

.two-column-feature {
  display: flex;
  align-items: flex-start; /* align tops */
  gap: 2rem;
}

.feature-text,
.feature-slideshow {
  flex: 1 1 50%;
  max-width: 50%;
}

.feature-slideshow {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.two-column-feature {
  display: flex;
  gap: 2rem;
  align-items: stretch; /* ← ensures both children are same height */
}

.feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-slideshow {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.feature-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Or use contain if you prefer the full image in bounds */
  border-radius: 0.5rem;
}

.two-column-feature {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  min-height: 250px; /* Add a minimum height */
}

.feature-text,
.feature-slideshow {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
}

details {
  margin-bottom: 1em;
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.3em 0;
  list-style: none; /* hide default triangle */
}

summary::-webkit-details-marker,
summary::marker {
  display: none; /* hide default marker in all browsers */
}

/* Heading inside summary */
summary h3 {
  margin: 0;        /* remove default spacing */
  font-size: 1.2em; 
  font-weight: bold;
}

/* Custom arrow */
summary::after {
  content: "▶";       /* right-pointing arrow */
  font-size: 1em;
  margin-left: 0.5em;
  transition: transform 0.2s ease;
}

/* Rotate arrow when open */
details[open] summary::after {
  transform: rotate(90deg); /* points downward when open */
}

/* Default: two columns */
.two-column-feature {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.feature-text,
.feature-slideshow,
.map-container {
  flex: 1 1 50%;
  max-width: 50%;
}

/* Mobile: stack columns */
@media (max-width: 768px) {
  .two-column-feature {
    flex-direction: column;
  }

  .feature-text,
  .feature-slideshow,
  .map-container {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* Mobile nav: stack items */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar > li {
    margin: 5px 0;
    text-align: center;
  }
}

/* Wrapper with heading and two columns */
.feature-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 20px;
}

.feature-section h2 {
  font-size: 2rem;
  color: #ffffff;
  border-bottom: 2px solid #4a5568; /* line across both columns */
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Two-column layout under the heading */
.feature-columns {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.feature-columns > div {
  flex: 1;
  background-color: #2f3744;
  padding: 1.5rem;
  border-radius: 10px;
  color: #EAEAEA;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .feature-columns {
    flex-direction: column;
  }
}

.feature-columns p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cccccc;
  margin-bottom: 1.2em;
}

/* Heading for two-column-feature wrapper */
.two-column-feature h2.section-heading {
  width: 100%;
  font-size: 2rem;
  color: #ffffff;
  border-bottom: 1px solid #4a5568;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Remove all gray rounded boxes across site */
.contact-container section,
.card,
.feature-columns > div,
.two-column-feature .feature-text,
.two-column-feature .feature-slideshow,
.map-container,
.slideshow-image,
.slide img {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0; /* optional */
}
