/* === HLAVNÉ FARBY === */
:root {
    --joan-primary: #045C78;
    --joan-secondary: #8BA2B9;
}

/* === POZADIE HEADERA === */
body header.container-header,
body .container-header {
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    overflow: visible !important;
    padding-bottom: 8px !important;
    border-bottom: 3px solid #045C78 !important;
}

/* === ZAROVNANIE HEADERA S OBSAHOM STRÁNKY === */
.container-header .grid-child,
.container-header .container-nav {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* === LOGO === */
.navbar-brand img {
    height: 76px !important;
    width: 76px !important;
    border-radius: 6px !important;
}

/* === NÁZOV VEDĽA LOGA === */
.navbar-brand .brand-logo::after {
    content: "TELOVÝCHOVNÁ JEDNOTA\A IVANKA PRI DUNAJI";
    white-space: pre;
    display: inline-block;
    vertical-align: middle;
    margin-left: 16px;
    font-size: 17px;
    color: #045C78;
    letter-spacing: 2px;
    line-height: 1.5;
}

.navbar-brand .brand-logo img {
    vertical-align: middle;
}

/* === NÁZOV WEBU === */
.navbar-brand .brand-logo span {
    font-size: 19px !important;
    color: #045C78 !important;
    letter-spacing: 2px !important;
}

/* === MENU POLOŽKY === */
.container-header .mod-menu a {
    color: #444444 !important;
    font-size: 13px !important;
}

.container-header .mod-menu a:hover {
    color: #045C78 !important;
}

.container-header .mod-menu .active > a {
    color: #045C78 !important;
    border-bottom: 2px solid #045C78 !important;
}

/* === CTA PRIMÁRNE (Pridaj sa k nám) === */
.container-header .mod-menu a.cta-primary {
    background-color: #045C78 !important;
    color: #ffffff !important;
    border-radius: 24px !important;
    padding: 7px 18px !important;
    margin-left: 12px !important;
    border-bottom: none !important;
}

.container-header .mod-menu a.cta-primary:hover {
    background-color: #034d65 !important;
    color: #ffffff !important;
}

/* === CTA SEKUNDÁRNE (Podporte nás) === */
.container-header .mod-menu a.cta-secondary {
    background-color: transparent !important;
    color: #045C78 !important;
    border: 2px solid #045C78 !important;
    border-radius: 24px !important;
    padding: 7px 18px !important;
    margin-left: 6px !important;
    margin-bottom: 4px !important;
    border-bottom: 2px solid #045C78 !important;
}

.container-header .mod-menu a.cta-secondary:hover {
    background-color: #045C78 !important;
    color: #ffffff !important;
}

/* === OPRAVA PRETEKANIA === */
body {
    overflow-x: hidden !important;
}

/* === OPRAVA OREZANIA CTA TLAČIDIEL === */
.container-header .grid-child {
    padding: 0 !important;
    overflow: visible !important;
}

.container-header .container-nav {
    overflow: visible !important;
    padding: 6px 0 !important;
    min-height: 56px !important;
    align-items: center !important;
    padding-bottom: 6px !important;
}

.container-header .mod-menu,
.container-header .mod-list {
    overflow: visible !important;
    align-items: center !important;
}

.container-header .mod-menu li {
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}
@media (max-width: 768px) {

  /* menšie logo */
  .navbar-brand img {
    height: 52px !important;
    width: 52px !important;
  }

  /* kratší a menší názov TJ */
  .navbar-brand .brand-logo::after {
    font-size: 12px !important;
    letter-spacing: 1px !important;
    margin-left: 10px !important;
    line-height: 1.3 !important;
  }

  /* schovať CTA tlačidlá v hornom menu */
  .container-header .mod-menu a.cta-primary,
  .container-header .mod-menu a.cta-secondary {
    display: none !important;
  }

  /* zmenšiť výšku headera */
  .container-header .container-nav {
    padding: 4px 10px !important;
    min-height: auto !important;
  }
}
@media (max-width: 768px) {
  .container-header .mod-menu {
    display: none !important;
  }
}
/* ===== IVANKA XC LANDING ===== */

.ixc-landing {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.ixc-section {
  margin: 34px 0 48px;
}

.ixc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 34px 26px;
background:
linear-gradient(135deg, rgba(4,92,120,0.62), rgba(2,62,82,0.58)),
url('/images/Ivanka%20XC/cyklopreteky.jpg') center 60% / cover no-repeat;  color: #fff;
}

.ixc-hero-inner {
  max-width: 760px;
}

.ixc-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 0.92rem;
}

.ixc-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  color: #fff;
}

.ixc-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.ixc-local-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

.ixc-local-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: #f3f8fa;
  border: 1px solid #d8e6ec;
  color: #045C78;
  font-weight: 600;
}

.ixc-local-nav a:hover {
  background: #e7f1f5;
  color: #045C78;
}

.ixc-section h2 {
  margin: 0 0 10px;
  color: #045C78;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.ixc-section h3 {
  color: #045C78;
  margin-top: 0;
}

.ixc-intro,
.ixc-archive-note {
  color: #55626d;
}

.ixc-two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.ixc-box {
  background: #fff;
  border: 1px solid #e6edf1;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

.ixc-box ul {
  margin: 0;
  padding-left: 18px;
}

.ixc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ixc-card {
  background: #fff;
  border: 1px solid #e6edf1;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

.ixc-card p {
  color: #55626d;
  line-height: 1.6;
}

.ixc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ixc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ixc-btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.ixc-btn-primary {
  background: #ffffff;
  color: #045C78;
}

.ixc-btn-primary:hover {
  background: #edf5f8;
  color: #045C78;
}

.ixc-btn-secondary {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.26);
}

.ixc-btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.ixc-btn-outline {
  background: transparent;
  color: #045C78;
  border: 2px solid #045C78;
}

.ixc-btn-outline:hover {
  background: #045C78;
  color: #fff;
}

.ixc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ixc-gallery-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.ixc-cta-panel {
  background: linear-gradient(135deg, #5E8F57, #4b7845);
  color: #fff;
  border-radius: 18px;
  padding: 26px 24px;
}

.ixc-cta-panel h2,
.ixc-cta-panel p {
  color: #fff;
}

.ixc-archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.ixc-archive-links a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: #f8f4ef;
  border: 1px solid #ead9c4;
  color: #7a4f1d;
  font-weight: 600;
}

.ixc-archive-links a:hover {
  background: #f2e7d8;
  color: #7a4f1d;
}

@media (max-width: 991px) {
  .ixc-two-col {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .ixc-landing {
    padding: 0 12px 36px;
  }

  .ixc-hero {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .ixc-section {
    margin: 28px 0 38px;
  }

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

  .ixc-gallery-grid img {
    height: 130px;
  }
}