/* === ZURICH SNOWSPORTS CLUB – COMPACT 2025 VERSION === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }
html {
    scroll-padding-top: 120px;   /* Adjust this value to match your header height */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0ea5e9;
    color: #1e293b;
    line-height: 1.7;
    min-height: 100vh;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.75rem; margin: 1rem 0 0.5rem; }

p { margin-bottom: 0.9rem; }
p + p { margin-top: -0.3rem; }

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 0 1rem;
}

.about-container {
    position: relative;        /* establishes positioning context */
    padding-top: 2.5rem;       /* gives space for the logo so text doesn't start under it */
}

.corner-logo {
    position: absolute;
    top: 1.5rem;               /* distance from the top edge */
    right: 1.5rem;             /* distance from the right edge */
    width: 140px;              /* adjust size as you like */
    height: auto;
    z-index: 10;
    border-radius: 1rem;
    border: 3px solid #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .about-container { padding-top: 7rem; }
    .corner-logo {
        width: 110px;
        top: 1rem;
        right: 1rem;
    }
}

/* === HEADER (frosted glass – unchanged, still epic) === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(14, 165, 233, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.3;
    z-index: -2;
}

header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14,165,233,0.6), rgba(56,189,248,0.3));
    z-index: -1;
}

header .container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

header h1 {
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

#mainnav ul li a {
  color: #ffffff;
}

nav a {
    /*color: #ffffff;*/
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: opacity 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 0;
    background: #ffffff;
    transition: width 0.3s ease;
}

nav a:hover { opacity: 0.85; }
nav a:hover::after { width: 100%; }

details.sport-group {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

summary.sport-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: 1rem 1.25rem;
  background: #f5f7fa;
  border: 1px solid #e1e4e8;
  border-radius: 10px;

  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

summary.sport-toggle:hover {
  background: #eef1f5;
}

summary.sport-toggle:active {
  transform: translateY(1px);
}

summary.sport-toggle::-webkit-details-marker {
  display: none;
}

.sport-title {
  font-size: 1.1rem;
}

.sport-meta {
  opacity: 0.7;
  font-weight: 400;
  margin-left: auto;
}

.chevron {
  transition: transform 0.2s ease;
}

details[open] .chevron {
  transform: rotate(180deg);
}

.lesson-list {
  margin-top: 1rem;
  display: grid;
  gap: 1.25rem;
}

/* Card */
.lesson-card {
  background: #ffffff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Header */
.lesson-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.lesson-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.lesson-level {
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #3b4a63;
  white-space: nowrap;
}

/* Description */
.lesson-description {
  margin: 0.75rem 0;
  color: #444;
}

/* Meta row */
.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.75rem;
}

/* Objectives / prerequisites */
.lesson-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.lesson-sections h4 {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.lesson-sections ul {
  margin: 0;
  padding-left: 1.2rem;
}

.lesson-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lesson-count {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #eef6ff;
  color: #2c5aa0;
  white-space: nowrap;
}

.lesson-progress {
  margin-top: 0.75rem;
}

.lesson-progress-bar {
  width: 100%;
  height: 8px;
  background: #e6e9ee;
  border-radius: 999px;
  overflow: hidden;
}

.lesson-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4c8bf5, #6fa8ff);
  transition: width 0.3s ease;
}

.lesson-progress-text {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #555;
}

.lesson-card-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.lesson-register-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* Primary */
.btn-primary {
  background: #4c8bf5;
  color: white;
}

.btn-primary:hover {
  background: #3b7ae0;
}

/* Secondary (waitlist) */
.btn-secondary {
  background: #f1f3f6;
  color: #333;
}

.btn-secondary:hover {
  background: #e2e5ea;
}

.lesson-cover-photo {
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  max-height: 350px;
}

.lesson-cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps aspect ratio, fills container */
  display: block;
}

/* Mobile */
@media (max-width: 700px) {
  .lesson-sections {
    grid-template-columns: 1fr;
  }
}

/* === MAIN CONTENT – COMPACT VERSION === */
.section { 
    padding: 0.5rem 0; 
}

.section > .container {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    margin: 0.5rem auto;
    max-width: 1200px;
}

/* Hero-ish About section */
#about:first-of-type > .container {
    padding: 3.5rem 2.5rem;
    text-align: center;
}

#about img {
    max-width: 180px;
    border-radius: 1rem;
    border: 4px solid #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin-bottom: 0;
}

/* Flex rows (About Us + How it works) */
#about .container > div[style*="flex"],
#about + .section .container > div[style*="flex"] {
    gap: 2rem;
    align-items: center;
}

/* Trip & Past-Trip cards */
#trips ul,
.section ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

#trips li,
.section ul li {
    background: #f8fdff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #bae6fd;
    transition: transform 0.3s ease;
}

#trips li:hover,
.section ul li:hover {
    /*transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14,165,233,0.2);*/
}

/* Buttons */
.btn {
    display: inline-block;
    background: #0f172a;
    color: white;
    padding: 0.85rem 2.2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    margin: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(15,23,42,0.3);
}

.btn:hover {
    background: #0ea5e9;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(14,165,233,0.4);
}

/* Footer */
footer {
    background: #0f172a;
    color: #e2e8f0;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* === MOBILE OPTIMISATIONS === */
@media (max-width: 768px) {
    header .container { 
        flex-direction: column; 
        gap: 0.8rem; 
        padding: 1rem 0;
    }
    nav ul { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 1.5rem; 
    }
    .section { 
        padding: 0.1rem 0; 
    }
    .section > .container { 
        padding: 1rem; 
        margin: 1rem auto; 
    }
    #about:first-of-type > .container { 
        padding: 3rem 1.5rem; 
    }
    #about .container > div[style*="flex"],
    #about + .section .container > div[style*="flex"] {
        flex-direction: column;
        text-align: center;
    }
    #about img {
        max-width: 150px;
    }
    .btn { 
        width: 100%; 
        text-align: center; 
        padding: 1rem;
    }
}
