/* --- PROMĚNNÉ A ZÁKLAD --- */
:root {
  --green: #68a336;
  --light-green: #a8e063;
  --dark: #1a1a1a;
  --border: #eeeeee;
  --radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  border-left: 6px solid var(--green);
  padding-left: 15px;
  text-transform: uppercase;
  font-weight: 800;
}

/* --- NAVIGACE --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo strong {
  color: var(--green);
  font-size: 1.4rem;
  display: block;
}

.logo span {
  font-size: 0.8rem;
  color: #888;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  transition: 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--green);
}

/* --- HERO SEKCE --- */
.hero {
  height: 50vh;
  margin: 0 20px;
  border-radius: 30px;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1500&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-hero {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 35px;
  background: var(--light-green);
  color: var(--dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 800;
  transition: 0.3s;
}

.btn-hero:hover {
  transform: scale(1.05);
}

/* --- AKCE (KARTY) --- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.event-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: 0.3s;
}

.event-card.featured {
  background: var(--green);
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px rgba(104, 163, 54, 0.2);
}

.event-date {
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.event-type {
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}

.featured .event-type {
  color: var(--light-green);
}

/* Ikona a Jméno */
.icon-user {
  width: 18px;
  height: 18px;
  fill: var(--green);
  margin-right: 10px;
}

.featured .icon-user {
  fill: #fff;
}

.event-details p:first-child {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Logika skrývání textu */
.event-card:not(.featured) .desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.event-card:not(.featured):hover .desc {
  max-height: 150px;
  opacity: 1;
  margin-top: 10px;
  margin-bottom: 15px;
}

/* Zelená karta má text vidět hned */
.event-card.featured .desc {
  display: block;
  margin-top: 10px;
  margin-bottom: 15px;
}

.btn-more {
  margin-top: auto;
  display: block;
  padding: 12px;
  background: var(--green);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured .btn-more {
  background: #fff;
  color: var(--green);
}

/* --- AKTUALITY --- */
.news-list {
  display: grid;
  gap: 15px;

}

.news-item {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  border-left: 6px solid var(--border);

}

.proposition {
  display: flex;
  flex-direction: column;
  text-decoration: line;
  color: var(--green);
  font-weight: 700;
}

.news-date {
  font-weight: bold;
  color: var(--green);
  font-size: 1.85rem;
  display: block;
  margin-bottom: 5px;
}

/* --- OHLÉDNUTÍ (MAGAZÍN) --- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: 0.3s;
}

.article-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.article-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--green);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
}

.article-content {
  padding: 25px;
}

.article-content small {
  color: #888;
  font-size: 0.8rem;
}

.link-read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
}

@media (min-width: 900px) {
  .articles-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
  }

  .article-card.main {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    min-height: 500px;
  }

  .article-card.main .article-image {
    width: 100%;
    height: 370px;
  }

  .article-card.main .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .article-card.main .article-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px;
  }

  .desc {
    padding-bottom: 10px;
  }
}

@media (max-width: 899px) {
  .desc {
    padding-bottom: 20px;
  }
}

/* --- FOOTER --- */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 60px 0 20px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-column h3 {
  color: var(--light-green);
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--light-green);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  color: #777;
  font-size: 0.8rem;
}

/* --- RESPONZIVITA A MENU --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;

}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  transition: 0.3s;
}

@media (max-width: 899px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;

    height: 50vh;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    z-index: 1050;
    right: -100%;
    width: 100%;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }
}

/* Hover efekty pouze pro myš */
@media (hover: hover) {
  .article-card:hover .article-image img {
    transform: scale(1.1);
  }

  .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

/* Fix pro dotyková zařízení */
@media (hover: none) {
  .event-card:not(.featured) .desc {
    max-height: none;
    opacity: 1;
    margin-top: 10px;
  }
}

/* --- FOOTER (UPRAVENÝ PRO MOBILY A ODSZENÍ) --- */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 60px 0 20px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-column h3 {
  color: var(--light-green);
  margin-bottom: 25px;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-column p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.contact-info p {
  margin-bottom: 15px;
  display: block;
}

.contact-info strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-green);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--light-green);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 25px;
  color: #777;
  font-size: 0.8rem;
}

/* --- RESPONZIVITA PRO MOBILY (FOOTER NA STŘED) --- */
@media (max-width: 600px) {
  .footer {
    text-align: center;
  }

  .footer-grid {
    gap: 50px;
  }

  .contact-info p {
    margin-bottom: 20px;

  }

  .footer-links a:hover {
    padding-left: 0;
    color: var(--light-green);
  }

  .map-container iframe {
    margin: 0 auto;
  }
}

/* --- STYLOVÁNÍ TABULKY KONTAKTŮ --- */
.table-container {
  overflow-x: auto;

  margin-top: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  text-align: left;
}

.contact-table th {
  background: var(--dark);
  color: #fff;
  padding: 15px 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.contact-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.contact-table tr:hover {
  background-color: #fcfcfc;
}

.contact-table a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.contact-table a:hover {
  text-decoration: underline;
}


.table-divider {
  background: #f0f4eb;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.table-divider td {
  padding: 10px 20px;
  border-bottom: 2px solid var(--green);
}


@media (max-width: 600px) {
  .section-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {

  .table-container {
    overflow-x: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .contact-table {
    min-width: 100% !important;
    width: 100%;
    display: block;
  }

  .contact-table thead {
    display: none;
  }

  .contact-table tbody {
    display: block;
    width: 100%;
  }


  .contact-table tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  }

  .contact-table td {
    display: block;
    width: 100%;
    padding: 5px 0;
    text-align: center;
    border: none !important;
  }


  .contact-table td:first-child {
    font-weight: 800;
    color: var(--green);
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }


  .contact-table td:nth-child(2) {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
  }

  .contact-table td a {
    font-size: 1rem;
    word-break: break-all;

  }

  .table-divider {
    display: block !important;
    background: var(--green) !important;
    color: #fff !important;
    padding: 10px !important;
    margin: 30px 0 15px 0 !important;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem !important;
  }

  .table-divider td {
    color: #fff !important;
    padding: 0 !important;
  }
}

/* --- KORESPONDENČNÍ A FAKTURAČNÍ ÚDAJE (BEZ IKON) --- */
.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.billing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  border-top: 4px solid var(--border);
  transition: 0.3s;
}

.billing-card:hover {
  border-top-color: var(--green);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.billing-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.billing-header h3 {
  font-size: 0.9rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.billing-item p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.billing-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--dark);
}

.billing-item span {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  font-weight: 700;
}

.billing-item.highlight {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
}

.billing-item.highlight strong {
  color: var(--green);
  font-size: 1.25rem;
  margin-top: 5px;
}

.billing-card {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Responzivita */
@media (max-width: 600px) {
  .billing-grid {
    grid-template-columns: 1fr;
  }
}

h2 {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}


.doc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.doc-type {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.doc-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.doc-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.update-date {
  font-size: 13px;
  color: #888;
}


.btn-download {
  background-color: var(--green);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.3s ease;
}

.btn-download:hover {
  background-color: #568a2d;
}


.legislativa .doc-card {
  border-top: 5px solid var(--green);
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

h2 {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}


.doc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.doc-type {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.doc-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.doc-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.update-date {
  font-size: 13px;
  color: #888;
}

.btn-download {
  background-color: var(--green);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.3s ease;
}

.btn-download:hover {
  background-color: #568a2d;
}


.legislativa .doc-card {
  border-top: 5px solid var(--green);
}

.section-header {
  border-left: 6px solid var(--green);
  font-size: 1.8rem;
  margin-bottom: 30px;
  padding-left: 15px;
  text-transform: uppercase;
  font-weight: 800;
  border-left: 6px solid var(--green);
  margin-top: 40px;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.sponsors-section {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
}

.sponsors-title {
  color: var(--dark);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 50px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.sponsors-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
}

.sponsors-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.sponsor-card {
  flex: 1;
  max-width: 450px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.sponsor-card:hover {
  border-color: var(--green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.sponsor-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

/* Mobilní zobrazení */
@media (max-width: 768px) {
  .sponsors-wrapper {
    flex-direction: column;
  }

  .sponsor-card {
    width: 100%;
  }
}

.sponsor-card-p img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.sponsor-card-p:hover {
  border-color: var(--green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.sponsor-card-p {
  flex: 1;
  max-width: 450px;
  padding: 85px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}