:root {
  --primary: #1a73e8;
  --accent: #ffffff;
  --bg: #192c3f;
  --text: #ffffff;
  --muted: #cfd8dc;
  --dark: #000000;
}
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
header {
  background: linear-gradient(90deg, var(--primary), var(--dark));
  padding: 2rem 0 1rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header h1 {
  margin: 0;
  font-size: 2.8rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
header p {
  margin: 0.5rem 0 0 0;
  font-size: 1.3rem;
  color: var(--muted);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background 0.2s;
}
nav a:hover {
  background: var(--primary);
  color: var(--accent);
}

.headerSubtitle {
  color: var(--accent);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: url("assets/photos/podebrady2025_006.jpg") top center / cover no-repeat fixed;
  min-height: 350px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16,24,32,0.7);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text);
}
.hero-content h2 {
  font-size: 2rem;
  margin: 0.5rem 0;
  font-weight: 700;
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0.5rem 0;
}
.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.cta-btn:hover {
  background: var(--primary);
  color: var(--text);
}
section {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 1.5rem;
  background: rgba(26, 115, 232, 0.05);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
section h2 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.achievements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}
.achievement-card {
  background: var(--bg);
  border-left: 5px solid var(--primary);
  padding: 1.2rem;
  border-radius: 12px;
  flex: 1 1 270px;
  min-width: 240px;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.08);
  margin-bottom: 1rem;
  transition: transform 0.15s;
}
.achievement-card:hover {
  transform: translateY(-5px) scale(1.025);
  border-left: 5px solid var(--accent);
}
.achievement-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--primary);
}
.achievement-date {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  margin: 1rem 0;
}
.gallery img {
  width: 100%;
  height: 200px; /* Fixed height for uniform grid */
  object-fit: cover; /* Crop images to fit while maintaining aspect ratio */
  object-position: center; /* Center the image within the container */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Subtle background while loading */
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  /* Core Web Vitals optimization */
  loading: lazy;
  decoding: async;
  contain: layout style paint;
}
.gallery img:nth-child(1) { animation-delay: 0.1s; }
.gallery img:nth-child(2) { animation-delay: 0.2s; }
.gallery img:nth-child(3) { animation-delay: 0.3s; }
.gallery img:nth-child(4) { animation-delay: 0.4s; }
.gallery img:nth-child(5) { animation-delay: 0.5s; }
.gallery img:nth-child(6) { animation-delay: 0.6s; }
.gallery img:nth-child(n+7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}
.sponsor-logo {
  height: 60px;
  filter: grayscale(1) brightness(0.85);
  transition: filter 0.2s;
  margin: 0 1rem;
}
.sponsor-logo:hover {
  filter: none;
}
.contact {
  text-align: center;
  margin-top: 2rem;
}
.contact a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Language Selector Styles */
.lang-selector a {
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  display: inline-block;
}
.lang-selector a:hover {
  opacity: 1;
}
.lang-selector a.active {
  opacity: 1;
  border-bottom: 2px solid var(--accent);
}
.lang-flag {
  width: 24px; /* Adjust size as needed */
  height: auto;
  vertical-align: middle;
  display: block; /* Prevents extra space below image */
}

/* Header Flag */
.header-flag {
  position: absolute;
  left: 1rem;
  height: 120px; /* Adjust size as needed */
  width: auto;
  opacity: 0.6; /* Optional: make it slightly transparent */
  z-index: 0; /* Ensure it's behind the main content but above the background */
  opacity: 0.3;
  top: 50%;
  transform: translateY(-50%);
}

/* Medium screens (tablets) */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
  }
  .gallery img {
    height: 180px;
  }
}

