/* ==========================================================================
   Custom Font Faces
   ========================================================================== */

@font-face {
  font-family: 'Ohrada';
  src: url('/fonts/Ohrada.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Now';
  src: url('/fonts/HelveticaNow.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Now Bold';
  src: url('/fonts/HelveticaNowBold.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #E6C55A;
  --color-secondary: #e4cea1;
  --color-accent: #E6C55A;
  --color-accent-hover: #D4AF37;
  --color-text: #333333;
  --color-background: #FFFDF5;
  --color-footer-bg: #800020;
  --color-white: #ffffff;

  /* Fonts */
  --font-display: 'Ohrada', Arial, sans-serif;
  --font-heading: 'Helvetica Now', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 5rem;

  /* Header */
  --header-height: 50px;
  --header-padding-desktop: 4rem;
  --header-padding-mobile: 1rem;

  /* Navigation */
  --nav-gap-desktop: 2rem;
  --nav-font-size: 1.2rem;
  --nav-letter-spacing: 1.5px;

  /* Footer */
  --footer-padding: 3.5rem 0;
  --footer-max-width: 1200px;

  /* Mobile Menu */
  --mobile-menu-width: 40%;
  --mobile-menu-max-width: 160px;
  --mobile-menu-height: 40svh;
  --mobile-menu-min-height: 250px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;

  /* Border Radius */
  --radius: 5px;

  /* Z-index */
  --z-header: 1004;
  --z-hamburger: 1005;
  --z-mobile-menu: 1006;
  --z-scroll-top: 9999;
  --z-logo: 999;
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-hover);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

p {
  line-height: 1.2;
  margin: 0;
}

/* ==========================================================================
   Header & Navigation (Desktop)
   ========================================================================== */

#g-navigation {
  top: 0;
  background: var(--color-primary);
  color: var(--color-white);
  position: fixed;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 var(--header-padding-desktop) 0 0;
  z-index: var(--z-header);
  transition: transform var(--transition-fast);
}

#g-navigation .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#g-navigation nav {
  margin-left: auto;
}

#g-navigation nav ul {
  display: flex;
  list-style: none;
  gap: var(--nav-gap-desktop);
  align-items: center;
  margin: 0;
  padding: 0;
}

#g-navigation nav ul li a {
  font-family: var(--font-heading);
  color: var(--color-white);
  text-decoration: none;
  font-weight: normal;
  font-size: var(--nav-font-size);
  letter-spacing: var(--nav-letter-spacing);
  transition: color var(--transition-base);
}

#g-navigation nav ul li a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo {
  display: flex;
  align-items: center;
  z-index: var(--z-logo);
}

.logo img {
  height: 43px;
  display: block;
  margin: auto 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--nav-font-size);
  color: var(--color-white);
  text-decoration: none;
  margin-left: 30px;
  margin-right: 30px;
  letter-spacing: var(--nav-letter-spacing);
}

.logo-text:hover {
  color: var(--color-white);
  text-decoration: none;
}

.logo-text,
.logo-text:link,
.logo-text:visited,
.logo-text:active {
  color: var(--color-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */

#g-footer {
  width: 100%;
  background-color: var(--color-footer-bg);
  color: var(--color-white);
  padding: var(--spacing-3xl) var(--spacing-xl);
  z-index: 10;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--footer-max-width);
  margin: 0 auto;
  gap: var(--spacing-xl);
}

.footer-text,
.footer-logo {
  flex: 1;
  padding: var(--spacing-md);
}

.footer-text {
  max-width: 600px;
}

.footer-text p {
  line-height: 2;
  margin: 0 0 var(--spacing-lg) 0;
  font-family: var(--font-body);
}

.footer-text p:last-child {
  margin-bottom: 0;
}

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

.footer-logo img {
  height: 60px;
  width: auto;
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */

#scrollTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border: none;
  background: transparent;
  background-image: url("/images/arrow-up-circle.svg");
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  z-index: var(--z-scroll-top);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  mix-blend-mode: multiply;
}

#scrollTopBtn img {
  width: 100%;
  height: 100%;
  display: block;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.single-line {
  white-space: nowrap;
}

/* ==========================================================================
   Mobile Styles - Hidden on Desktop
   ========================================================================== */

.hamburger,
.hamburger-close,
.mobile-menu,
.bottom-bar,
.nav-bar,
.nav-bar2,
.cover-bar {
  display: none;
}

