:root {
    --dl-color-theme-primary1: #bf4408;
    --dl-color-theme-primary2: #e65103;
    --dl-color-theme-neutral-light: #fbfaf9;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    color: #333;
    font-family: 'Noto Sans', sans-serif;
}

/* Globální styling pro seznamy */
ul, ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Pokud je seznam uvnitř col-* */
[class*="col-"] ul,
[class*="col-"] ol {
    padding-left: 1.5rem;
}

.main-content {
    flex: 1;
}

section {
    padding: 3rem 0;
}

.section-alt {
    background-color: var(--dl-color-theme-neutral-light);
}

.section-title {
    font-size: 3.0em;
    color: #333;
    margin-bottom: 3rem;
}

.section-title,
.text-block-title {
    font-family: 'STIX Two Text', serif;
    font-weight: 700;
}

.text-block-title {
    margin-top: 1rem;
}

.section-description {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.text-align-center {
    text-align: center
}

/* Základní typografie */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--dl-color-theme-primary2);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--dl-color-theme-primary1);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    /* Menší padding pro menší výšku a šířku */
    border-radius: 50px;
    /* Větší zaoblení rohů pro "pilulkový" tvar */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: none;
}

.button-group-row {
    gap: 0;
}

/* Styl pro primární tlačítka (ponecháváme) */
.btn-primary {
    background-color: var(--dl-color-theme-primary1);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--dl-color-theme-primary2);
    color: #fff;
}

/* Responzivní úpravy pro menší nadpisy a odsazení na mobilu */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 2.5em;
    }

    .section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .research-section {
        padding: 50px 0;
    }

    /* Přidáme mezeru pod tlačítky na mobilu, aby se oddělily */
    .button-row .col-12+.col-12 {
        margin-top: 15px;
    }
}

/* Border radius */
.rounded {
    border-radius: 0.25rem !important;
}

.rounded-sm {
    border-radius: 0.125rem !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.rounded-0 {
    border-radius: 0 !important;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-none {
    box-shadow: none !important;
}

/* Přístupnost */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus outline pro přístupnost */
*:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Skrývání obsahu pouze pro screen readery */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.collapsible-content {
    max-height: 48px;
    overflow: hidden;
    position: relative;
}

.collapsible-content.is-expanded {
    max-height: 500px;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.collapsible-content:not(.is-expanded) {
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

@media (max-width: 767px) {

    .footer .col-12.text-left,
    .footer .col-12.text-right {
        text-align: center !important;
    }
}

/* INDEX - PRODUCT LIST */
.products-section .row {
    row-gap: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover .product-link-footer {
    background-color: var(--dl-color-theme-primary1);
    color: #ffffff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card .product-image-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}

.product-card .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .product-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: auto;
}

.product-card .product-link-footer {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    background-color: transparent;
    color: var(--dl-color-theme-primary1);
    text-decoration: none;
    font-weight: bold;
    border-top: 1px solid #eee;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-card .product-title {
    font-family: 'STIX Two Text', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.product-card .product-link {
    color: var(--dl-color-theme-primary1);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    align-self: center;
}

.product-card .product-link:hover {
    color: var(--dl-color-theme-primary2);
}

/* PRODUCTS - PRODUCT LIST */
.product-list .product-item {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.product-list .product-title {
    font-family: 'STIX Two Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dl-color-theme-primary1);
    margin-bottom: 1.5rem;
}

.product-list .product-layout {
    display: block;
}

.product-list .product-image-wrapper {
    margin-bottom: 1.5rem;
}

.product-list .product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.product-list .product-highlight {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.product-list .product-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-list .product-price {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

@media (min-width: 768px) {
    .product-list .product-layout {
        display: flex;
        gap: 2rem;
    }
    
    .product-list .product-image-wrapper {
        flex: 0 0 30%;
        margin-bottom: 0;
    }
    
    .product-list .product-content {
        flex: 1;
    }
}

/* NEWS */
.news-section {
    padding: 3rem 0;
}

.news-section .news-item {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.news-section .news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-section .news-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-section .news-title {
    font-family: 'STIX Two Text', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-section .news-perex {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-section .news-text {
    color: #666;
    line-height: 1.7;
}

.news-section .news-text p {
    margin-bottom: 1rem;
}

.news-section .news-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .news-section .news-title {
        font-size: 1.5rem;
    }
    
    .news-section .news-perex {
        font-size: 1rem;
    }
    
    .news-section .news-item {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}

/* ARTICLES */
.articles-section {
    padding: 3rem 0;
}

.articles-section .article-item {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.articles-section .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.articles-section .article-title {
    font-family: 'STIX Two Text', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.articles-section .article-perex {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.articles-section .article-link {
    display: inline-block;
    color: var(--dl-color-theme-primary2);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.articles-section .article-link:hover {
    color: var(--dl-color-theme-primary1);
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .articles-section .article-title {
        font-size: 1.5rem;
    }
    
    .articles-section .article-perex {
        font-size: 1rem;
    }
    
    .articles-section .article-item {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}

/* FOOTER */
.footer {
    background-color: #f8f9fa;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
    font-size: 0.9em;
}

.footer p {
    margin: 0;
    color: #6c757d;
}
