/* Root palette and base layout */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2: #22c55e;
  --stroke: #e2e8f0;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

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

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.08), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
    var(--bg);
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Top bar */
.topbar {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(34, 197, 94, 0.12));
  color: var(--ink);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 5%;
  flex-wrap: wrap;
}

.topbar .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.topbar .contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar .contact-info i {
  color: var(--accent);
}

.topbar-right {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  background: rgba(37, 99, 235, 0.15);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.navbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar a:hover .site-title {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.nav-links a,
.lang-toggle select {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.lang-toggle select:hover {
  color: var(--ink);
  background: rgba(37, 99, 235, 0.08);
}

.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.lang-toggle {
  margin-left: 0.4rem;
}

.lang-toggle select {
  border: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
}

.lang-toggle select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero + slider */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 2.5rem;
}

.slider {
  position: relative;
  height: 75vh;
  max-height: 820px;
  min-height: 480px;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.55));
  z-index: 2;
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.35), rgba(34, 197, 94, 0.25));
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-title,
.hero-subtitle {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 1.2s ease;
  width: min(900px, 92%);
}

.hero-title {
  bottom: 18%;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  bottom: 10%;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.fade-in {
  opacity: 1;
  animation: fadeInUp 1.6s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* About */
.about-section {
  padding: 4rem 1.5rem;
}

.about-container {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

.about-text h2 {
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Cultural highlights */
.cards-section {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.cards-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  color: var(--ink);
  font-size: 1.2rem;
  margin: 1.1rem 1.2rem 0.35rem;
}

.card p {
  color: var(--muted);
  margin: 0 1.2rem 1.2rem;
  line-height: 1.6;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

/* News & events */
.news-events {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  padding: 4rem 1.5rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--ink);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
}

.news-date {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.news-card h3 {
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.news-card p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.read-more {
  color: var(--accent);
  font-weight: 700;
}

/* Gallery */
.gallery-header {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(34, 197, 94, 0.08));
}

.gallery-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.gallery-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  padding: 2rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #000;
}

.photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.photo-card .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.7));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.photo-card:hover img {
  transform: scale(1.06);
}

.photo-card:hover .overlay {
  opacity: 1;
}

/* Members */
.members {
  background: linear-gradient(180deg, #f4f7fb, #ffffff);
  padding: 4rem 1.5rem;
  text-align: center;
}

.members h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.members-intro {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.member-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.06), rgba(34, 197, 94, 0.04)), #fff;
}

.member-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.member-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.9rem;
  border: 5px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.member-card h3 {
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.member-card .role {
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.65rem;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  letter-spacing: 0.01em;
}

.member-card p {
  color: var(--muted);
}

.members-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.2), rgba(34, 197, 94, 0.2));
}

.members-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  color: var(--ink);
}

.members-hero .eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.members-hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.members-hero p {
  color: var(--muted);
}

/* About page */
.about-hero {
  position: relative;
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.32), rgba(34, 197, 94, 0.28)),
    url('group4.jpg') center/cover no-repeat;
  color: #fff;
}

.about-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.5));
}

.about-hero .hero-text {
  position: relative;
  z-index: 1;
}

.about-hero h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.about-hero p {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.about-content {
  padding: 4rem 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about-grid .about-text h3 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.about-grid .about-text p {
  color: var(--muted);
  line-height: 1.8;
}

.about-grid .about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

/* Mission / vision */
.mission-vision {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.mv-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.mv-card i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.mv-card h4 {
  margin-bottom: 0.4rem;
}

/* Yoruba history */
.yoruba-history {
  padding: 4rem 1.5rem;
  background: #fff;
}

.history-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  align-items: center;
}

.history-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  object-fit: cover;
  max-height: 420px;
}

.history-text h2 {
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.history-text p {
  color: var(--muted);
  line-height: 1.75;
}

/* Contact */
.contact-section {
  padding: 4rem 1.5rem;
  background: #f8fafc;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.contact-info {
  color: var(--muted);
}

.contact-section .contact-info {
  display: block;
  gap: 0;
}

.contact-info h2 {
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.contact-details {
  list-style: none;
  line-height: 1.8;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #f8fafc;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

/* Footer */
.footer {
  background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.3), transparent 35%),
    #0b1424;
  color: #e2e8f0;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 1rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
}

.footer-map {
  max-width: 1024px;
  margin: 0 auto;
}

.footer-map h4 {
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
  .site-title {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 4%;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--stroke);
    flex-direction: column;
    width: 230px;
    display: none;
  }

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

  .menu-toggle {
    display: block;
  }

  .hero-title {
    bottom: 22%;
  }

  .hero-subtitle {
    bottom: 12%;
  }

  .contact-container,
  .member-grid,
  .photo-gallery,
  .news-grid,
  .cards-container,
  .about-container,
  .history-container {
    grid-template-columns: 1fr;
  }

  .member-card img {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .topbar-right {
    justify-content: center;
  }

  .contact-info {
    justify-content: center;
  }

  .slider {
    height: 65vh;
    min-height: 420px;
  }

  .about-container,
  .card,
  .news-card,
  .contact-form,
  .member-card {
    border-radius: 14px;
  }

  .photo-card img {
    height: 220px;
  }

  .member-card img {
    width: 120px;
    height: 120px;
  }

  .member-grid {
    gap: 1rem;
  }

  .members-hero {
    padding: 2.6rem 1.2rem 2rem;
  }

  .contact-section {
    padding: 3rem 1.2rem;
  }

  .contact-container {
    gap: 1.2rem;
  }
}
