body {
 font-family: "Oswald", sans-serif;
 background-color: #f5f5f5;
 margin: 0;
 padding: 0;
 color: #333;
}

.oswald {
 font-family: "Oswald", sans-serif;
 font-optical-sizing: auto;
 font-weight: 350;
 font-style: normal;
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 40px;
}

header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 20px;
 position: relative;
 z-index: 1000;
}

.logo {
 max-width: 200px;
 height: auto;
}

nav ul {
 list-style-type: none;
 margin: 0;
 padding: 0;
 display: flex;
}

nav ul li {
 margin-left: 20px;
 position: relative;
}

nav ul li a {
 text-decoration: none;
 color: #333;
}

.dropdown-menu,
.submenu-content {
 display: none;
 position: absolute;
 background-color: #f5f5f5;
 min-width: 160px;
 box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
 padding: 8px 16px;
 z-index: 1001;
 opacity: 0;
 transition: opacity 0.3s ease-in-out;
 border-radius: 6px;
}

.dropdown:hover .dropdown-menu,
.submenu:hover .submenu-content {
 display: block;
 opacity: 1;
 transition-delay: 0.3s;
}

.dropdown-menu li,
.submenu-content li {
 margin: 4px 0;
}

.dropdown-menu li a,
.submenu-content li a {
 display: block;
 padding: 8px 0;
 color: #333;
 text-decoration: none;
}

.dropdown-menu {
 left: 0;
}

.submenu-content {
 left: 100%;
 top: -20%;
}

.dropdown-menu li a:hover,
.submenu-content li a:hover {
 background-color: #ddd;
}

.submenu-content .member-title {
    font-size: 14px;
    color: #666;
    display: block;
    margin-top: 2px;
    font-weight: normal;
    line-height: 1.2;
}

.hero {
 position: relative;
 height: 600px;
 overflow: hidden;
 border-radius: 6px;
 z-index: 1;
 background-color: #f5f5f5;
}

.hero-background {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-image: url('classroom.jpg');
 background-size: cover;
 background-position: center;
 border-radius: inherit;
 background-clip: padding-box;
 z-index: -1;
}

.hero-content {
 position: relative;
 z-index: 2;
 padding-top: 150px;
 text-align: center;
}

.hero-text {
 background-color: rgba(255, 255, 255, 0.925);
 padding: 20px;
 border-radius: 5px;
 display: inline-block;
 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
             0 1px 3px rgba(0, 0, 0, 0.08);
 position: relative;
}

.hero h1 {
 font-size: 48px;
 margin-bottom: 15px;
 letter-spacing: -0.0175em;
 line-height: 1.2;
}

.hero p {
 font-size: 24px;
 margin-bottom: 30px;
}

.cta-button {
 display: inline-block;
 padding: 12px 24px;
 background-color: #333;
 color: #fff;
 text-decoration: none;
 font-size: 18px;
 border-radius: 4px;
 transition: all 0.2s ease-in-out;
}

