:root {
  /* Brand colours */
  --bg: #19dd92;                 /* Roehampton Dark Green */
  --bg-alt: #063532;             /* Darker green for cards/sections */
  --accent: #00A06E;             /* Roehampton Bright Green */
  --accent-soft: rgba(0, 160, 110, 0.18);
  --accent-strong: #007A55;

  /* Text */
  --text-main: #063532;          
  --text-muted: #7C756F;         

  /* Borders */
  --border-subtle: #0F5A54;

  /* Danger */
  --danger: #f97373;

  /* Typography */
  --font-main: "Roboto", sans-serif;
  --font-heading: "Roboto Slab", serif;
}







/* :root {
  --bg: #050810;
  --bg-alt: #0b1220;
  --accent: #3ddc84;
  --accent-soft: rgba(61, 220, 132, 0.15);
  --accent-strong: #00c46a;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2933;
  --danger: #f97373;
  --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
} */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  /* background: radial-gradient(circle at top left, #102a43 0, #050810 45%, #020617 100%); */
  background: #F2EEE9   /* lighter background for better readability */;
  color: var(--text-main);
  font-family: var(--font-main);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.logo-text {
  color: #4CCFA3; /* Roehampton Bright Green */
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  display: inline-block;
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 5vw;
  /* background: rgba(5, 8, 16, 0.9); */
  background: #063532; /* solid background for better readability */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #F2EEE9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  position: relative;
}

/* .main-nav a:hover {
  color: var(--accent);
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
} */

/* .main-nav a:hover {
  color: var(--accent);
} */

.main-nav a {
  color: #F2EEE9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  position: relative;
  display: inline-block;
}

/* .main-nav a:hover {
  color: var(--text-main);
} */

/* .main-nav a:hover::after {
  width: 100%;
} */


.main-nav a:hover {
  color: #4CCFA3;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(242, 238, 233, 0.35);
  color: #F2EEE9;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 1.1rem;
}

/* .center {
  text-align: center;
  margin: 1.5rem 0;
} */

.center {
  text-align: center;
  margin: -1rem 0; /* pulls the button upward and downward */
  position: relative;
  z-index: 5; /* ensures it sits above the cards */
}

  /* .center .btn.primary {
  position: relative;
  z-index: 10;
} */


.center {
  text-align: center;
  margin: -0.75rem 0; /* pulls the button into the space between cards */
  position: relative;
  z-index: 5;
}

.center .btn.primary {
  background: var(--bg-alt); /* same dark green as event cards */
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  position: relative;
  z-index: 10;
  display: inline-block;
}

/* Optional: subtle glow to make it feel integrated */
.center .btn.primary:hover {
  background: var(--accent-strong);
  color: #fff;
}




/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  padding: 4rem 5vw 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content p {
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #00A06E, #007A55);
  color: #ffffff;
  border-color: transparent;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.btn.secondary:hover {
  border-color: var(--accent);
}

.about-card.team-card .btn.primary {
  width: auto !important;
  min-width: 180px;
  max-width: 240px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-media {
  position: relative;
}

/* .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at top left, rgba(61, 220, 132, 0.2), transparent 60%);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
} */



.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* keep the 16:9 shape */
  height: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at top left, rgba(61, 220, 132, 0.2), transparent 60%);
}

.video-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes the image look clean and intentional */
  border-radius: 1.25rem;
}



.video-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}



/* Sections */
.section-heading {
  text-align: center;
  padding: 3rem 5vw 1.5rem;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.section-heading p {
  color: #ffffff;
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

.section-heading svg [stroke] {
  stroke: #063532 !important;
}

.section-heading svg [fill] {
  fill: #063532 !important;
}






/* .section-heading {
  text-align: center;
  padding: 3rem 5vw 1.5rem;
}

.section-heading h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
} */

/* About */



.about {
  padding-bottom: 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 5vw 2rem;
}

.about-card {
  background: var(--bg-alt);
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border-subtle);
}

.about-card h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #ffffff;
  font-size: 1.1rem;
}

.about-card p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.about-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-0.5px);
}

.about-toggle-btn.mobile-toggle {
  font-weight: 600;
  letter-spacing: 0.08em;
}




/* .about {
  padding-bottom: 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 5vw 2rem;
} */

/* .about-card {
  background: radial-gradient(circle at top left, rgba(61, 220, 132, 0.12), rgba(15, 23, 42, 0.95));
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
} */

