/* Custom Google Form container styling for Contact page */
.custom-form-container {
  background: #f8f9fa;
  padding: 32px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(26,60,64,0.08);
  border: 1.5px solid #1a3c40;
  margin-top: 18px;
  margin-bottom: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  background: #c3b9b0; /* Outer gray background */
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.page-content {
  flex: 1 ;
}

html, body {
  overflow-x: hidden;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(34, 34, 34, 0.9);
  z-index: 1000;
  display: flex;
  align-items:center;
  justify-content: flex-end; /* <-- This pushes toggle to right */
  padding: 0 20px;
  box-sizing: border-box;
  transition: height 0.3s ease;
  overflow: hidden;
  flex-direction: row;
}

.sidebar-toggle {
  background-color: transparent;
  color: white;
  border: none;
  justify-content: flex-end; /* <-- This pushes toggle to right */
  font-size: 30px;
  cursor: pointer;
  z-index: 1100;
}

/* Dropdown expanded */
.sidebar.active {
  height: 120px;
  flex-direction: column;
  align-items: stretch;
}

/* Navigation container and menu */
.sidebar nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: none;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sidebar.active nav ul {
  display: flex;
}

/* Menu items */
.sidebar nav ul li {
  text-align: center;
}

.sidebar nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  padding: 6px 10px;
  transition: background 0.3s ease;
}

.sidebar nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.fixed-logo-top-right {
  position: fixed;
  top: 18px;
  right: 24px;
  width: 140px;      /* Increased size */
  height: auto;
  z-index: 2000;
  pointer-events: none;
}



/* Main Content Area Styles */
.page-content {
  margin-left: 200px;
  flex: 1;
  padding: 20px;
  background-color: #000000;
}

/* Add this for small page headers on non-index pages */
/* Compact page header for non-index pages */
.page-header {
  background: #585a5a;      /* Cream background */
  color: #ffffff;           /* Dark text */
  font-size: 5em;         /* Larger than default, but not hero size */
  font-weight: bold;
  text-align: center;
  padding: 80px 0 50px 0;   /* More vertical space */
  margin-bottom: 0;
  border-bottom: 2px solid #171717;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

@media (max-width: 700px) {
  h2 {
    font-size: 2em !important;
    margin-bottom: 24px !important;
  }
  .page-header {
    font-size: 2em !important;
    padding: 28px 0 14px 0 !important;
  }


  .fixed-logo-top-right {
    width: 70px !important;
    top: 8px !important;
    right: 8px !important;
  }
  #upcomingevents-section h2 {
    font-size: 2em !important;
  }
  #upcomingevents-section p {
    font-size: 1em !important;
  }

  #testimonials-section {
     margin-bottom: 48px !important;
    padding-bottom: 32px !important;
  }
    
  #membership-section,
  .cta-section {
     margin-top: 60px !important;
     padding-top: 32px !important;
     clear: both;
     display: block;
  }
  #membership-section .hero-cta-button,
  .cta-section .hero-cta-button {
    display: block;
    margin: 32px auto 0 auto !important;
    width: 90vw;
    max-width: 340px;
    font-size: 1.2em;
    position: static;
  }
  
  
  .purpose-title {
    font-size: 2em !important;
  }
  .purpose-section,
  .faq,
  .partners-section,
  .past-events,
  section {
    padding: 18px 4px !important;
    margin: 0 auto !important;
  }
  .testimonial-container {
    padding: 18px 6px !important;
  }
  .events-grid .event-grid-item img {
    height: 200px !important;
    min-height: 140px !important;
    object-fit: cover;
  }
  .event-image-container {
    width: 98vw !important;
    height: 140px !important;
    margin: 10px auto !important;
  }
  .event-image {
    border-radius: 8px !important;
  }
  .team-member {
    padding: 18px 6px !important;
    max-width: 98vw !important;
  }
  .page-content {
    margin-left: 0 !important;
    padding: 10px 0 !important;
    width: 100vw !important;
    min-height: 1px;
  }
  .footer {
    width: 100vw !important;
    margin-top: auto !important;
    position: static !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
}

.spaced-title {
  margin-top: 48px;
}

#hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
  box-sizing: border-box;
}

.hero-bg-video,
#hero-section video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  background: #222;
}

#hero-section .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
  padding: 0 50px;
}

