/* =============================================
   URSULUS Z.S. – Hlavní stylesheet
   Barvy: žlutá #F5A623, tmavě zelená #1A3A2A, bílá, světle šedá
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
}

a {
  color: #1A3A2A;
  text-decoration: underline;
}

a:hover {
  color: #F5A623;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITY --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- NAVIGACE --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 58, 42, 0.97);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #F5A623;
  color: #1A3A2A;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.arrow {
  font-size: 0.7em;
  transition: transform 0.2s;
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1A3A2A;
  min-width: 260px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  list-style: none;
  z-index: 200;
}

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

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: #fff;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}

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

.dropdown-menu li a:hover {
  background: #F5A623;
  color: #1A3A2A;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/hero.webp') center/cover no-repeat, #1A3A2A;
  margin-top: 60px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,42,0.72) 0%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 60px 24px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Hero pro podstránky */
.hero-sub {
  min-height: 260px;
}

.hero-sub .hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* --- SEKCE --- */
.section-white {
  padding: 72px 0;
  background: #fff;
}

.section-yellow {
  padding: 72px 0;
  background: #F5A623;
  color: #1A3A2A;
}

.section-light {
  padding: 72px 0;
  background: #f7f7f5;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: inherit;
}

.section-yellow h2 {
  color: #1A3A2A;
}

/* --- KARTY (CO DĚLÁME) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1A3A2A;
}

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

/* --- CTA SEKCE --- */
.cta-section {
  padding: 80px 0;
}

.cta-text {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: #444;
}

.btn-primary {
  display: inline-block;
  background: #1A3A2A;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: #F5A623;
  color: #1A3A2A;
  transform: translateY(-2px);
}

/* --- DVA SLOUPCE --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* --- VIDEO --- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- TÝM / VÝBOR --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.team-member img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.team-member h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1A3A2A;
}

.team-member p {
  font-size: 0.9rem;
  color: #1A3A2A;
  opacity: 0.8;
}

/* --- MARKDOWN OBSAH --- */
.markdown-content h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1A3A2A;
}

.markdown-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: #1A3A2A;
}

.markdown-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #1A3A2A;
}

.markdown-content p {
  margin-bottom: 16px;
  color: #333;
}

.markdown-content ul,
.markdown-content ol {
  margin: 12px 0 20px 28px;
}

.markdown-content li {
  margin-bottom: 6px;
  color: #333;
}

.markdown-content a {
  color: #1A3A2A;
  font-weight: 600;
}

.markdown-content a:hover {
  color: #c47e00;
}

.markdown-content strong {
  color: #1A3A2A;
}

/* --- FOOTER --- */
footer {
  background: #1A3A2A;
  color: #fff;
  padding: 56px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.footer-logo p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #F5A623;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #F5A623;
}

.footer-contact p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- PODSTRÁNKY --- */
.page-content {
  padding: 72px 0;
  background: #fff;
}

.page-content .container {
  max-width: 820px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 32px;
}

.breadcrumb a {
  color: #1A3A2A;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
}

/* --- ABSOLVENTI BANNER --- */
.absolventi-banner {
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.absolventi-banner img {
  width: 100%;
  height: auto;
}

/* --- RESPONZIVITA --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #1A3A2A;
    padding: 16px 0;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.15);
    border-radius: 0;
    min-width: unset;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    display: block;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

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