/* projects */

.projects {
  padding: 1rem 0 1rem;
}

.projects .section-heading {
  padding: 1rem 5vw 1.5rem;
}

.project-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tab-button {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #F2EEE9;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #063532;
}

.project-panels {
  padding: 0 5vw;
}

.project-panel {
  display: none;
}

.project-panel.active {
  display: block;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #F2EEE9;
}

.project-card p {
  color: #E7E3DD;
  font-size: 0.9rem;
}

.project-card ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
  color: #E7E3DD;
  font-size: 0.85rem;
}

/* Impact */

.impact {
  padding: 2rem 5vw 3rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.impact-card {
  background: radial-gradient(circle at top left, rgba(61, 220, 132, 0.18), rgba(15, 23, 42, 0.95));
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
}

.impact-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Team */

.team {
  padding: 2rem 5vw 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-member {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--accent-soft);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  margin: 0.25rem 0 0.25rem;
  font-size: 1rem;
}

.team-member p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.evi-image.lazy-image.imgedit-profile-photo-frame-viewer__target-image.ember-view {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Media strip */

.media-strip {
  padding: 1.5rem 0 3rem;
}

.media-strip-inner {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 5vw 0.5rem;
}

.media-strip-inner img {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  flex: 0 0 auto;
  width: 260px;
  height: 170px;
  object-fit: cover;
}

/* Contact */

.contact {
  padding: 2rem 5vw 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-form {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  background: #020617;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.55rem 0.7rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.4);
}

textarea {
  resize: vertical;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-info {
  padding: 0.5rem 0;
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info .small {
  font-size: 0.8rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1rem 5vw 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

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

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

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

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

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-inline: 1rem;
  }

  .main-nav {
    position: fixed;
    top: 56px;
    right: 1rem;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.98);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: none;
    z-index: 100;
    min-width: 160px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-inline: 1.25rem;
  }

  .section-heading {
    padding-inline: 1.25rem;
  }

  .about-grid,
  .project-grid,
  .impact-grid,
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 1.25rem;
  }

  .event-grid {
    position: static;
  }

  .event-grid .center {
    position: static;
    margin-top: 2rem;
    text-align: center;
  }

  .project-panels {
    padding-inline: 1.25rem;
  }

  .contact {
    padding-inline: 1.25rem;
  }

  .media-strip-inner {
    padding-inline: 1.25rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Accordion Section */
.project-extra {
  padding: 0.5rem 5vw 3rem;
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: rgba(61, 220, 132, 0.18);
  border: none;
  color: #063532;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-header:hover {
  background: rgba(61, 220, 132, 0.28);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  color: #FFFFFF !important;
  font-size: 1rem;
  line-height: 1.6;
  transition: max-height 0.3s ease;
}

.accordion-content p,
.accordion-content ul,
.accordion-content li {
  color: #FFFFFF !important;
}

.accordion-content p {
  margin: 1rem 0;
}


/* .accordion-content ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 1rem 1.25rem;
} */
.hero-large {
  position: relative;
  height: 60vh;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-large .hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
}

.hero-large .hero-content p {
  margin: 0 0 1.5rem;
}

.hero-large .hero-content .btn.primary {
  margin-top: 0.75rem;
}

.event-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 5vw;
}

.event-grid .center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: auto;
}

.event-grid .center .btn.primary {
  padding: 0.85rem 2rem;
  background: rgba(0, 160, 110, 0.9);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.event-card {
  background: rgba(6, 53, 50, 0.95); /* deeper and less saturated for contrast */
  border: 1px solid rgba(236, 235, 234, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  color: #F2EEE9;
}

.event-card h3 {
  color: #F2EEE9;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.event-card p {
  color: rgba(242, 238, 233, 0.9);
}

.event-card .btn.secondary {
  color: #F2EEE9;
  border-color: rgba(242, 238, 233, 0.4);
}

.event-card .btn.secondary:hover {
  background: rgba(242, 238, 233, 0.1);
  color: #fff;
}

.event-date {
  font-size: 0.85rem;
  color: #F2EEE9;
  font-weight: 700;
}


.social-links {
  margin-top: 1.5rem;
}

.social-links h3 {
  margin-bottom: 0.75rem;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-main);
  font-size: 0.85rem;
  text-decoration: none;
  transition: 0.2s ease;
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* Projects Styling */
/* Projects Section */
.projects {
  padding: 1rem 0 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 5vw;
}

.project-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-logo {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.project-logo img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: 1fr;
    padding-inline: 1.25rem;
  }
}


/* ============================================================
   ROEHAMPTON BRAND — ABOUT SECTION OVERRIDES
   ============================================================ */

/* Section heading */
.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-main);
}

.section-heading p {
  font-family: var(--font-main);
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

.about-card h3 {
  font-family: var(--font-heading);
  color: #ffffff !important;
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.about-card p {
  font-family: var(--font-main);
  color: #ffffff !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------Team Photo Styles-------------------------- */
.team-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid var(--accent-soft);
}

.team-role {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.bio-full {
  display: none;
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* CTA Section */
.cta-section {
  background: radial-gradient(circle at top left, rgba(0, 160, 110, 0.5), rgba(10, 20, 30, 0.95));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.5rem;
  padding: 3rem 5vw;
  margin: 3rem auto;
  max-width: 900px;
  text-align: center;
}

.cta-section h2 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #F2EEE9;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 42rem;
  margin: 0.75rem auto;
}

.cta-section a {
  color: var(--accent);
  text-decoration: underline;
}

.cta-section a:hover {
  color: var(--accent-strong);
}

/* ALII expanded section */
.alii-expanded {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Gallery inside card */
.alii-gallery {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .alii-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .alii-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.alii-image-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.alii-image-card img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.caption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Smaller pill button */
.small-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  display: inline-block;
  margin-top: 0.5rem;
}


/* ============================================================
   MOBILE RESPONSIVE FIXES — paste these at the END of styles.css
   (they override earlier rules via cascade)
   ============================================================ */

/* ── About grid: responsive columns ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 5vw 2rem;
}

/* Tablet */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
    padding-inline: 1.25rem;
  }

  /* ── Tab nav: always hidden on mobile unless JS adds it ── */
  .about-tabs-nav {
    display: none;           /* hidden by default */
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    margin-bottom: 1.25rem;
  }

  /* JS adds .is-tabbed to .about-grid to activate mobile tab mode */
  .about-grid.is-tabbed .about-tabs-nav {
    display: flex;           /* show the nav */
  }

  /* In tab mode, hide all cards by default; JS shows the active one */
  .about-grid.is-tabbed .about-card {
    display: none;
  }

  .about-grid.is-tabbed .about-card.tab-active {
    display: block;
  }
}

/* ── Team card: mobile two-col layout ── */
@media (max-width: 720px) {
  .team-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    column-gap: 1rem;
    row-gap: 0.25rem;
    align-items: start;
    text-align: left;
  }

  .team-card .team-photo {
    width: 90px;
    height: 90px;
    margin: 0;
    grid-column: 1;
    grid-row: 1 / 5;
  }

  .team-card h3,
  .team-card .bio-short {
    grid-column: 2;
    text-align: left;
  }

  .team-card .bio-full,
  .team-card .read-more-btn,
  .team-card a.btn {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }
}

/* ── CTA section: full width on mobile ── */
@media (max-width: 720px) {
  .cta-section {
    margin: 1.5rem 1rem;
    padding: 2rem 1.25rem;
    border-radius: 1rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}

/* ============================================================
   HOME PAGE — 4-CARD DESKTOP TABS
   Paste at END of styles.css
   ============================================================ */

/* ── Hide/show per breakpoint ── */
.home-accordion-mobile { display: none; }
.home-tabs-desktop     { display: block; }

@media (max-width: 720px) {
  .home-accordion-mobile { display: block; }
  .home-tabs-desktop     { display: none; }
}

/* ── Desktop tab nav: 4 equal cards ── */
.home-tabs-desktop {
  margin: 1.5rem 0 0;
}

.home-tab-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0;
}

.home-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: rgba(6, 53, 50, 0.6);
  border: 1px solid var(--border-subtle);
  border-bottom: 3px solid transparent;
  border-radius: 0.75rem 0.75rem 0 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.home-tab-btn:hover {
  background: rgba(0, 160, 110, 0.12);
  border-color: rgba(0, 160, 110, 0.4);
}

.home-tab-btn.active {
  background: var(--bg-alt);
  border-color: var(--border-subtle);
  border-bottom-color: var(--accent);
}

.htb-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.home-tab-btn.active .htb-label {
  color: var(--accent);
}

.htb-sub {
  font-family: var(--font-main);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ── Panel area ── */
.home-tab-panels {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 1.75rem 2rem;
  min-height: 180px;
}

.home-tab-panel {
  display: none;
  animation: htFade 0.18s ease;
}

.home-tab-panel.active {
  display: block;
}

@keyframes htFade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.home-tab-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.home-tab-panel p {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.75;
  margin: 0 0 0.75rem;
}

.home-tab-panel ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.7;
}

.home-tab-panel li {
  margin-bottom: 0.35rem;
}

/*Fixing the Hero and Text  */
/*in the home page  */
/*  so that they align*/


@media (min-width: 961px) {
  /* .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  } */
}

.hero-content p {
  /* text-align: justify; */
  max-width: 100%;
}


/* FIXING ACCORDION TEXT VISIBILITY */
.accordion-content {
  color: #ECEBEA !important;
}

.accordion-content p,
.accordion-content ul,
.accordion-content li {
  color: #ECEBEA !important;
}

.accordion-header {
  /* background: #00A06E; */
  color: #ECEBEA;
}

.accordion-header:hover {
  background: #007A55;
  color: #ECEBEA;
}

/* ============================================================
   EVENTS CAROUSEL — replace old carousel block in styles.css
   ============================================================ */

.events-carousel {
  width: 100%;
  margin: 1.5rem 0 0;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Desktop: 3 slides visible */
.carousel-slide {
  flex: 0 0 33.333%;
  position: relative;
  height: 200px;
  padding: 0 0.4rem;
  box-sizing: border-box;
}

/* Mobile: 1 slide visible */
@media (max-width: 720px) {
  .carousel-slide {
    flex: 0 0 100%;
    padding: 0;
  }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
  background: #063532;
}

.carousel-slide span {
  display: block;
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  right: 0.4rem;
  background: rgba(6, 53, 50, 0.8);
  color: #ECEBEA;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-family: var(--font-main);
  border-radius: 0 0 0.6rem 0.6rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.carousel-btn {
  background: #00A06E;
  border: none;
  color: #ECEBEA;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: #007A55;
}


/* Accordion spacing on mobile */
.home-accordion-mobile .accordion-item {
  margin-bottom: 0.75rem;
}

/* Fix unreadable tab button text on desktop */
.home-tab-btn .htb-sub {
  color: #ECEBEA;
  opacity: 0.7;
}

.home-tab-btn:not(.active) .htb-label {
  color: #ECEBEA;
}

.home-tab-btn:not(.active) {
  background: rgba(6, 53, 50, 0.85);
}


/* ===============================
      FIXING THE NAV BAR HOVER 
==================================*/
/* Underline on nav hover */
.main-nav a {
  position: relative;
  display: inline-block;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: #4CCFA3;
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Smaller mobile nav dropdown */
@media (max-width: 720px) {
  .main-nav {
    min-width: 120px;
    width: auto;
    padding: 0.5rem 0.75rem;
    gap: 0.35rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }
}


/* ==================================
  FIXING THE NAV BAR HOVER COLOR 
==================================*/
@media (max-width: 720px) {
  .main-nav {
    width: auto;
    min-width: 0;
    padding: 0.6rem 1rem;
    gap: 0.6rem;
    right: 1rem;
  }

  .main-nav a {
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

.main-nav a::after {
  background: #007A55;
}


/* ==================================
Styling of about - The hub team
==================================*/
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card .team-photo {
  margin: 0 auto 1rem;
}

@media (max-width: 720px) {
  .team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-card h3,
  .team-card .bio-short {
    text-align: center;
  }

  .team-card .bio-full,
  .team-card .read-more-btn,
  .team-card a.btn {
    width: 100%;
    text-align: center;
  }
}



/* ==========================================
OPENING UP PARAGRAPH ON LAPTOP TO COVER SCREEN
=========================================== */

@media (min-width: 721px) {
  .section-heading p {
    max-width: 100%;
    padding: 0 2vw;
  }
}


/* ==============================================
  GIVING SPACES IN BETWEEN TEXT AT ABOUT SECTION 
================================================*/
/* .section-heading p + p {
  margin-top: 1.25rem;
} */

.section-heading ul {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}


.section-heading strong {
  display: block;
  margin-top: 1.75rem;
}


/* =======================================
  SOCIALS ICON VISIBILITY ON CONTACT PAGE
======================================== */
.social-icon {
  color: #4CCFA3;
}

.social-icon:hover {
  color: #ECEBEA;
  border-color: #4CCFA3;
}


/* ===============================================
  FIXING CONTACT FORM COLORS TO BE VISIBLE
====================================================*/
/* Contact form fixes */
.contact-form label {
  color: #ECEBEA;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #0d2b28;
  color: #ECEBEA;
  border-color: #00A06E;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(236, 235, 234, 0.5);
}

.contact-form select option {
  background: #063532;
  color: #ECEBEA;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #4CCFA3;
  box-shadow: 0 0 0 1px rgba(76, 207, 163, 0.3);
}


/* ============================================================
   PUBLICATIONS PAGE — Justified text
   ============================================================ */
.pub-abstract,
.pub-source,
.pub-findings ul {
  text-align: justify;
}

/* ============================================================
   EVENTS PAGE — Justified text
   ============================================================ */
.event-card p,
.event-extra p {
  text-align: justify;
}

/* ============================================================
   PROJECTS PAGE — Fix text visibility in project cards
   ============================================================ */
.project-card p,
.project-card ul,
.project-card li {
  color: #ECEBEA !important;
}

.project-card h3 {
  color: #4CCFA3 !important;
}

/* ========================================
   GALLERY PAGE
   ======================================= */

.gallery-hero {
  padding: 3rem 5vw 1.5rem;
  text-align: center;
}
.gallery-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text-main);
  margin: 0 0 0.5rem;
}
.gallery-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 52rem;
  margin: 0 auto;
  line-height: 1.7;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 5vw 0.5rem;
}
.gallery-filter-btn {
  background: rgba(6, 53, 50, 0.6);
  border: 1px solid var(--border-subtle);
  color: #ECEBEA;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.5rem 5vw 3rem;
}
.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #063532;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(6, 53, 50, 0.88);
  color: #ECEBEA;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-main);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lightbox-caption {
  color: #ECEBEA;
  font-size: 0.9rem;
  text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 999px;
  width: 36px; height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav { display: flex; gap: 1rem; }
.lightbox-prev,
.lightbox-next {
  background: #00A06E;
  border: none;
  color: #fff;
  border-radius: 999px;
  width: 40px; height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: #007A55; }

@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 1.25rem;
    gap: 0.75rem;
  }
  .gallery-hero    { padding-inline: 1.25rem; }
  .gallery-filters { padding-inline: 1.25rem; }
}

/* ==============================================
JUSTIFYING THE "ACCORDION" TEXT IN THE HOME PAGE
===============================================*/
.home-tab-panel p,
.home-tab-panel li,
.accordion-content p,
.accordion-content li {
  /* text-align: justify; */
}

/* =============================
        SEARCH BUTTON STYLING
================================*/
.site-search { display: flex; align-items: center; position: relative; }
.search-toggle { background: none; border: none; color: #F2EEE9; cursor: pointer; padding: 0.25rem; display: flex; align-items: center; transition: color 0.2s ease; }
.search-toggle:hover { color: #4CCFA3; }
.search-bar { display: none; position: absolute; top: 2.5rem; right: 0; background: #063532; border: 1px solid #0F5A54; border-radius: 0.75rem; padding: 0.5rem; z-index: 200; width: 280px; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 0.4rem; }
.search-input { flex: 1; background: #0d2b28; border: 1px solid #0F5A54; border-radius: 0.5rem; color: #ECEBEA; padding: 0.45rem 0.7rem; font-size: 0.85rem; font-family: inherit; }
.search-input::placeholder { color: rgba(236,235,234,0.5); }
.search-input:focus { outline: none; border-color: #4CCFA3; }
.search-submit { background: #00A06E; border: none; border-radius: 0.5rem; color: #fff; padding: 0.45rem 0.75rem; font-size: 0.85rem; cursor: pointer; transition: background 0.2s ease; }
.search-submit:hover { background: #007A55; }
@media (max-width: 720px) { .search-bar { right: -3rem; width: 240px; } }


/* =================================================
   PROJECTS PAGE — Read More expanded content
   ================================================ */

.project-extra-content {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.project-extra-content p,
.project-extra-content li {
  color: #ECEBEA !important;
  font-size: 0.9rem;
  line-height: 1.7;
}

.project-extra-content ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0;
}

.project-extra-content strong {
  color: #4CCFA3 !important;
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.project-read-more {
  margin-top: 1rem;
  width: 100%;
}

.project-linkedin {
  margin-top: 0.75rem;
  width: 100%;
  text-align: center;
  display: block;
}