.hero-cta-button {
  position: absolute;
  right: 40px;
  bottom: 40px;
  padding: 22px 40px;
  background: #c3b9b0;
  color: #2c2320;
  font-size: 1.7em;
  font-family: Impact, 'Anton', 'Arial Narrow Bold', sans-serif bold;
  border: none;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  z-index: 10;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.hero-cta-button:hover {
  background: #382719;
  color: #fff;
  transform: scale(1.04);
}

@media (max-width: 700px) {
  #hero-section .hero-content {
    padding: 0 10px;
  }
  .hero-cta-button {
    right: 10px;
    bottom: 10px;
    padding: 16px 18px;
    font-size: 1.1em;
    border-radius: 10px;
  }
}


/*INDEXPAGE*/
#upcomingevents-section {
  background: none; /* Remove background image/color */
  padding: 80px 40px;
  color: #e0d7d7; /* Use a readable text color */
  text-align: center;
  min-height: 600px;
}

#upcomingevents-section h2 {
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 6em;
  color: #e0d7d7;
}

#upcomingevents-section p {
  margin-bottom: 30px;
  font-size: 2em;
  color: #e0d7d7;
}

.events-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: none; /* Remove any background */
}

.event-image-container {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  /* Remove border and box-shadow for a clean look */
  border: none;
  box-shadow: none;
  background: none;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: none; /* Remove border if any */
  box-shadow: none; /* Remove box-shadow if any */
}

.event-image-container:hover .event-image {
  transform: scale(1.1);
}

/* Event image container with text overlay box */
.event-image-container {
  position: relative;
  display: inline-block;
  margin: 20px;
}



/* Make sure the image is below the overlay */
.event-image {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.event-text-overlay {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(222, 210, 193, 0.7); /* Cream-brown, semi-transparent */
  color: #000000;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  max-width: 90%;
  width: max-content;      /* Only as wide as the text */
  min-width: 120px;        /* Optional: minimum width for small text */
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  pointer-events: none;
  left: 50%;
  right: auto;
  margin: 0 auto;
}

.events-highlight-box {
  background: #311919;
  opacity: 0.85;
  border-radius: 0;
  padding: 40px 0;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0 0;
  padding-bottom: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;      /* Add this */
  left: 50%;               /* Add this */
  transform: translateX(-50%); /* Add this */
}
@media (max-width: 700px) {
  .events-highlight-box {
    padding: 20px 8px;
    max-width: 98vw;
  }
}

.services-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0; /* No gap between items */
  justify-content: stretch;
  align-items: stretch;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.service-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.service-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  display: block;
}

.service-title {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 1.6em;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  z-index: 2;
  pointer-events: none;
  padding: 12px 0;
  background: rgba(44,35,32,0.25);
}

.service-item {
  position: relative;
}

@media (max-width: 900px) {
  .services-grid {
    flex-direction: column;
    width: 100vw;
    margin-left: 0;
    transform: none;
  }
  .service-item img {
    height: 180px;
  }
}



/* Reset and font setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* Cream background for the full section */
.purpose-section {
  background-color: #8e8e8e; /* cream */
  padding: 60px 20px;
  text-align: center;
}

/* Title outside the black box */
.purpose-title {
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #000;
}

/* Black box that wraps the 3 sections */
.purpose-container {
  background-color: #000;
  padding: 50px 0;
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw);
  box-sizing: border-box;
}

/* Add this wrapper for centering and max width */
.purpose-boxes {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;    /* Controls how wide the row of boxes can get */
  margin: 0 auto;       /* Center the boxes row */
  padding: 0 24px;      /* Add side padding for small screens */
}

/* Each section box */
.purpose-box {
  flex: 1 1 260px;
  max-width: 320px;     /* Prevents boxes from getting too wide */
  min-width: 220px;
  color: white;
  border: 1px solid white;
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
  padding: 25px 20px;
  box-sizing: border-box;
  background-color: transparent;
  margin: 0 auto;       /* Center on wrap */
}

.purpose-box h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #c3b9b0; /* Lighter color for headings */
}

/* Responsive: stack boxes on small screens */
@media (max-width: 900px) {
  .purpose-boxes {
    flex-direction: column;
    align-items: center;
    max-width: 98vw;
    padding: 0 8px;
  }
  .purpose-box {
    max-width: 98vw;
    width: 100%;
    margin-bottom: 24px;
  }
}

/* Pop-in animation for purpose boxes */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(50px);
  }
  80% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.purpose-box.pop-in:nth-child(1) { animation-delay: 0.1s; }
.purpose-box.pop-in:nth-child(2) { animation-delay: 0.3s; }
.purpose-box.pop-in:nth-child(3) { animation-delay: 0.5s; }


.purpose-box.pop-in {
  animation: popIn 0.7s cubic-bezier(0.23, 1.02, 0.36, 1) both;
}



