/* ===================================================================
   Simple CMS4 — custom.css
   Custom front-end styles for web/ pages.
   Naming convention: .cms4-* prefix for all custom selectors.
   Never use Bootstrap class names as CSS selectors.
   =================================================================== */

/* --- Smooth anchor scrolling --------------------------------------- */
html {
  scroll-behavior: smooth;
}

/* --- Offset pro kotvy (fixní hlavička 80px + 20px mezera) ---------- */
#services,
#ukazka,
#testimonials,
#blog,
#kontakt {
  scroll-margin-top: 80px;
}

/* --- Contact form messages (hidden by default, shown by JS) -------- */
.success-message,
.error-message {
  display: none;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.success-message {
  background-color: #d1e7dd;
  color: #0a3622;
  border: 1px solid #a3cfbb;
}

.error-message {
  background-color: #f8d7da;
  color: #58151c;
  border: 1px solid #f1aeb5;
}

/* --- Accent colour (brand green #3ca4c5) --------------------------- */
.cms4-accent-text {
  color: #3ca4c5;
}

/* --- Partners / technology heading spacer -------------------------- */
.cms4-heading-mb {
  margin-bottom: 30px;
}

/* --- Testimonials carousel ----------------------------------------- */
.cms4-testimonials-carousel {
  position: relative;
  z-index: 5;
}

/* --- News section spacing ------------------------------------------ */
.cms4-news-section {
  margin-top: 80px;
  margin-bottom: 80px;
}

/* --- News card (service-item used as news card) -------------------- */
.cms4-news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cms4-news-col-mb {
  margin-bottom: 30px;
}

.cms4-news-date {
  color: #777;
  font-size: 13px;
  margin-bottom: 8px;
}

.cms4-news-date-icon {
  color: #3ca4c5;
  margin-right: 4px;
}

.cms4-news-body {
  flex: 1;
}

.cms4-news-card-img-link {
  display: block;
  overflow: hidden;
}

.cms4-news-card-img-link .cms4-news-card-img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cms4-news-card-img-link:hover .cms4-news-card-img {
  transform: scale(1.04);
  opacity: 0.88;
}

/* --- Section spacer (subpages, detail) ----------------------------- */
.cms4-section-spacer {
  margin-top: 90px;
  margin-bottom: 90px;
}

/* --- Check list (subpage / subpage-3) ------------------------------ */
.cms4-check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.cms4-check-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #031a2a;
}

.cms4-check-list li:last-child {
  border-bottom: none;
}

.cms4-check-icon {
  color: #3ca4c5;
  margin-right: 10px;
}

/* --- Contact page map iframe --------------------------------------- */
.cms4-map-iframe {
  border: 0;
  border-radius: 5px;
  position: relative;
  z-index: 2;
}

/* --- News detail page ---------------------------------------------- */
.cms4-news-nav-row {
  margin-bottom: 30px;
}

.cms4-news-back-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
}

.cms4-news-back-icon {
  margin-right: 6px;
}

.cms4-news-meta-row {
  margin-bottom: 20px;
}

.cms4-news-meta {
  color: #777;
  font-size: 14px;
}

.cms4-news-meta-icon {
  margin-right: 5px;
  color: #3ca4c5;
}

.cms4-news-author-span {
  margin-left: 20px;
}

.cms4-news-img-row {
  margin-bottom: 30px;
}

.cms4-news-img {
  border-radius: 4px;
}

.cms4-news-excerpt-row {
  margin-bottom: 20px;
}

.cms4-news-excerpt {
  font-size: 18px;
  font-weight: 500;
  color: #031a2a;
  border-left: 4px solid #3ca4c5;
  padding-left: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Detail novinky — 2-sloupcový layout: obrázek 1/3 vlevo, obsah 2/3 vpravo */
.cms4-news-detail-row {
  margin-bottom: 30px;
  align-items: flex-start;
}

.cms4-news-detail-left {
  margin-bottom: 20px;
}

.cms4-news-detail-right {
  padding-left: 30px;
}

@media (max-width: 767px) {
  .cms4-news-detail-right {
    padding-left: 15px;
    margin-top: 10px;
  }
}

.cms4-news-img-detail {
  border-radius: 0;
  width: 100%;
  display: block;
}

.cms4-news-back-wrap {
  margin-top: 16px;
}

.cms4-news-back-wrap .cms4-news-back-btn {
  width: 100%;
  text-align: center;
  display: block;
  box-sizing: border-box;
}

.cms4-news-meta--detail {
  margin-bottom: 18px;
}

.cms4-news-bottom-row {
  margin-top: 40px;
}

.cms4-news-separator {
  border-color: #eee;
  margin-bottom: 20px;
}

/* --- Pagination ---------------------------------------------------- */
.cms4-pagination-nav {
  margin-top: 40px;
  margin-bottom: 10px;
}

.cms4-pagination .page-link {
  color: #031a2a;
  background-color: #fff;
  border: 2px solid #e8e8e8;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 !important;
  margin: 0 3px;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.cms4-pagination .page-link:hover {
  color: #fff;
  background-color: #8ed2e8;
  border-color: #8ed2e8;
  text-decoration: none;
}

.cms4-pagination .page-item.active .page-link {
  color: #fff;
  background-color: #8ed2e8;
  border-color: #8ed2e8;
  box-shadow: 0 4px 12px rgba(255, 81, 26, 0.3);
}

.cms4-pagination .page-item.disabled .page-link {
  color: #aaa;
  border-color: #e8e8e8;
  background-color: #f9f9f9;
}

.cms4-pagination .page-item:first-child .page-link,
.cms4-pagination .page-item:last-child .page-link {
  color: #8ed2e8;
  font-size: 16px;
  line-height: 1;
}

.cms4-pagination .page-item:first-child .page-link:hover,
.cms4-pagination .page-item:last-child .page-link:hover {
  color: #fff;
}


html.cms4-error-body,
body.cms4-error-body {
  height: 100%;
  overflow: hidden;
}

.cms4-error-body .page-heading {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  position: relative;
}

.cms4-error-body .page-heading .row {
  width: 100%;
}

.cms4-error-body .page-heading p.error-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(15px, 2vw, 18px);
  margin-top: 20px;
  margin-bottom: 0;
}

.error-code-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 700;
  line-height: 1;
  color: #8ed2e8;
  margin-bottom: 10px;
  letter-spacing: -4px;
}

