body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
    padding-bottom: 64px;
}

/* Reset & base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    position: relative;
}

a, a:visited {
    text-decoration: underline;
    color: #C60000;
}

    a:hover, a:active, a:focus {
        text-decoration: underline;
        color: #683e3d;
        text-shadow: 0 2px 8px rgba(198,0,0,0.3); /* subtle red shadow */
    }

/* Header & navigation */
header {
    max-width: auto;
    margin: 0rem auto 0.5rem auto; /* Reduced bottom margin */
    padding-right: 0rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    header .logo {
        font-family: inherit;
        font-size: 1.5rem;
        font-weight: bold;
        text-align: right;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

.header-bottom-right {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.logo a {
    display: inline-block;
    width: 60%;
    height: 60%;
}

.logo img {
    display: inline-block;
    max-width: 75%;
    max-height: 75%;
    width: 75%;
    height: 75%;
    vertical-align: middle;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Page container */
.container {
    max-width: 1200px;
    min-width: 425px;
    margin: 0.5rem auto;
}

.container-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: .5rem;
}

.container-menu src
{

}

@media (max-width: 768px) {
    .navbar-nav-split {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5em;
    }

    .navbar-left,
    .navbar-right {
        justify-content: center;
        width: 100%;
        margin-bottom: 0.5em;
    }

}

/*    
    overflow: hidden; Optional: Hide overflowing text
    text-overflow: ellipsis; Optional: Add ellipsis (...) for overflowing text
*/
.navbar-left a:not(:has(img)) {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap; /* Prevent text wrapping */
    display: inline-block; /* Ensure proper spacing and alignment */
}

    .navbar-left a:hover:not(:has(img)) {
        background-color: #FBE7E7;
        color: #C60000;
    }

    .navbar-left img {
        max-width: 39px;
        max-height: 39px;
        object-fit: contain;
    }

    .navbar-left img:hover {
        border-color: #003366;
        box-shadow: 0 2px 8px rgba(198,0,0,0.15);
    }



.navbar-nav-split {
    display: flex;
    padding: 0rem 1rem;
    justify-content: space-between; /* Push .navbar-left to left, .navbar-right to right */
    align-items: center;
    width: 100%; /* Ensure full width */
}

.navbar-left {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start; /* Align links to the left within .navbar-left */
    flex: 1; /* Take up available space on the left */
}

.navbar-center {
    flex: 1;
    justify-content: center;
    list-style: none;
}

#eshop {
    color: #fff !important;
    background-color: #C60000;
    border-radius: 8px;
    padding: 2px 36px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(198,0,0,0.15);
    border: 2px solid #C60000;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-size: 1.1em;
    letter-spacing: 0.03em;
    text-shadow: none;
    white-space: nowrap;
    margin: 0 0.5em;
    display: inline-block;
}

    #eshop:hover, #eshop:focus {
        background-color: #fff;
        color: #C60000 !important;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(198,0,0,0.25);
        border-color: #C60000;
        text-decoration: none;
    }

    .eshop-cart-icon {
        width: 22px;
        height: 22px;
        vertical-align: middle;
        margin-right: 8px;
        transition: filter 0.2s;
    }

.navbar-right {
    display: flex;
    gap: 1rem;
    padding: 0;
    list-style: none;
    margin: 0;
    justify-content: flex-start;
}

#navigation-listbox {
    padding: 0.5rem 1rem;
    width: 250px; 
    height: 40px; 
    font-size: 1rem;
    font-family: inherit;
    border: 0px solid;
    background-color: #f5f5f5;
    color: #c60000;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

    #navigation-listbox:hover {
        border-color: #003366;
        box-shadow: 0 2px 8px rgba(198,0,0,0.15);
    }

    #navigation-listbox:focus {
        border: 2px solid #C60000;
        box-shadow: 0 0 8px rgba(198, 0, 0, 0.5); 
        outline: none; 
        background-color: #fff; 
    }

.info {
    display: block;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    background-color: rgba(198,0,0,0.1);
    padding: 1rem;
    min-width: 425px;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    text-align: center;
}

/* Kontakty section */
.contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5em;
    align-items: stretch;
}

