:root {
  --primary: #1a4d2e;
  --dark: #222;
  --light: #f7f5f2;
  --space: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2.5rem;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header .logo {
  height: 100px;
  width: auto;
  vertical-align: middle;
}

header h1 {
  margin: 0;
  color: var(--primary);
  flex: 0 0 auto;
}

nav {
  display: flex;
  gap: 2.6rem;
  flex: 0 0 auto;
  margin-left: auto; /* Tlačí menu doprava */
  margin-right: 2rem; /* Mezera mezi menu a ikonami */
}

nav a {
  font-weight: 600;
}

nav a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex: 0 0 auto;
}

.social-icons a {
  font-size: 1.5rem;
  color: var(--text);
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--primary);
}

.hero {
  position: relative;
  text-align: center;
  padding: 6rem 3rem;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Pushes content to bottom */
}

/* Background image with blur */
.hero::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: url('../img/IMG_5426.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* filter: blur(2px); */
  z-index: 0;
}

/* Dark overlay (optional, for better text readability) */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero h2 {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: white;
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

footer .footer-content {
  display: flex;
  justify-content: space-between; /* push columns to sides */
  align-items: flex-start;
  padding: 0 20px; /* left + right padding */
}



@media (max-width: 768px) {
  footer .footer-content {
    grid-template-columns: 1fr; /* stack columns on mobile */
    gap: 1.5rem;
  }
}


footer {
  background-color: #333;  /* tmavé pozadí */
  color: #fff;             /* bílý text */
  text-align: left;        /* zarovnání vlevo */
  padding: 15px 20px;      /* menší padding */
  font-size: 0.85rem;      /* menší text */
  line-height: 1.3;        /* menší mezery mezi řádky */
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* Instagram ikona */
footer .social {
  margin-top: 10px; /* malý odstup od předchozího textu */
}

footer .social-icon {
  width: 16px;      /* velikost ikony */
  height: 16px;
  vertical-align: middle; /* zarovnání s textem */
  margin-right: 5px;      /* mezera mezi ikonou a textem */
}

.footer-column:last-child {
  text-align: right;
}

.address-line {
  margin: 0.2rem 0;
}

.contact-info {
  margin: 0.2rem 0;
}

.contact-start {
  margin-top: 1rem;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.about-page {          
  margin: 0 auto;              /* centrování sekce na stránce */
  padding: 2.5rem 2.5rem;             /* mezera od okrajů stránky */
  line-height: 1.5;
  box-sizing: border-box;      /* zahrnout padding do šířky */
}

.about-page p {
  margin-bottom: 1.5rem;
  margin-top: 0rem;
  text-align: justify;
}

.about-page p:first-of-type::first-letter {
  font-size: 3rem;
  font-weight: bold;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  color: var(--primary);
}

.about-container {
  display: flex;               /* text a obrázek vedle sebe */
  align-items: flex-start;     /* zarovnání nahoře */
  gap: 2.5rem;                 /* mezera mezi textem a obrázkem */
  width: 100%;                 /* zabere celou šířku .about-page */
  box-sizing: border-box;      /* zahrnout gap do celkové šířky */
}

.about-text {
  flex: 1;                     /* text zabere větší část šířky */
}
.about-image {
  flex: 1;                     /* text a obrázek stejné šířky */
}

.about-image img {
  width: 100%;                 /* obrázek zabere celou šířku svého kontejneru */
  height: auto;                /* zachování poměru stran */
  border-radius: 3px;          /* jemné zaoblení */
  display: block;              /* odstraní spodní mezery kolem inline obrázku */
}



/* Contact Page Styles */
.contact-page {
  margin: 0 auto;
  padding: 2.5rem 2.5rem;
}

.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-intro h2 {
  font-size: 1.2rem;
  color: var(--primary);
  line-height: 0.5;
}

.contact-intro p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-box {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-info-box h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-details p {
  margin: 0.5rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary);
}

.contact-item a {
  text-decoration: none;
  color: inherit;
}

.contact-item a:hover span {
  text-decoration: underline;
}

.map-container {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 350px;
  }
}

.contact-details .address-line {
  margin: 0.1rem 0;
}

.contact-details .contact-item {
  margin: 0.1rem 0;
}

/* Instagram Page Styles */
/* Instagram Page Styles */
.instagram-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem;
}

.instagram-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.instagram-intro h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.instagram-intro p {
  font-size: 1.2rem;
  color: #666;
}



/* Instagram loading state */
.instagram-media {
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 100% !important;
  width: 100% !important;
  min-height: 500px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.instagram-grid.loaded {
  opacity: 1;
}

/* Give Instagram embed header more space */
.instagram-media iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 800px !important; /* Increase this if needed */
}

/* Alternative: Target the embedded content directly */
.instagram-media {
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 100% !important;
  width: 100% !important;
  min-height: 650px !important;
}

/* Members Page Styles */
/* Members Simple Page */
.members-simple {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  line-height: 1.8;
}

.members-simple h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.members-simple h2:first-of-type {
  margin-top: 0;
}

.member-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.member-names span {
  display: inline-block;
}

.member-names span::after {
  content: ",";
  margin-right: 0.25rem;
}

.member-names span:last-child::after {
  content: ".";
}

/* Events Page */
.events-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  line-height: 1.8;
}

.events-page h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.events-page h2:first-of-type {
  margin-top: 0;
}

.events-page p {
  margin-bottom: 2rem;
  text-align: justify;
}

/* Event with poster styling */
.event-with-poster {
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.3s;
  position: relative;
  display: inline;
}

.event-with-poster:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.event-with-poster i {
  font-size: 0.9em;
  margin-left: 0.25rem;
}

/* Poster Modal (Lightbox) */
.poster-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

.close-modal {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 1001;
}

.close-modal:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .close-modal {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
  }
}


