/* DOPRAVA – bezpečný layout podstránky */

.td-transport-page {
  background: #ffffff;
}

/* Drupal's default text-field render wraps values in a core
   ".text-content" div (Olivero's own class), which sets its own serif
   font-family directly on itself. Since that's an explicit rule (not
   an inherited value), it wins over our font-family set further up on
   the surrounding .transport-product__* / .td-plain-page__content
   containers for any child (p, li, ...) that doesn't separately
   redeclare it - neutralise it here once instead of chasing every
   such child selector individually. */
.transport-product__perex .text-content,
.transport-product__text .text-content,
.transport-product-tile__body .text-content,
.td-plain-page__content .text-content {
  font-family: inherit;
}

/* Hero banner */
.td-transport-page__hero {
  position: relative;
  display: grid;
  width: 100vw;
  min-height: clamp(180px, 24vw, 420px);
  margin-left: calc(50% - 50vw);
  place-items: center;
  overflow: hidden;
  background-image: url("/sites/default/files/2026-09/horny_baner_DOPRAVA.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Darkening overlay so the white title stays readable regardless of
   how bright/busy a given hero photo is (the press-conference photo
   on "Napísali o nás" is a lot busier than the site's other, mostly
   dark, hero photos). */
.td-transport-page__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(8, 20, 32, 0.45) 0%, rgba(8, 20, 32, 0.58) 100%);
}

/* Regular dot-grid texture, matching the soft polka-dot pattern baked
   into the site's original hero photos - drawn in CSS instead so it
   applies uniformly no matter what a given hero's source photo looks
   like. */
.td-transport-page__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.6px, transparent 1.7px);
  background-position: 0 0;
  background-size: 24px 24px;
}

.td-transport-page__hero--skolstvo {
  background-image: url("/themes/transdata/images/horny_baner_SKOLSTVO.jpg");
}

.td-transport-page__hero--smartcity {
  background-image: url("/themes/transdata/images/horny_baner_SMARTCITY.jpg");
}

.td-transport-page__hero--ubian {
  background-image: url("/themes/transdata/images/horny_baner_UBIAN.jpg");
}

.td-transport-page__hero--pre-media {
  background-image: url("/themes/transdata/images/horny_baner_MEDIA.jpg");
}

.td-transport-page__hero--napisali-o-nas {
  background-image: url("/themes/transdata/images/horny_baner_NAPISALI_v2.jpg");
}

.td-transport-page__hero--kontakt {
  background-image: url("/themes/transdata/images/horny_baner_KONTAKT.svg");
}

/* Friendly lead-in line between the Kontakt hero and the form itself,
   so the page doesn't jump straight from banner to a bare form. */
.td-contact-intro {
  width: min(100% - 40px, 700px);
  margin: 40px auto 4px;
  color: #444444;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.td-contact-intro p {
  margin: 0;
}

@media (max-width: 767px) {
  .td-contact-intro {
    margin: 28px auto 4px;
    font-size: 15px;
  }
}

/* The webform itself, kept at the same horizontal margin as the hero
   and intro above it instead of Olivero's raw core grid (generous
   side gutters from ~700px up, edge-to-edge with zero padding below
   that). */
.td-contact-form {
  width: min(100% - 40px, 900px);
  margin: 0 auto 60px;
}

.td-transport-page__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
}

/* Spodné menu pod bannerom */
.td-transport-page__subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 20px 0 34px;
}