@media (max-width: 700px) {
  header h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  header p {
    font-size: 1rem;
  }
  nav {
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 1rem;
    flex-wrap: wrap; /* Allow nav items to wrap */
  }
  nav a {
      padding: 0.4rem 0.8rem;
  }
  .hero {
      min-height: 250px;
      padding: 1.5rem 0.5rem;
  }
  .hero-content h2 {
    font-size: 1.5rem; /* Adjusted from 1.2rem for better balance */
  }
   .hero-content p {
      font-size: 1rem;
   }
  .cta-btn {
      padding: 0.6rem 1.5rem;
      font-size: 1rem;
  }
  section {
    padding: 1rem;
    margin: 1.5rem auto;
  }
   section h2 {
      font-size: 1.3rem;
   }
  .achievements-list {
    flex-direction: column;
    gap: 1rem; /* Increased gap slightly */
  }
  .achievement-card {
      flex-basis: auto; /* Reset flex-basis */
      min-width: unset;
  }
  .gallery {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 1rem;
  }
  .gallery img {
      height: 150px;
  }
  .sponsors {
      gap: 1rem;
  }
  .sponsor-logo {
      height: 45px; /* Smaller logos */
      margin: 0 0.5rem;
  }
  .contact form {
      max-width: 100%; /* Allow form to take full width */
  }
  .lang-selector {
      padding: 0.2rem 0.5rem 0;
  }
  .lang-flag {
      width: 20px;
  }

  /* Hide header flag on small screens */
  .header-flag {
    display: none;
  }

  /* Position modal caption at bottom on small screens */
  #modalCaption {
    position: absolute;
    bottom: 15px;
    left: 5%; /* Add some horizontal padding */
    right: 5%;
    width: 90%; /* Adjust width to account for left/right */
    max-width: 90%; /* Override desktop max-width */
    margin: 0 auto; /* Keep it centered */
    padding: 5px 0; /* Reduce padding slightly */
    height: auto; /* Let height be automatic */
    font-size: 0.9rem; /* Slightly smaller text */
  }
}

/* Form Status Message */
#form-status {
    min-height: 1.2em; /* Prevent layout shift when message appears/disappears */
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

/* Image Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s;
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--muted);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent);
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--muted);
    padding: 10px 0;
    height: 40px;
    font-size: 1.1rem;
}

/* Contact Form Styles */
.form-group {
    margin-bottom: 1rem; /* Space between form groups */
}

.form-label {
    display: block; /* Ensure label takes its own line */
    margin-bottom: 0.4rem;
    color: var(--muted); /* Make label text visible */
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.5rem; /* Reduced margin since form-group also adds space */
    border: 1px solid rgba(207, 216, 220, 0.4); /* Subtle border with some opacity */
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent background */
    color: var(--text); /* Text color inside input */
    box-sizing: border-box; /* Include padding and border in width */
    font-family: inherit; /* Use body font */
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.3);
}

/* Specific style for the submit button - override general .cta-btn margin if needed */
#contact-form .cta-btn {
    margin-top: 0; /* Reset top margin if needed, handled by inline style */
}

/* Bio Page Styles */
.bio-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  color: var(--text);
}

.bio-container h1 {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

.bio-section {
  background: rgba(26, 115, 232, 0.05);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.bio-section h2 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.bio-section p {
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.bio-achievements {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-achievement {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bio-achievement h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.bio-achievement p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

.back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

@media (max-width: 700px) {
  .bio-container {
    margin: 1rem auto;
    padding: 1rem;
  }
  
  .bio-container h1 {
    font-size: 1.8rem;
  }
  
  .bio-section {
    padding: 1.5rem;
  }
  
  .bio-section h2 {
    font-size: 1.4rem;
  }
}

/* Social Media Styles */
.social-media {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(26, 115, 232, 0.05);
  border-radius: 12px;
}

.social-media h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 2px solid transparent;
  width: 50px;
  height: 50px;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-color: #bc1888;
}

.social-link.youtube:hover {
  background: #ff0000;
  color: white;
  border-color: #cc0000;
}

.social-link.worldathletics:hover {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  border-color: #f7931e;
}

.social-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
  transform: scale(1.2);
}

/* Podcast Styles */
.podcast-container {
  max-width: 700px;
  margin: 0 auto;
}

.podcast-description {
  text-align: center;
  margin-bottom: 2rem;
}

.podcast-description p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

.podcast-item {
  background: rgba(26, 115, 232, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.podcast-item:hover {
  background: rgba(26, 115, 232, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.1);
}

.podcast-item h3 {
  margin: 0 0 1rem 0;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
}

.podcast-player {
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  outline: none;
}

.podcast-player::-webkit-media-controls-panel {
  background-color: rgba(26, 115, 232, 0.8);
  border-radius: 30px;
}

.podcast-player::-webkit-media-controls-play-button,
.podcast-player::-webkit-media-controls-pause-button {
  background-color: var(--accent);
  border-radius: 50%;
}

.podcast-player::-webkit-media-controls-timeline {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  margin-left: 10px;
  margin-right: 10px;
}

.podcast-player::-webkit-media-controls-current-time-display,
.podcast-player::-webkit-media-controls-time-remaining-display {
  color: var(--accent);
  text-shadow: none;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .podcast-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .podcast-item h3 {
    font-size: 1.1rem;
  }
  
  .podcast-player {
    height: 50px;
  }
} 