/*
Theme Name: Divi Child od WPlama
Theme URI: http://www.wplama.cz/divi-child-sablona/
Description: Divi child šablona od WPlama. Obsahuje vylepšení překladu a další rozšíření výchozích funkcí.
Author: <a href="http://www.wplama.cz/">WPlama.cz</a>
Author URI: http://www.wplama.cz/divi-child-sablona/
Template: Divi
Version: 1.13
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   Root variables
   ======================================================= */
:root {
  /* Color variables */
  --color-primary: #01cda9; /* Green – primary */
  --color-secondary: #496cdc; /* Blue – secondary */
  --color-light-green: #e8f4f4; /* Light green background */

  /* Neutrals */
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;

  /* Layout tokens */
  --container-max: 1360px;
  --container-pad: 20px;

  /* Documents offcanvas (mobile sidebar) */
  --sidebar-width: 300px;
  --sidebar-z: 9999;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

.page-container {
  height: 100%;
}

#logo {
  max-height: 70%;
}

/* =========================================================
   Container
   - Make it fluid by default and cap by max-width
   ======================================================= */
.container-lg {
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-max);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* =========================================================
   Page title bar
   ======================================================= */
.page-title {
  background-color: var(--color-primary);
  width: 100%;
  text-align: left;
  padding: 36px 0;
  margin-bottom: 4rem;
}

.page-title h1 {
  font-size: 54px;
  font-weight: 700;
  color: white;
  padding: 0;
  margin: 0;
}

#et-main-area {
  height: 100%;
}

.lama-read-more-left-align {
  float: left;
}

.lama-read-more-right-align {
  float: right;
}

.et_fixed_nav.et_show_nav #page-container,
.et_non_fixed_nav.et_transparent_nav.et_show_nav #page-container {
  padding-top: 66px;
}

.page-template-page-documents #page-container {
  height: 100%;
}

/* =========================================================
   Buttons
   ======================================================= */
.btn-primary {
  background-color: rgba(1, 205, 169, 0.75);
  color: white;
  font-weight: 700;
  border-radius: 35px !important;
}

.btn-primary:hover {
  background-color: rgba(1, 205, 169, 1);
  color: white;
  font-weight: 700;
  border-radius: 35px !important;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
  font-weight: 700;
  border-radius: 35px !important;
}

body
  #page-container
  .et_pb_section
  .et_pb_fullwidth_header_0
  .et_pb_more_button.et_pb_button:hover {
  border-radius: 6px !important;
}

body
  #page-container
  .et_pb_section
  .et_pb_fullwidth_header_0
  .et_pb_button_one.et_pb_button:hover {
  background-color: #01cda9 !important;
}

body
  #page-container
  .et_pb_section
  .et_pb_fullwidth_header_0
  .header-content-container
  .et_pb_button.et_pb_more_button:hover {
  color: #2761ab !important;
}

/* =========================================================
   Documents template base
   ======================================================= */
.documents-page {
  height: 100%;
}

.documents-page h2 {
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
}

.page-template-page-documents body.custom-background,
body.page-template-page-documents.custom-background {
  background-image: none !important;
  background-color: #fff !important;
}

/* =========================================================
   Documents layout (desktop)
   ======================================================= */
.documents-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  height: 100%;
  max-width: var(--container-max);
}

.documents-layout.container {
  max-width: var(--container-max);
}

.documents-sidebar {
  padding-right: 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.documents-main {
  min-width: 0;
}

.documents-content {
  margin-bottom: 4rem;
  min-width: 0;
}

/* =========================================================
   Left menu (flat list)
   ======================================================= */
#current-folder-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.documents-sidebar ul.subfolders--flat {
  list-style: none;
  padding: 0;
  margin: 0;
}

.documents-sidebar a.folder-link {
  color: var(--color-text);
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  align-items: center;
  gap: 20px;
  padding: 1rem 0.75rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
}

.documents-sidebar ul.subfolders--flat li:last-of-type a.folder-link {
  border-bottom: 0;
}

