/*
 * Edukacy static site styles
 *
 * This stylesheet defines the look and feel of the homepage using a
 * glassmorphism aesthetic. Variables are defined on :root for easy
 * theming. Sections are mobile‑first and responsive. Keep colors,
 * fonts and spacing consistent across the site by updating the
 * variables below.
 */

:root {
  /* Primary brand colour updated to match style guide (#2197bd) */
  --brand: #2197bd;
  --brand-600: #206e95;
  --accent: #43b0f1;
  --paper: 255,255,255;
  /* Primary text colour is now white for better contrast on dark backgrounds */
  --ink: #ffffff;
  --bg1: #0b1f2a;
  --bg2: #0b2633;
  --radius: 16px;

  /* Additional colours from the style guide */
  --soft-bg: #a5e2ff;
  --neutral-light: #f5f5dc;
  --neutral-grey: #e8eef1;
  --complementary-teal: #bee7e9;
  --warm-accent: #f4a988;
  --success-tone: #6ebf8b;
}

/* Global resets and base typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(67,176,241,0.15), transparent),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

h1, h2, h3 {
  font-weight: 600;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  text-align: center;
}

p {
  opacity: 0.9;
}

.highlight {
  color: var(--brand);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  /* Use an 8px radius to align with the style guide */
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  /* Smooth transitions for transform, background, colour and border */
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  /* Base border colour will be overridden by each variant */
  border: 1px solid transparent;
  /* Maintain a subtle glass effect via backdrop blur */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--glass {
  /* Secondary (outlined) button style: white background with brand coloured text and border */
  background: #ffffff;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--glass:hover {
  /* On hover, keep white background but shift text and border to the dark brand variant */
  background: #ffffff;
  color: var(--brand-600);
  border-color: var(--brand-600);
  transform: translateY(-2px);
}

.btn--solid {
  /* Primary button style: solid brand colour with white text */
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* On hover, primary button darkens to the brand dark variant */
.btn--solid:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  transform: translateY(-2px);
}

/* Glass effect base */
.glass {
  position: relative;
  background: rgba(var(--paper), 0.10);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0));
  pointer-events: none;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-radius: 0px;
  border: 0px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}

/* When a logo image is used, constrain its height and maintain aspect ratio */
.logo img {
  height: 55px;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

/* Navigation links */
.menu li a {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.2s ease;
}
/* Apply hover colour only to non‑button links to avoid changing the text on the Contact button */
.menu li a:not(.btn):hover {
  color: var(--brand);
}
/* Highlight the currently active page link */
.menu li a.active {
  color: var(--brand);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Hero section */
.hero {
  position: relative;
  padding: 6rem 2rem 0rem;
  /* The inner flex container handles layout; remove flex settings */
  overflow: hidden;
}


/* Hero heading now resides in .hero-text */
.hero-text h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Hero description */
.hero-text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* CTA inside hero text container */
.hero-text .cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero .blob {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -100px;
  right: -150px;
  pointer-events: none;
  z-index: -1;
}

/* Layout container for the hero section. Splits the hero into text and image columns. */
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Text container in the hero section */
.hero-text {
  flex: 1;
  padding: 2rem;
}

/* Colour highlights within the hero heading */
.hero-text .primary {
  color: var(--brand);
}

.hero-text .secondary {
  color: var(--accent);
}

/* Image container in the hero section */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Placeholder appearance for hero image */
.hero-image .placeholder {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius);
}

/* Real image in the hero section */
.hero-image img.hero-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  /* box-shadow: 0 8px 24px rgba(0,0,0,0.15); */
}

/* Services section */
.services {
  padding: 4rem 2rem;
}

.services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.services .card {
  padding: 2rem;
  text-align: center;
}

.services .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--brand);
}

/* Ensure SVG icons or images in services are constrained */
.services .icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* Ensure real images inside portfolio cards scale responsively */
.portfolio .work-thumb img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}


/* Space below service cards when buttons are present */
.services .card a.btn {
  margin-top: 1rem;
  display: inline-block;
}

.services h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.services p {
  font-size: 0.95rem;
}

/* Portfolio section */
.portfolio {
  padding: 4rem 2rem;
}

.portfolio .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio .work-card {
  padding: 1.5rem;
  text-align: center;
}

.portfolio .work-thumb {
  margin-bottom: 1rem;
}

.portfolio .work-thumb svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.portfolio h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.portfolio p {
  font-size: 0.95rem;
}

/* Button container inside portfolio cards */
.portfolio .work-card .buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Description styling for any section */
.section-description {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 0.5rem;
  text-align: center;
  opacity: 0.9;
  font-size: 1rem;
}

/* Container for single Explore More buttons at the end of a section */
.explore-btn-container {
  margin-top: 2rem;
  text-align: center;
}

