/* learn.css copied as about.css */
/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background-color: #050a30;
  color: #fff;
  padding-top: 100px;
}

/* ─── HEADER / NAVBAR ──────────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background-color: #4151b4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

header img:first-of-type {
  height: 60px;
  object-fit: contain;
}

/* Navbar container */
nav ul {
  list-style: none;
  display: flex;
  align-items: center; /* 🔧 Ensures vertical alignment */
  gap: 25px;
}

/* Common nav link styles */
nav ul li a {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Underline animation for regular links */
nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: #00bfff;
  transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #00bfff;
}

/* ✅ LOGIN button specific styles */
nav ul li a.login-button {
  padding: 6px 14px;               /* Adjust padding */
  border: 2px solid #00bfff;
  border-radius: 6px;
  line-height: 1;                  /* Align better */
  height: auto;
  display: inline-block;
  margin-top: -2px;                /* Slight tweak for vertical centering */
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a.login-button:hover {
  background-color: #00bfff;
  color: #fff;
}

/* ABOUT HERO ADJUSTED */
.learn-hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem;                                   /* taller top/bottom */
  background: linear-gradient(120deg, #4151b4, #2e387d);
  text-align: left;
}

/* center content and constrain width */
.learn-hero .container {
  max-width: 800px;
  margin: 0 auto;
}

/* both heading and paragraph start off screen */
.learn-hero h1,
.learn-hero p {
  transform: translateX(-60%);
  opacity: 0;
  animation: slideIn 1s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* HEADING */
.learn-hero h1 {
  display: inline-block;                                /* shrink-wrap for underline */
  font-size: 3rem;
  color: #fff;
  margin: 0;
  position: relative;
  animation-delay: 0.2s;
}

/* highlight part of the heading */
.learn-hero h1 .highlight {
  color: #00e0ff;
}

/* underline only as wide as the text */
.learn-hero h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background-color: #00e0ff;
  animation: underline 0.8s ease-out forwards 1.2s;
}

/* SUBTITLE */
.learn-hero p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #e0e0e0;
  max-width: 700px;
  animation-delay: 0.6s;
}

/* slide-in keyframe */
@keyframes slideIn {
  from {
    transform: translateX(-60%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* underline keyframe */
@keyframes underline {
  from { width: 0; }
  to   { width: 100%; }
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn-group {
  display: inline-flex; gap: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-primary {
  background-color: #4151b4;
  color: #fff;
  border: 2px solid #4151b4;
}
.btn-primary:hover {
  background-color: #2e387d;
  border-color: #2e387d;
}
.btn-secondary {
  background: transparent;
  color: #4151b4;
  border: 2px solid #4151b4;
}
.btn-secondary:hover {
  background: rgba(65, 81, 180, 0.1);
}

/* ─── SECTIONS & GRIDS ─────────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.lessons-section {
  padding: 4rem 0;
}
.lessons-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* two-column grid */
.grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width:768px) {
  .grid-two { grid-template-columns: 1fr 1fr; }
}

/* three-column grid */
.grid-three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media(min-width:768px) {
  .grid-three { grid-template-columns: repeat(3,1fr); }
}

/* value & team cards */
.value-card,
.team-card {
  background: #fff; color: #050a30;
  padding: 1.5rem; border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.value-card:hover,
.team-card:hover {
  transform: translateY(-6px);
}
.team-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.value-card h3,
.team-card h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}
/* ─── OUR STORY + MISSION/VISION ──────────────────────────────────────────── */
.story-section {
  background-color: #050a30;
  padding: 4rem 1rem;
}

.story-container {
  display: flex;
  gap: 3rem;
  max-width: 1000px;      /* limit total width */
  margin: 0 auto;         /* center it */
  align-items: flex-start;
  flex-wrap: wrap;
}

.story-text {
  flex: 2 1 0;            /* take roughly 2/3 of the width */
  min-width: 280px;
}

.story-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.story-text p {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.story-aside {
  flex: 1 1 0;            /* take roughly 1/3 of the width */
  min-width: 240px;
}

.story-card {
  background-color: #1b1b3b;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.story-card h3 {
  margin: 0 0 0.75rem;
  color: #00e0ff;
  font-size: 1.5rem;
}

.story-card p {
  color: #c0c0cf;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* stack on mobile */
@media (max-width: 768px) {
  .story-container {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ─── OUR CORE VALUES SECTION ─────────────────────────────────────────────── */

.values-section {
  padding: 4rem 0;
  background-color: #050a30; /* match your dark page bg */
}

.values-section .section-title {
  text-align: center;
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* grid container */
.values-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* card */
.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0, 224, 255, 0.2);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.value-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
}

.value-card p {
  color: #c0c0cf;
  line-height: 1.5;
}

/* icon wrapper */
.value-icon {
  width: 48px;
  height: 48px;
  background-color: #00e0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.value-icon svg {
  stroke: #050a30; /* dark stroke so it pops against the aqua bg */
}

/* stack on mobile */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}
/* ─── OUR CORE VALUES SECTION (lighter bg) ───────────────────────────────── */

.values-section {
  padding: 4rem 0;
  background-color: #111536; /* was #050a30, now a bit lighter */
}

/* ─── MEET OUR CO-FOUNDERS SECTION ─────────────────────────────────────────── */
.team-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 2.5rem;
}

/* grid of two cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* each co-founder card */
.team-card {
  /* hair‐thin aqua outline */
  border: 0.5px solid rgba(0, 224, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  background-color: #0b0f2f;
}

/* top image stripe */
.team-image {
  background-color: #1c1744;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-image img {
  max-height: 100%;
  max-width: 60%;
  object-fit: cover;
  display: block;
}

/* info panel */
.team-info {
  background-color: #0b0f2f;
  padding: 1.5rem;
}
.team-info h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}
.team-info .title {
  margin: 0.25rem 0 1rem;
  color: #00e0ff;
  font-weight: 500;
}
.team-info .description {
  color: #ccc;
  line-height: 1.6;
  font-size: 1rem;
}

/* CTA below cards */
/* CTA below cards */
.team-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;        /* tighter spacing between heading & text */
  margin-top: 6rem; /* keeps it further down */
  text-align: center;
}

.team-cta h3 {
  font-size: 1.75rem;
  color: #fff;
  margin: 0;
}

.team-cta p {
  color: #ccc;
  max-width: 600px;
  margin: 0;
  line-height: 1.5;
}

/* Push the button 2rem below the paragraph */
.team-cta .btn {
  background-color: #6b33ff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: transform 0.2s;
  margin-top: 2rem; /* creates the extra gap before the button */
}

/* Hover state: lift + pulse */
.team-cta .btn:hover {
  transform: translateY(-2px);
  animation: pulseShadow 1.5s ease-out infinite;
}

@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 51, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 40px 16px rgba(107, 51, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(107, 51, 255, 0.6);
  }
}

/* ─── ORIGINAL TEAM PHOTO ───────────────────────────────── */
.original-team .section-title {
  font-size: 2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.original-team {
  padding: 4rem 2rem 2rem;
  text-align: center;
  background-color: #0b0f2f;
}

.original-team figure {
  display: inline-block;       /* shrink-wrap figure */
  margin: 0 auto;              /* center it */
}

.team-photo img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}

.team-photo img:hover {
  transform: scale(1.02);
}

.team-caption {
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.team-caption p {
  margin: 0.25rem 0;
}

.team-caption strong {
  color: #fff;
}

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
  background-color: #4151b4;
  color: #e0e0ff;
  text-align: center;
  padding: 1.5rem 0;
}