* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #e6d7cf;
  --bg-light: #f3ebe6;
  --text-main: #4d4947;
  --rose: #c2697c;
  --rose-dark: #ae5568;
  --green: #277a52;
  --white: #ffffff;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.7;
}

main,
.page-wrapper {
  overflow-x: hidden;
  width: 100%;
}

img {
  width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h3 {
  font-size: 2rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-top: -3vh;
  margin-bottom: 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(243, 235, 230, 0.75);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.section-body {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.section-body-smaller {
  margin-top: -1rem;
  padding-bottom: 1rem;
  margin-left: 3rem;
  margin-right: 3rem;
}

span a {
  text-decoration: none;
  color: #ae5568;
}

span a:hover {
  text-decoration: none;
  color: #4d4947;
}

/* DROPDOWN - MAIN */

.dropdown {
  position: relative;
}

.dropdown-btn {

  background: none;
  border: none;

  font: inherit;

  cursor: pointer;

  color: var(--text-main);

  font-weight: 600;

  display: flex;
  align-items: center;
  gap: .4rem;
}

.dropdown-menu {

  position: absolute;

  top: 120%;
  left: 0;

  min-width: 170px;

  background: white;

  border-radius: 12px;

  box-shadow: 0 15px 30px rgba(0, 0, 0, .12);

  opacity: 0;

  visibility: hidden;

  transform: translateY(8px);

  transition: .25s ease;

  overflow: hidden;
}

.dropdown-menu a {

  display: block;

  padding: .9rem 1.25rem;

  text-decoration: none;

  color: var(--text-main);
}

.dropdown-menu a:hover {

  background: #f6efeb;
}

.dropdown:hover .dropdown-menu {

  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  width: 70px;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-main);
}

/* DROPDOWN - MOBILE */

.mobile-nav {

  display: none;
  flex-direction: column;

  background: var(--bg-light);

  padding: .5rem .2rem .2rem;

  border-top: 1px solid rgba(0, 0, 0, .08);

}

.show-mobile-nav {
  display: flex;
}

.mobile-nav-group {
  margin-top: .75rem;
}

#mobile-nav-first {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#mobile-nav-last {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mobile-nav-list-header {

  color: var(--green);

  font-size: 1rem;

  padding-left: 1rem;

  text-transform: uppercase;

  letter-spacing: 2px;

  text-decoration: none;

  margin-bottom: .75rem;

  font-weight: 700;

}

.mobile-nav-list-item {

  display: block;

  padding-left: 2rem;

  color: var(--text-main);

  text-decoration: none;

  font-weight: 500;

}

.mobile-nav a:hover {

  color: var(--rose);

}

.hero {
  position: relative;

  min-height: 52vh;

  display: flex;
  align-items: center;

  background:
    linear-gradient(rgba(44, 30, 24, 0.25),
      rgba(44, 30, 24, 0)),
    url('../../images/sptormainbanner.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  color: white;
}

.hero-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.35);

  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.hero-subtext {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.15rem;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-map {
  text-align: center;
}

.btn-primary {
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: white;
  color: var(--text-main);
}

.btn-primary:hover {
  background: var(--rose-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  color: white;
  background: var(--green);
}

.btn-secondary:hover {
  background: white;
  color: var(--text-main);
  transform: translateY(-2px);
}

.btn-secondary-dark {
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: var(--rose-dark);
  background: white;
}

.btn-secondary-dark:hover {
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: white;
  background: var(--rose-dark);
}

.featured-event,
.story-section {
  padding: 7rem 0;
}

.ourteam-section {
  padding-top: 8rem;
}

.events-section {
  margin-top: -5vh;
  padding-top: 8rem;
}

.get-involved {
  padding-top: 6rem;
  padding-bottom: 1rem;
}

.news-section {
  padding-top: 8rem;
}

.contacts-section {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding-top: 3rem;
}

.newsletter-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* ==========================================
   SOCIAL SECTION
========================================== */

.social-section {

  padding: 5rem 0;

  background: #f8f2ee;

}


.age-section {

  margin-left: -20vw;
  margin-right: -20vw;
  padding-right: 20vw;
  padding-left: 20vw;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: #f8f2ee;

}

.social-links {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));

  gap: 1.5rem;

  margin-top: 3rem;

}

.social-card {

  display: flex;

  align-items: center;

  gap: 1rem;

  padding: 1.5rem;

  background: white;

  border-radius: 16px;

  text-decoration: none;

  color: inherit;

  border: 1px solid rgba(0, 0, 0, .06);

  transition: .25s ease;

}

.social-card:hover {

  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

}

.social-card i {

  font-size: 2rem;

  color: var(--rose);

  width: 45px;

  text-align: center;

}

.social-card h3 {

  margin: 0 0 .25rem;

  font-size: 1.1rem;

}

.social-card span {

  color: #777;

  font-size: .9rem;

}

@media(max-width:768px) {

  .social-links {

    grid-template-columns: 1fr;

  }

}

.featured-ribbon {
  position: relative;
  margin-top: -2vh;
  margin-bottom: -1vh;
  z-index: 20;
}

.featured-ribbon-card {

  width: min(1100px, 92%);
  margin: 0 auto;

  background: #f8f2ee;

  border-radius: 18px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, .08);

  display: grid;
  grid-template-columns: 70px 1fr auto;

  align-items: center;

  gap: 1.5rem;

  padding: 1.25rem 2rem;
}