.documents-sidebar a.folder-link.is-active {
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--color-primary);
}

/* =========================================================
   Right side
   ======================================================= */
.documents-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.subfolders-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.folder-tile {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.folder-tile__name {
  font-weight: 600;
}

.folder-tile__meta {
  opacity: 0.7;
  font-size: 0.9em;
}

/* =========================================================
   Files table (desktop)
   ======================================================= */
#files-container {
  width: 100%;
  border-collapse: collapse;
}

#files-container th,
#files-container td {
  padding: 10px 20px;
}

#files-container td:first-child {
  border-radius: 25px 0 0 25px;
}

#files-container td:first-child[colspan="5"] {
  border-radius: 25px;
}

#files-container td:last-child {
  border-radius: 0 25px 25px 0;
}

#files-container th {
  color: var(--color-text-muted);
  text-align: left;
}

#files-container th:last-child {
  text-align: right;
}

#files-container td {
  color: var(--color-text);
  text-align: left;
}

#files-container tr:nth-child(odd) td {
  background-color: #f2f2f2;
}

#files-container td:nth-child(2),
#files-container td:nth-child(3) {
  white-space: nowrap;
}

#files-container td:nth-child(1) {
  font-weight: 700;
}

.file-actions {
  display: flex;
  justify-content: end;
  text-align: right;
  gap: 8px;
}

.file-actions a {
  margin-right: 0;
  padding: 6px 10px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.file-actions a i {
  margin-right: 0;
}

/* =========================================================
   Documents table – limit "Název" column + ellipsis (desktop)
   ======================================================= */
.documents-table {
  table-layout: fixed;
  width: 100%;
}

.documents-table th:nth-child(1),
.documents-table td:nth-child(1) {
  width: 55%; /* Name */
}

.documents-table th:nth-child(2),
.documents-table td:nth-child(2) {
  width: 15%; /* Date */
}

.documents-table th:nth-child(3),
.documents-table td:nth-child(3) {
  width: 12%; /* Size */
}

.documents-table th:nth-child(4),
.documents-table td:nth-child(4) {
  width: 10%; /* Type */
}

.documents-table th:nth-child(5),
.documents-table td:nth-child(5) {
  width: 280px; /* Actions */
}

.documents-table td:nth-child(1) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.documents-table td {
  vertical-align: middle;
}

/* =========================================================
   Controls bar + pagination
   ======================================================= */
.documents-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 12px 0px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
}

.documents-controls .controls-left,
.documents-controls .controls-right {
  display: flex;
  gap: 40px;
  align-items: center;
}

.documents-controls .controls-left {
  flex-direction: row;
  width: 50%;
}

.control input,
.control select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  min-width: 140px;
}

.control:focus-within {
  border-color: var(--color-primary);
}

.control:focus-within i {
  color: var(--color-primary);
}

/* Search input */
.control--search {
  position: relative;
  display: inline-block;
  width: 100%;
}

.control--search input {
  width: 100%;
  padding: 0.45rem 3.25rem 0.45rem 1.5rem !important;
  font-size: 0.9rem;
  border-radius: 32px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.control--search input::placeholder {
  color: var(--color-text-muted);
}

.control--search i {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.control--search input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.control--search:focus-within i {
  color: var(--color-primary);
}

/* Select icon label */
.control--icon i {
  margin-right: 10px;
}

.documents-controls label {
  font-size: 0.95rem;
  opacity: 0.85;
  white-space: nowrap;
}

.documents-controls #file-search {
  background-color: #f2f2f2;
  width: 100%;
  border: 0;
}

.documents-controls input[type="text"],
.documents-controls select {
  height: 48px;
  padding: 5px 20px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 32px;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.2;
  outline: none;
}

#file-search {
  min-width: 240px;
  width: min(360px, 100%);
}

#file-year,
#file-sort,
#file-per-page {
  min-width: 160px;
}

.control--icon {
  position: relative;
}

