* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1e293b;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header with search */
.header {
    background-color: #ffffff;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: block;
}

.logo img {
    height: 60px;
    width: auto;
}
	
.logo-text {
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: white;
    display: inline-block;
    background-color: #23a499;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #23a499;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: #23a499;
}

/* Navigation */
.nav {
    background-color: #23a499;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
}

.nav-item:last-child {
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.intro-text p {
    margin: 0;
    color: #334155;
    line-height: 1.65;
    font-size: 16px;
}

.intro-text a {
    color: #23a499;
    text-decoration: none;
}

.intro-text a:hover {
    text-decoration: underline;
}

.section-title {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background-color: #23a499;
    color: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.card:hover {
    background-color: #1e8b81;
    color: #ffffff;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Table */
.table-container {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    background-color: #23a499;
    color: #ffffff;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1e8b81;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.detail-link {
    color: #23a499;
    text-decoration: none;
    font-weight: 500;
}

.detail-link:hover {
    text-decoration: underline;
}

/* Detail table */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.detail-table th {
    background-color: #23a499;
    color: #ffffff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #1e8b81;
}

.detail-table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: top;
}

.detail-table td:first-child {
    background-color: #f8fafc;
    font-weight: 500;
    width: 30%;
}

.detail-table td:last-child {
    width: 70%;
}

.detail-table p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.detail-table ul {
    margin: 0;
    padding-left: 20px;
}

.detail-table ol {
    margin: 0;
    padding-left: 20px;
}

.detail-table li {
    margin-bottom: 5px;
}

.detail-table a {
    color: #23a499;
    text-decoration: none;
}

.detail-table a:hover {
    text-decoration: underline;
}

.download-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.download-section h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.download-section p {
    color: #334155;
    margin: 0;
}

.share-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.share-section h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.share-section pre {
    background-color: #f8fafc;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    margin: 0;
    overflow-x: auto;
}

/* Rozcestník */
.rozcestnik-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.rozcestnik-section h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-primary {
    color: #084298;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alphabet-links {
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.alphabet-links a {
    color: #23a499;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.alphabet-links a:hover {
    background-color: #f0f9ff;
    text-decoration: underline;
}

.all-entries-section h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.all-entries-link {
    color: #23a499;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.all-entries-link:hover {
    text-decoration: underline;
}

/* Search form */
.search-form-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.search-form-section h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-horizontal {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.control-label {
    color: #334155;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    max-width: 500px;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #23a499;
    box-shadow: 0 0 0 3px rgba(35, 164, 153, 0.1);
}

.form-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
    display: block;
}

.submit-btn {
    background-color: #23a499;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #1e8b81;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #23a499;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #23a499;
}

/* Mobile Responsive */
@media (max-width: 921px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-link {
        padding: 12px 20px;
    }
    
    .content {
        padding: 0 16px;
    }
}

@media (max-width: 544px) {
    .header {
        min-height: auto;
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 60px;
    }
}	


/* ===============================
   OpenScience.cz visual overrides
   (from template/heslo-menu-adjusted.html)
   Keep HTML unchanged; override styles here
   =============================== */

/* Brand variables */
:root {
    --wp--preset--color--ntk-primary: #24a398;
    --wp--preset--color--ntk-accent: #2BC4B6;
    --wp--preset--color--ntk-base-blue: #24a398;
    --wp--preset--color--ntk-black: #000000;
    --table-border: #e8e8e8;
    --table-hover: #f9f9f9;
}

/* Fonts: Univers family */
@font-face {
    font-family: univers-light;
    font-style: normal;
    font-weight: 300;
    src: local("Univers"), url(https://fonts.cdnfonts.com/s/38968/UniversLight.woff) format("woff");
}
@font-face {
    font-family: univers-regular;
    font-style: normal;
    font-weight: 400;
    src: local("Univers"), url(https://fonts.cdnfonts.com/s/38968/UniversRegular.woff) format("woff");
}
@font-face {
    font-family: univers-bold;
    font-style: normal;
    font-weight: 700;
    src: local("Univers"), url(https://fonts.cdnfonts.com/s/38968/UniversBold.woff) format("woff");
}

/* Base typography and background */
html { font-family: "Univers-regular", Arial, sans-serif; }
body, button, input, select, textarea { font-family: "Univers-regular", Arial, sans-serif; }
body {
    color: var(--wp--preset--color--ntk-black);
    background-color: #ffffff;
    background-image: url("bg.png");
    background-position: center top;
    background-repeat: repeat;
    background-attachment: scroll;
}

h1, h2, h3, h4, h5, h6 { font-family: "Univers-regular", Arial, sans-serif; font-weight: 600; }
h2 { color: var(--wp--preset--color--ntk-black); }

/* Containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background-color: transparent; border: none; padding: 20px 0; }
.header .container { background-color: #ffffff; padding: 10px 20px; }
.header .header-content { display: flex; align-items: center; justify-content: space-between; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo-text {
    font-family: "Univers-regular", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Navigation */
.nav { background-color: transparent; width: 100%; padding: 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; justify-content: flex-start; background-color: var(--wp--preset--color--ntk-primary); }
.nav-item { position: relative; }
.nav-link {
    display: block;
    padding: 14px 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    font-family: "univers-bold", sans-serif;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}
.nav-link:hover { background-color: var(--wp--preset--color--ntk-accent); color: #ffffff; }

/* Main area */
.main { min-height: calc(100vh - 200px); padding: 20px 0; background: transparent; }
.content { background-color: #ffffff; border-radius: 0; box-shadow: none; padding: 40px 20px; margin: 0 auto; max-width: 1200px; }
.section-title { color: var(--wp--preset--color--ntk-black); font-size: 1.8rem; font-weight: 600; margin-bottom: 30px; font-family: "Univers-regular", sans-serif; }

/* Detail and list containers */
.table-container { margin-bottom: 25px; overflow-x: auto; border-radius: 6px; border: 1px solid var(--table-border); background-color: #ffffff; }

/* Detail table styling */
.detail-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; }
.detail-table th {
    background-color: var(--wp--preset--color--ntk-primary);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}
.detail-table td { padding: 18px 20px; border: none; border-bottom: 1px solid var(--table-border); vertical-align: top; background-color: #ffffff; transition: background-color 0.2s ease; }
.detail-table tr:hover td { background-color: var(--table-hover); }
.detail-table tr:last-child td { border-bottom: none; }
.detail-table td:first-child { font-weight: 500; color: #555; width: 120px; min-width: 120px; background: none; }
.detail-table a { color: var(--wp--preset--color--ntk-accent); text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.detail-table a:hover { color: #1a9088; text-decoration: underline; }
.detail-table td p { margin: 8px 0; line-height: 1.6; color: #000000; font-family: "Univers-regular", sans-serif; }
.detail-table ul { margin: 8px 0; padding-left: 0; list-style: none; }
.detail-table li { margin: 4px 0; padding-left: 0; }
.detail-table li:before { content: "•"; color: var(--wp--preset--color--ntk-accent); font-weight: bold; margin-right: 8px; }

/* Download and share sections */
.download-section, .share-section { margin-bottom: 25px; padding: 20px; background-color: transparent; border-radius: 0; box-shadow: none; }
.download-section h3, .share-section h3 { color: var(--wp--preset--color--ntk-black); margin-bottom: 15px; font-size: 1.2rem; font-family: "Univers-regular", sans-serif; }
.download-section ul { list-style: none; padding: 0; display: flex; gap: 15px; flex-wrap: wrap; }
.download-section li { background-color: var(--wp--preset--color--ntk-primary); border-radius: 4px; }
.download-section a { display: block; padding: 8px 15px; color: white; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; }
.download-section a:hover { background-color: var(--wp--preset--color--ntk-accent); }
.share-section pre { background-color: white; padding: 10px; border-radius: 4px; border: 1px solid #e0e0e0; overflow-x: auto; font-family: monospace; margin: 0; }

/* Footer */
.footer {
  background: #f8f9fa url("footer.png") repeat left top;
  padding: 40px 0;
  margin-top: 50px;
  border-top: 1px solid #e0e0e0;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.footer-section h3 { color: var(--wp--preset--color--ntk-black); margin-bottom: 15px; font-size: 1.1rem; }

/* Force all headings to black to match requirement */
h1, h2, h3, h4, h5, h6 { color: var(--wp--preset--color--ntk-black); }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: #666; text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: var(--wp--preset--color--ntk-accent); }

/* Responsive */
@media (max-width: 921px) {
  .header .header-content { flex-direction: column; gap: 20px; }
  .nav-menu { flex-direction: column; width: 100%; }
  .nav-link { text-align: center; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; color: #ffffff; }
  .content { padding: 30px 20px; margin: 1em 0; }
  .section-title { font-size: 24px; }
}
@media (max-width: 768px) {
  .container { padding: 0 15px; }
  .logo-text { font-size: 20px; }
  .nav-link { font-size: 14px; padding: 10px 16px; }
  .detail-table td:first-child { width: auto; min-width: auto; }
  .download-section ul { flex-direction: column; }
}
@media (max-width: 544px) {
  .header { min-height: auto; padding: 20px 0; }
  .container { padding: 0 15px; }
}

/* List table (Bootstrap .table) themed like template */
.table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.table thead th, .table th {
  background-color: var(--wp--preset--color--ntk-primary);
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}
.table td { padding: 18px 20px; border: none; border-bottom: 1px solid var(--table-border); color: #000; }
.table tbody tr:hover td { background-color: var(--table-hover); }
.table tbody tr:last-child td { border-bottom: none; }
/* neutralize Bootstrap striped background to match template */
.table.table-striped tbody tr:nth-of-type(odd) { background-color: transparent; }
