/* 1. GLOBÁLNÍ NASTAVENÍ POZADÍ - PRO CELÝ WEB */
html {
  /* Tento gradient teď bude podkladem pro úplně všechno */
  background: linear-gradient(135deg, #d4f1f4 0%, #fbe4ee 100%) no-repeat center center fixed !important;
  background-size: cover !important;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: transparent !important; /* Musí být průhledné, aby prosvítal gradient z HTML */
  min-height: 100vh;
}

/* 2. ZAJIŠTĚNÍ PRŮHLEDNOSTI SEKCI (aby nezakrývaly gradient) */
section, 
.hero-section, 
#novinky, 
#onas, 
#tym, 
#galerie, 
#cenik {
  background-color: transparent !important;
  border: none !important;
}

/* --- TADY ZAČÍNÁ TVŮJ PŮVODNÍ KÓD, KTERÝ ZŮSTÁVÁ STEJNÝ --- */

/* NOVÁ HLAVA WEBU - Logo vlevo, menu vpravo */
.navbar {
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; 
  align-items: center; 
  padding: 0 30px;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 15px; /* Mezera mezi prvky */
}

.logo-area img {
  height: 50px; /* Sjednocená výška pro obě loga */
  width: auto;
}

.logo-text {
  font-weight: bold;
  font-size: 1.5rem;
  color: #00796b;
  letter-spacing: 1px;
  margin-right: 5px; /* Malý odstup od dělící linky */
}

/* Styl pro logo UJEP s dělící linkou */
.ujep-logo {
  border-left: 1px solid #ccc; /* Šedá dělící čárka */
  padding-left: 15px; /* Mezera od čárky k logu */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px; 
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #7fc8c4;
}

/* Styl pro rozbalovací menu v navigaci */
.nav-links li.dropdown {
  position: relative;
  display: inline-block;
}

.arrow {
  font-size: 0.6rem;
  margin-left: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 15px;
  padding: 10px 0;
  margin-top: 10px;
  list-style: none;
}

.dropdown-content li {
  width: 100%;
}

.dropdown-content li a {
  color: #333 !important; /* Aby text nebyl bílý jako v horní liště */
  padding: 10px 20px !important;
  text-transform: none !important;
  font-size: 0.9rem !important;
  display: block;
  text-align: left;
}

.dropdown-content li a:hover {
  background-color: #f1f8e9;
  color: #d81b60 !important;
}

/* Zobrazení při najetí myší */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content {
  display: none;
  position: absolute;
  /* Tady je ta změna: */
  top: 100%; /* Menu začne přesně tam, kde končí horní lišta */
  left: 0;
  margin-top: 0; /* Zruš jakýkoliv margin, který tam dělá tu mezeru */
  padding-top: 10px; /* Pokud chceš mezeru, dej ji dovnitř jako padding, ten myš udrží */
  
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 15px;
}

/* HLAVNÍ SEKCE (HERO) */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-card {
  background: transparent;
  box-shadow: none;
  max-width: 1000px;
  padding: 40px;
}

.hero-card h1 {
  font-size: 4rem;
  color: #2c5d63;
  margin-bottom: 50px;
  line-height: 1.2;
}

.hero-card p {
  font-size: 1.5rem;
  color: #444;
  line-height: 2.3; /* Tvůj rozfoukaný text */
  margin-bottom: 60px;
}

.opening-info {
  font-size: 1.8rem;
  font-weight: bold;
  color: #d81b60;
  display: block;
}

/* SEKCE NOVINKY */
#novinky {
  padding: 80px 20px;
}

.news-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.news-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.news-card {
  background: white;
  padding: 30px;
  border-radius: 40px;
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  text-align: left;
  border-bottom: 8px solid #7fc8c4;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card .date {
  font-size: 0.8rem;
  color: #00796b;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.news-card h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.news-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
} 

.news-card .btn-prihlaska {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #d81b60; /* Stejná barva jako okraj karty */
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px; /* Zaoblené k těm tvým 40px kartám */
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
}

.news-card .btn-prihlaska:hover {
  background-color: #d81b60; /* Tmavší zelená při najetí (jako máš datum) */
  box-shadow: 0 5px 15px rgba(127, 200, 196, 0.4);
  transform: scale(1.02);
}

/* FILOZOFIE */
#onas {
  padding: 80px 0;
  margin: 20px 0;
}

h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #00796b;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 40px;
  justify-items: center;
}

.pillar-item {
  text-align: center;
  max-width: 350px;
  padding: 20px;
}

.pillar-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 25px;
}

.pillar-item h3 {
  color: #00796b;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 15px;
}