.featured-ribbon-image img {

  width: 14vh;
  height: auto;

  object-fit: contain;

  padding-right: 5vh;
}

.featured-ribbon-content h3 {

  margin: 0 0 1vh 0;

  font-size: 1.8rem;
}

.featured-ribbon-content p {

  margin: 0;

  color: #666;
}

.featured-label {

  display: block;

  font-size: .8rem;

  font-weight: 700;

  color: var(--green);

  letter-spacing: 2px;

  text-transform: uppercase;

  margin-bottom: .3rem;
}

.featured-ribbon-action {

  display: flex;
  justify-content: flex-end;
}

.get-involved {
  background: var(--bg-light);
  margin-bottom: -1vh;
}

.story-section {
  background: var(--bg-light);
}

.featured-grid,
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured-image img,
.story-grid img {
  border-radius: 20px;
}

.event-date {
  color: var(--green);
  font-weight: 700;
  margin: 1rem 0;
}

.card-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.events-grid {
  grid-template-columns: repeat(2, 1fr);
}

.news-grid {
  grid-template-columns: repeat(1, 1fr);
}

.info-card,
.event-card {
  background: white;
  max-width: 65vw;
  justify-self: center;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
  margin-bottom: 1.5rem;
}

.news-card {
  background: white;
  max-width: 90vw;
  justify-self: center;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
  margin-bottom: 1.5rem;
}

.info-card:hover,
.event-card:hover,
.news-card:hover {
  transform: translateY(-5px);
}

.info-card img,
.event-card img {
  min-height: 175px;
  max-height: 400px;
  object-fit: cover;
}

.card-content,
.event-content,
.news-content {
  padding: 2rem;
}

.image-desc-box {
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: center;
}

.important-text {
  color: #ae5568;
  font-weight: bold;
}

.event-content a,
.news-content a {
  color: var(--rose);
  font-weight: 700;
  text-decoration: none;
}

.newsletter-box {
  background: var(--bg-light);
  padding: 4rem;
  border-radius: 24px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.newsletter-form input {
  width: 340px;
  padding: 1rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
}

/* ==========================================
   OUR TEAM
========================================== */

.team-directory {

  margin: 5rem 0;

}

.directory-list {

  margin-top: 2rem;

  background: #fff;

  border-radius: 16px;

  overflow: hidden;

  border: 1px solid rgba(0, 0, 0, .08);

}

.directory-row {

  display: grid;

  grid-template-columns: 2fr 1fr;

  align-items: center;

  gap: 2rem;

  padding: 1.1rem 1.5rem;

  border-bottom: 1px solid rgba(0, 0, 0, .06);

  transition: background .2s ease;

}

.directory-row:last-child {

  border-bottom: none;

}

.directory-row:hover {

  background: #f8f2ee;

}

.position {

  font-weight: 600;

  color: var(--text-main);

}

.name {

  text-align: right;

  color: var(--green);

  font-weight: 700;

}

li {
  width: 2.5em;
  height: 2.5em;
}

@media (max-width:768px) {

  .directory-row {

    grid-template-columns: 1fr;

    gap: .35rem;

    text-align: left;

  }

  .name {

    text-align: left;

  }

}

.site-footer {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  text-align: center;
  background: #d8c6bc;
}

.footer-logo {
  width: 90px;
  margin: 0 auto 1rem;
}

/* ==========================================
   HISTORY PAGE
========================================== */

.page-wrapper-history {
  overflow-x: hidden;
  width: 100%;
}

.history-page {
  width: 100%;
  padding: 5rem 0 6rem;
  overflow-x: hidden;
}

.history-page .container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}