/* Custom arrow for sort select (works well across browsers) */
#file-sort {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.95rem center !important; /* spacing from edge */
  background-size: 22px 22px !important;

  padding-right: 3rem; /* space for arrow */
  color: inherit;
  cursor: pointer;
}

.documents-controls input[type="text"]:focus,
.documents-controls select:focus {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Pagination */
.documents-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 10px 2px;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 0.95rem;
  opacity: 0.85;
  text-align: center;
}

.pagination-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.page-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.05s ease-in-out;
}

.page-btn:hover {
  border-color: rgba(0, 0, 0, 0.24);
}

.page-btn:active {
  transform: translateY(1px);
}

.page-btn.is-active {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.22);
  font-weight: 600;
}

.page-btn.is-disabled,
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================================================
   Breadcrumbs + Back button
   ======================================================= */
.documents-breadcrumbs {
  margin: 0 0 2rem 0;
}

.documents-breadcrumbs__list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;

  font-size: 0.835rem;
  color: var(--color-text-muted);
}

.documents-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.documents-breadcrumbs__sep {
  opacity: 0.55;
  margin: 0 0.25rem;
}

.documents-breadcrumbs .bc-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  transition: all 160ms ease;
  text-decoration: underline;
}

.documents-breadcrumbs .bc-link:first-child {
  padding-left: 0;
}

.documents-breadcrumbs .bc-link:hover,
.documents-breadcrumbs .bc-link:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  outline: none;
}

.documents-breadcrumbs__item.is-current span {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--color-text-muted);
  font-weight: 600;
  line-height: 1.2;
}

.documents-backwrap {
  margin: 0 0 1rem 0;
}

.documents-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.55rem 0.9rem;
  border-radius: 999px;

  background: var(--color-text-muted);
  border: 1px solid var(--color-border);
  color: white;
  font-weight: 700;

  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.documents-back i {
  font-size: 0.95rem;
  opacity: 0.9;
}

.documents-back:hover {
  border-color: var(--color-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.documents-back:focus-visible {
  outline: 3px solid var(--color-border);
  outline-offset: 2px;
}

/* =========================================================
   RESPONSIVE – Tablet + Mobile UX/UI
   ======================================================= */

.et_pb_fullwidth_header .et_pb_fullwidth_header_container {
  width: 100%;
}

/* -------------------------------
   Tablet: collapse spacing a bit
   ------------------------------- */
@media (max-width: 980px) {
  .page-title {
    margin-bottom: 2.5rem;
  }

  .page-title h1 {
    font-size: 42px;
  }

  /* Layout becomes 1 column on tablet/mobile */
  .documents-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Sidebar becomes off-canvas */
  .documents-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;

    padding: 16px;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);

    transform: translateX(-105%);
    transition: transform 200ms ease;
    z-index: var(--sidebar-z);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* When open (toggle this class via JS) */
  .documents-page.is-sidebar-open .documents-sidebar {
    transform: translateX(0);
  }

  /* Overlay behind sidebar */
  .documents-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: calc(var(--sidebar-z) - 1);
  }

  .documents-page.is-sidebar-open .documents-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Optional: make sidebar links more touch-friendly */
  .documents-sidebar a.folder-link {
    padding: 0.9rem 0.75rem;
  }

  /* Controls stack better */
  .documents-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .documents-controls .controls-left,
  .documents-controls .controls-right {
    width: 100%;
    gap: 12px;
  }

  .documents-controls .controls-left {
    width: 100%;
  }

  #file-search,
  #file-sort {
    width: 100%;
    min-width: 0;
  }

  /* Tiles: slightly smaller min-width */
  .subfolders-tiles {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .documents-table th:nth-child(1),
  .documents-table td:nth-child(1) {
    width: 25%; /* Name */
  }
}

/* -------------------------------
   Mobile: table becomes cards
   ------------------------------- */
