/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
   :root {
    --primary-bg: #f8f9fa;
    --primary-color: #222;
    --accent-color: #f4a261;
    --text-color: #555;
    --white: #fff;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--primary-bg);
    font-family: Arial, sans-serif;
    text-align: center;
  }
  
  /* ==========================================================================
     Header Navigation (Common)
     ========================================================================== */
  header {
    display: flex; /* Ensure flexbox is applied */
    justify-content: center; /* Center navigation items */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    background-color: var(--primary-color); /* Match footer background color */
    padding: 15px;
    position: static; /* Make the header static */
    width: 100%;
    gap: 10px; /* Add spacing between items */
  }
  
  header a,
  nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px; /* Adjust margin for better spacing */
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  header a:hover,
  nav a:hover {
    color: var(--accent-color);
  }
  
  @media (max-width: 768px) {
    header {
      flex-direction: column; /* Stack items vertically on smaller screens */
      gap: 15px;
    }
  
    header a {
      font-size: 16px; /* Adjust font size for smaller screens */
    }
  }
  
  /* ==========================================================================
     Index Page Styles
     ========================================================================== */
  .content {
    max-width: 1200px;
    margin: 10px auto 0 auto;
    padding: 20px;
    text-align: center;
  }
  .text-section h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: bold;
  }
  .text-section p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: auto;
    color: #333;
  }
  .center-box {
    margin-top: 30px;
    text-align: center;
  }
  .small-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  .articles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
  }
  .article, .pdf-section {
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
    width: 300px;
    text-align: center;
  }
  .article:hover, .pdf-section:hover {
    transform: translateY(-5px);
  }
  .article img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
  }
  .article h2, .pdf-section h2 {
    font-size: 20px;
    margin-top: 10px;
    color: #333;
  }
  .download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    margin-top: 10px;
  }
  .download-btn:hover {
    background-color: #0056b3;
  }
  
  /* ==========================================================================
     Portfolio / Volný čas Page Styles
     ========================================================================== */
  .portfolio-section {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .portfolio-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
  }
  .portfolio-section p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
  }
  .divider-line {
    width: 80%;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0 auto 30px;
  }
  .portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  .portfolio-item {
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    cursor: default;
  }
  .portfolio-item:hover {
    transform: translateY(-5px);
  }
  .portfolio-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  .portfolio-item p {
    font-size: 18px;
    color: var(--text-color);
  }
  /* Constrain portfolio images */
  .portfolio-item img {
    width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 10px;
    object-fit: cover;
  }
  
  /* ==========================================================================
     FFUK Section Styles
     ========================================================================== */
  .ffuk-list {
    text-align: left;
    list-style: disc;
    padding-left: 20px;
  }

  .ffuk-container {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .ffuk-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
  }
  
  .ffuk-list {
    text-align: left;
    list-style-position: inside;
    font-size: 18px;
    line-height: 1.6;
    padding: 0 15px;
  }
  
  /* Responsive adjustments for phones */
  @media (max-width: 768px) {
    .ffuk-container {
      flex-direction: column;
      align-items: center;
    }
  
    .ffuk-image {
      display: none;
    }
  
    .ffuk-list {
      font-size: 16px;
      line-height: 1.4;
    }
  }
  
  /* ==========================================================================
     Kontakty Page Styles
     ========================================================================== */
  .contact-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
  }
  .contact-section h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
  }
  .contact-section p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
  }
  .contact-info {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
  }
  .contact-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  .contact-info ul {
    list-style: none;
    padding: 0;
  }
  .contact-info li {
    font-size: 18px;
    margin: 10px 0;
  }
  .contact-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
  }
  .contact-info a:hover {
    text-decoration: underline;
  }
  .motivational-message {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
  }
  .motivational-message h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  .motivational-message p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
  }
  .contact-form {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  .contact-form h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  .contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
  }
  .contact-form textarea {
    height: 100px;
    resize: none;
  }
  .contact-form button {
    background: #007bff;
    color: var(--white);
    border: none;
    padding: 10px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
  }
  .contact-form button:hover {
    background: #0056b3;
  }
  
/* ==========================================================================
   Lightbox & PDF Lightbox
   ========================================================================== */