.cta-button:hover {
    background-color: rgba(51, 51, 51, 0.95);
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.featured-events,
.testimonials {
 padding: 10px 0;
 background-color: #fff;
 margin-top: 30px;
 margin-bottom: 30px;
 border-radius: 6px;
}

.featured-events h2 {
 letter-spacing: -0.0175em;
 line-height: 1.2;
 margin: 3px 0;
}

.resource-picture {
 padding: 10px;
 border: 1px solid #000;
 border-radius: 6px;
}

.event-cards {
 display: flex;
 justify-content: space-between;
 margin-top: 20px;
}

.event-card {
 flex-basis: 32.5%;
 text-align: center;
 padding: 8px;
}

.event-card img {
 width: 100%;
 height: auto;
 margin-bottom: 10px;
}

/* Home page resources section */
.resources {
 text-align: center;
 padding: 10px 0;
 border-radius: 6px;
}

.resources h2 {
 letter-spacing: -0.0175em;
 line-height: 1.2;
 margin: 3px 0;
}

.resource-list {
 display: flex;
 flex-direction: column;
 align-items: center;
 margin-top: 20px;
}

.resource-item {
 margin: 10px;
}

.resource-item img {
 width: 300px;
 height: auto;
 object-fit: contain;
}

h2 {
 font-size: 36px;
 margin-bottom: 10px;
 text-align: center;
}

h3 {
 font-size: 24px;
 margin-bottom: 10px;
 text-align: center;
}

footer {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
 align-items: center;
 padding: 20px 0;
 border-top: 1px solid #ccc;
}

.contact {
 display: flex;
 align-items: center;
 margin-bottom: 20px;
}

.contact-icon {
 width: 24px;
 height: 24px;
 margin-right: 10px;
}

.contact img {
 margin-top:12px;
}

.contact-info p {
 margin: 0;
}

.credit {
 text-align: center;
 margin-bottom: 20px;
}

.credit p {
 font-size: 14px;
 color: #666;
}

.social-links {
 display: flex;
 justify-content: center;
 align-items: center;
 margin: 20px 0;
}

.social-links a {
 margin: 0 10px;
}

.social-links img {
 width: 24px;
 height: 24px;
 margin-right: 5px;
}

.copyright {
 font-size: 14px;
 margin-top: 20px;
 text-align: center;
 width: 100%;
}

.menu-icon {
 display: none;
 cursor: pointer;
 font-size: 24px;
 padding: 10px;
}

#menu-toggle {
 display: none;
}

/* Board Member Bio Page Styles */
.featured-member {
 padding: 10px 30px 20px 10px;
 background-color: #fff;
 margin-top: 30px;
 margin-bottom: 30px;
 border-radius: 6px;
 display: flex;
 align-items: center;
}

.member-image {
 flex: 1;
 margin-right: 40px;
 margin-top: 15px;
 margin-bottom: 15px;
}

.member-image img {
 max-width: 90%;
 border-radius: 10px;
 height: auto;
 display: block;
 margin-left: auto;
 margin-right: auto;
}

.member-bio {
 flex: 1;
}

.bio-text {
 column-count: 2;
 column-gap: 40px;
}

.contact-link {
 margin-top: 20px;
}

/* Mission/History Page Styles */
.mission-history {
 position: relative;
 overflow: hidden;
 z-index: 1;
 padding-top: 10px;
}

.mission-history-container {
 position: relative;
 overflow: hidden;
 border-radius: 20px;
 padding: 20px 30px;
}

.mission-history-background {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-image: url('classroom.jpg');
 background-size: cover;
 background-position: center;
 background-color: #f5f5f5;
 border-radius: 10px;
 background-clip: padding-box;
 z-index: -1;
}

.mission-history-content {
 position: relative;
 z-index: 1;
 text-align: center;
 padding-top: 100px;
 padding-bottom: 100px;
}

.mission-history-text {
 background-color: #ffffff;
 background-color: rgba(255, 255, 255, 0.925);
 padding: 10px;
 border-radius: 10px;
 display: inline-block;
 max-width: 800px;
 margin: 0 auto;
}

.mission-history-text h2 {
 font-size: 36px;
 margin-bottom: 20px;
}

.mission-history-text p {
 font-size: 18px;
 line-height: 1.6;
 margin-bottom: 20px;
}

/* Board Members Specific Styles */
.board-members-text {
   width: 40%;
   color: #333;
   padding: 10px 10px;
}

.board-members-list {
   display: flex;
   flex-direction: column;
   gap: 5px;
}

.board-member-item {
   margin: 0;
}

.board-member-item a {
   display: block;
   text-decoration: none;
   font-size: 24px;
   color: #3C4A5A;
   line-height: 1.2;
}

.board-member-item a:hover {
   text-decoration: underline;
}

.member-title {
   font-size: 18px;
   color: #333;
   padding-bottom: 5px;
}

/* Conference Page Styles */
.conference-past,
.conference-upcoming {
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding-top: 10px;
}

.conference-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px 30px;
}

.conference-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('classroom.jpg');
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
  border-radius: 10px;
  background-clip: padding-box;
  z-index: -1;
  will-change: transform;
}

.conference-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
  max-width: 100%;
}

.conference-text {
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.925);
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
  max-width: 800px;
  margin: 0 auto;
}