/* CTA section */
.cta-section {
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.cta-section .cta-card {
  max-width: 600px;
  padding: 3rem 2rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
}

/* Contact section */
.contact {
  padding: 4rem 2rem;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 768px) {
  .contact form { margin: 0; }
}


.contact label {
  font-weight: 600;
}

.contact input,
.contact textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(var(--paper),0.15);
  color: var(--ink);
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: rgba(var(--ink), 0.6);
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--brand);
}

/* Footer */
.site-footer {
  padding: 2rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

/* Footer about/branding */
.footer-about {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logo-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--brand);
  border-radius: 8px;
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 300px;
}

/* Footer menu */
.footer-menu {
  flex: 1 1 180px;
}
.footer-menu h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.footer-menu ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-menu a {
  color: var(--ink);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-menu a:hover {
  color: var(--brand);
}

/* Footer contact */
.footer-contact {
  flex: 1 1 180px;
}
.footer-contact h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.footer-contact p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.footer-contact a {
  color: var(--accent);
}
.footer-contact a:hover {
  text-decoration: underline;
}

/* Footer bottom */
.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom a {
  color: var(--ink);
  transition: color 0.2s ease;
}
.footer-bottom a:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-about .footer-tagline {
    max-width: 100%;
  }
  .footer-about{
flex: 1 1 26px;
  }
  .footer-about .footer-tagline { margin-bottom: 0.5rem; }

}

/* Page hero section styling for inner pages */
.page-hero {
  position: relative;
  padding: 6rem 2rem 4rem;
}
.page-hero .hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-hero .hero-text {
  flex: 1;
  padding: 2rem;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* About intro section styling (used on the About page) */
.about-intro {
  padding: 4rem 2rem;
  background: var(--neutral-light);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: #0e1b22; /* dark text for readability */
  margin: 4rem 0;
}

/* About story section styling (About page) */
.about-story {
  padding: 4rem 2rem;
  background: var(--neutral-grey);
  color: #0e1b22;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin: 4rem 0;
}

.about-story h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--brand-600);
}

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

.story-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(var(--paper), 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.story-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--brand-600);
}

.story-card p {
  font-size: 0.95rem;
  color: #0e1b22;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* Button container under About story cards */
.about-story .explore-btn-container {
  margin-top: 2rem;
  text-align: center;
}

/* Redesigned About Edukacy section */
.about-edu {
  padding: 4rem 2rem;
  background: var(--complementary-teal);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: #0e1b22;
  margin: 4rem 0;
}

.about-edu-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: flex-start;
}

.about-edu-left h2 {
  font-size: 2rem;
  color: var(--brand-600);
  text-align: left;
  margin-bottom: 0.5rem;
}

.about-divider {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--brand-600);
  margin: 0.5rem 0 1.5rem;
}

.about-edu-left p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #0e1b22;
}

.about-edu-left a.btn {
  margin-top: 0.5rem;
}

.about-edu-right h3 {
  font-size: 1.5rem;
  color: var(--brand-600);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.about-edu-right p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #0e1b22;
}

@media (max-width: 768px) {
  .about-edu-inner {
    grid-template-columns: 1fr;
  }
}

.about-intro-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.about-intro h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--brand-600);
}

.about-intro h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--brand-600);
}

.about-intro p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #0e1b22;
}

.about-intro .btn {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .about-intro-inner {
    grid-template-columns: 1fr;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    /* background: rgba(var(--paper),0.10); */
    background: rgba(11, 31, 42, 0.95);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 1rem 1.5rem;
    display: none;
  }

  .menu.open {
    display: flex;
  }

  .nav {
    padding: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 4rem 2rem 6rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  /* Stack hero columns on small screens */
  .hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-text,
  .hero-image {
    width: 100%;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }
}
@media (max-width: 768px) {
  .hero-image { order: 1; }
  .hero-text  { order: 2; }
}

/* Focus ring for accessibility */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--brand),0.35);
  border-radius: var(--radius);
}

/*------------------ New Sections ------------------*/
/* Why Edukacy section styling */
.why {
  padding: 4rem 2rem;
}

.why .section-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  margin-top: -0.5rem;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-card {
  padding: 2rem;
  text-align: left;
}

.why-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.why-card p {
  font-size: 0.95rem;
}

/* Icons in why cards */
.why-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}
.why-card .icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

/* How We Deliver section styling */
.how-deliver {
  padding: 4rem 2rem;
}
/* New deliver layout */
.how-deliver-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Left side of deliver section */
.deliver-left {
  flex: 1 1 300px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.deliver-left h2 {
  font-size: 2rem;
}

.deliver-left .section-description {
  text-align: left;
  margin: 0;
}

.deliver-icon {
  position: relative;
  width: 100px;
  height: 100px;
}
.deliver-icon img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.deliver-icon .search-icon {
  top: 40%;
  left: 40%;
  width: 60%;
  height: 60%;
}

/* Right side of deliver section */
.deliver-right {
  flex: 2 1 400px;
}
.deliver-steps {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.deliver-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.deliver-steps .step-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8eef1;
  /* line-height: 0; */
}
.deliver-steps .step-text h3 {
  margin: 0;
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
}
.deliver-steps .step-text p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .how-deliver-inner {
    flex-direction: column;
  }
  .deliver-left,
  .deliver-right {
    flex: 1 1 100%;
  }
  .deliver-icon {
    margin: 0 auto;
  }
  .deliver-left .section-description,
  .deliver-left h2 {
    text-align: center;
  }
  .deliver-left {
    align-items: center;
  }
}