/* Regular Lightbox Modal */
.lightbox {
  display: none;           /* keep hidden by default */
  position: fixed;
  z-index: 1000;
  inset: 0;                /* shorthand for top/right/bottom/left = 0 */
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.open {
  display: flex;           /* utility class to show lightbox */
}

/* Central content area, split into left overlay / image / right overlay */
.lightbox-content {
  display: grid;           /* activate grid layout */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Container for the actual image (or PDF embed) */
.lightbox-container {
  position: relative;
  z-index: 2;
}

.lightbox-container img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 10px;
}

/* Optional description under the image */
.lightbox-description {
  color: var(--white);
  font-size: 18px;
  margin-top: 10px;
  text-align: center;
}

/* Invisible click-through areas for “prev” and “next” */
.overlay-area {
  width: 100%;
  height: 100%;
  background: transparent;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.overlay-area:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.overlay-area.left {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.overlay-area.right {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

/* Close “×” in the top-right corner */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  z-index: 1004;
}

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

  
  /* PDF Lightbox Modal */
  .pdf-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  .pdf-lightbox-content {
    width: 95vw;
    height: 95vh;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }
  .pdf-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  .pdf-controls {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1100;
    display: flex;
    gap: 10px;
  }
  .pdf-lightbox-close {
    font-size: 30px;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
  }
  .pdf-lightbox-close:hover {
    color: var(--accent-color);
  }
  
  /* ==========================================================================
     Footer (Common)
     ========================================================================== */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Optionally remove margin-top if not needed */
}

/* General Flexbox Utilities */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-space-around {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive Adjustments for iPhone 16 Pro */
@media (max-width: 430px) {
  body {
    padding: 20px; /* More padding for a cleaner layout */
    background-color: #f9f9f9; /* Light background for better readability */
  }

  header {
    display: flex; /* Ensure flexbox is applied */
    flex-direction: column;
    align-items: center; /* Center align items */
    gap: 15px;
    text-align: center;
    background-color: #222; /* Darker header for contrast */
    padding: 15px;
    border-radius: 10px;
  }

  header a {
    font-size: 18px; /* Larger font for better readability */
    padding: 10px 0;
    color: #fff; /* White text for better contrast */
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
  }

  header a:hover {
    border-color: #f4a261; /* Accent color for hover effect */
  }

  .portfolio-gallery {
    grid-template-columns: 1fr;
    gap: 25px; /* Increased gap for better spacing */
  }

  .portfolio-item {
    width: 100%;
    padding: 20px; /* More padding for better spacing */
    background-color: #fff; /* White background for better contrast */
    border-radius: 15px; /* Rounded corners for a modern look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .portfolio-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
  }

  .portfolio-item img {
    max-height: 240px; /* Slightly larger images */
    border-radius: 10px;
    margin-bottom: 15px; /* Space between image and text */
  }

  .portfolio-section h2 {
    font-size: 28px; /* Larger font for section titles */
    margin-bottom: 15px;
    color: #222; /* Darker text for better readability */
  }

  .portfolio-section p {
    font-size: 18px;
    line-height: 1.6; /* Improved line height for readability */
    color: #555; /* Softer text color */
  }

  footer {
    font-size: 18px; /* Larger footer text */
    padding: 25px;
    text-align: center;
    background-color: #222; /* Dark footer for contrast */
    color: #fff; /* White text for readability */
    border-radius: 10px;
    margin-top: 20px;
  }

  .divider-line {
    width: 80%; /* Slightly narrower divider */
    height: 3px; /* Thicker divider for emphasis */
    background-color: #f4a261; /* Accent color for divider */
    margin: 25px auto;
    border-radius: 2px; /* Rounded edges for a modern look */
  }
}

/* Responsive Adjustments for Phones */
@media (max-width: 480px) {
  body {
    padding: 15px;
    background-color: #f9f9f9; /* Light background for readability */
  }

  header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 10px;
  }

  header a {
    font-size: 18px; /* Larger font for touch-friendly links */
    padding: 10px 0;
    color: #222;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
  }

  header a:hover {
    border-color: #f4a261; /* Accent color for hover effect */
  }

  .portfolio-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-item {
    width: 100%;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }

  .portfolio-item img {
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .portfolio-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
  }

  .portfolio-section p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
  }

  footer {
    font-size: 16px;
    padding: 15px;
    text-align: center;
    background-color: #222;
    color: #fff;
    border-radius: 8px;
    margin-top: 15px;
  }

  .divider-line {
    width: 90%;
    height: 2px;
    background-color: #f4a261;
    margin: 20px auto;
    border-radius: 1px;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .flex-container,
  .flex-row {
    flex-direction: column;
    gap: 15px;
  }

  .flex-column {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .flex-container,
  .flex-row {
    flex-direction: column;
    gap: 10px;
  }

  .flex-column {
    gap: 8px;
  }
}

/* Header-specific styles to prevent interference */
header {
  display: block; /* Override flexbox utilities */
  text-align: center;
  background-color: #222; /* Ensure consistent styling */
  padding: 15px;
  border-radius: 10px;
}

header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

header a {
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

header a:hover {
  border-color: #f4a261;
}

@media (max-width: 768px) {
  header {
    flex-direction: column; /* Stack items vertically on smaller screens */
    gap: 10px;
  }

  header a {
    font-size: 16px; /* Adjust font size for smaller screens */
  }
}

/* ==========================================================================
   Index Page Specific Styles
   ========================================================================== */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  padding: 60px 20px;
  background-color: var(--primary-bg);
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  margin: 10px auto 0 auto;
}

.hero-text {
  flex: 1 1 0;
  max-width: 520px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  margin-left: 32px;
  margin-right: 0;
  padding: 0 8px;
  font-size: 1.18rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--text-color);
}

.hero-text h1 {
  font-size: 2.1rem;
  margin-bottom: 18px;
  font-weight: bold;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-text p {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 0;
}

.vertical-divider-line {
  width: 2px;
  height: 95%;
  min-height: 500px;
  max-height: 900px;
  background-color: var(--accent-color, #000);
  display: block;
  align-self: center;
  margin: 0 32px;
  border-radius: 2px;
  opacity: 0.7;
}

.hero-image {
  flex: 1 1 0;
  max-width: 520px;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .vertical-divider-line {
    width: 60%;
    height: 2px;
    min-height: unset;
    max-height: unset;
    margin: 32px 0;
    align-self: stretch;
  }
  .hero-text, .hero-image {
    max-width: 100%;
    min-width: unset;
    margin: 0;
    text-align: center;
    padding: 0;
  }
  .hero-image img {
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
}


