/* ======================================================================
   Tmavý / Boxový layout pre PackMedical web
   ====================================================================== */

/* --- Globálne nastavenia a Dark Mode --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #121212; 
    color: #e0e0e0; 
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff; 
    line-height: 1.3;
}

a {
    color: #4dabf7; 
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    padding-left: 20px;
}

/* --- Boxový Layout a Hlavný Kontajner --- */
.site-wrapper {
    max-width: 1400px;
    margin: 2rem auto;
    background-color: #1e1e1e; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 
    border-radius: 8px;
    overflow: hidden;
}


/* --- Hlavička a Pätička --- */
.header, .footer {
    background-color: #2a2a2a; 
    padding: 1.5em 1em;
    text-align: center;
    border-color: #333; 
}

.header {
    border-bottom: 1px solid #333;
}

.footer {
    border-top: 1px solid #333;
    margin-top: 0;
    color: #888;
}

.header h1 a {
    color: inherit;
    text-decoration: none;
}


/* --- Layout obsahu --- */
.container {
    display: flex;
    padding: 2em 1.5em; 
}

.main-content {
    flex: 3;
    padding-right: 2em;
}

.sidebar {
    flex: 1;
    padding-left: 2em;
    border-left: 1px solid #333; 
}


/* --- Špecifické komponenty --- */

.hero-image-standalone {
    display: block;
    width: 912px;
    max-width: 100%; 
    height: auto; 
    margin: 0 auto 2rem auto;
    border-radius: 6px;
}

.main-content > section {
    max-width: 912px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-body { padding: 1.25rem; flex-grow: 1; }
.card-footer { padding: 0.75rem 1.25rem; background-color: #333; border-top: 1px solid #444; }

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary { border: 1px solid #4dabf7; color: #4dabf7; }
.btn-outline-primary:hover { background-color: #4dabf7; color: #121212; text-decoration: none; }

.sidebar-widget { margin-bottom: 2rem; }
.sidebar-widget h3 { border-bottom: 1px solid #444; padding-bottom: 0.5em; font-size: 1.1rem; }
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { margin-bottom: 0.5em; }
.sidebar-widget.toc ul ul { padding-left: 1em; margin-top: 0.5em; }

.bg-light {
    background-color: #252525;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-radius: 6px;
    border: 1px solid #333;
}

.testimonial-card .card-body { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.testimonial-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #444; margin-bottom: 1.5rem; object-fit: contain; }
.testimonial-text { font-style: italic; color: #ccc; flex-grow: 1; }
.testimonial-source { text-align: center; font-weight: bold; color: #aaa; margin: 0; }

.accordion-item { border: 1px solid #444; border-radius: 6px; margin-bottom: 0.5rem; background-color: #2a2a2a; }
.accordion-item[open] { background-color: #333; }
.accordion-header { display: block; width: 100%; padding: 1rem 1.25rem; cursor: pointer; font-weight: bold; color: #fff; position: relative; }
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; transition: transform 0.2s ease-in-out; }
.accordion-item[open] .accordion-header::after { content: '−'; }
.accordion-body { padding: 0 1.25rem 1.25rem 1.25rem; color: #ccc; border-top: 1px solid #444; }
.accordion-body p { margin: 0; }

.lead { font-size: 1.25rem; font-weight: 300; color: #ccc; }
.text-center { text-align: center; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-md-4, .col-md-6 { padding: 0 15px; box-sizing: border-box; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.img-fluid { max-width: 100%; height: auto; }
.h-100 { height: 100%; }

/* ======================================================================
   Responzívne štýly (pre mobilné zariadenia a tablety)
   ====================================================================== */

@media (max-width: 992px) {
    /* Na menších obrazovkách zrušíme boxový layout a roztiahneme stránku na celú šírku */
    .site-wrapper {
        margin: 0;
        border-radius: 0;
        max-width: 100%;
    }

    /* Usporiadame hlavný obsah a sidebar pod seba */
    .container {
        flex-direction: column;
        padding: 1em;
    }

    .main-content {
        padding-right: 0;
    }

    .sidebar {
        padding-left: 0;
        border-left: none;
        margin-top: 2rem;
        border-top: 1px solid #333;
        padding-top: 2rem;
    }

    /* Usporiadame stĺpce v .row pod seba */
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-md-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}