.pillar-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  text-align: justify; 
  hyphens: auto;
}

/* SEKCE TÝM */
#tym {
  padding: 80px 0;
}

.team-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 15px; /* Mezera mezi kartami */
  flex-wrap: wrap; /* Na mobilech se stále hodí, aby skočily pod sebe */
  margin-top: 40px;
}

.team-card {
  background: white;
  padding: 45px 20px; 
  border-radius: 50px;
  
  /* OPRAVENÁ MATEMATIKA PRO 4 SLOUPCE */
  flex: 1 1 calc(25% - 15px); /* Základ je 25 % minus mezera */
  min-width: 240px;            /* Povolíme kartám se trochu zúžit, aby se vešly */
  max-width: 280px;            /* Ale nenecháme je narůst moc do šířky */
  box-sizing: border-box;      /* DŮLEŽITÉ: padding se počítá do šířky, ne k ní */
  
  min-height: 480px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  border-bottom: 10px solid #c5e1a5;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.team-img-box {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 30px;
  border: 5px solid #f1f8e9;
}

.team-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.2;
}

.team-card .role {
  font-size: 0.8rem;
  color: #00796b;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.team-card .desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  text-align: center;
  padding: 0 10px;
}

/* SEKCE GALERIE */
#galerie {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 95%;
  max-width: 1200px;
  margin: 40px auto 0;
}

.gallery-item {
  background: white;
  padding: 15px;
  border-radius: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.gallery-item:hover {
  transform: scale(1.03) rotate(1deg);
}

.img-box {
  width: 100%;
  height: 250px !important;
  overflow: hidden;
  border-radius: 30px;
}

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

/* CENÍK - Uhlazená verze */
#cenik {
  padding: 80px 0;
  text-align: center;
  }
  
  .price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 20px;
  }
  
  .price-card {
  background: white;
  padding: 45px 20px;
  border-radius: 40px; /* Tvoje oblíbená kulatost */
  box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Měkčí stín */
  border: 2px solid #fff3e0;
  transition: all 0.3s ease; /* Plynulý pohyb */
  display: flex;
  flex-direction: column;
  justify-content: center;
  }
  
  /* Efekt při najetí - karta jemně vyroste a "rozsvítí" se */
  .price-card:hover {
  transform: translateY(-10px);
  border-color: #ffb74d;
  box-shadow: 0 15px 35px rgba(255, 183, 77, 0.15);
  }
  
  .price-card h3 {
  color: #ffb74d;
  font-size: 1.4rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  }
  
  .price-card .price {
  font-size: 2.2rem; /* Trošku větší, aby to byla dominance karty */
  font-weight: 800;
  margin: 15px 0 0 0;
  color: #333;
  }
  
  .price-card .price span {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  font-weight: normal;
  margin-top: 5px;
  }
  
  /* Uhlazený popisek pro stravné */
  .food-note-bubble {
  display: inline-block;
  margin-top: 50px;
  padding: 15px 40px;
  background: white;
  border-radius: 50px;
  border: 2px dashed #ffb74d; /* Hravá přerušovaná čára */
  color: #555;
  }
  
  .food-note-bubble p {
  margin: 0;
  font-style: italic;
  }
  
  .food-note-bubble strong {
  color: #00796b;
  }  

/* KONTAKTNÍ KARTY */
.contact-section-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-item-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.85); /* Tady prosvítá pozadí */
  padding: 40px;
  border-radius: 50px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-item-card:hover {
  background: white;
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 25px rgba(255, 255, 255, 0.6);
}

/* PATIČKA */
footer {
  background: #2d3436;
  color: white;
  padding: 80px 0;
}

/* ============================================================
   PŘIDANÁ RESPONZIVITA (Tohle jsou ty nové řádky pro mobily)
   ============================================================ */

@media (max-width: 768px) {
  /* Menu a navigace */
  .nav-container { flex-direction: column; gap: 15px; }
  .nav-links { gap: 15px; font-size: 0.9rem; }

  /* Hlavní text (Hero) */
  .hero-card h1 { font-size: 2.2rem; margin-bottom: 30px; }
  .hero-card p { font-size: 1.1rem; line-height: 1.8; }
  .opening-info { font-size: 1.4rem; }

  /* Kontakt a sekce pod sebou */
  .contact-section-wrapper { flex-direction: column; }
  .news-grid, .team-grid { flex-direction: column; align-items: center; }
}

@media (min-width: 1400px) {
  /* Aby se to na obřích monitorech moc nerozjelo */
  .hero-card { max-width: 1200px; }
  .hero-card h1 { font-size: 5rem; }
}