@media (max-width: 720px) {
  .page-title h1 {
    font-size: 34px;
  }

  /* Make back button full width on mobile */
  .documents-back {
    width: 100%;
    justify-content: center;
  }

  /* Cards for each table row (no horizontal scroll) */
  #files-container thead {
    display: none;
  }

  #files-container,
  #files-container tbody,
  #files-container tr,
  #files-container td {
    display: block;
    width: 100%;
  }

  #files-container tr {
    background: transparent;
  }

  /* Apply styling ONLY if row has at least one <td> */
  #files-container tr:has(td) td {
    background-color: #f2f2f2;
    font-size: 0.75rem;
    position: relative;
    padding-left: 28%;
  }

  #files-container tr:has(td) td::before {
    position: absolute;
    left: 14px;
    top: 0;
    width: 25%;
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    content: "";
  }

  #files-container td:nth-child(5)::before {
    content: none;
    display: none;
  }

  /* Remove left padding reserved for label */
  #files-container td:nth-child(5) {
    padding-left: 14px;
  }

  /* Rounded corners on first and last cell */
  #files-container tr:has(td) td:first-child {
    border-radius: 15px 15px 0 0;
    padding-top: 14px;
  }

  #files-container tr:has(td) td:first-child::before {
    top: 14px;
  }

  #files-container tr:has(td) td:last-child {
    border-radius: 0 0 15px 15px;
    padding-bottom: 14px;
  }

  #files-container tr:has(td) td:last-child::before {
    top: 14px;
  }

  /* Spacing between rows (mobile/card look) */
  #files-container tr:has(td) {
    margin-bottom: 12px;
  }
  /* Reset rounded corners from desktop row styling */
  #files-container td:first-child,
  #files-container td:last-child {
    border-radius: 0;
  }

  /* Create "card" look */
  #files-container td {
    background: #f2f2f2;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
  }

  /* Label + value layout */
  #files-container td {
    position: relative;
    padding-left: 28%;
  }

  #files-container td::before {
    position: absolute;
    left: 14px;
    top: 0;
    width: 25%;
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.7rem;
    content: "";
  }

  /* Column labels by position */
  #files-container td:nth-child(1)::before {
    content: "Název";
  }
  #files-container td:nth-child(2)::before {
    content: "Datum";
  }
  #files-container td:nth-child(3)::before {
    content: "Velikost";
  }
  #files-container td:nth-child(4)::before {
    content: "Typ";
  }
  #files-container td:nth-child(5)::before {
    content: "Akce";
  }

  /* Make the name wrap nicely (no ellipsis on mobile) */
  #files-container td:nth-child(1) {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  /* Actions: stack buttons and make them easy to tap */
  .file-actions {
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .file-actions a {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    margin-right: 0.5rem;
    margin-top: 0.75rem;
  }

  .file-actions a:last-child {
    margin-right: 0;
  }

  .file-actions a span {
    white-space: nowrap;
  }

  /* Keep buttons nice and tappable */
  .file-actions a {
    min-width: 44px;
    min-height: 20px;
    justify-content: center;
    padding: 7px 25px;
    font-size: 0.8rem;
  }

  .file-actions a i {
    display: none;
  }

  /* Pagination: align left */
  .documents-pagination {
    justify-content: flex-start;
  }
}

/* -------------------------------
   Very small phones
   ------------------------------- */
@media (max-width: 420px) {
  /* Reduce left label column to give more space to values */
  #files-container td {
    padding-left: 44%;
  }

  #files-container td::before {
    width: 40%;
  }
}

/* =========================================================
   Optional: hamburger button styling (requires small HTML)
   ======================================================= */
.documents-sidebar-toggle {
  display: none;
}

@media (max-width: 980px) {
  .documents-sidebar-toggle-wrap {
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
  }

  .documents-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: var(--color-text);
    color: white;
    font-weight: 800;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  .documents-sidebar-toggle i {
    font-size: 1rem;
  }

  body {
    --fixed-header-h: 80px;
  }

  /* Default (no admin bar) */
  body:not(.admin-bar) .documents-sidebar {
    top: var(--fixed-header-h);
    height: calc(100vh - var(--fixed-header-h));
  }

  /* With WP admin bar (typically 32px desktop) */
  body.admin-bar .documents-sidebar {
    top: calc(var(--fixed-header-h) + 32px);
    height: calc(100vh - (var(--fixed-header-h) + 32px));
  }
}