/* ==========================================================================
   Mobile & Tablet Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
  
  /* Hide desktop navigation */
  #g-navigation {
    display: none;
  }

  #g-navigation nav ul {
    display: none;
  }

  /* Mobile Background Bars */
  .nav-bar {
    display: flex;
    top: 0;
    background: var(--color-secondary);
    position: fixed;
    width: 100%;
    height: 0svh;
    z-index: 0;
  }

  .nav-bar2 {
    top: 5px;
    background: var(--color-background);
    position: fixed;
    width: 100%;
    height: 0svh;
    z-index: 1;
  }

  .cover-bar {
    top: 0;
    bottom: 0;
    background: var(--color-background);
    position: absolute;
    width: 100%;
    z-index: 0;
  }

  /* Bottom bar shrink */
  .bottom-bar {
    display: block;
    position: fixed;
    bottom: 0;
    background: var(--color-footer-bg);
    width: 100%;
    height: 0svh;
    z-index: 0;
    transition: height 0.3s ease;
  }

  .bottom-bar.shrink {
    height: 0svh;
  }

  /* Mobile Logo */
  .logo {
    display: flex;
    height: var(--header-height);
    background-color: var(--color-secondary);
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    z-index: var(--z-logo);
    position: absolute;
    width: 100%;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    transition: height 0.3s ease, padding 0.3s ease;
  }

  .logo.shrink {
    height: 35px;
    padding: 0 15px;
  }

  .logo-text {
    display: block;
    font-family: var(--font-display);
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-left: 10px;
    margin-right: 0;
    margin-top: 0;
    transform: translateY(0);
    transition: font-size 0.3s ease, transform 0.3s ease, margin 0.3s ease;
  }

  .logo.shrink .logo-text {
    font-size: 1.8rem;
    transform: translateY(0);
    margin-left: 10px;
  }

  .header-container {
    height: 100%;
  }

  /* Hamburger Menu Button */
  .hamburger {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 1rem 1rem 2rem 2rem;
    cursor: pointer;
    z-index: var(--z-hamburger);
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  .hamburger.hide {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
  }

  .hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: var(--radius);
  }

  /* Hamburger Close Button */
  .hamburger-close {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    cursor: pointer;
    background-color: transparent;
    padding-right: 15px;
    border: none;
    z-index: calc(var(--z-mobile-menu) + 1);
  }

  .hamburger-close span {
    width: 30px;
    height: 2px;
    background-color: var(--color-background);
    border-radius: var(--radius);
    margin: 3px 0;
  }

  /* Mobile Menu */
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    min-height: auto;
    max-width: none;
    background: linear-gradient(135deg, var(--color-footer-bg) 0%, #600018 100%);
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-base);
    z-index: var(--z-mobile-menu);
    padding-top: 60px;
    padding-bottom: var(--spacing-xl);
    transform: translateX(100%);
    border-radius: 0;
    overflow-y: auto;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-menu ul li {
    width: 100%;
    text-align: center;
  }

  .mobile-menu ul li a {
    display: block;
    font-family: var(--font-body);
    color: var(--color-white);
    text-decoration: none;
    font-weight: normal;
    font-size: 1.2rem;
    padding: var(--spacing-lg) var(--spacing-md);
    transition: color var(--transition-base);
    -webkit-tap-highlight-color: rgba(70, 100, 180, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu ul li:last-child a {
    border-bottom: none;
  }

  .mobile-menu ul li a:hover {
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.05);
  }

  /* Footer Responsive */
  #g-footer {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .footer-flex {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
  }

  .footer-text,
  .footer-logo {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-md) 0;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-logo img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  /* Scroll to Top Button - Mobile */
  #scrollTopBtn {
    right: 15px;
    bottom: 15px;
    width: 45px;
    height: 45px;
  }
}

/* ==========================================================================
   Tablet Optimizations (768px - 1024px)
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  #g-navigation {
    padding: 0 var(--spacing-lg) 0 0;
  }

  #g-navigation nav ul {
    gap: 1.5rem;
  }

  .logo-text {
    margin-left: var(--spacing-md);
    margin-right: var(--spacing-md);
  }

  /* Footer tablet optimization */
  #g-footer {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .footer-flex {
    gap: var(--spacing-lg);
  }
}

/* ==========================================================================
   Large Desktop Optimizations (1280px+)
   ========================================================================== */

@media (min-width: 1280px) {
  #g-navigation nav ul {
    gap: 2.5rem;
  }

  /* Footer large desktop optimization */
  #g-footer {
    padding: var(--spacing-3xl) var(--spacing-2xl);
  }

  .footer-logo img {
    height: 70px;
  }
}

/* ==========================================================================
   Ohlášky Page Styles
   ========================================================================== */

.site-header {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  padding: 1.5rem 1rem 1.2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
}

.header-favicon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-favicon:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.header-favicon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-text h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.2rem;
  color: var(--color-text);
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}
.header-text h2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  color: var(--color-text);
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.header-text p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0;
  font-weight: 400;
}

