:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg-color: #FAF9F6;
  --text-main: #1C1C1E;
  --text-muted: #5A5A5F;
  --text-light: #8E8E93;
  --border-color: #E5E5EA;
  --table-stripe: #F9F9F9;
  --nav-bg: rgba(250, 249, 246, 0.96);
  --accent-color: #D4AF37;
  --max-width: 1100px;
  --section-padding: 100px 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
ul { list-style: none; }

/* Section Backgrounds */
.bg-primary { background-color: var(--bg-color); }
.bg-secondary { background-color: #FFFFFF; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(3.5rem, 8vw, 6rem); text-transform: uppercase; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 0.5rem; color: var(--text-main); }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); text-transform: uppercase; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 2rem; color: var(--text-main); }
h3 { font-size: 1.75rem; margin-top: 3rem; margin-bottom: 1.5rem; font-weight: 600; color: var(--text-main); }
p { margin-bottom: 1.8rem; font-size: 1.15rem; color: var(--text-muted); }

/* Bolds in narrative flow */
p strong { color: var(--text-main); font-weight: 700; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 2; }
section { padding: var(--section-padding); position: relative; }

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background-color: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-bottom 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 25px 40px;
}
header.scrolled { border-bottom: 1px solid var(--border-color); padding: 15px 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.logo { font-weight: 900; font-size: 1.25rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-main); }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links li a { font-size: 0.85rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; color: var(--text-muted); }
.nav-links li a:hover, .nav-links li a.active { color: var(--text-main); }
.lang-switch { font-weight: 700; font-size: 0.85rem; border: 2px solid var(--text-main); padding: 6px 14px; border-radius: 4px; color: var(--text-main); }
.lang-switch:hover { background-color: var(--text-main); color: #fff; }

/* Full Cover Hero Section */
.cover-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Text on the right */
  padding: 0 60px;
  padding-top: 80px; 
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; 
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Dark gradient coming from the right so text pops */
  background: linear-gradient(270deg, rgba(15,15,15,0.95) 0%, rgba(15,15,15,0.7) 40%, rgba(15,15,15,0.1) 100%);
}

.hero-content-overlay {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  margin: 0; 
  text-align: right; /* Text alignment right */
}
.hero-content-overlay .subtitle { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent-color); font-weight: 800; display: block; margin-bottom: 1.5rem; }
.hero-content-overlay h1 { color: #ffffff; text-shadow: 0 4px 15px rgba(0,0,0,0.3); margin-left: auto; }
.hero-content-overlay .lead { font-size: 1.85rem; font-weight: 600; color: #ffffff; line-height: 1.4; margin-bottom: 1.5rem; letter-spacing: -0.01em; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-content-overlay p { color: #E5E5E5; margin-left: auto; }
.hero-content-overlay p strong { color: #FFF; }

/* Circular Image Detail for About Section */
.about-circle {
  display: block;
  width: 250px;
  height: 250px;
  margin: 3rem auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border: 4px solid var(--bg-color);
}

/* Standalone Center Text Section */
.text-center-block { max-width: 800px; margin: 0 auto; text-align: center; }
.text-center-block p { font-size: 1.25rem; margin-left: auto; margin-right: auto; text-align: left; /* Kept text naturally aligned */ }
.about.text-center-block p { text-align: center; } /* About specifically requested centered look previously, keep if it looks good, but let's let all text be center aligned here for simplicity */


/* Highlights List */
.highlights li { font-size: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); font-weight: 500; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.highlights li:last-child { border-bottom: none; }

/* Badges */
.medal-badge { display: inline-block; padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; }
.medal-badge.gold { background: linear-gradient(135deg, #F6D365 0%, #FDA085 100%); box-shadow: 0 4px 15px rgba(253, 160, 133, 0.4); }
.medal-badge.silver { background: linear-gradient(135deg, #E2E2E2 0%, #9F9F9F 100%); box-shadow: 0 4px 15px rgba(159, 159, 159, 0.4); }
.medal-badge.bronze { background: linear-gradient(135deg, #E8A26A 0%, #C76B2C 100%); box-shadow: 0 4px 15px rgba(199, 107, 44, 0.4); }

/* Tables */
.table-responsive { overflow-x: auto; margin-bottom: 4rem; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); padding: 1rem; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--border-color); }
th { font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; color: var(--text-light); }
tr:last-child td { border-bottom: none; }
tr:hover { background-color: var(--table-stripe); }

/* Medals Hero Image */
.medals-hero-image {
  max-width: 900px;
  margin: 3rem auto 4rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.medals-hero-image img {
  width: 100%;
  display: block;
}

/* Hero Swim Logo Section */
.hero-swim {
  background-color: #26559A;
  background-image: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 50%);
  color: #fff;
  border-radius: 20px;
  padding: 6rem;
  margin: 5rem 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-swim-logo-wrapper { max-width: 250px; margin-bottom: 2.5rem; }
.hero-swim-logo-wrapper img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.hero-swim h2 { display: none; }
.hero-swim p { color: #E2E8F0; font-size: 1.3rem; margin-bottom: 2.5rem; max-width: 600px;}
.hero-swim p strong { color: #ffffff; }
.hero-swim a {
  display: inline-block;
  font-weight: 700;
  color: #ffffff; /* Explicitly requested white link */
  font-size: 1.1rem;
  padding: 14px 34px;
  border: 2px solid #ffffff;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-swim a:hover { background-color: #ffffff; color: #26559A; }

/* Footer */
footer { background-color: #0F0F0F; color: #fff; padding: 80px 20px; }
.footer-container { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.footer-logo { font-size: 2rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; }
.footer-text { color: #666; font-size: 0.9rem; text-align: center; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background-color: #222; border-radius: 50%; color: #fff; transition: all 0.3s; }
.social-icon svg { width: 28px; height: 28px; fill: currentColor; }
.social-icon:hover { background-color: var(--accent-color); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }

/* Discreet Footer Recommendations */
.footer-links { font-size: 0.75rem; color: #555; text-align: center; max-width: 800px; line-height: 1.6; margin-top: -1rem; }
.footer-links a { text-decoration: underline; text-decoration-color: rgba(85,85,85,0.4); text-underline-offset: 3px; transition: color 0.2s; }
.footer-links a:hover { color: #888; text-decoration-color: #888; }

/* Responsive Adjustments */
@media (max-width: 992px) {
  .cover-hero { padding: 0 40px; text-align: right; justify-content: flex-end; }
  .hero-overlay { background: linear-gradient(to top, rgba(15,15,15,0.7) 0%, rgba(15,15,15,0.9) 100%); /* Might need flip for mobile */ }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  :root { --section-padding: 80px 20px; }
  header { padding: 15px 20px; }
  header.scrolled { padding: 15px 20px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .cover-hero { padding: 0 20px; text-align: center; justify-content: center; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(15,15,15,0.7) 0%, rgba(15,15,15,0.85) 100%); }
  .hero-content-overlay { text-align: center; }
  .hero-content-overlay .lead { font-size: 1.5rem; }
  .highlights li { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .hero-swim { padding: 4rem 1.5rem; margin: 2rem 0; border-radius: 0; }
  .about-circle { width: 200px; height: 200px; }
}