.conference-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.conference-text p {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 0px;
  display: inline-block;
  max-width: 70%;
}

.coming-soon ul {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.coming-soon li {
  font-size: 18px;
  margin: 10px 0;
  color: #333;
}

/* Contact Page Styles */
.contact {
 position: relative;
 overflow: hidden;
 z-index: 1;
 display: flex;
 justify-content: center;
 align-items: flex-start;
 padding: 10px 20px;
 box-sizing: border-box;
}

.contact-container {
 position: relative;
 overflow: hidden;
 border-radius: 20px;
 max-width: 450px;
 width: 100%;
 background-color: #DCE7E0;
 padding: 40px;
 box-sizing: border-box;
}

.contact-background {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-image: none;
 background-size: cover;
 background-position: center;
 z-index: -1;
}

.contact-text h2 {
 font-size: 36px;
 margin-bottom: 20px;
 text-align: center;
}

.form-group {
 margin-bottom: 20px;
 text-align: left;
}

.form-group label {
 display: block;
 font-size: 18px;
 margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
 width: 100%;
 padding: 10px;
 font-size: 16px;
 border-radius: 4px;
 border: 1px solid #ccc;
 box-sizing: border-box;
}

.form-group textarea {
 height: 120px;
}

button[type="submit"] {
 display: block;
 width: 100%;
 padding: 10px;
 font-size: 18px;
 font-family: "Oswald", sans-serif;
 background-color: #333;
 color: #fff;
 border: none;
 border-radius: 4px;
 cursor: pointer;
}

/* Resources Page Styles */
.resources {
  position: relative;
  overflow: hidden; /* Change from visible to hidden */
  z-index: 1;
  padding-top: 10px;
  min-height: auto; /* Remove fixed min-height */
}

.resources-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px 30px;
  height: 100%;
  min-height: auto;
}

.resources-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('classroom.jpg');
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
  border-radius: 10px;
  background-clip: padding-box;
  z-index: -1;
  will-change: transform;
}

.resources-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 70px;
  padding-bottom: 70px;
}

.resources-image {
  min-width: 175px !important;
  max-width: 65%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: block;
  padding: 8px;
  border: 2px solid #333;
  border-radius: 3px;
}

.resources-text {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  display: block;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  text-align: left;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.resources-text h2 {
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

.resources-text h3 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
}

.resource-section {
  margin-bottom: 40px;
}

/* Card Layout using flexbox instead of grid */
.resource-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Change from space-between to flex-start */
  gap: 20px; /* Ensure consistent spacing in all directions */
  margin-top: 20px;
  margin-bottom: 20px;
}

.resource-card:last-child:nth-child(odd) {
  margin-left: auto;
  margin-right: auto;
}

.resource-card {
  flex: 0 0 calc(33.333% - 14px);
  margin-bottom: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 3px solid #333;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.resource-card h4 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
  color: #333;
}

.resource-card p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #555;
  flex-grow: 1;
}

.resource-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: #333;
  color: white !important;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s;
  text-align: center;
  align-self: flex-start;
  transition: transform 0.2s, background-color 0.2s;
}

.resource-link:hover {
  transform: translateY(-2px);
  background-color: #555;
}

.resource-section:has(.resource-cards:nth-child(4)) .resource-card,
.resource-cards:has(.resource-card:nth-child(4):last-child) .resource-card {
  flex: 0 0 calc(50% - 10px); /* Make them 50% width minus gap */
  max-width: calc(50% - 10px);
}

/* Member Submissions Styles */
.member-submissions {
  background-color: #f9f9f9;
  width: 600px;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  text-align: center;
  border-radius: 8px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 3px solid #333;
}

.member-submissions:hover {
    transform: translateY(-2px);
}   

.member-submissions p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #555;
}

.member-submissions p:last-child {
  margin-bottom: 0;
}

.contact-link {
  color: #333;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  text-decoration: underline;
  color: #555;
}