/* ---------- Introduction ---------- */

.history-intro {
  padding-top: 8rem;
  background: var(--bg-light);
  padding-bottom: 1rem;
}

.history-intro-text {
  max-width: 60rem;
  margin: 2rem auto 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.history-intro-text p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}


/* ---------- Section Headers ---------- */

.history-heading {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.history-heading>p:last-child {
  width: 100%;
  max-width: 650px;
  margin: 1rem auto 0;
}


/* ---------- Feature Image ---------- */

.history-feature-image {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto 5rem;
  box-sizing: border-box;
}

.history-feature-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 16px;
}


/* ---------- History Timeline ---------- */

.history-timeline {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
}


/* ---------- Decade Navigation ---------- */

.decade-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  width: 100%;
  box-sizing: border-box;

  gap: .5rem;

  margin: 2.5rem 0 3rem;
  padding: .75rem;

  background: #f8f2ee;

  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
}

.decade-button {
  flex: 0 0 auto;

  border: none;
  background: transparent;

  padding: .65rem 1rem;

  border-radius: 8px;

  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;

  white-space: nowrap;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease;
}

.decade-button:hover {
  background: rgba(0, 0, 0, .05);
}

.decade-button.active {
  background: var(--green);
  color: white;
}


/* ---------- Current Decade ---------- */

