/* ============================================
   Bethel Presbyterian Church /about/campus Stylesheet
   ============================================ */

/* ---------------------
   Campus Headers
   --------------------- */
.campus-header,
.campus-subheader {
  font-family: 'Goudos', serif;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px; /* unify width for harmony */
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(to right, #fdfdfd, #f5f5f5); /* subtle gradient backdrop */
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}

/* Header */
.campus-header {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.campus-header::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary-green);
  margin: 0.75rem auto 0;
  border-radius: 2px;
  opacity: 0.9;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.campus-header:hover::after {
  width: 100px;
  background-color: #4caf50;
}

/* Subheader */
.campus-subheader {
  font-size: 1.25rem;
  color: #444;
  line-height: var(--line-height-normal);
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-top: 2px solid var(--primary-green); /* definition line */
  padding-top: 1.25rem;
}
/* ---------------------
   Building Blocks Grid
   --------------------- */
.building-block {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.building-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.building-photo {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.building-photo:hover {
  transform: scale(1.02);
  filter: brightness(1.05) contrast(1.05);
}

.campus-content {
  font-family: 'Goudos', serif;
  font-size: 1rem;
  color: #444;
  line-height: var(--line-height-normal);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid layout for desktop cohesion */
.buildings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* three cards side by side */
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ---------------------
   Individual Building IDs
   --------------------- */
#building-0, #building-1, #building-2 {
  scroll-margin-top: 100px;
}

/* ---------------------
   Map Container
   --------------------- */
.map-container {
  position: relative;
  margin: 2rem auto;
  max-width: 1000px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ---------------------
   Map Toggle
   --------------------- */
.map-toggle {
  display: inline-block;
  font-family: 'Goudos', serif;
  font-weight: 600;
  color: var(--primary-green);
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  background: #fff;
  transition: background-color 0.3s ease, color 0.3s ease,
              box-shadow 0.3s ease, transform 0.3s ease;
  margin-top: 1rem;
}
.map-toggle:hover {
  background-color: var(--primary-green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,128,0,0.25);
  transform: translateY(-2px);
}

/* ---------------------
   Individual Map IDs
   --------------------- */
#map-0, #map-1 {
  scroll-margin-top: 100px;
}

/* ---------------------
   Responsive Adjustments
   --------------------- */
@media (max-width: 1024px) {
  .buildings-grid {
    grid-template-columns: repeat(2, 1fr); /* two cards side by side */
  }
}
@media (max-width: 768px) {
  .buildings-grid {
    grid-template-columns: 1fr; /* stack cards vertically */
  }
  .campus-header {
    font-size: 1.6rem;
  }
  .campus-subheader {
    font-size: 1.05rem;
  }
  .map-container iframe {
    height: 300px;
  }
}