/* Testimonials Section */
#testimonials-section {
  background: #f5ede3 url('testemonial.png') center center/cover no-repeat;
  padding: 60px 0;
  text-align: center;
}

.testimonial-container {
  background: #111;
  color: #fff;
  border-radius: 24px;
  max-width: 600px;
  margin: 32px auto 24px auto;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card {
  font-size: 1.2em;
  margin-bottom: 12px;
}

.testimonial-card span {
  display: block;
  margin-top: 10px;
  font-size: 1em;
  color: #f5ede3;
  opacity: 0.8;
}

/* Feedback Button */
#feedback-button {
  margin-top: 30px; /* Add space above the button */
  padding: 10px 20px; /* Add padding inside the button */
  background-color: #c3b9b0; /* Match your existing button color */
  color: rgb(3, 3, 3); /* Button text color */
  font-size: 1.5em; /* Adjust font size */
  border: none; /* Remove border */
  border-radius: 5px; /* Add rounded corners */
  cursor: pointer; /* Change cursor to pointer */
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

#feedback-button:hover {
  background-color: #382719; /* Darker color on hover */
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 100px;
}
#services-section ul li {
  font-size: 1.5em; /* Adjust the font size as needed */
}

#key-features-section ul li {
  font-size: 1.5em; /* Adjust the font size as needed */
}

.cta-button {
  padding: 15px 30px;
  background-color: #c3b9b0;
  font-weight: bold;
  color: #000000;
  font-size: 16px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 9px;
}

.cta-button:hover {
  background-color: #382719;
}

/* Section Styles */
section {
  padding: 40px 20px;
  text-align: center;
  max-width: 1200px;
  width: 100%;
  margin: 20px auto;
}



h2 {
  font-size: 6em;
  text-align: center; /* Adjust font size as needed */
  margin-bottom: 10px; /* Add spacing below the header */
  color: #281919;
  line-height: 1; /* Adjust line height for spacing */
  white-space: pre-wrap; /* Preserve line breaks */
  word-break: break-word; /* Ensure long words break properly */
  margin-bottom: 100px;
  /* Set text color to white */ 
}
h3 {
  font-size: 1.75em;
  text-align: left;
  margin-bottom: 20px;
}
h4 {
  font-size: 1.75em;
  text-align: left;
  margin-bottom: 20px;
}
h5 {
  font-size: 1.75em;
  text-align: left;
  margin-bottom: 20px;
}
/* List styles for services, events, etc. */
ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  font-size: 1.2em;
  margin-bottom: 10px;
}

/* Footer Section Styles */
.footer {
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;

}

.footer .quick-links,
.footer .social-links,
.footer .legal-links {
  margin-bottom: 20px;
}

.footer a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-size: 1.2em;
}

.footer a:hover {
  color: #f1c40f;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .page-content {
    margin-left: 0;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .footer {
    padding: 20px;
  }
}



/* Initial state for elements */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px); /* Move the element further down initially */
  transition: opacity 1s ease, transform 1s ease; /* Increase duration for a more noticeable effect */
}

/* Fade-in effect when the class is added */
.animate-on-scroll.fade-in {
  opacity: 1;
  transform: translateY(0); /* Reset position */
}

.team-member p {
  color: #111; /* Black text for team member descriptions */
}

.partners-section {
  margin: 60px auto 40px auto;
  text-align: center;
  max-width: 100vw;
}

.partners-section h2 {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 30px;
}