.td-transport-page__subnav a {
  color: #2c2c2c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.td-transport-page__subnav a:hover,
.td-transport-page__subnav a:focus-visible,
.td-transport-page__subnav a.is-active,
.td-transport-page__subnav a[aria-current="page"],
.td-transport-page__subnav a[aria-current="true"] {
  color: #4b97e9;
}

.td-transport-page__inline-title {
  width: min(100% - 40px, 1200px);
  margin: 28px auto 0;
  color: #12385b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Hlavný obsah */
.td-transport-page__content {
  width: 100%;
  max-width: none;
  padding: 0 !important;
}

/* Jeden paragraph je jeden produkt */
.transport-product {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 0 0 72px;
}

.transport-product + .transport-product {
  padding-top: 8px;
}

.transport-product__perex {
  margin: 0 0 28px;
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.82;
  text-align: center;
}

.transport-product__perex p {
  margin: 0 0 18px;
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.82;
  text-align: center;
}

/* The perex is centered when it's a single short lead sentence
   (Doprava landing page), but on TransFleet/TransOffice it's longer
   multi-line copy - either an intro bullet list (TransOffice) or an
   embedded screenshot floated beside the text (TransFleet) -
   centering multi-line body copy like that reads as messy/unpolished
   (a ragged left edge). Detect either case and switch the whole
   block back to left-aligned. */
.transport-product__perex:has(ul),
.transport-product__perex:has(.align-right),
.transport-product__perex:has(.align-left) {
  text-align: left;
}

.transport-product__perex:has(ul) p,
.transport-product__perex:has(.align-right) p,
.transport-product__perex:has(.align-left) p {
  text-align: left;
}

.transport-product__perex ul {
  clear: both;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
  text-align: left;
}

/* A screenshot image can be embedded directly in the perex, floated
   beside the lead paragraph via Drupal's own align-right/align-left
   filter classes (core ships the behaviour, not the styling). */
.transport-product__perex .align-right {
  float: right;
  margin: 0 0 16px 28px;
  max-width: 45%;
}

.transport-product__perex .align-left {
  float: left;
  margin: 0 28px 16px 0;
  max-width: 45%;
}

/* On narrow screens a 45%-wide float squeezes the perex text into a
   ragged, barely-readable column beside it - drop the float and let
   the image sit full-width above the (now normal, unconstrained)
   text instead, same as the rest of the mobile perex layout. */
@media (max-width: 767px) {
  .transport-product__perex .align-right,
  .transport-product__perex .align-left {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
  }
}

.transport-product__perex li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 28px;
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  list-style: none;
  text-align: left;
}

.transport-product__perex li::before {
  content: "◉";
  position: absolute;
  top: 0;
  left: 0;
  color: #2f8fdd;
  font-size: 12px;
  line-height: 1.9;
}

.transport-product__text--full {
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.82;
}

.transport-product__text--full p {
  max-width: none;
  margin: 0 0 18px;
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.82;
}

/* Row of equal cards: image on top, heading, text below.
   Selectors are qualified with .transport-product__text to outrank
   the generic p/ul/li rules further down this file, which otherwise
   win any tie (equal specificity, later source order). */
.transport-product__text ul.subsection-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: none;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.transport-product__text ul.subsection-cards li {
  padding: 0;
  margin: 0;
}

.transport-product__text ul.subsection-cards li::before {
  content: none;
}

.transport-product__text ul.subsection-cards img {
  display: block;
  width: 100%;
  height: 190px;
  margin-bottom: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.transport-product__text ul.subsection-cards h3 {
  margin: 0 0 12px;
  color: #292929;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.transport-product__text ul.subsection-cards p {
  max-width: none;
  margin: 0;
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .transport-product__text ul.subsection-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .transport-product__text ul.subsection-cards {
    grid-template-columns: 1fr;
  }
}

/* Tile-style feature sections (TransFleet/TransOffice icon list):
   bordered card, icon top-left, heading beside it, body full width
   below — distinct from the two-column .transport-product layout. */
.transport-product-tile {
  position: relative;
  width: min(100% - 40px, 1200px);
  margin: 0 auto 28px;
  padding: 32px 32px 32px 116px;
  border: 1px solid #e7ebf1;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(18, 56, 91, 0.06);
}

.transport-product-tile__icon {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 64px;
  height: 64px;
}

.transport-product-tile__icon img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.transport-product-tile__heading {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: 0 0 14px;
  color: #12385b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.transport-product-tile__heading p {
  margin: 0;
}

.transport-product-tile__body {
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.transport-product-tile__body p {
  max-width: none;
  margin: 0 0 14px;
}

.transport-product-tile__body h3 {
  margin: 20px 0 10px;
  color: #12385b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.transport-product-tile__body ul {
  max-width: none;
  margin: 6px 0 16px;
  padding: 0;
  list-style: none;
}

.transport-product-tile__body li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 24px;
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
}

.transport-product-tile__body li::before {
  content: "◉";
  position: absolute;
  top: 0;
  left: 0;
  color: #2f8fdd;
  font-size: 11px;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .transport-product-tile {
    padding: 84px 20px 24px;
  }

  .transport-product-tile__icon {
    top: 20px;
    left: 20px;
  }
}

.transport-product__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

.transport-product__media,
.transport-product__text,
.transport-product__media .field,
.transport-product__media .field__item,
.transport-product__text .field,
.transport-product__text .field__item {
  min-width: 0;
  max-width: none;
}

/* Transfleet: text vľavo, obrázok vpravo */
.transport-product__media {
  grid-column: 2;
  grid-row: 1;
}

.transport-product__text {
  grid-column: 1;
  grid-row: 1;
}

/* TransOffice: obrázok vľavo, text vpravo */
.transport-product--office .transport-product__media {
  grid-column: 1;
}

.transport-product--office .transport-product__text {
  grid-column: 2;
}

.transport-product__media h2 {
  margin: 0 0 18px;
  color: #292929;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

.transport-product__media .media,
.transport-product__media drupal-media {
  display: block;
  width: 100%;
}

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

/* Small line-art icons (TransFleet/TransOffice feature sections) are
   only ~60px source images — stretching them to the full media column
   like a photo makes them look gigantic and blurry. Cap them to a
   fixed, modest size instead. Matched by filename (all of these are
   named ikonaN_TF.png / NN_ikonaTO.png) rather than by wrapping them
   in an extra element: nesting <drupal-media> inside another tag
   breaks Drupal's media_embed filter, which then renders it empty. */
.transport-product__media img[src*="ikona" i] {
  display: block;
  width: 180px;
  max-width: 60%;
  margin: 0 auto;
}

.transport-product__text {
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.82;
}

/* When a section has no media (drupal-media only on the other,
   already-media-classed side), its h2 lands in .transport-product__text
   instead of .transport-product__media - only the latter had its own
   explicit font-family rule, so this h2 fell through to Olivero's
   heading font instead of the site's own. */
.transport-product__text h2 {
  margin: 0 0 18px;
  color: #292929;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

.transport-product__text p {
  max-width: 62ch;
  margin: 0 0 18px;
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.82;
}

.transport-product__text ul {
  max-width: 62ch;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.transport-product__text li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 28px;
  color: #727272;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  list-style: none;
}

.transport-product__text li::before {
  content: "◉";
  position: absolute;
  top: 0;
  left: 0;
  color: #2f8fdd;
  font-size: 12px;
  line-height: 1.9;
}

/* CTA v produktových blokoch */
.td-transport-page .transport-product__text p a,
.td-transport-page__contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 24px;
  border-radius: 999px;
  background: #4b97e9;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
}

.td-transport-page .transport-product__text p a::before {
  content: "›";
  display: grid;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

.td-transport-page .transport-product__text p a::after {
  content: none !important;
}

.td-transport-page .transport-product__text p a:hover,
.td-transport-page .transport-product__text p a:focus-visible,
.td-transport-page__contact a:hover,
.td-transport-page__contact a:focus-visible {
  color: #ffffff !important;
  background-color: #4b97e9;
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.20);
}

/* CTA pás „Hľadáte vhodné riešenie…“ */
.td-transport-page__contact {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
  background: #e3edff;
}

.td-transport-page__contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 18px 0;
}

.td-transport-page__contact p {
  margin: 0;
  color: #3c4654;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.td-transport-page__contact a span {
  display: grid;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

/* Icon feature grid (e.g. Školstvo / preukaz funkcie) */
.transport-product__text .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
  max-width: none;
  margin: 20px 0 10px;
  padding: 0;
  list-style: none;
}

.transport-product__text .feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  color: var(--td-text);
  text-align: center;
}

.transport-product__text .feature-grid li::before {
  content: none;
}

.feature-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.feature-grid span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.transport-product__text h3.feature-grid-heading {
  margin: 32px 0 4px;
  color: var(--td-blue-dark);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .transport-product__text .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .td-transport-page__subnav,
  .transport-product,
  .td-transport-page__contact-inner {
    width: min(100% - 40px, 960px);
  }

  .transport-product__grid {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.1fr);
    gap: 48px;
  }

  .transport-product__text,
  .transport-product__text li {
    font-size: 14px;
  }

  .td-transport-page__contact p {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .td-transport-page__hero {
    min-height: 160px;
  }

  .td-transport-page__subnav {
    gap: 12px 16px;
    width: min(100% - 32px, 100%);
    padding: 16px 0 24px;
  }

  .td-transport-page__subnav a {
    font-size: 14px;
  }

  .transport-product {
    width: min(100% - 32px, 100%);
    padding-bottom: 42px;
  }

  .transport-product__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .transport-product__media,
  .transport-product__text,
  .transport-product--office .transport-product__media,
  .transport-product--office .transport-product__text {
    grid-column: 1;
    grid-row: auto;
  }

  .transport-product__media {
    grid-row: 1;
  }

  .transport-product__text {
    grid-row: 2;
    font-size: 15px;
    line-height: 1.7;
  }

  .transport-product__media h2 {
    font-size: 17px;
  }

  .transport-product__text li {
    font-size: 15px;
    line-height: 1.65;
  }

  .td-transport-page__contact-inner {
    flex-direction: column;
    align-items: flex-start;
    width: min(100% - 32px, 100%);
  }

  .td-transport-page__contact p {
    font-size: 22px;
    line-height: 1.25;
  }
}

/* Plain document pages (cookie policy, privacy policy): no hero,
   subnav or CTA — just a heading and body copy, matching
   transdata.sk's own legal pages. */
.td-plain-page__content {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 40px 0 72px;
  color: #444444;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

.td-plain-page__title {
  margin: 0 0 24px;
  color: #12385b;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.td-plain-page__content h2 {
  margin: 32px 0 14px;
  color: #12385b;
  font-size: 18px;
  font-weight: 700;
}

.td-plain-page__content h3 {
  margin: 24px 0 10px;
  color: #12385b;
  font-size: 15px;
  font-weight: 700;
}

.td-plain-page__content p {
  margin: 0 0 16px;
}

.td-plain-page__content ul,
.td-plain-page__content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.td-plain-page__content li {
  margin: 0 0 8px;
}

.td-plain-page__content a {
  color: #4b97e9;
}

.td-plain-page__content table {
  width: 100%;
  margin: 12px 0 24px;
  border-collapse: collapse;
  font-size: 13px;
}

.td-plain-page__content th,
.td-plain-page__content td {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.td-plain-page__content th {
  background: #f5f8fc;
  font-weight: 700;
}