/* =========================================================
   Actualities list
   ======================================================= */

/* === WRAP === */
.bdpj-aktuality-wrap {
  width: 100%;
}

/* === GRID === */
.bdpj-aktuality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
  align-items: stretch;
}

/* === CARD === */
.bdpj-aktualita-card {
  background: #eff5f7;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
  min-height: 170px;
}

.bdpj-aktualita-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* celý box jako odkaz */
.bdpj-aktualita-link {
  display: block;
  padding: 26px 24px 22px;
  text-decoration: none;
  height: 100%;
}

/* === TITLE === */
.bdpj-aktualita-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111111;
  font-family: inherit;
}

/* === DATE === */
.bdpj-aktualita-date {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.4;
  color: #8b8f94;
  font-weight: 400;
}

/* === EXCERPT === */
.bdpj-aktualita-excerpt {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* excerpt v kartě bez divných mezer */
.bdpj-aktualita-excerpt p:last-child {
  margin-bottom: 0;
}

/* =========================================================
    Pagination
   ======================================================= */
.bdpj-pagination {
  margin-top: 38px;
  display: flex;
  justify-content: center;
}

.bdpj-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bdpj-pagination li {
  margin: 0;
  padding: 0;
}

.bdpj-pagination a,
.bdpj-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid #d9e1e3;
  background: #ffffff;
  color: #444;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bdpj-pagination a:hover {
  background: #eef3f4;
  border-color: #c9d4d8;
  color: #111;
}

.bdpj-pagination .current {
  background: #19c7b3;
  border-color: #19c7b3;
  color: #ffffff;
}

.bdpj-pagination .dots {
  border: none;
  background: transparent;
  padding: 0 4px;
  min-width: auto;
  color: #888;
}

/* === RESPONSIVE === */
@media (max-width: 1380px) {
  .bdpj-aktuality-wrap {
    padding: 0 20px;
  }
}
@media (max-width: 980px) {
  .bdpj-aktuality-wrap {
    padding: 0 30px;
  }

  .bdpj-aktuality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bdpj-aktuality-grid {
    grid-template-columns: 1fr;
  }

  .bdpj-aktualita-link {
    padding: 22px 20px 20px;
  }

  .bdpj-pagination {
    justify-content: flex-start;
  }
}

/* =========================================================
    Post type: Novinky
   ======================================================= */
.post.category-novinky {
  max-width: 920px;
  margin: 0 auto;
}

.post.category-novinky .et_pb_section {
  padding-top: 0;
}

.post.category-novinky .entry-title,
.post.category-novinky .et_pb_section_1 .et_pb_module .et_pb_text_inner h2 {
  font-size: 32px;
  font-weight: 800;
}

.post.category-novinky .et_pb_section_1 .et_pb_module .et_pb_text_inner h2 {
  font-size: 28px;
}
.ba_post_list_0 .dtq-post-list-content .dtq-post-list-title {
  line-height: 1.2 !important;
}

.post.category-novinky .et_pb_text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text);
}

/* wrapper další novinky */
.dtq-post-list-parent {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
}

/* jedna karta */
.dtq-post-list-child,
.ba_post_list_0 .dtq-post-list-parent .dtq-post-list-child {
  background: #eef3f4;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
  margin: 0 !important;
  list-style: none;
  width: 100%;
  max-width: 100%;
}

.dtq-post-list-child {
  padding: 0 !important;
}

.ba_post_list_0 {
  margin: 0 !important;
}

.dtq-post-list-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* odkaz uvnitř */
.dtq-post-list-child a {
  display: block;
  height: 100%;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* title */
.dtq-post-list-child .entry-title,
.dtq-post-list-child .post-title,
.dtq-post-list-child h2,
.dtq-post-list-child h3,
.dtq-post-list-child h4 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #111;
}