.content {
  flex: 1;
  background-color: var(--color-background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.page-title {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 2.5rem;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
}

.no-pdfs {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pdf-item {
  background: var(--color-background);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

/* Styl pro kontejner se schovanými položkami */
.extra-items-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.extra-items-container.is-open {
  max-height: none;
  margin-top: 0;
}

/* Mezera mezi položkami uvnitř rozbaleného seznamu */
.extra-items-container .pdf-item {
  margin-bottom: 0 !important;
}

.extra-items-container .pdf-item:not(:last-child) {
  margin-bottom: 1.5rem !important;
}

.pdf-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #600018 100%);
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  cursor: pointer;
  user-select: none;
  min-height: 30px;
}

.pdf-header:hover {
  background: linear-gradient(135deg, #34495e 0%, #3d566e 100%);
}

.pdf-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.expand-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.pdf-item.expanded .expand-icon {
  transform: rotate(180deg);
}

.pdf-actions {
  display: flex;
  gap: 0.8rem;
}

.btn {
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-download {
  background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
  color: #2c3e50;
}

.btn-download:hover {
  background: linear-gradient(135deg, #FFC700 0%, #FFB700 100%);
  transform: translateY(-2px);
}

.pdf-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.pdf-item.expanded .pdf-content {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.pdf-viewer {
  width: 100%;
  height: 1600px;
  border: none;
  display: block;
}

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.load-more-btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #2c3e50;
  border: 2px solid #FFD700;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.load-more-btn:hover::before {
  width: 300px;
  height: 300px;
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.load-more-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.3);
}

.load-more-btn .btn-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more-btn .count {
  background: rgba(44, 62, 80, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.load-more-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.load-more-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(44, 62, 80, 0.3);
  border-top-color: #2c3e50;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.hidden {
  display: none !important;
}

.pdf-page {
  display: none;
}

.pdf-page.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pdf-item.fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

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

/* Ohlášky Page - Mobile Styles */
@media (max-width: 768px) {
  .header-favicon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: white;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .header-text h1 {
    font-size: 1.3rem;
  }
  .header-text h2 {
    font-size: 1.1rem;
  }
  .container {
    padding: 2rem 1rem;
  }

  .pdf-list {
    gap: 1rem;
  }

  .pdf-list > .pdf-item {
    margin-bottom: 1rem;
  }

  .extra-items-container {
    gap: 1rem;
  }
  
  .extra-items-container.is-open {
    max-height: none;
    margin-top: 0;
  }

  .extra-items-container .pdf-item:not(:last-child) {
    margin-bottom: 1rem !important;
  }

  .pdf-header {
    padding: 2rem 1.5rem;
    min-height: 100px;
  }
}

/* ==========================================================================
   Index Page Styles
   ========================================================================== */

.menu-bar {
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #34495e 100%);
  padding: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu-bar nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.menu-bar nav > a,
.menu-bar nav .dropdown {
  position: relative;
}

.menu-bar nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  text-decoration: none;
  padding: 1.1rem 1.5rem;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.menu-bar nav a:hover {
  background-color: rgba(212, 175, 55, 0.15);
  border-bottom-color: var(--color-accent);
}

.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown > a::after {
  content: ' ▼';
  font-size: 0.7em;
  margin-left: 0.3rem;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #34495e 100%);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  top: 100%;
  left: 0;
  border-radius: 0 0 8px 8px;
}

.dropdown-content a {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.dropdown-content a:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.dropdown-content a:hover {
  background-color: rgba(212, 175, 55, 0.2);
  border-bottom-color: transparent;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content .dropdown {
  position: relative;
}

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

.dropdown-content .dropdown > a::after {
  content: ' ▶';
  margin-left: auto;
}

.dropdown-content .dropdown-content {
  left: 100%;
  top: 0;
  border-radius: 0 8px 8px 0;
}

.dropdown-content .dropdown:hover > .dropdown-content {
  display: block;
}

.cover {
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 65vh;
  padding: 2rem 1rem;
  text-align: center;
}

.cover-content {
  max-width: 900px;
  width: 100%;
}

.cover-text {
  padding: 0 0.5rem;
}

.cover-text h2 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-weight: 500;
  font-size: 3rem;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.verse {
  font-family: Georgia, serif;
  color: var(--color-text);
  font-size: 1.15rem;
  font-style: italic;
  margin-top: 2rem;
  max-width: 650px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.button-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.uvod-button {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-text);
  width: auto;
  min-width: 190px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0 2.2rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.uvod-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, #A67C00 100%);
}

#about {
  background-color: var(--color-background);
  padding: 0.5rem 1rem 0.5rem;
  flex: 1;
}

#about:first-of-type {
  padding-top: 1rem;
}

#about + #about {
  padding-top: 1rem;
}

.about-flex {
  display: flex;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 20px;
  padding: 0 15px;
}

.about-text {
  color: var(--color-text);
  text-align: center;
  width: 560px;
}

.about-flex--tiles {
  padding: 0;
}

#about h2 {
  font-family: var(--font-heading);
  text-transform: none;
  margin-bottom: 2rem;
  line-height: 1.3;
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

#about h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  border-radius: 2px;
}

#about h2.about-flex {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin: 3rem auto 2rem;
  border: 1px solid rgba(26, 39, 100, 0.1);
  transition: all 0.3s ease;
}

#about h2.about-flex:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

#about p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 15px;
}

.info-box {
  background: linear-gradient(135deg, var(--color-background) 0%, #F5F1E8 100%);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.info-box h3 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.info-box p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  line-height: 1.8;
  margin: 0.5rem 0;
}

.info-box strong {
  color: var(--color-footer-bg);
  font-weight: 600;
}

.schedule {
  background: var(--color-background);
  padding: 1.8rem;
  border-radius: 12px;
  margin-top: 1.2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.schedule-item:last-child {
  border-bottom: none;
}

/* Index Page - Mobile & Tablet Styles */
@media (max-width: 640px) {
  .about-text {
    width: auto;
  }

  .about-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .info-boxes {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .menu-bar {
    display: none;
  }

  .menu-bar nav {
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
  }

  .menu-bar nav a {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    border-radius: 0;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown > a::after {
    content: ' ▼';
    transition: transform 0.3s ease;
  }

  .dropdown.active > a::after {
    transform: rotate(180deg);
    display: inline-block;
  }

  .dropdown-content .dropdown-content {
    position: static;
    background: rgba(0,0,0,0.3);
    padding-left: 1rem;
  }

  .dropdown-content .dropdown > a::after {
    content: ' ▼';
  }

  .dropdown-content .dropdown.active > a::after {
    transform: rotate(180deg);
  }

  .cover {
    min-height: 50vh;
    padding: 2.5rem 1rem;
  }

  .cover-text h2 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .verse {
    font-size: 1rem;
    padding: 1.2rem;
  }

  .uvod-button {
    font-size: 1rem;
    height: 50px;
    min-width: 170px;
  }

  .button-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ==========================================================================
   Liturgie Page Styles
   ========================================================================== */

/* Liturgical files section */
.liturgical-files-section {
  background: var(--color-background);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 2rem;
  color: var(--color-text);
  margin: 0 0 2rem 0;
  font-weight: 600;
  text-align: center;
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 1rem;
}

.no-files {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  font-size: 1.1rem;
}

.files-by-year {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.year-group {
  border-left: 4px solid #FFD700;
  padding-left: 1.5rem;
}

.year-header {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 1.6rem;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.year-header::before {
  content: "📅";
  font-size: 1.4rem;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
}

.file-item {
  background: linear-gradient(135deg, var(--color-background) 0%, #F5F1E8 100%);
  border-radius: 8px;
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.file-item:hover {
  border-color: var(--color-accent);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.file-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.file-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.file-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.file-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.view-btn {
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #600018 100%);
  color: var(--color-white);
}

.view-btn:hover {
  background: linear-gradient(135deg, #600018 0%, var(--color-footer-bg) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(128, 0, 32, 0.3);
}

.download-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #2c3e50;
}

.download-btn:hover {
  background: linear-gradient(135deg, #FFC700 0%, #FF9500 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255,215,0,0.3);
}

.liturgie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.liturgie-card {
  background: var(--color-background);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.liturgie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.liturgie-card h3 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
  border-bottom: 3px solid #FFD700;
  padding-bottom: 0.8rem;
}

.liturgie-card p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #555;
  line-height: 1.8;
  margin: 0 0 1rem 0;
}

.liturgie-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.liturgie-card li {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #555;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e9ecef;
  line-height: 1.6;
}

.liturgie-card li:last-child {
  border-bottom: none;
}

.liturgie-card li:before {
  content: "📖 ";
  margin-right: 0.5rem;
}

.liturgie-card a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.liturgie-card a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.link-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-text);
  padding: 0.9rem 2rem;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,215,0,0.3);
  margin-top: 1rem;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.4);
  background: linear-gradient(135deg, #FFC700 0%, #FF9500 100%);
}

.liturgical-calendar {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.liturgical-calendar h3 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 2rem;
  color: #2c3e50;
  margin: 0 0 2rem 0;
  font-weight: 600;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.calendar-item {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 4px solid #FFD700;
}

.calendar-item h4 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.calendar-item p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #666;
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.calendar-item .date {
  color: #FFD700;
  font-weight: 600;
  font-size: 1.1rem;
}

.info-section {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.info-section h3 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 2rem;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
}

.info-section p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #555;
  line-height: 1.8;
  margin: 0 0 1rem 0;
}

.info-section strong {
  color: #2c3e50;
  font-weight: 600;
}

.liturgical-colors {
  list-style: none;
  padding: 0;
}

.liturgical-colors li {
  border-left-width: 4px;
  border-left-style: solid;
  padding-left: 1rem;
}

.liturgical-colors li.color-white {
  border-left-color: white;
}

.liturgical-colors li.color-red {
  border-left-color: red;
}

.liturgical-colors li.color-green {
  border-left-color: green;
}

.liturgical-colors li.color-purple {
  border-left-color: purple;
}

/* Liturgie Page - Mobile Styles */
@media (max-width: 768px) {
  .liturgical-files-section {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .files-grid {
    grid-template-columns: 1fr;
  }

  .file-item {
    flex-direction: column;
    align-items: stretch;
  }

  .file-info {
    margin-bottom: 0.8rem;
  }

  .file-actions {
    width: 100%;
    justify-content: space-between;
  }

  .file-btn {
    flex: 1;
    justify-content: center;
  }

  .year-header {
    font-size: 1.4rem;
  }

  .liturgie-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .liturgie-card {
    padding: 2rem;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Let Page Styles
   ========================================================================== */

.let-page {
  background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
  padding: 1.5rem 1rem 1.2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.let-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
}

.let-favicon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.let-favicon:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.let-favicon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.let-text h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.2rem;
  color: #2c3e50;
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.let-text p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  font-weight: 400;
}

.let-content {
  flex: 1;
  background-color: #f8f9fa;
}

.let-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.let-title {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
}

.no-pdfs {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pdf-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

/* Styl pro kontejner se schovanými položkami */
.extra-items-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.extra-items-container.is-open {
  max-height: none;
  margin-top: 0;
}

/* Mezera mezi položkami uvnitř rozbaleného seznamu */
.extra-items-container .pdf-item {
  margin-bottom: 0 !important;
}

.extra-items-container .pdf-item:not(:last-child) {
  margin-bottom: 1.5rem !important;
}

.pdf-header {
  padding: 1.8rem 2.5rem;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
  min-height: 90px;
}

.pdf-header:hover {
  background: linear-gradient(135deg, #34495e 0%, #3d566e 100%);
}

.pdf-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.expand-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.pdf-item.expanded .expand-icon {
  transform: rotate(180deg);
}

.pdf-actions {
  display: flex;
  gap: 0.8rem;
}

.btn {
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-download {
  background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
  color: #2c3e50;
}

.btn-download:hover {
  background: linear-gradient(135deg, #FFC700 0%, #FFB700 100%);
  transform: translateY(-2px);
}

.pdf-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.pdf-item.expanded .pdf-content {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.pdf-viewer {
  width: 100%;
  height: 1600px;
  border: none;
  display: block;
}

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.load-more-btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #2c3e50;
  border: 2px solid #FFD700;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.load-more-btn:hover::before {
  width: 300px;
  height: 300px;
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.load-more-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.3);
}

.load-more-btn .btn-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more-btn .count {
  background: rgba(44, 62, 80, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.load-more-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.load-more-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(44, 62, 80, 0.3);
  border-top-color: #2c3e50;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.hidden {
  display: none !important;
}

.pdf-page {
  display: none;
}

.pdf-page.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pdf-item.fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

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

/* Ohlášky Page - Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1rem;
  }

  .pdf-list {
    gap: 1rem;
  }

  .pdf-list > .pdf-item {
    margin-bottom: 1rem;
  }

  .extra-items-container {
    gap: 1rem;
  }
  
  .extra-items-container.is-open {
    max-height: none;
    margin-top: 0;
  }

  .extra-items-container .pdf-item:not(:last-child) {
    margin-bottom: 1rem !important;
  }

  .pdf-header {
    padding: 2rem 1.5rem;
    min-height: 100px;
  }
}

/* ==========================================================================
   Let Page Styles
   ========================================================================== */

.let-page {
  background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
  padding: 1.5rem 1rem 1.2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.let-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
}

.let-favicon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.let-favicon:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.let-favicon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.let-text h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.2rem;
  color: #2c3e50;
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.let-text p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  font-weight: 400;
}

.let-content {
  flex: 1;
  background-color: #f8f9fa;
}

.let-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.let-title {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 600;
}

.no-pdfs {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 3rem 0;
}

/* ==========================================================================
   Pages Styles (Biřmování, Křest, Manželství, etc.)
   ========================================================================== */

.page-hero {
  background: var(--color-background);
  padding: 2rem 1rem;
  text-align: center;
}

.page-hero h2 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-weight: 600;
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 0rem;
  line-height: 1.2;
}

.page-hero p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #555;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Calendar Section Styles */
.calendar-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

.calendar-section h2 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 2rem;
}

.calendar-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: solid 1px #777;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .calendar-section {
    padding: 1.5rem 1rem;
  }

  .calendar-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .calendar-container {
    padding-bottom: 100%; /* Make it more square on mobile */
  }
}

@media (max-width: 640px) {
  .calendar-section h2 {
    font-size: 1.75rem;
  }

  .calendar-container {
    padding-bottom: 120%; /* Taller on small screens for better visibility */
  }
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.intro-quote {
  font-family: Georgia, serif;
  color: #444;
  font-size: 1.15rem;
  font-style: italic;
  margin: 1rem 0 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #FFD700;
  border-radius: 8px;
  line-height: 1.8;
}

.text-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.text-content p {
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 2rem;
  color: #2c3e50;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #FFD700;
  font-weight: 600;
}

.section-subtitle {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 1.5rem;
  color: #34495e;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.highlight-box {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid #FFD700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.highlight-box p {
  margin: 0.5rem 0;
  color: #333;
}

.scripture-box {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid #4682B4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-style: italic;
}

.scripture-box p {
  margin: 0.5rem 0;
  color: #2c3e50;
  line-height: 1.8;
}

.info-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid #4CAF50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-box p {
  margin: 0.5rem 0;
  color: #2c3e50;
}

.definition-box {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 4px solid #6c757d;
}

.definition-box p {
  margin: 0.5rem 0;
  color: #333;
}

.content-section strong {
  color: #2c3e50;
  font-weight: 600;
}

.content-section em {
  color: #555;
  font-style: italic;
}

.prayer-box {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid #4682B4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-style: italic;
}

.prayer-box p {
  margin: 0.8rem 0;
  color: #2c3e50;
  line-height: 1.8;
}

.bullet-list {
  margin: 1rem 0 1rem 1.5rem;
  padding: 0;
}

.bullet-list li {
  margin: 0.8rem 0;
  line-height: 1.7;
  color: #333;
}

/* Sacraments Pages - Mobile Styles */
@media (max-width: 768px) {
  .page-hero {
    padding: 1.5rem 1rem;
  }

  .page-hero h2 {
    font-size: 2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .content-section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 1.3rem;
  }

  .text-content {
    font-size: 1rem;
  }

  .intro-quote {
    font-size: 1rem;
    padding: 1.5rem;
  }

  .prayer-box {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Church Pages Styles
   ========================================================================== */

/* Church detail pages - Honbice, HT, Chr, Trojovice */
.container h1 {
  color: #495057;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  border-bottom: 3px solid #FFD700;
  padding-bottom: 1rem;
}

.container h2 {
  color: #495057;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.container h3 {
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.source {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.source p {
  font-size: 0.9rem;
  color: #666;
}

/* Church Pages - Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .container h1 {
    font-size: 2rem;
  }

  .container h2 {
    font-size: 1.5rem;
  }

  .content {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Bohoslužby Page Styles
   ========================================================================== */

.schedule-table {
  max-width: 900px;
  margin: 0 auto 3rem;
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:hover {
  background-color: #f8f9fa;
}

.schedule-row.highlight {
  background-color: #fff9e6;
}

.schedule-row.highlight:hover {
  background-color: #fff4cc;
}

.day-name {
  padding: 1.5rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  background-color: var(--color-background);
  border-right: 3px solid var(--color-footer-bg);
  display: flex;
  align-items: center;
}

.schedule-row.highlight .day-name {
  background-color: rgba(212, 175, 55, 0.2);
  border-right-color: var(--color-accent);
}

.service-info {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.service-item.highlight {
  padding: 0.75rem;
  background-color: #fff9e6;
  border-radius: 8px;
  border-left: 4px solid #d4a017;
}

.service-item.special {
  color: #6c757d;
  font-style: italic;
}

.location {
  font-size: 1rem;
  color: #495057;
  flex: 1;
  min-width: 200px;
}

.time {
  font-weight: 700;
  font-size: 1.1rem;
  color: #8b4513;
  white-space: nowrap;
}

.service-item.highlight .time {
  color: #d4a017;
}

.note {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
  width: 100%;
}

.service-note {
  font-size: 0.95rem;
  color: #6c757d;
  font-style: italic;
}

.info-box {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  background-color: #f8f9fa;
  border-left: 4px solid #8b4513;
}

.info-box.important {
  background-color: #fff9e6;
  border-left-color: #d4a017;
}

.info-box.confession {
  background-color: #e8f5e9;
  border-left-color: #4caf50;
}

.info-box h3 {
  margin: 0 0 0.75rem 0;
  color: #495057;
  font-size: 1.2rem;
  font-weight: 600;
}

.info-box p {
  margin: 0;
  line-height: 1.6;
  color: #6c757d;
}

.info-box a {
  color: #8b4513;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.info-box a:hover {
  border-bottom-color: #8b4513;
}

/* Mobile Styles for Schedule */
@media (max-width: 768px) {
  .schedule-table {
    margin: 0 0 2rem;
    border-radius: 8px;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    border-bottom: 2px solid #e9ecef;
  }

  .day-name {
    padding: 1rem 1.5rem;
    border-right: none;
    border-bottom: 2px solid #8b4513;
    font-size: 1rem;
  }

  .schedule-row.highlight .day-name {
    border-bottom-color: #d4a017;
  }

  .service-info {
    padding: 1rem 1.5rem;
  }

  .service-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .location {
    min-width: auto;
    font-size: 0.95rem;
  }

  .time {
    font-size: 1.05rem;
  }

  .info-box {
    margin: 1.5rem 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
  }

  .info-box h3 {
    font-size: 1.1rem;
  }

  .info-box p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .day-name {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .service-info {
    padding: 0.875rem 1rem;
  }

  .location {
    font-size: 0.9rem;
  }

  .time {
    font-size: 1rem;
  }

  .service-note {
    font-size: 0.9rem;
  }

  .info-box {
    margin: 1rem 0.5rem;
    padding: 1rem;
  }
}

/* ==========================================================================
   Intence Form Styles
   ========================================================================== */

.intence-form {
  max-width: 700px;
  margin: 0 auto 3rem;
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 0.5rem;
}

.required {
  color: #dc3545;
  font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #495057;
  background-color: #fff;
  transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #adb5bd;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  appearance: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #600018 100%);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(128, 0, 32, 0.2);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(139, 69, 19, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

.info-box.calendar-info {
  background-color: #e3f2fd;
  border-left-color: #2196f3;
}

.info-box.calendar-info a {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.info-box.calendar-info a:hover {
  border-bottom-color: #1976d2;
}

/* Mobile Styles for Form */
@media (max-width: 768px) {
  .intence-form {
    padding: 2rem 1.5rem;
    margin: 0 1rem 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input[type="text"],
  .form-group input[type="tel"],
  .form-group input[type="email"],
  .form-group select,
  .form-group textarea {
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
  }

  .submit-btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .intence-form {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem 1.5rem;
    border-radius: 8px;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input[type="text"],
  .form-group input[type="tel"],
  .form-group input[type="email"],
  .form-group select,
  .form-group textarea {
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Responsive fixes for file grid - prevent overflow beyond viewport
   ========================================================================== */

/* Override all instances of .files-grid to prevent overflow */
.files-by-year .files-grid,
.liturgical-files-section .files-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)) !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Ensure file items never overflow */
.files-by-year .file-item,
.liturgical-files-section .file-item {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

/* Better text wrapping for file names */
.file-name {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  text-overflow: initial !important;
  line-height: 1.3 !important;
}

/* File actions positioned under text */
.file-actions {
  margin-top: 1rem !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
}

/* Smaller buttons for better mobile experience */
.file-btn {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
}

/* ==========================================================================
   MSF Page Styles
   ========================================================================== */

.content-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.content-text::after {
  content: "";
  display: table;
  clear: both;
}

.image-container {
  float: right;
  margin: 0 0 2rem 2rem;
}

.holy-family-image {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.founder-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.founder-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.founder-section p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.content-text h3 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #2c3e50;
  margin: 2rem 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.content-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.priests-list {
  margin-top: 2rem;
}

.priest-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.priest-item p {
  margin: 0;
  line-height: 1.6;
}

.priest-item a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.priest-item a:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* MSF Page - Mobile Styles */
@media (max-width: 768px) {
  .image-container {
    float: none;
    text-align: center;
    margin: 2rem 0;
  }
  
  .holy-family-image {
    max-width: 200px;
  }
  
  .founder-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .founder-image {
    width: 120px;
    height: 120px;
  }
}

/* ==========================================================================
   Farni rada Page Styles
   ========================================================================== */

.council-images {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 3rem 0;
}

.council-image-item {
  text-align: center;
}

.council-member-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.content-text h3 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #2c3e50;
  margin: 2rem 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
}

.column {
  min-width: 0;
}

.members-list {
  margin: 1.5rem 0 3rem 0;
}

.member-item {
  background: white;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.member-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.member-item.chairman {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #FFD700;
}

.member-item.vice-chairman {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #87CEEB;
}

.member-item.secretary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #98FB98;
}

.member-item p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.1rem;
}

.member-item strong {
  color: #2c3e50;
}

.minutes-list {
  margin-top: 1.5rem;
}

.minute-item {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.minute-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.minute-item a {
  text-decoration: none;
  color: #2c3e50;
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.minute-item a:hover {
  color: #FFD700;
}

.file-title::before {
  content: "📄 ";
  margin-right: 0.5rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .council-images {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .council-member-image {
    max-width: 250px;
  }
  
  .member-item p {
    font-size: 1rem;
  }
  
  .minute-item a {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Galerry Page Styles
   ========================================================================== */


.preparation-message {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 2rem;
}

.preparation-message p {
  font-size: 1.5rem;
  color: #6c757d;
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .preparation-message {
    padding: 3rem 1.5rem;
  }
  
  .preparation-message p {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Kontakty Page Styles
   ========================================================================== */

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.column {
  min-width: 0;
}

.contact-section {
  margin: 2rem 0 3rem 0;
}

.contact-section h3 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.priest-card {
  border-left: 4px solid #FFD700;
}

.parish-card {
  border-left: 4px solid #87CEEB;
}

.support-card {
  border-left: 4px solid #98FB98;
}

.contact-card h4 {
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.priest-note {
  color: #6c757d;
  font-style: italic;
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

.contact-details p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.contact-details a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #FFD700;
  text-decoration: underline;
}

.contact-form {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFD700;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.captcha {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.captcha label {
  margin: 0;
  font-size: 1.5rem;
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  min-width: 3rem;
  text-align: center;
}

.captcha input {
  width: auto;
  min-width: 100px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-text);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .captcha {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .captcha input {
    width: 100%;
  }
}

/* ==========================================================================
   Church Slider Styles
   ========================================================================== */

.church-slider {
  margin-top: 2rem;
  position: relative;
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.slider-track {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  width: 25%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.prev-btn,
.next-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-base);
  pointer-events: auto;
  user-select: none;
}

.prev-btn:hover,
.next-btn:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.prev-btn:active,
.next-btn:active {
  transform: scale(0.95);
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.8rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.dot:hover {
  background: rgba(44, 62, 80, 0.6);
  transform: scale(1.2);
}

.dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Mobile adaptace */
@media (max-width: 768px) {
  .church-slider {
    margin-top: 2rem;
  }
  
  .slider-container {
    height: 300px;
  }
  
  .slide-caption {
    font-size: 1rem;
    padding: 1.5rem 1rem 1rem 1rem;
  }
  
  .prev-btn,
  .next-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .slider-controls {
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {  
  .slider-container {
    height: 250px;
    border-radius: 8px;
  }
  
  .slide-caption {
    font-size: 0.9rem;
    padding: 1rem 0.8rem 0.8rem 0.8rem;
  }
}

/* Dodatečné styly pro novou klikatelnou strukturu PDF souborů */
.file-item.clickable {
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  padding: 0.8rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.file-item.clickable:hover {
  border-color: #FFD700;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(255,215,0,0.2);
  color: inherit;
}

.file-item-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  padding: 0.8rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.file-item-wrapper:hover {
  border-color: #FFD700;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(255,215,0,0.2);
}

/* ==========================================================================
   CalendarCards Component Styles  
   ========================================================================== */

.event-cards-container {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1000px;
  width: 100%;
  justify-content: center;
}

/* Container queries pro lepší responsivitu */
@container (max-width: 768px) {
  .event-cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem auto;
  }
}

@container (min-width: 769px) {
  .event-cards-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.mass-card {
  background: linear-gradient(135deg, #f8f6f0 0%, #ffffff 100%);
  border: 2px solid #d4ac7a;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(212, 172, 122, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

.mass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B4513, #d4ac7a);
}

.mass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 172, 122, 0.25);
  border-color: #8B4513;
}

.mass-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mass-date {
  font-size: 1.1rem;
  font-weight: bold;
  color: #8B4513;
  text-transform: capitalize;
  text-align: center;
  padding: 0.5rem;
  background: rgba(212, 172, 122, 0.1);
  border-radius: 8px;
  border-left: 4px solid #8B4513;
}

.mass-time, .mass-place, .mass-intention {
  font-size: 0.95rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.mass-time {
  color: #2c5530;
  font-weight: 600;
}

.mass-place {
  color: #8B4513;
  font-weight: 500;
}

.mass-intention {
  color: #4a4a4a;
  line-height: 1.4;
  flex-grow: 1;
}

.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
  border: 2px dashed #d4ac7a;
  border-radius: 15px;
  background: #f8f6f0;
}

/* Container queries pro karty */
@container (max-width: 250px) {
  .mass-card {
    padding: 1rem;
  }
  
  .mass-date {
    font-size: 1rem;
  }
  
  .mass-time, .mass-place, .mass-intention {
    font-size: 0.9rem;
  }
}

/* Fallback media queries pro starší prohlížeče */
@supports not (container-type: inline-size) {
  @media (max-width: 768px) {
    .event-cards-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      margin: 1rem auto;
      max-width: 100%;
    }
    
    .mass-card {
      padding: 1rem;
    }
    
    .mass-date {
      font-size: 1rem;
    }
    
    .mass-time, .mass-place, .mass-intention {
      font-size: 0.9rem;
    }
  }
  
  @media (min-width: 769px) {
    .event-cards-container {
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
      margin: 2rem auto;
      max-width: 1000px;
    }
  }
}

/* ==========================================================================
   Actions Container Styles  
   ========================================================================== */

.actions-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
}

.actions-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  .actions-container {
    padding: 1rem;
  }
  
  .event-cards-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    max-width: 100% !important;
    margin: 1rem auto !important;
  }
}

/* ==========================================================================
   Site Footer Styles  
   ========================================================================== */

.site-footer {
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #600018 100%);
  color: var(--color-white);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
  width: 100%;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-contact {
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.footer-contact h3 {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--color-accent);
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.footer-contact p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #bdc3c7;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ==========================================================================
   KATECHEZE PAGE STYLES
========================================================================== */

.comments-section {
  margin: 2rem 0;
  padding: 1.25rem;
  background-color: rgba(212, 175, 55, 0.1);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
}

.comments-section h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.comments-placeholder {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--color-background);
  border-radius: 4px;
  margin-top: 1rem;
}

#cusdis_thread {
  margin-top: 0.75rem;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  background-color: var(--color-background);
  border-radius: 6px;
  padding: 0.5rem;
}

#cusdis_thread iframe,
#cusdis_thread .cusdis-frame {
  width: 100%;
  min-height: 920px;
  height: 920px;
  border: 0;
  overflow: visible;
}

@media (max-width: 768px) {
  #cusdis_thread {
    max-height: none;
    overflow: visible;
    padding: 0.25rem;
  }

  #cusdis_thread iframe,
  #cusdis_thread .cusdis-frame {
    min-height: 1020px;
    height: 1020px;
  }
}

.file-link {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

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

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  font-size: 0.9rem;
  color: #95a5a6;
}

.footer-copyright a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Mobile Menu Styles  
   ========================================================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 50%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #600018 100%);
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  padding-top: 60px;
}

.mobile-menu.open {
  right: 0;
}

.hamburger,
.hamburger-close {
  display: none;
  position: fixed;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger {
  top: 15px;
  right: 15px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.hide {
  transform: translateY(-100px);
  opacity: 0;
  pointer-events: none;
}

.hamburger-close {
  top: 10px;
  right: 10px;
}

.hamburger span,
.hamburger-close span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger-close span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger-close span:nth-child(2) {
  opacity: 0;
}

.hamburger-close span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

.mobile-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu nav > ul > li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu nav a,
.mobile-menu nav .submenu-toggle {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background-color 0.3s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-menu nav a:hover,
.mobile-menu nav .submenu-toggle:hover {
  background-color: rgba(212, 175, 55, 0.15);
}

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

.submenu-toggle .arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.submenu-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(0,0,0,0.2);
}

.submenu.active {
  max-height: 1000px;
}

.submenu li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.submenu a,
.submenu .submenu-toggle {
  padding-left: 2.5rem;
  font-size: 0.95rem;
}

.submenu .submenu a,
.submenu .submenu .submenu-toggle {
  padding-left: 3.5rem;
  font-size: 0.9rem;
}

/* Mobile Menu & Footer Mobile Media Queries */
@media (max-width: 768px) {
  .hamburger,
  .hamburger-close {
    display: block;
  }

  .site-footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .footer-contact {
    margin-bottom: 1.5rem;
  }

  .footer-contact h3 {
    font-size: 1.1rem;
  }

  .footer-contact p {
    font-size: 0.9rem;
  }

  .footer-copyright p {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Navigation Menu Styles  
   ========================================================================== */

.menu-bar {
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #600018 100%);
  padding: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (max-width: 768px) {
  .menu-bar {
    display: none;
  }
}

.menu-bar nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.menu-bar nav > a,
.menu-bar nav .dropdown {
  position: relative;
}

.menu-bar nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  text-decoration: none;
  padding: 1.1rem 1.5rem;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.menu-bar nav a:hover {
  background-color: rgba(212, 175, 55, 0.15);
  border-bottom-color: var(--color-accent);
}

.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown > a::after {
  content: ' ▼';
  font-size: 0.7em;
  margin-left: 0.3rem;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #600018 100%);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  top: 100%;
  left: 0;
  border-radius: 0 0 8px 8px;
}

.dropdown-content a {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.dropdown-content a:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.dropdown-content a:hover {
  background-color: rgba(212, 175, 55, 0.2);
  border-bottom-color: transparent;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:focus-within > .dropdown-content {
  display: block;
}

.dropdown-content .dropdown {
  position: relative;
}

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

.dropdown-content .dropdown > a::after {
  content: ' ▶';
  margin-left: auto;
}

.dropdown-content .dropdown-content {
  left: 100%;
  top: 0;
  border-radius: 0 8px 8px 0;
}

.dropdown-content .dropdown:hover > .dropdown-content {
  display: block;
}

.dropdown-content .dropdown:focus-within > .dropdown-content {
  display: block;
}

.file-item-wrapper .file-item.clickable {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}

.file-item-wrapper .file-item.clickable:hover {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   News Cards Styles
   ========================================================================== */

.news-cards-container {
  margin-top: 3rem;
  width: 100%;
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
  width: 100%;
}

.news-card-link {
  text-decoration: none;
  display: block;
}

.news-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 120px;
  cursor: pointer;
}

.news-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.news-card-header {
  background: linear-gradient(135deg, var(--color-footer-bg) 0%, #600018 100%);
  color: var(--color-white);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.news-card-header::after {
  content: '→';
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.news-card:hover .news-card-header::after {
  opacity: 1;
  transform: translateX(4px);
}

.news-card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
}

/* News Card with Background Image */
.news-card-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 180px;
}

.news-card-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.news-card-with-bg:hover::before {
  background: rgba(0, 0, 0, 0.2);
}

.news-card-with-bg .news-card-header {
  background: transparent;
  position: relative;
  z-index: 2;
}

.news-card-with-bg .news-card-header h3 {
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.news-card-with-bg .news-card-header::after {
  color: var(--color-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}


/* Mobile responsive adjustments */
@media (max-width: 1200px) {
  .news-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .news-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .news-card {
    min-height: 100px;
  }
  
  .news-card-header {
    padding: 1.5rem;
  }
  
  .news-card-header h3 {
    font-size: 1.1rem;
  }
  
  .news-card-header::after {
    bottom: 0.75rem;
    right: 1rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .news-cards-container {
    margin-top: 2rem;
  }
  
  .news-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .news-card {
    min-height: 80px;
  }
  
  .news-card-header {
    padding: 1.25rem;
  }
  
  .news-card-header h3 {
    font-size: 1rem;
  }
}

/* Enhanced section headings mobile styles */
@media (max-width: 768px) {
  #about h2.about-flex {
    font-size: 1.5rem;
    padding: 1.5rem 2rem;
    margin: 2rem auto 1.5rem;
  }
  
  #about h2::after {
    width: 60px;
    height: 2px;
  }
}

@media (max-width: 480px) {
  #about h2.about-flex {
    font-size: 1.3rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem auto 1rem;
    border-radius: 12px;
  }
  
  #about h2::after {
    width: 50px;
  }
}

/* ==========================================================================
   PDF Container Styles
   ========================================================================== */

.pdf-container {
  max-width: 100%;
  margin: 0 auto;
}

.pdf-container iframe {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.pdf-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.pdf-actions .btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid var(--color-accent);
}

.pdf-actions .btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(238, 175, 19, 0.3);
}

@media (max-width: 768px) {
  .pdf-container iframe {
    height: 600px;
  }
  
  .pdf-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .pdf-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .pdf-container iframe {
    height: 500px;
  }
}

/* ==========================================================================
   Gallery Styles
   ========================================================================== */

/* Gallery Overview Styles (galerie.astro) */
.gallery-intro {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-background));
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-intro p {
  font-size: 1.1rem;
  color: var(--color-text);
  margin: 1rem 0;
  opacity: 0.8;
}

.total-count {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
}

.gallery-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.gallery-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.gallery-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--color-background);
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.1);
}

.gallery-card-overlay {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-card-content {
  padding: 1.5rem;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.gallery-card-description {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  opacity: 0.8;
}

.gallery-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
}

.gallery-card-link {
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

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

.placeholder-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: linear-gradient(45deg, var(--color-background), var(--color-secondary));
  color: var(--color-text);
  font-size: 3rem;
  opacity: 0.5;
}

/* Gallery Detail Styles (individual gallery pages) */
.breadcrumb {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-background));
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all var(--transition-base);
  position: relative;
}

.breadcrumb a:hover {
  color: var(--color-accent-hover);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-1px);
}

.breadcrumb a:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.75rem;
  color: var(--color-text);
  opacity: 0.5;
  font-weight: normal;
  pointer-events: none;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-background));
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-name {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
}

.gallery-description {
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0 0 1rem 0;
  opacity: 0.8;
}

.gallery-count {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: var(--color-white);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 1.5rem 1rem 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  text-transform: capitalize;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: -80px;
}

.next-btn {
  right: -80px;
}

.gallery-counter {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* Gallery Mobile Styles */
@media (max-width: 768px) {
  .gallery-overview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .gallery-card-title {
    font-size: 1.3rem;
  }

  .gallery-card-content {
    padding: 1.25rem;
  }

  .gallery-name {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .gallery-item img {
    height: 200px;
  }

  .prev-btn,
  .next-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .prev-btn {
    left: -60px;
  }

  .next-btn {
    right: -60px;
  }
}

@media (max-width: 480px) {
  .gallery-intro {
    padding: 1.5rem 1rem;
  }

  .gallery-card-image {
    height: 180px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .gallery-header {
    padding: 2rem 1rem;
  }

  .gallery-name {
    font-size: 1.7rem;
  }
}