/*
 * Madarsko Dialnicna Znamka - Main Stylesheet
 * Version: 1.0
 * Author: Roo
 * Website: https://madarsko-dialnicna-znamka.sk
 */

/* ===== GENERAL STYLES ===== */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #007A33;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005a25;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
}

.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.text-primary {
    color: #007A33 !important;
}

.text-secondary {
    color: #C8102E !important;
}

.bg-primary {
    background-color: #007A33 !important;
}

.bg-secondary {
    background-color: #C8102E !important;
}

.btn-primary {
    background-color: #007A33;
    border-color: #007A33;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #005a25;
    border-color: #005a25;
}

.btn-danger {
    background-color: #C8102E;
    border-color: #C8102E;
}

.btn-danger:hover, .btn-danger:focus {
    background-color: #a50d25;
    border-color: #a50d25;
}

/* ===== HEADER STYLES ===== */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 60px;
}

.header-contact a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.header-contact a:hover {
    color: #007A33;
}

.language-selector {
    font-weight: 500;
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .active > .nav-link {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
}
.nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Bootstrap dropdown customization - non-conflicting styles */
.navbar .dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-item {
    padding: 0.75rem 1.5rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #007A33;
}

/* Mobile-specific dropdown styles */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        background-color: rgba(0, 122, 51, 0.1) !important;
        border: none !important;
        box-shadow: none !important;
        margin-left: 1rem !important;
    }
    
    .navbar-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 0.5rem 1rem !important;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: rgba(0, 122, 51, 0.2) !important;
        color: #fff !important;
    }
}

/* ===== BREADCRUMBS STYLES ===== */
.breadcrumbs-container {
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    padding: 0.5rem 0;
    background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* ===== MAIN CONTENT STYLES ===== */
.main-content {
    padding: 3rem 0;
}

.page-title {
    margin-bottom: 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

.two-column-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.two-column-section .text-column,
.two-column-section .image-column {
    flex: 1;
    min-width: 300px;
}

.two-column-section .text-column {
    padding-right: 2rem;
}

.two-column-section .image-column img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget .card-header {
    font-weight: 600;
}

.card-header.bg-primary h5.mb-0 {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar-widget .list-group-item {
    padding: 0.75rem 1.25rem;
    border-left: none;
    border-right: none;
}

.sidebar-widget .list-group-item:first-child {
    border-top: none;
}

.sidebar-widget .list-group-item a {
    color: #333;
    display: block;
    text-decoration: none;
}

.sidebar-widget .list-group-item a:hover {
    color: #007A33;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* ===== PARALLAX SECTION STYLES ===== */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5rem 0;
    margin: 4rem 0;
    color: #fff;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.parallax-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.parallax-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.parallax-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

/* ===== CTA STYLES ===== */
.cta-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    margin: 3rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.cta-banner {
    padding: 2rem 0;
    background-color: #007A33;
    color: #fff;
    margin: 3rem 0;
}

.cta-widget {
    margin-bottom: 2rem;
}

/* ===== TABLE STYLES ===== */
.price-table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #dee2e6;
}

.price-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.price-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.price-table tr:hover {
    background-color: #f1f1f1;
}

.accordion-wrapper {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 2rem;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    border-bottom: none;
    overflow: hidden;
}

.accordion-item:last-child {
    border-bottom: 1px solid #dee2e6;
}

.accordion-header {
    padding: 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
}

.accordion-item.active .accordion-header {
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.accordion-item.active .accordion-content {
    padding: 1rem;
    opacity: 1;
    /* max-height ustawiane jest tylko przez JS */
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    color: #6c757d;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: #007A33;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-question {
    background-color: #e9ecef;
}

.faq-item.active .faq-answer {
    padding: 1rem;
    opacity: 1;
    /* max-height ustawi JavaScript */
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}


/* ===== FORM STYLES ===== */
.contact-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.form-control:focus {
    border-color: #007A33;
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 51, 0.25);
}

.form-check {
    margin-bottom: 1rem;
}

/* ===== FOOTER STYLES ===== */
.main-footer {
    background-color: #212529;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

.footer-bottom-links {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #007A33;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #005a25;
    color: #fff;
    text-decoration: none;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #343a40;
    color: #fff;
    padding: 1rem 0;
    z-index: 1050;
}

.cookie-consent p {
    margin-bottom: 0;
}

.cookie-consent a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent a:hover {
    color: #f8f9fa;
}

.cookie-accept {
    margin-right: 0.5rem;
}

/* ===== SUMMARY SECTION STYLES ===== */
.summary-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-point {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #007A33;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
}

.summary-content {
    flex-grow: 1;
}

.summary-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #212529;
    font-size: 1.25rem;
}

.summary-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* ===== PAYMENT METHOD STYLES ===== */
.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-method-icon {
    width: 60px;
    height: 60px;
    background-color: #007A33;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.payment-method-card h4 {
    margin-bottom: 0.5rem;
    color: #212529;
}

.payment-method-card p {
    margin-bottom: 0;
    color: #6c757d;
}

/* ===== PURCHASE STEPS STYLES ===== */
.purchase-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #007A33;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #212529;
}

.step-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* ===== BENEFIT CARD STYLES ===== */
.benefit-card {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #007A33;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
}

.benefit-content {
    flex-grow: 1;
}

.benefit-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #212529;
}

.benefit-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* ===== PRICE COMPARISON STYLES ===== */
.price-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-bar {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    min-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-bar:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 1.25rem;
    color: #007A33;
    font-weight: 700;
}

/* ===== FAQ CATEGORIES STYLES ===== */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.faq-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    width: calc(33.333% - 1rem);
    min-width: 150px;
}

.faq-category:hover {
    transform: translateY(-5px);
    background-color: #e9ecef;
    text-decoration: none;
}

.faq-category i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #007A33;
}

.faq-category span {
    font-weight: 500;
    color: #333;
}

/* Remove bullet points from specific lists */
.equipment-list li,
.traffic-rules-list li,
.advantages-list li,
.disadvantages-list li {
    list-style-type: none;
    padding-left: 0;
}

@media (max-width: 768px) {
    .faq-category {
        width: calc(50% - 0.75rem);
    }
}

@media (max-width: 576px) {
    .faq-categories {
        gap: 1rem;
    }
    
    .faq-category {
        width: 100%;
    }
}