/* datum */
.dtq-post-list-child .post-meta,
.dtq-post-list-child .entry-meta,
.dtq-post-list-child .published,
.dtq-post-list-child .post-date {
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: #8b8f94;
}

/* excerpt */
.dtq-post-list-child .post-content,
.dtq-post-list-child .entry-summary,
.dtq-post-list-child p {
  font-size: 14px;
  line-height: 1.6;
  color: #5f6368;
}

@media (max-width: 980px) {
  .dtq-post-list-parent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dtq-post-list-parent {
    grid-template-columns: 1fr;
  }
}

/* wrapper navigace */
.et_pb_posts_nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e6ecee;
}

/* odkazy */
.et_pb_posts_nav .nav-next {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
}

.et_pb_posts_nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #19c7b3;
  transition: all 0.2s ease;
}

/* hover */
.et_pb_posts_nav a:hover {
  color: #0fa896;
}

/* label text */
.et_pb_posts_nav .nav-label {
  font-weight: 600;
}

/* =========================================================
    Page: Search
   ======================================================= */
/* základ stránky */
.bd-search-page {
  background: #fff;
}

/* vlastní kontejner místo Divi left-area */
.bd-search-container {
  width: 1360px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

/* zelený pruh */
.bd-search-hero {
  background: rgb(1, 205, 169);
  padding: 26px 0;
}

.bd-search-hero__title {
  margin: 0;
  color: #fff;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
}

/* obsah */
.bd-search-results-section {
  padding: 42px 0 60px;
}

.bd-search-results-intro {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

/* seznam pod sebou */
.bd-search-list {
  display: block;
}

.bd-search-list .post.category-novinky {
  max-width: 100%;
}

.bd-search-item {
  padding: 0 0 26px;
  margin: 0 0 26px;
  background: #eff5f7;
  border-radius: 4px;
  padding: 20px;
  /* border-bottom: 1px solid #e6ecee; */
}

.bd-search-item:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

/* nadpis výsledku */
.bd-search-item__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.bd-search-item__title a {
  color: #111;
  text-decoration: none;
}

.bd-search-item__title a:hover {
  color: #17cbb8;
}

/* meta */
.bd-search-item__meta {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #8b8f94;
}

.bd-search-item__sep {
  margin: 0 6px;
}

/* perex */
.bd-search-item__excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* pagination */
.bd-search-pagination {
  margin-top: 34px;
}

.bd-search-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 8px 0 0;
  padding: 0 12px;
  border: 1px solid #d9e1e3;
  border-radius: 4px;
  background: #fff;
  color: #444;
  text-decoration: none;
  font-weight: 600;
}

.bd-search-pagination .page-numbers.current {
  background: #17cbb8;
  border-color: #17cbb8;
  color: #fff;
}

/* prázdný stav */
.bd-search-empty {
  padding: 20px 0;
  font-size: 16px;
  color: #555;
}

/* vypnutí divi blog layoutu, pokud by se propisoval */
.search #content-area,
.search #left-area {
  width: 100%;
  float: none;
  margin: 0;
  padding: 0;
}

.search #sidebar {
  display: none;
}

.search #main-content .container:before {
  display: none;
}

/* responsive */
@media (min-width: 539px) and (max-width: 766px) {
  .et_pb_fullwidth_header_0
    .header-content-container
    .header-content
    .et_pb_button_two.et_pb_button {
    margin-left: 15px !important;
  }
}

@media (max-width: 980px) {
  .bd-search-hero__title {
    font-size: 46px;
  }

  .bd-search-item__title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .bd-search-container {
    max-width: calc(100% - 32px);
  }

  .bd-search-hero {
    padding: 40px 0;
  }

  .bd-search-hero__title {
    font-size: 34px;
  }

  .bd-search-results-section {
    padding: 30px 0 44px;
  }

  .bd-search-item__title {
    font-size: 22px;
  }
}
