/*Wide text for members page*/
.wide-text {
  max-width: 900px;   
  margin: 2rem auto;
  padding: 1rem;
}

.wide-text p {
  font-size: 1.3rem;
}

/* Fullscreen image */
.full-banner {
  width: 100vw;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  z-index: -1;
}

/* Centered text */
.centered-text-block {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #333;
}

/* Header container */
.site-header {
  height: 10em;
  transition: background-color 0.3s ease, height 0.3s ease;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: saturate(180%) blur(6px);
  position: fixed !important;
  top: 0;
  z-index: 9999;
  border: none !important;
  box-shadow: none !important;
}

.page-content.after-banner {
  padding-top: 10rem;
}

/* Shrunk header */
.site-header.shrink {
  height: 4rem;
  background-color: rgba(255, 255, 255, 1.0) !important;
}

/* Flex container for title and nav */
.site-header .wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  box-sizing: border-box;
  padding: 0 2rem;
}

/* Site title on the left */
.site-title {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 !important;
  flex-shrink: 0;
  padding-top: 0;
}

/* Big logo image */
.site-title img {
  height: 300px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
  align-items: center;
}

/* Shrunken logo image */
.site-header.shrink .site-title img {
  height: 4em;
  width: auto;
  display: block;
  align-items: center;
}

/* headers */
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 7rem;
  font-weight: 600;
  color: #849b8e;
  text-align: center;
}

/* headers */
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 7rem;
  font-weight: 600;
  color: #849b8e;
  text-align: center;
}


/* mobile h2 */
@media (max-width: 768px) {
  h2{
    font-size: 5rem;
  }
}

h3 {
  text-align: center;
    font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 200;
  color: #000000;
}

/*Header for Our Vision*/
h4 {
  text-align: center;
    font-family: 'Cormorant Garamond', serif;
  font-size: 7rem;
  font-style: italic;
  font-weight: 200;
  color: #000000;
}

/* mobile h4 */
@media (max-width: 768px) {
  h2{
    font-size: 5rem;
  }
}

/* Style all paragraph text */
p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 100;
  color: #000000;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

strong, b {
  color: #849b8e;
  font-family: 'Cormorant-Garamond', serif;
  font-weight: bold;
}

/* Side by side image and text for index page and other*/
.text-image-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

/*ibid*/
.text-column {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 200;
  font-size: 1.2rem;
  margin-left: 3rem;
  margin-right: 3rem;
  text-align: justify;
}

/*ibid*/
.image-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*ibid*/
.image-column img {
  max-width: 100%;
  width: 75%;
  height: auto;
  border-radius: 8px;
}

/* Mobile Version */
@media (max-width: 768px) {
  .text-image-row {
    flex-direction: column;   /* stack vertically */
  }

  .text-column,
  .image-column {
    margin-left: 0rem;
    padding: 0 1rem; 
    margin-right: 0rem;
    flex: unset;              /* variable sizing*/
    width: 90%;
  }

  .image-column img {
    order: 2; /* image appears first for mobile users*/
  }

    .text-column {
    margin: 1rem 0; 
    padding: 0 1rem;  
    order: 1; /* image appears first for mobile users*/
  }
}

/* --- NAVIGATION --- */


/* Navigation container on the right */
.site-nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  align-items: flex-start;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
}

/* Menu styles */
.nav-menu {
  display: flex;
}

.nav-menu ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.0rem;
  align-self: flex-start;
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.nav-menu a {
  text-decoration: none;
  color: black;
  font-weight: 100;
  padding-left: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  margin: 0 auto; 
  padding: 0 2rem;           
  /*max-width: 1200px;*/                   
}

.icon-item {
  flex: 1 1 150px;
  max-width: 150px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

div.icon-text p {
  font-size: 1rem;
}


/* for scaling on mobile*/
.icon-item img {
  width: 100%;          
  height: auto;         
  display: block;       
}


.icon-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.icon-toggle img {
  width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.icon-toggle:hover img {
  transform: scale(1.1);
}

.icon-dropdown {
  width: 100%;          
  box-sizing: border-box; 
  padding: 0.5rem;    
  text-align: left;     
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  margin-top: 1rem;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* --- MOBILE STYLES --- */
/* --- MOBILE NAVIGATION & ICON GRID --- */
@media (max-width: 768px) {

  /* --- Hamburger toggle visible --- */
  .nav-toggle {
    display: block;
  }

  /* --- Mobile menu panel (hidden by default) --- */
  .nav-menu {
    display: none;                /* hidden until "open" */
    flex-direction: column;       /* stack items vertically */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 400%;  /* wider menu*/
    margin-left: -6rem; /* shift back to align left */
  }

  /* --- Show menu when hamburger is toggled --- */
  .nav-menu.open {
    display: flex;
  }

  /* --- Menu list --- */
  .nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;       /* vertical stack */
    gap: 0.5rem;
    width: 200%;   /* move left */
    margin-left: 0; /* shift back to align left */
    box-sizing: border-box;
  }

  .nav-menu li {
    margin: 0;
    padding: 0;
  }

  .nav-menu a {
    writing-mode: horizontal-tb;
    flex-direction: initial;
    white-space: nowrap;
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    text-align: left;
    overflow-wrap: anywhere;
    text-decoration: none;
    color: black;
    font-weight: 100;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
  }

  /* Shrink wrapper padding on mobile */
  .site-header .wrapper {
    padding: 0 1rem;
  }

  /* --- Icon grid mobile adjustments --- */
  .icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .icon-item {
    flex: 1 1 calc(33.33% - 1rem);
    max-width: calc(33.33% - 1rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  /* Icon images scale with container */
  .icon-item img,
  .icon-toggle img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
  }

  /* Icon dropdown text */
  .icon-dropdown {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    text-align: left;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .icon-dropdown.open {
    opacity: 1;
    max-height: 1000px;
  }
}

/* --- Narrow screens (phones) --- */
@media (max-width: 400px) {
  .icon-item {
    flex: 1 1 calc(45% - 1rem);
    max-width: calc(45% - 1rem);
  }
}