.error-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.error-footer a {
  color: #fff;
  text-decoration: none;
}

.error-footer a:hover {
  text-decoration: underline;
}

.cms4-error-buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
/* --- Direct-anchor button overrides (templatemo uses .btn a, we use a.btn) -- */
a.orange-button,
a.orange-button:visited {
  font-size: 14px;
  color: #fff;
  background-color: #8ed2e8;
  padding: 12px 30px;
  display: inline-block;
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all .3s;
  text-decoration: none;
}

a.orange-button:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}

a.green-button,
a.green-button:visited {
  font-size: 14px;
  color: #fff;
  background-color: #3ca4c5;
  padding: 12px 30px;
  display: inline-block;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all .3s;
  text-decoration: none;
}

a.green-button:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}

/* --- News listing page - card with image (novinky.html) ------------ */
.cms4-news-card--listing {
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

.cms4-news-card-img-wrap {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 200px;
  flex-shrink: 0;
}

.cms4-news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cms4-news-card--listing:hover .cms4-news-card-img {
  transform: scale(1.05);
}

.cms4-news-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cms4-news-card-body h4 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.cms4-news-card-body h4 a {
  color: #031a2a;
  text-decoration: none;
  transition: color 0.2s;
}

.cms4-news-card-body h4 a:hover {
  color: #8ed2e8;
}

.cms4-news-card-body .cms4-news-body {
  flex: 1;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}


/* =============================================
   Page heading — breadcrumb + back link footer
   ============================================= */
.page-heading {
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
}
.page-heading > .container {
  flex: 1;
  padding-top: 215px;
  padding-bottom: 40px;
}
.cms4-ph-footer {
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
}
.cms4-ph-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  text-align: left; /* override .page-heading { text-align: center } */
}
/* breadcrumb */
.cms4-ph-footer .breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 14px;
}
.cms4-ph-footer .breadcrumb-item,
.cms4-ph-footer .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.cms4-ph-footer .breadcrumb-item a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cms4-ph-footer .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.60);
}
.cms4-ph-footer .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.30);
  padding: 0 7px;
}
/* back link */
.cms4-ph-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.cms4-ph-back-link:hover {
  color: #fff;
}
.cms4-ph-back-link .fa-chevron-left {
  font-size: 10px;
  opacity: 0.65;
}
@media (max-width: 576px) {
  .cms4-ph-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* --- Header cleanup ----------------------------------------------- */
.header-area {
  background-image: none;
}

/* --- Calculator mission cards: time on first row right ------------ */
.cms-action-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "icon time"
    "title title"
    "desc desc";
  align-items: start;
  row-gap: 4px;
  border-radius: 0;
}

.cms-action-btn > .fa {
  grid-area: icon;
  margin-bottom: 0;
}

.cms-action-btn .cms-action-title {
  grid-area: title;
  margin-top: 0.4rem;
}

.cms-action-btn .cms-action-desc {
  grid-area: desc;
}

.cms-action-btn .cms-action-time {
  grid-area: time;
  justify-self: end;
  margin-top: 0;
}

.cms-action-btn .cms-action-time .fa {
  font-size: 14px;
  margin-bottom: 0;
}

/* --- Section subtitle (replaces decorative h6 for accessibility) --- */
.section-heading .section-subtitle {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  color: #3ca4c5;
  font-weight: 500;
}
section.calculator .section-heading .section-subtitle, 
section.partners .section-heading .section-subtitle {
  color: #8ed2e8;
}

section.calculator .row {
  align-items: stretch;
}

section.calculator .row > .col-lg-7 {
  display: flex;
  flex-direction: column;
}

section.calculator .left-image {
  flex: 1;
  margin: 0 45px 0 0;
  display: flex;
  align-items: flex-end;
}

section.calculator .left-image img {
  display: block;
}

section.calculator .section-heading {
   margin-bottom: 3rem;
}

/* --- Services cards: stable icon + left layout -------------------- */
section.services .service-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas:
    "icon title"
    ". text";
  column-gap: 18px;
  row-gap: 10px;
  align-items: start;
  height: 100%;
  margin: 0 !important;
  padding: 30px;
  border: 1px solid rgba(33, 39, 65, 0.08);
  border-radius: 0px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease;
}

section.services .service-item:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
}

section.services .service-item i {
  grid-area: icon;
  float: none !important;
  width: 64px;
  height: 64px;
  font-size: 48px !important;
  margin: 0 !important;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: start;
  flex-shrink: 0;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Font Awesome glyphs have different optical sizes; fine-tune current icons */
section.services .service-item i.fa-gauge-high,
section.services .service-item i.fa-layer-group {
  font-size: 45px !important;
}

section.services .service-item i.fa-shield,
section.services .service-item i.fa-pen-to-square {
  font-size: 50px !important;
}

section.services .service-item:hover i {
  transform: none !important;
}

section.services .service-item h4 {
  grid-area: title;
  margin: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  font-size: 22px;
  line-height: 1.2;
  text-align: left;
}

section.services .service-item p {
  grid-area: text;
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
  text-align: left;
}

/* Honeypot anti-spam field — visually hidden from real users */
.contactform-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}