.history-current {
  width: 100%;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.history-current-label {
  margin: 0;

  color: var(--green);

  font-size: .9rem;
  font-weight: 700;

  letter-spacing: 2px;
  text-transform: uppercase;
}


/* ---------- History Container ---------- */

.history-container {
  width: 100%;
  box-sizing: border-box;

  border-top: 2px solid #e8ddd6;
}


/* ---------- History Entry ---------- */

.history-entry {
  display: grid;

  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);

  gap: 3rem;

  align-items: center;

  width: 100%;
  box-sizing: border-box;

  padding: 3rem 0;

  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.history-entry-content {
  min-width: 0;
  overflow-wrap: break-word;
}

.history-year {
  margin: 0 0 .4rem;

  color: var(--rose);

  font-size: .9rem;
  font-weight: 700;

  letter-spacing: 2px;
  text-transform: uppercase;
}

.history-entry h3 {
  margin: 0 0 1rem;

  font-size: 1.6rem;

  overflow-wrap: break-word;
}

.history-detail {
  margin: .4rem 0;

  line-height: 1.6;

  overflow-wrap: break-word;
}

.history-detail strong {
  color: var(--green);
}


/* ---------- History Images ---------- */

.history-entry-image {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.history-entry-image a {
  display: block;

  position: relative;

  width: 100%;

  overflow: hidden;

  border-radius: 12px;
}

.history-entry-image img {
  display: block;

  width: 100%;
  max-width: 100%;
  height: auto;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  transition: transform .3s ease;
}

.history-entry-image a:hover img {
  transform: scale(1.03);
}

.history-image-label {
  position: absolute;

  left: .75rem;
  bottom: .75rem;

  padding: .4rem .7rem;

  background: rgba(0, 0, 0, .7);

  color: white;

  border-radius: 6px;

  font-size: .75rem;
  font-weight: 600;

  pointer-events: none;
}


/* ---------- Pagination ---------- */

.history-pagination {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 1.25rem;

  width: 100%;
  box-sizing: border-box;

  margin-top: 3rem;
}

.history-pagination button {
  border: 1px solid rgba(0, 0, 0, .12);

  background: white;

  padding: .7rem 1.1rem;

  border-radius: 8px;

  font-family: inherit;
  font-weight: 600;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.history-pagination button:hover:not(:disabled) {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.history-pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

#pageInfo {
  min-width: 80px;
  text-align: center;
  color: #777;
  font-size: .9rem;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

  .history-page {
    padding: 4rem 1.5rem 5rem;
  }

  .history-entry {
    grid-template-columns:
      minmax(0, 1fr) minmax(180px, 280px);

    gap: 2rem;
  }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

  .history-page {
    padding: 3rem 1rem 4rem;
  }


  /* ---------- Introduction ---------- */

  .history-intro {
    margin-bottom: 3rem;
  }

  .history-intro-text {
    margin-top: 1.5rem;
  }

  .history-intro-text p {
    line-height: 1.7;
  }


  /* ---------- Feature Image ---------- */

  .history-feature-image {
    margin-bottom: 3.5rem;
  }

  .history-feature-image img {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }


  /* ---------- Decades ---------- */

  .decade-navigation {

    /*
         * IMPORTANT:
         * Allow the buttons to wrap instead
         * of overflowing horizontally.
         */

    justify-content: center;

    flex-wrap: wrap;

    width: 100%;

    padding: .6rem;

    gap: .4rem;

    margin: 2rem 0 2rem;

    border-radius: 10px;

  }


  .decade-button {

    /*
         * Prevent buttons from getting
         * ridiculously wide.
         */

    padding: .55rem .75rem;

    font-size: .8rem;

  }


  /* ---------- Current Decade ---------- */

  .history-current {
    margin-bottom: .75rem;
  }


  /* ---------- Entries ---------- */

  .history-entry {

    /*
         * One column on phones.
         */

    display: flex;

    flex-direction: column;

    width: 100%;

    gap: 1.25rem;

    padding: 2rem 0;

  }


  .history-entry-content {
    width: 100%;
  }


  .history-entry h3 {
    font-size: 1.35rem;
    line-height: 1.3;
  }


  .history-detail {
    font-size: .95rem;
  }


  /* Image goes underneath information */

  .history-entry-image {

    width: 100%;

    order: 2;

  }


  .history-entry-image img {

    width: 100%;

    aspect-ratio: 16 / 10;

  }


  /* ---------- Pagination ---------- */

  .history-pagination {

    gap: .6rem;

    margin-top: 2rem;

  }

  .history-pagination button {

    padding: .6rem .8rem;

    font-size: .85rem;

  }

  #pageInfo {

    min-width: auto;

    font-size: .8rem;

  }

}


/* ==========================================
   VERY SMALL PHONES
========================================== */

@media (max-width: 400px) {

  .history-page {
    padding-left: .75rem;
    padding-right: .75rem;
  }


  .decade-navigation {

    gap: .3rem;

    padding: .5rem;

  }


  .decade-button {

    padding: .5rem .6rem;

    font-size: .75rem;

  }


  .history-pagination {

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    width: 100%;

  }


  .history-pagination button {

    width: 100%;

  }

}

/* MOBILE VIEW */
@media screen and (max-width: 900px) {

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .featured-grid,
  .story-grid,
  .card-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 52vh;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .featured-ribbon-card {

    width: min(1100px, 92%);
    margin: 0 auto;

    background: #f8f2ee;

    border-radius: 18px;

    box-shadow:
      0 12px 30px rgba(0, 0, 0, .08);

    display: grid;
    grid-template-columns: 70px 1fr auto;

    align-items: center;

    gap: 1.5rem;

    padding: .75rem 1.25rem;
  }

  .featured-ribbon-content h3 {

    margin: 0 0 .25vh 0;

    font-size: 1.1rem;
  }

  .featured-ribbon-action {

    max-width: 60px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-secondary-dark {
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input {
    width: 100%;
  }

  .newsletter-box {
    padding: 2.5rem;
  }

  @media (max-width: 900px) {

    .desktop-nav {
      display: none;
    }

    .mobile-toggle {
      display: block;
    }

  }
}