/* Contact section enhancements */
.contact {
  padding: 4rem 2rem;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-details {
  list-style: none;
  padding-left: 0;
}

/* Ensure each contact list item displays its icon and text inline */
.contact-details li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Style for icons in the contact details list */
.contact-details .contact-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  flex-shrink: 0;
  filter: brightness(0) invert(1); /* ensure icons are visible on dark backgrounds */
}

/* Removed redundant rule for .contact-details li (combined above) */

.contact-details a {
  color: var(--accent);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form-container {
  flex: 1;
}

.contact-form-container h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* Ensure contact form uses full width within its container */
.contact form {
  max-width: 100%;
}

@media (max-width: 768px) {
  .contact-inner {
    flex-direction: column;
  }
}

/* ============================= */
/* Learning App section */
/* ============================= */
.learning-app {
  padding: 4rem 2rem;
  margin: 4rem 0;
  text-align: center;
  /* Position relative so decorative blob can be absolutely positioned inside */
  position: relative;
}

.learning-app h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.learning-app .section-description {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.learning-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(var(--paper),0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  text-align: left;
}

.learning-content ul {
  list-style: none;
  margin: 1rem 0;
}

.learning-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.learning-content ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-size: 1.2rem;
  line-height: 1;
}

.learning-content a.btn {
  margin-top: 1.5rem;
  display: inline-block;
}

/* Layout for the learning-app section with illustration and text side‑by‑side */
.learning-content .learning-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.learning-content .learning-image img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  display: block;
}

/* Ensure inline SVG placeholders in the learning image container display properly */
.learning-content .learning-image svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* Decorative blob behind the learning-app section */
.learning-app .learning-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -120px;
  left: -180px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}

.learning-content .learning-text {
  flex: 1;
}

.learning-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Fix navigation button colours to follow button styles */
.menu li a.btn--glass {
  /* Ensure login in header uses secondary button colours */
  background: #ffffff;
  color: var(--brand);
  border-color: var(--brand);
}

.menu li a.btn--glass:hover {
  /* Maintain white background on hover for secondary button */
  background: #ffffff;
  color: var(--brand-600);
  border-color: var(--brand-600);
}

.menu li a.btn--solid {
  color: #ffffff;
}

/* ============================= */
/* Team section */
/* ============================= */
.team {
  padding: 4rem 2rem;
  margin: 4rem 0;
}

.team h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.team .section-description {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(var(--paper),0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink);
}

.team-card .icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display:none;
}

.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--brand);
}

.team-card p {
  font-size: 1rem;
  color: var(--ink);
}

/* ============================= */
/* About Edukacy override for glassmorphism */
/* ============================= */
.about-edu {
  background: none;
  padding: 4rem 2rem;
  margin: 4rem 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
}

.about-edu-left,
.about-edu-right {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(var(--paper),0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink);
}

.about-edu-left h2,
.about-edu-right h3 {
  color: var(--brand);
}

.about-edu-left p,
.about-edu-right p {
  color: var(--ink);
}

.about-divider {
  background: var(--brand);
}

/* Footer logo image sizing */
.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* ------------------------------------------ */
/* Additional components: WhatsApp chat button */
/* ------------------------------------------ */

/* Floating WhatsApp chat button positioned bottom-right */
.whatsapp-chat {
  position: fixed;
  /* Position above the cookie banner */
  bottom: 5rem;
  right: 1.5rem;
  /* Ensure WhatsApp button stays above cookie banner */
  z-index: 1100;
  /* Use the official WhatsApp brand colour */
  background: #25D366;
  border-radius: 50%;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Size the WhatsApp icon within the button */
.whatsapp-chat img {
  width: 24px;
  height: 24px;
  display: block;
  /* Invert the icon colour to white for dark backgrounds */
  filter: brightness(0) invert(1);
}

/* Hover state for WhatsApp button */
.whatsapp-chat:hover {
  /* Darken the WhatsApp button on hover */
  background: #128C7E;
  transform: translateY(-2px);
}

/* ------------------------------------------ */
/* Cookie banner for consent notice */
/* ------------------------------------------ */

/* Hidden by default; displayed when no consent stored */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(var(--paper), 0.95);
  color: #0e1b22;
  padding: 1rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.cookie-banner p {
  flex: 1 1 auto;
  margin: 0;
  margin-right: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-banner .cookie-accept {
  flex: 0 0 auto;
}