html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f2f2f2;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

p {
  font-family: "Source Serif 4", serif;
}

.container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  background-color: #fff;
  background-image: url(https://cdn7.godcstatic.com/Smart-Reg/thegreenerside/event/1754389452bg.jpg);
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Navigation */
.nav-wrapper {
  background-color: rgba(227, 227, 227, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 1rem;
  position: relative;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.logo {
  width: 180px;
  height: auto;
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  font-size: 1.3rem;
  justify-content: center;
}

.social-icons a {
  color: black;
}

.desktop-links {
  display: none;
}

.nav-right a {
  font-family: "Poppins", sans-serif;
  color: black;
  text-decoration: none;
}
.menu-toggle {
  display: block;
  position: absolute;
  top: 1.8rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: white;
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.nav-overlay ul li {
  margin: 1.2rem 0;
}

.nav-overlay ul li a {
  color: #2e3918;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
}

#closeBtn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: #2e3918;
  background: none;
  border: none;
  cursor: pointer;
}

/* Banner Styles */
.banner {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.banner-content {
  position: relative;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.badge {
  background: rgba(255, 255, 255, 0.35);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.banner-content h1 {
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.banner-content button {
  background: white;
  color: #2e3918;
  border: none;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.banner-content button:hover {
  background: #e0e0e0;
}

/* Events Section */
.events {
  position: relative;
  scroll-margin-top: 150px;
  padding: 2rem 1rem;
  background-image: url(https://cdn7.godcstatic.com/Smart-Reg/thegreenerside/event/1754389358bg_2.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.events h2 {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.event-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.card {
  flex: 0 0 85%;
  max-width: 85%;
  scroll-snap-align: center;
  background: #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 2px solid #bebebe;

  display: flex;
  flex-direction: column;
  /* height: 460px; */
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2; /* or 4 / 3 or 3 / 2 depending on your visual preference */
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.card .info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 1rem;
  overflow: hidden; /* Ensures internal scrolling is avoided */
}

.card h3 {
  margin: 0.3rem 0 0.2rem;
  font-size: 1.3rem;
  line-height: 1.4rem;
}

.card .date,
.card .location {
  font-size: 0.85rem;
  color: #555;
  margin: 0.2rem 0;
}

.card .description {
  font-family: "Source Serif 4", serif;
  font-size: 0.9em;
  margin: 0.5rem 0;
  color: #333;

  /* display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; */
}
.btn {
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  background: #2e3918;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: auto;
}

.highlights-section {
  scroll-margin-top: 180px;
  padding: 20px 20px;
  background-color: #d7dfd1;
  background-position: center;
  margin: auto;
}

.highlight-intro {
  text-align: left;
  margin-bottom: 40px;
}

.highlight-intro p {
  font-family: "Source Serif 4", serif;
  font-size: 1rem;
  color: hsl(0, 0%, 33%);
  max-width: 680px;
  line-height: 1.6;
}

.highlight-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.highlight-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
}

.highlight-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.card-text {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.card-text p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}
.highlight-intro h2 {
  font-size: 1.5rem;
  line-height: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  max-width: 600px;
}

.intro-small {
  font-weight: 400;
  font-size: 1rem;
}

.swipe-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1rem;
  background-image: url(https://cdn7.godcstatic.com/Smart-Reg/thegreenerside/event/1754389452bg.jpg);
}

.swipe-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
}

.swipe-card {
  flex: 0 0 85%;
  max-width: 85%;
  scroll-snap-align: center;
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid #bebebe;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.4s ease;
}
.swipe-card:first-child {
  margin-left: 1rem;
}

.swipe-card:last-child {
  margin-right: 1rem;
}

.swipe-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom-left-radius: 60% 20px;
  border-bottom-right-radius: 60% 20px;
  display: block;
  background-color: #f1f1f1;
}

.card-text-curve {
  background: white;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  border-top-left-radius: 60% 20px;
  border-top-right-radius: 60% 20px;
  margin-top: -20px;
}

.card-text-curve h3 {
  font-size: 1.2rem;
  line-height: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text-curve p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

.educators-section {
  scroll-margin-top: 120px;
  padding: 2rem 1rem;
  background: #b8d1d4;
  text-align: center;
}

.educators-section h2 {
  font-size: 1.5rem;
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
}

.educator-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.educator-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scroll-behavior: smooth;
}


.educator-card {
  flex: 0 0 calc(50% - 0.5rem);
  scroll-snap-align: start;
  background: #f3f3f3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-bottom: 48px;
}
.educator-info a {
  position: absolute;
  bottom: 10px;
}

.educator-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}
.educator-info {
  padding: 1rem;
  text-align: left;
}

.educator-info h4 {
  margin: 0;
  font-size: 1rem;
}

.educator-info p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #444;
}

.educator-info a {
  display: inline-block;
  margin-top: 0.75rem;
  color: black;
}

.educator-info i {
  font-size: 1.2rem;
  padding: 0.25rem;
}

/*.arrow {
  position: absolute;
  bottom: 10px;
  background: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
  cursor: pointer;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}*/

.logo-slider {
  width: 100%;
  overflow: hidden;
  background: #f4f4f4;
  padding: 20px 0;
  position: relative;
}

.logo-track {
  display: flex;
  gap: 40px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.logo-track img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: 0.3s;
}

.logo-track img:hover {
  filter: none;
  opacity: 1;
}

/* Duplication using pseudo-element */
.logo-track::after {
  content: "";
  display: inline-block;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-repeat: repeat-x;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .logo-track {
    gap: 20px;
  }
  .logo-track img {
    height: 30px;
    max-width: 80px;
  }
}


.testimonials-section {
  padding: 2rem 1rem;
  background-color: #bbd9dd;
  text-align: center;
}

.testimonials-section h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.testimonial-card .quote {
  font-style: italic;
  color: #333;
  line-height: 1.6;
}

.testimonial-card .author {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.past-events-section {
  background-image: url(https://cdn7.godcstatic.com/Smart-Reg/thegreenerside/event/1754389358bg_2.jpg);
  padding: 2rem 1rem;
}

.past-events-section h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.past-events-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.past-event-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #264c3a;
}

.past-event-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pastevent-card-text {
  color: rgb(255, 255, 255);
  padding: 2rem;
}

.pastevent-card-text h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.pastevent-card-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer {
  background-color: #d9d9d9;
  padding: 2rem 1.5rem;
  text-align: left;
  font-family: sans-serif;
  color: #222;
}

.footer h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.footer a {
  color: #222;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem 1.5rem;
  }

  .nav-left {
    flex: 1;
  }
  .nav-center {
    text-align: center;
    flex: 1;
  }
  .nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
  }

  .desktop-links {
    margin-top: 15px;
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .social-icons {
    margin-top: 0.5rem;
  }
  .banner-content h1 {
    font-size: 3rem;
  }
  .events h2 {
    font-size: 1.7rem;
  }

  .event-cards {
    overflow-x: hidden;
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    flex: 0 0 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
    scroll-snap-align: none;
    /* height: 550px; */
}

  .card h3 {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

  .card .date,
  .card .location {
    font-size: 0.9rem;
  }

  .highlight-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .highlight-intro h2 {
    font-size: 3rem;
    line-height: 3.2rem;
  }

  .intro-small {
    font-size: 2rem;
  }

  .highlight-intro p {
    font-size: 1.2rem;
    max-width: 800px;
  }

  .card-text h3 {
    font-size: 2rem;
  }

  .card-text p {
    font-size: 1.1rem;
    color: #444;
    margin: 0;
  }
  .swipe-carousel {
    overflow: visible;
    padding: 4rem 2rem;
  }

  .swipe-track {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
  }

  .swipe-card {
    flex: 0 0 30%;
    max-width: 30%;
    scroll-snap-align: none;
    transform: none !important;
  }

  .card-text-curve h3 {
    font-size: 1.5rem;
    line-height: 1.8rem;
  }
  .card-text-curve p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
  }

  .educators-section {
    scroll-margin-top: 120px;
    padding: 3rem 5rem;
  }

  .educator-carousel {
    flex-wrap: wrap;
    overflow-x: hidden;
    justify-content: center;
  }

  .educators-section h2 {
    font-size: 2.3rem;
    line-height: 2.3rem;
    margin-bottom: 5rem;
  }

  .educator-card {
    flex: 0 0 calc(25% - 0.75rem);
  }

  .educator-info h4 {
    font-size: 1.3rem;
  }

  .educator-info p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    color: #444;
  }

  /*.arrow {
    display: none;
  }*/
  .logo-track {
    gap: 80px;
    animation-duration: 80s;
  }

  .logo-track img {
    height: 90px;
    max-width: 80px;
  }

  .testimonials-section {
    padding: 3rem 1rem;
  }
  .testimonials-section h2 {
    font-size: 2.3rem;
    margin-bottom: 5rem;
  }
  .testimonial-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
  }

  .testimonial-card .quote {
    font-size: 1.7rem;
    font-style: italic;
    color: #333;
    line-height: 1.6;
  }

  .testimonial-card .author {
    margin-top: 1rem;
    font-size: 1.3rem;
    color: #666;
    line-height: 1.4;
  }

  .past-events-section h2 {
    font-size: 2.3rem;
    margin-bottom: 5rem;
  }
  .past-events-grid {
    padding: 2rem;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .past-event-card {
    width: 100%;
  }

  .pastevent-card-text h3 {
    font-size: 1.7rem;
  }

  .pastevent-card-text p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
  }
  .footer {
    padding: 2rem 4rem;
  }

  .footer h2 {
    font-size: 1.8rem;
  }

  .footer p {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    max-width: 1100px;
  }

  .footer a {
    color: #222;
    text-decoration: underline;
  }
}

@media (min-width: 1024px) {
  .highlight-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.custom-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.popup-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 10px;
  overflow: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content.iframe-container {
  padding: 0;
}

.popup-content iframe {
  width: 100%;
  height: 90vh;
  border: none;
  display: block;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: black;
  background: white;
  padding: 0 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

@keyframes fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
