/* ====== GLOBAL COLORS ====== */

:root {
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ECO COLOR PALETTE */
  --green: #3a7d44;
  --green-light: #e8f3ec;
  --blue: #2a6f97;
  --blue-light: #e7f1f8;
  --sand: #f4e9d8;
  --sand-dark: #d8c7ac;

  --text-dark: #1f1f1f;
  --text-muted: #555;
  --bg-light: #ffffff;
  --bg-section: #fafafa;

  --max-width: 960px;
}

/* ====== BASE ====== */

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-light);
  margin: 0;
  line-height: 1.65;
}

/* ====== NAVIGATION ====== */

nav {
  position: sticky;
  top: 0;
  background: #ffffffee;
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--sand-dark);
  z-index: 100;
}

nav ul {
  margin: 0;
  padding: 0.6rem 1.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* ====== LAYOUT ====== */

header, section, footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

header {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ====== HERO ====== */

header {
  background: linear-gradient(
    135deg,
    var(--green-light),
    var(--blue-light)
  );
  border-bottom: 3px solid var(--green);
  border-radius: 0 0 12px 12px;
}

.hero-title {
  font-size: 2.6rem;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.hero-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
/* Application deadline within HERO section */

#home .application-deadline {
    font-size: 1.1rem;
    margin: 15px 0 10px;
    color: #2c5e3f;
    font-weight: 600;
}

#home .application-deadline .note {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* ====== SECTION HEADERS ====== */

section h2 {
  font-size: 1.9rem;
  color: var(--green);
  border-left: 6px solid var(--green);
  padding-left: 0.6rem;
  margin-bottom: 1.5rem;
}

/* ====== COLORED SECTION BLOCKS ====== */

section:nth-of-type(odd) {
  background: var(--blue-light);
}

section:nth-of-type(even) {
  background: var(--sand);
}

/* ====== BUTTONS ====== */

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--green);
  transform: translateY(-2px);
}

/* ====== LISTS ====== */

ul {
  padding-left: 1.2rem;
}

ul li {
  margin-bottom: 0.4rem;
}

/* ====== FOOTER ====== */

footer {
  border-top: 2px solid var(--sand-dark);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--blue-light);
}

/* ====== RESPONSIVE ====== */

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  nav ul {
    gap: 0.6rem;
  }
}

/* ====== PARTNER GRID ====== */
/*
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  align-items: center;
  text-align: center;
}

.partner-item img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease;
}

.partner-item img:hover {
  transform: scale(1.05);
}

.partner-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}*/

/* ====== PARTNER LIST II ====== */

.partner-list {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.partner-list li {
  padding: 0.4rem 0;
  font-size: 1rem;
  color: var(--text-dark);
  border-left: 4px solid var(--green);
  padding-left: 0.8rem;
  margin-bottom: 0.6rem;
  background: var(--green-light);
  border-radius: 4px;
}

/* ========================= */
/* APPLY SECTION             */
/* ========================= */

#apply .deadline-inline {
    font-size: 1.1rem;
    margin: 10px 0 20px;
    color: #2c5e3f;
    font-weight: 600;
}




/* ====== EU FUNDING SECTION ====== */

#eu-funding {
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

#eu-funding .eu-logo img {
  max-width: 220px;
  height: auto;
  margin-bottom: 1rem;
}

.eu-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.4;
}

/* QR code */

.qr-code {
  background: white;
  padding: 8px;        /* nech má okolo seba biely rámček */
  border-radius: 6px;  /* voliteľné, ale vyzerá to elegantne */
  max-width: 180px !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0.5rem 0 0 0; /* 1.5rem auto;
}

/* poistka – vyššia špecifickosť */
img.qr-code {
  width: 180px !important;
  max-width: 180px !important;
}

/*
.qr-code {
  width: 180px;
  height: auto;
  display: block;
  margin: 1rem auto;
}
*/

/*
.qr-code {
  width: 180px;
  margin-top: 1rem;
}
*/

.qr-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-image {
  max-width: 520px;   /* ideálna šírka pre hero obrázok */
  width: 100%;        /* na mobiloch sa pekne zmenší */
  height: auto;
  margin: 2rem auto 0;
  display: block;
  border-radius: 8px; /* jemné zaoblenie rohov */
}