/* ===== GLOBAL ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #EDE9FE;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

/* ===== HEADER & NAV ===== */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
}

#topnav {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  color: #6B4EFF;
  font-size: 1.5rem;
}

.nav-links {
  display: none; 
  text-align: center;
  background: #fff;
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%;
  padding: 1rem 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

.nav-links a {
  display: block; 
  margin: 0.5rem 0;
  color: #111;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: #2DD4BF;
  transform: translateY(-2px);
}

.nav-links a.active {
  color: #6B4EFF;
  font-weight: 600;
}

.nav-links.show {
  display: block; 
}


#hamburger {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  display: inline-block;
}

/* ===== MAIN ===== */
main {
  max-width: 1100px;
  margin: 2rem auto 0 auto;
  padding: 0 1rem;
  text-align: center;
  min-height: calc(83vh - 100px);
}

h1 {
  font-family: "Playfair Display", serif;
  color: #6B4EFF;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 3.5rem 0 2.5rem 0;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 2rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
}

p {
  color: #2DD4BF;
}

.copyright {
  color: #6B4EFF;
}

/* ===== EXERCISE SECTIONS / CARDS ===== */
.exercise-links {
  margin-bottom: 2rem;
}

.exercise-links h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 3rem; 
  color: #333;
}


.links-container {
  text-align: center;
}

.links-container a {
  display: inline-block;
  width: 40%;    
  height: 80px;    
  margin: 1rem;
  text-decoration: none;
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  color: #111;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-align: center;
  vertical-align: top;
  overflow: hidden;
}

/* Hover effect */
.links-container a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Secondary style card */
.links-container a.secondary {
  border: 2px solid #6B4EFF;
  background: #F5F0FF;
  color: #6B4EFF;
}

.links-container a.secondary:hover {
  background: #6B4EFF;
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  background: #fff;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

footer a {
  color: #111;
  font-weight: 500;
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 768px) {
  .nav-links {
    display: block;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    width: auto;
    box-shadow: none;
    flex-direction: row;
    padding: 0;
  }
  .nav-links a {
    display: inline-block;
    margin: 0 1rem;
  }

  #hamburger {
    display: none;
  }
}

@media (max-width: 767px) {
  .links-container a {
    width: 70%;
    height: 60px; 
    margin: 1rem auto;
  }
}