/* Adjust for the 2-cards-per-row breakpoint */
@media screen and (max-width: 1000px) and (min-width: 481px) {
  .resource-card:last-child:nth-child(2n+1) {
    margin-left: auto;
    margin-right: auto;
  }
  
  .resource-card:last-child:nth-child(odd) {
  margin-left: auto;
  margin-right: auto;
    }
}

@media screen and (max-width: 1000px) and (min-width: 769px) {
 .submenu {
   position: relative;
 }

 .submenu:hover .submenu-content {
   left: 100%;
   right: auto;
 }

 .dropdown-menu {
   left: 0;
 }

 .submenu-content {
   left: 100%;
   top: -20%;
 }

 .submenu:last-child:hover .submenu-content {
   left: auto;
   right: 0;
   transform: translateX(100%);
 }

 .hero-text {
   padding: 25px;
   margin: 0 25px;
 }

 .hero-content {
   position: relative;
   padding-top: 130px;
   text-align: center;
 }

 .bio-text {
   column-count: 1;
 }
 
 .resource-card {
   flex: 0 0 calc(50% - 15px);
 }
}

@media screen and (max-width: 768px) {
 header {
   flex-direction: column;
   align-items: flex-start;
 }

 nav {
   width: 100%;
 }

 nav ul {
   display: none;
   flex-direction: column;
   width: 100%;
 }

 nav ul li {
   margin: 10px 0;
 }

 nav ul,
 nav li {
   margin: 20px;
   padding: 0;
 }

 .menu {
   display: none;
   flex-direction: column;
   width: 100%;
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.25s ease-out;
 }

 #menu-toggle:checked ~ .menu {
   display: flex;
   max-height: 1000px;
 }

 .dropdown-menu,
 .submenu-content {
   position: static;
   box-shadow: none;
   opacity: 1;
   padding: 0 0 0 20px;
   margin: 0;
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.5s ease-out;
 }

 .dropdown:hover .dropdown-menu,
 .submenu:hover .submenu-content {
   max-height: 1000px;
 }

 .dropdown-menu li,
 .submenu-content li {
   margin: 10px 0;
 }

 .menu-icon {
   display: block;
   margin-bottom: -15px;
 }

 .hero {
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .hero-text {
   padding: 15px;
   margin: 0 25px;
 }

 .hero-content {
   position: relative;
   padding-top: 0;
   text-align: center;
   height: auto;
 }

 .event-cards {
   flex-direction: column;
 }

 .event-card {
   flex-basis: 100%;
   margin-bottom: -10px;
 }

 .event-card img {
   max-width: 75%;
   max-height: 500px;
 }

 footer {
    flex-direction: column;
    padding: 20px;
  }

  .contact {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
  }

  .credit {
    text-align: center;
    margin: 15px auto;
    width: 100%;
  }

 .bio-text {
   column-count: 1;
   margin-left: 15px;
 }

 .featured-member {
   flex-direction: column;
 }

 .member-image {
   margin-top: 20px;
   margin-left: 22px;
   margin-right: auto;
 }
 
 .conference-content {
    max-width: 90%;
 }
    
 .resources-text {
    width: 95%;
    padding: 20px;
 }
  
 .resources-content {
    padding-top: 60px;
    padding-bottom: 60px;
 }
  
 .resource-card {
    flex: 0 0 calc(50% - 10px);
 }
}

@media screen and (max-width: 480px) {
 footer {
    margin-right: 5px;
    padding: 10px 0;
  }
 
 .contact {
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
  }
  
  .contact img {
    margin: 0 0 2px 0;
  }

  .social-links {
    margin: 0px 0;
  }
  
 .social-links a {
   margin: 3px 0;
 }
 
 .credit {
   margin: 5px auto;
  }
 
 .copyright {
    margin-top: 5px;
    padding: 0 15px;
 }
 
 .conference-content {
    max-width: 95%;
 }
 
 .resources-text {
    width: 98%;
    padding: 15px;
  }
  
  .resources-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .resource-card {
    flex: 0 0 100%;
    padding: 15px;
  }
  
  .resource-card h4 {
    font-size: 18px;
  }
  
  .resource-card p {
    font-size: 14px;
  }
  
  .resource-link {
    padding: 6px 16px;
    font-size: 14px;
  }
}