@media (max-width: 768px) {
    .contacts {
        grid-template-columns: 1fr;
    }
}

.contact-dopravce,
.contact-objednavatel {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #004d99;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Obchodne Podmienky */
/* Menu*/
.obchodnePodmienky {
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
}

section.obchodnePodmienky {
    font-family: inherit;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
}

    section.obchodnePodmienky h1 {
        font-size: 32px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 20px;
    }
    section.obchodnePodmienky h3 {
        font-size: 16px;
        font-weight: bold;
        text-align: left;
        margin-bottom: 20px;
    }

    section.obchodnePodmienky strong {
        font-size: 18px;
        display: block;
        margin-bottom: 2em;
        font-weight: bold;
    }

    section.obchodnePodmienky p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    section.obchodnePodmienky ol {
        margin-bottom: 40px;
        margin-top: 20px;
        padding-left: 40px;
    }

    .obchodnePodmienky ol strong {
        font-weight: bold; 
        color: #333;
        font-size: 1em; 
        text-decoration: none;
        display: inline;
    }
        section.obchodnePodmienky ol li {
            font-size: 16px;
            margin-bottom: 0px;
        }

/* AccessibilityStatement Styles */
.AccessibilityStatement strong {
    font-weight: bold;
    color: #333; 
    font-size: 1em; 
    text-decoration: none;
    display: inline;
}

.AccessibilityStatement {
    font-family: inherit;
    font-size: 16px;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 1200px;
}

    .AccessibilityStatement h2, .AccessibilityStatement h3 {
        font-size: 28px;
        font-weight: bold;
        margin-top: 40px;
        margin-bottom: 10px;
    }

    .AccessibilityStatement p {
        margin-bottom: 20px;
    }

    .AccessibilityStatement ul {
        margin: 15px 0;
        padding-left: 20px;
    }

        .AccessibilityStatement ul li {
            margin-bottom: 10px;
        }

    .AccessibilityStatement a {
        color: #C60000;
        text-decoration: underline;
    }

        .AccessibilityStatement a:hover, .AccessibilityStatement a:focus {
            color: #683e3d;
            text-decoration: none;
        }



header nav {
    display: flex;
    align-items: center;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

    .contact-details-grid div {
        padding: 0.1rem 0;
    }

    .contact-details-grid-full-row {
        grid-column: 1 / span 2;
        margin-top: 1em;
        font-size: 0.95em;
        color: #555;
    }

/* TimeTables Section */
.bus-links {
    margin-top: 2em;
}

.bus-link {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2em;
}

.bus-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    margin-top: 4px;
}

.bus-link-content {
    flex: 1em;
}

.bus-link-header {
    background: rgba(198,0,0,0.15);
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 1.15em;
    margin-bottom: 0.5em;
}

.bus-link ul {
    margin: 0;
    padding-left: 20px;
    color: rgba(198,0,0,0.15);
    font-size: 1em;
}

/* HowItWorks Section */
.HowItWorks {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.HowItWorks {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Start content from the left */
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 20px 20px;
    font-family: inherit;
    background: #fff;
}

    .HowItWorks strong {
        font-weight: bold;
        margin-bottom: 24px;
    }

    .HowItWorks p {
        margin-bottom: 24px;
        color: #222;
        text-align: left;
        width: 100%;
    }

.howitworks-steps {
    margin: 40px auto;
    padding-left: 40px;
    max-width: 1200px;
}

    .howitworks-steps li {
        margin-bottom: 40px;
    }

    .howitworks-steps strong {
        font-weight: bold;
    }

.howitworks-img {
    display: block;
    margin: 32px auto;
    max-width: 100%;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
}

.icon-text {
    display: flex;
    align-items: center;
    margin: 24px 0;
    font-size: 1.2em;
}

.icon-img {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    object-fit: cover;
}

@media (max-width: 768px) {
    .HowItWorks {
        max-width: 98vw;
        padding: 0 5vw;
    }

    .howitworks-img {
        max-width: 100%;
    }
}

/* Footer */
footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 1200px;
    max-width: 100vw;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #777;
    z-index: 100;
    background: #fff;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, #fff 50%);
}