.partners-carousel {
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  /* Double the logos in HTML for seamless loop */
  animation: scroll-logos 40s linear infinite;
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logos img {
  height: 120px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 20px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.partner-logos img:hover {
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .partner-logos img {
    height: 70px;
    padding: 10px 16px;
  }
  .partners-section h2 {
    font-size: 1.5em;
  }
  .partners-carousel {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    transform: none;
  }
}




.faq {
  width: 90vw;
  max-width: 1200px;
  margin: 48px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 40px 32px;
  box-sizing: border-box;
}

.faq h2 {
  text-align: center;
  font-size: 2.5em;
  color: #333;
  margin-bottom: 2rem;
}

.faq p {
  text-align: center;
  font-size: 1em;
  color: #555;
  margin-bottom: 1%;
  margin-top: 1%;
}

details {
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 5px;
  background-color: #fff;
}

summary {
  font-weight: bold;
  cursor: pointer;
  color: #67403d;
}

details[open] summary {
  color: #2d120f;
}








.external-website-section {
  margin: 40px auto;
  max-width: 1000px;
  text-align: center;
}
.external-website-section iframe {
  width: 100%;
  min-height: 600px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 10%;
}





.poster-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.poster-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.poster-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.poster-content .close-poster {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.poster-content .close-poster:hover {
  background-color: #e64a19;
}



.upcoming-events h2 {
  font-size: 2.5em;
  margin-top: 30%;
  color: #333;
}

.upcoming-events p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #555;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.event-item {
  display: flex;
  gap: 20px;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-poster {
  flex: 1;
}

.poster-image {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.event-details {
  flex: 2;
  text-align: left;
}

.event-details h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

.event-details p {
  font-size: 1em;
  color: #666;
  margin-bottom: 10px;
}

.event-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #763b0b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.event-link:hover {
  background-color: #5a2d08;
}

.iframe-wrapper {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}


.past-events {
  background-color: #585454; /* Light pinkish-cream (similar to "misty rose") */
  padding: 40px 20px;        /* Optional: adds spacing inside */
}


.past-events h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}
.past-events p {
  font-size: 2em;
  color: #fff;
  text-align: center;/* White text for contrast */
  margin-bottom: 10px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px auto;
  max-width: 900px;

}

.event-grid-item {
  position: relative;
  overflow: hidden;
}

.event-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 35, 32, 0.85);
  color: #fff;
  font-size: 1em;
  padding: 12px 16px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.event-grid-item:hover .event-caption {
  opacity: 1;
}

.event-grid-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.event-grid-item:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.event-modal {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.event-modal-content {
  background: #fff;
  margin: auto;
  padding: 32px 24px;
  border-radius: 16px;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.event-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2em;
  color: #333;
  cursor: pointer;
}

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .event-grid-item img {
    height: 140px;
  }
}
@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
  .event-grid-item img {
    height: 120px;
  }
}

.events-page,
.past-events,
.external-website-section {
  max-width: 100vw;
  width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.events-grid {
  margin-left: auto;
  margin-right: auto;
}



.tabs-container {
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background-color: #403d3d;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.tab-button.active {
  background-color: #9a7c64;
  color: white;
}

.tab-button:hover {
  background-color: #d3d3d3;
}

.tab-content {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 5px;
  background-color: #4b4848;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 5px;
  font-weight: bold;
}

form input, form textarea, form button {
  margin-bottom: 15px;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background-color: #763b0b;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #5a2d08;
}


.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  justify-items: stretch; /* Changed from center to stretch */
  align-items: stretch;   /* Ensure all items stretch to fill grid area */
  margin-top: 40px;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.team-member {
  background: rgba(255,255,255,0.92);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 40px 30px;
  width: 100%;
  max-width: 370px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  box-sizing: border-box;
}

.team-member:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

/* Team member name font and remove underline from links */
.team-member h3 {
  font-family: 'Playfair Display', serif; /* Or your preferred font */
  font-size: 1.75em;
  margin-bottom: 12px;
  text-align: center;
  color: #2c2320;
  text-decoration: none; /* Remove underline if any */
}

/* Remove underline and inherit color for the whole card link */
.team-member-link {
  text-decoration: none;
  color: inherit;
  display: block;
}



@media (max-width: 700px) {
  .team-members {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 10px;
    max-width: 100%;
  }
  .team-member {
    max-width: 100%;
    min-width: 0;
    padding: 28px 10px;
  }
}

.team-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px; 
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border: 4px solid #f3e9e1;
}

@media (max-width: 700px) {
  .team-photo {
    width: 110px;
    height: 110px;
    border-radius: 8px;
  }
}


.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  justify-items: stretch;
  align-items: stretch;
  margin-top: 40px;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.team-member {
  background: rgba(255,255,255,0.92);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 40px 30px;
  width: 100%;
  max-width: 370px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  box-sizing: border-box;
  height: 100%; 
}

.team-member h3,
.team-member p {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
}

.team-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border: 4px solid #f3e9e1;
}


.announcement-banner {
  overflow: hidden;
  white-space: nowrap;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: rgba(0, 0, 0, 0.85);
  color: #eadac5;
  font-size: 1.25em;
  font-weight: bold;
  text-align: left;
  padding: 18px 0 18px 0;
  z-index: 3000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  backdrop-filter: blur(2px);
}

.marquee {
  display: inline-block;
  padding-left: 100vw;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-200vw); }
}



.announcement-link {
  color: #763b0b;
  background: rgba(248, 248, 248, 0.5);
  padding: 6px 18px;
  border-radius: 8px;
  margin-left: 16px;
  text-decoration: underline;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}

.announcement-link:hover {
  background: #763b0b;
  color: #fff;
  text-decoration: none;
}

