/* ===== PODSTAWOWE USTAWIENIA ===== */
:root {
    --primary-color: #A60005;
    --secondary-color: #FFCC20;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

/* ===== TYPOGRAFIA ===== */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h5 {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--light-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-300);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 120px;
    min-width: 300px;
    height: auto;
    object-fit: contain;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item {
    font-size: 14px;
    color: var(--gray-600);
}

.contact-item i {
    color: var(--primary-color);
}

/* ===== GŁÓWNE MENU ===== */
.main-nav {
    background-color: var(--primary-color);
    min-height: 60px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav .navbar-nav {
    align-items: center;
}

.main-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

/* Ensure consistent behavior on touch devices */
@media (hover: none) and (pointer: coarse) {
    .main-nav .nav-link:active {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.main-nav .dropdown-toggle::after {
    color: #ffffff;
}

.main-nav .dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.main-nav .dropdown-toggle:hover,
.main-nav .dropdown-toggle:focus,
.main-nav .dropdown-toggle.show {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

/* Ensure consistent behavior on touch devices */
@media (hover: none) and (pointer: coarse) {
    .main-nav .dropdown-toggle:active {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* ===== MEGA MENU ===== */
.mega-dropdown {
    position: static;
}

.mega-dropdown .mega-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 2rem;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mega-dropdown .mega-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure hover works consistently */
.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 992px) {
    .mega-dropdown:hover .mega-menu {
        display: block !important;
    }
}

.mega-menu .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu .dropdown-item {
    padding: 8px 0;
    color: var(--dark-color);
    font-size: 14px;
    border: none;
    background: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    width: 100%;
    text-decoration: none;
}

.mega-menu .dropdown-item:hover,
.mega-menu .dropdown-item:focus,
.mega-menu .dropdown-item.active {
    background-color: var(--gray-100);
    color: var(--primary-color);
    text-decoration: none;
}

/* Ensure consistent behavior on touch devices */
@media (hover: none) and (pointer: coarse) {
    .mega-menu .dropdown-item:active {
        background-color: var(--gray-100);
        color: var(--primary-color);
    }
}

.mega-menu .dropdown-item img {
    width: 16px;
    height: 12px;
    object-fit: cover;
}

/* ===== PRZYCISKI ===== */
.btn {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    border-radius: 6px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #8a0004;
    border-color: #8a0004;
    color: #ffffff;
}

.btn-apply {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 600;
}

.btn-apply:hover {
    background-color: #e6b81c;
    border-color: #e6b81c;
    color: var(--dark-color);
}

.nav-apply-btn {
    margin-left: auto;
    padding: 10px 20px;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--dark-color);
}

/* ===== ANIMACJA PULSOWANIA ===== */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 204, 32, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 204, 32, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 204, 32, 0);
    }
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-nav {
    background-color: var(--gray-100);
    padding: 10px 0;
}

.breadcrumb {
    background: none;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* ===== SEKCJA HERO ===== */
/* Stare style zastąpione nowymi naprawkami na końcu pliku */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SEKCJE ===== */
.section {
    padding: 4rem 0;
}

.section-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.section.bg-light {
    background-color: var(--gray-100);
}

.section.bg-dark {
    background-color: var(--gray-900);
    color: var(--white);
}

/* ===== KAFELKI ===== */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tile h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.tile p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ===== ACCORDION ===== */
.accordion-item {
    border: 1px solid var(--gray-300);
    margin-bottom: 0.5rem;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--gray-100);
    color: var(--dark-color);
    font-weight: 500;
    padding: 1rem 1.25rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(166, 0, 5, 0.25);
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--white);
}

/* ===== KARTY ===== */
.card {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-300);
}

.card-body {
    padding: 1.25rem;
}

/* ===== LISTY ===== */
ul.list-styled {
    list-style: none;
    padding-left: 0;
}

ul.list-styled li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

ul.list-styled li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.list-numbered {
    counter-reset: item;
    padding-left: 0;
    list-style: none;
}

.list-numbered li {
    counter-increment: item;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 3rem;
}

.list-numbered li::before {
    content: counter(item);
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
}

/* ===== TABELE ===== */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-300);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--gray-100);
}

/* ===== OBRAZKI ===== */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-details .contact-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.contact-details .contact-item i {
    color: var(--secondary-color);
}

.company-info h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 0.25rem;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 2rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.cookies-notice {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.cookies-notice i {
    color: var(--secondary-color);
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 991.98px) {
    .mega-dropdown .mega-menu {
        position: static;
        width: 100%;
        transform: none;
        left: auto;
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 1rem;
    }
    
    .logo {
        max-height: 80px;
        min-width: 200px;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 2rem 0;
    }
    
    /* Responsywne style hero-section przeniesione do nowych naprawek */
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    /* Responsywne style hero-section przeniesione do nowych naprawek */
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .tile {
        padding: 1.5rem;
    }
    
    .tile-icon {
        font-size: 2.5em;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .breadcrumb-nav,
    .btn {
        display: none !important;
    }
    
    /* Print styles dla hero-section przeniesione do nowych naprawek */
}
/* ===== STEP NUMBER STYLES ===== */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 8px rgba(166, 0, 5, 0.2);
}
/* Usunięto konfliktowy styl - zastąpiony nowymi naprawkami */
.btn-outline-primary {
    background-color: #ffffff;
    border-color: #FF0008;
    color: #000000;
}

.btn-outline-primary:hover {
    background-color: #FF0008;
    border-color: #FF0008;
    color: #ffffff;
}

.coverage-header .fas {
  font-size: 3em;
  text-align: center;
  align-content: center;
  display: flex;
  justify-content: center;
}

.policy-header .fas {
  font-size: 3em;
  text-align: center;
  align-content: center;
  display: flex;
  justify-content: center;
}

.exclusion-item .fas {
  font-size: 3em;
  text-align: center;
  align-content: center;
  display: flex;
  justify-content: center;
}

i {
  text-align: center;
  align-content: center;
  display: flex;
  justify-content: center;
}

.coverage-header .fas, .policy-header .fas, .exclusion-item .fas, i {
  color: #FF0008;
}

.footer {
  margin-top: -20px;
}

.rounded-circle i {
  color: #fff !important;
}

.fw-bold.text-warning {
  color: #800 !important;
  font-size: 20px;
}

.feature-icon.mb-3 {
  font-size: 3em;
}

/* ===== NAPRAWKI HERO SECTION ===== */

/* Problem 1 & 3: Naprawka dla Hero Section - lepsze pozycjonowanie i z-index */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: auto;
    background: #FF6C70;
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden; /* Zapobiega wychodzeniu elementów poza sekcję */
    margin-bottom: 30px;
}

/* Dla hero z obrazem tła - nadpisuje domyślne tło */
.hero-section[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Overlay z wyższym z-index ale niższym niż treść */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Kontener z najwyższym z-index */
.hero-section .container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 15px;
}

/* Naprawka dla row w hero */
.hero-section .row {
    position: relative;
    z-index: 11;
    align-items: center;
    min-height: 300px;
}

/* Tekst w hero z najwyższym z-index */
.hero-section h1,
.hero-section .lead,
.hero-section .btn {
    position: relative;
    z-index: 12;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Problem 2: Naprawka dla obrazków w hero - zapobiega wychodzeniu poza sekcję */
.hero-section img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
    z-index: 5;
}

/* Dodatkowa ochrona dla kolumn w hero */
.hero-section .col-lg-4,
.hero-section .col-lg-6,
.hero-section .col-lg-8 {
    position: relative;
    z-index: 11;
    overflow: hidden; /* Zapobiega wychodzeniu treści */
}

/* Naprawka dla przycisków w hero - zachowaj oryginalne style Bootstrap */
.hero-section .btn {
    position: relative;
    z-index: 12;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none; /* Usuń text-shadow dla przycisków */
}

.hero-section .btn:hover {
    transform: translateY(-2px);
}

/* Zachowaj oryginalne kolory dla btn-warning */
.hero-section .btn-warning {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #000 !important;
}

.hero-section .btn-warning:hover {
    background-color: #e6b81c !important;
    border-color: #e6b81c !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(255, 204, 32, 0.4);
}

.hero-section .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

/* Responsywność dla hero section */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 350px;
        text-align: center;
    }
    
    .hero-section .col-lg-4,
    .hero-section .col-lg-6,
    .hero-section .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    .hero-section img {
        max-height: 250px;
        margin: 1rem auto;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 300px;
        padding: 1rem 0;
    }
    
    .hero-section .container {
        padding: 1rem 15px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section img {
        max-height: 200px;
    }
    
    .hero-section .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 250px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section img {
        max-height: 150px;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Naprawka dla konkretnego problemu z uganda-evisa-last-minute.php */
.hero-section.bg-primary {
    background-color: var(--primary-color) !important;
}

.hero-section.bg-primary::before {
    background: rgba(0, 0, 0, 0.3); /* Lżejszy overlay dla kolorowego tła */
}

/* Dodatkowa ochrona przed overflow */
.hero-section * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Naprawka dla flexbox w hero */
.hero-section .d-flex {
    position: relative;
    z-index: 12;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
    .hero-section .d-flex {
        justify-content: center;
    }
}

/* Print styles dla hero-section */
@media print {
    .hero-section {
        height: auto !important;
        min-height: auto !important;
        background: none !important;
        color: var(--dark-color) !important;
        page-break-inside: avoid;
    }
    
    .hero-section::before {
        display: none !important;
    }
    
    .hero-section .btn {
        display: none !important;
    }
    
    .hero-section img {
        max-height: 200px !important;
        page-break-inside: avoid;
    }
}

.faq-section{
    padding: 50px 0px;
    margin: 50px 0px 0px 20px;
}
.cta-section{
    padding: 50px 0px 0px 0px;
    margin: 0px 0px 80px 0px;
}

/* ===== SIDEBAR RELATED PAGES ===== */
.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.sidebar-widget h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.related-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.related-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(166, 0, 5, 0.1), transparent);
    transition: left 0.5s ease;
}

.related-link:hover::before {
    left: 100%;
}

.related-link:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 0, 5, 0.15);
    text-decoration: none;
    color: var(--primary-color);
}

.related-link i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.related-link:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.related-link span {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-link:hover span {
    color: var(--primary-color);
}

/* Animacja dla ikon */
.related-link i.fa-heartbeat:hover {
    animation: heartbeat 1s ease-in-out infinite;
}

.related-link i.fa-syringe:hover {
    animation: bounce 0.6s ease-in-out infinite alternate;
}

.related-link i.fa-list-check:hover {
    animation: checkmark 0.8s ease-in-out infinite;
}

.related-link i.fa-file-alt:hover {
    animation: shake 0.5s ease-in-out infinite;
}

.related-link i.fa-upload:hover {
    animation: upload 1s ease-in-out infinite;
}

.related-link i.fa-dollar-sign:hover {
    animation: coin-flip 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

@keyframes checkmark {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes upload {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes coin-flip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* Responsywność dla sidebar */
@media (max-width: 991.98px) {
    .sidebar-widget {
        margin-bottom: 3rem;
    }
    
    .related-links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .related-links {
        grid-template-columns: 1fr;
    }
    
    .related-link {
        padding: 0.875rem;
    }
    
    .related-link i {
        font-size: 1.1rem;
        margin-right: 0.625rem;
    }
    
    .related-link span {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .sidebar-widget {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .related-link {
        padding: 0.75rem;
    }
}

/* ===== SIDEBAR CONTACT DETAILS FIX ===== */
/* Nadpisanie stylów contact-details dla sidebaru */
.sidebar-widget .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-widget .contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    color: var(--dark-color) !important; /* Nadpisanie białej czcionki z footera */
    font-size: 14px;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-widget .contact-details .contact-item:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.sidebar-widget .contact-details .contact-item i {
    color: var(--primary-color) !important;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.sidebar-widget .contact-details .contact-item div {
    flex: 1;
}

.sidebar-widget .contact-details .contact-item strong {
    color: var(--dark-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.sidebar-widget .contact-details .contact-item p {
    color: var(--gray-600) !important;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Dodatkowe style dla innych elementów sidebaru */
.sidebar-widget .support-channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-widget .channel-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-widget .channel-item:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.sidebar-widget .channel-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.sidebar-widget .channel-content h5 {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.sidebar-widget .channel-content p {
    color: var(--gray-600);
    margin: 0 0 0.25rem 0;
    font-size: 13px;
}

.sidebar-widget .response-time {
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.sidebar-widget .info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-widget .info-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: 6px;
    color: var(--dark-color);
    font-size: 14px;
}

.sidebar-widget .info-item i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.sidebar-widget .checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-widget .form-check {
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.sidebar-widget .form-check:hover {
    background: var(--gray-200);
}

.sidebar-widget .form-check-label {
    color: var(--dark-color);
    font-size: 14px;
    cursor: pointer;
}

.sidebar-widget .contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===== FAZA 1: GLOBALNE POPRAWKI CSS ===== */

/* Naprawa niewidocznych ikon FontAwesome */
.bg-opacity-10 i.fas {
    color: #333 !important;
    font-size: 2rem;
    display: inline-block;
}

/* Poprawki dla różnych kolorów tła */
.bg-success.bg-opacity-10 i.fas { color: #198754 !important; }
.bg-warning.bg-opacity-10 i.fas { color: #ffc107 !important; }
.bg-danger.bg-opacity-10 i.fas { color: #dc3545 !important; }
.bg-info.bg-opacity-10 i.fas { color: #0dcaf0 !important; }
.bg-primary.bg-opacity-10 i.fas { color: #0d6efd !important; }

/* Standardyzacja step-number */
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    color: #fff;
}

/* Poprawki dla niewidocznego tekstu */
.text-primary { color: #0d6efd !important; }
.contact-details div { color: #333 !important; }
.contact-details p { color: #666 !important; }

/* Dodatkowe poprawki dla ikon FontAwesome */
i.fas, i.far, i.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
    display: inline-block;
}

/* Fallback dla ikon które nie ładują się */
.fas::before, .far::before, .fab::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Poprawki dla ikon w różnych kontekstach */
.feature-icon i.fas,
.service-icon i.fas,
.benefit-icon i.fas {
    color: var(--primary-color) !important;
    font-size: 2.5rem;
    display: block;
    text-align: center;
}

/* Poprawki dla ikon w kafelkach */
.tile i.fas,
.card i.fas {
    color: var(--primary-color) !important;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Poprawki dla ikon w listach */
.list-item i.fas,
.check-item i.fas {
    color: var(--primary-color) !important;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Poprawki dla przycisków z ikonami */
.btn i.fas {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Poprawki dla ikon w nagłówkach */
h1 i.fas, h2 i.fas, h3 i.fas, h4 i.fas, h5 i.fas, h6 i.fas {
    color: var(--primary-color) !important;
    margin-right: 0.75rem;
}

/* Poprawki dla step-number - nadpisanie poprzednich stylów */
.step-number {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    color: #fff !important;
    background-color: var(--primary-color) !important;
    margin: 0 auto 1rem auto !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    text-align: center !important;
}

/* Poprawki dla różnych wariantów step-number */
.step-number.bg-primary { background-color: var(--primary-color) !important; }
.step-number.bg-secondary { background-color: var(--secondary-color) !important; color: #000 !important; }
.step-number.bg-success { background-color: #198754 !important; }
.step-number.bg-warning { background-color: #ffc107 !important; color: #000 !important; }
.step-number.bg-danger { background-color: #dc3545 !important; }
.step-number.bg-info { background-color: #0dcaf0 !important; color: #000 !important; }

/* Poprawki dla kontenerów z ikonami */
.icon-container,
.feature-box,
.service-box {
    text-align: center;
}

.icon-container i.fas,
.feature-box i.fas,
.service-box i.fas {
    color: var(--primary-color) !important;
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

/* Poprawki dla responsywności ikon */
@media (max-width: 767.98px) {
    .bg-opacity-10 i.fas {
        font-size: 1.5rem;
    }
    
    .feature-icon i.fas,
    .service-icon i.fas,
    .benefit-icon i.fas {
        font-size: 2rem;
    }
    
    .icon-container i.fas,
    .feature-box i.fas,
    .service-box i.fas {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .bg-opacity-10 i.fas {
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
}

/* ===== FAZA 3: NAPRAWA AKORDEONÓW I ELEMENTÓW INTERAKTYWNYCH ===== */

/* Naprawa strzałek w akordeonach */
.accordion-button::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.2s ease-in-out;
    font-size: 1rem;
    color: inherit;
}

.accordion-button.collapsed::after {
    transform: rotate(-90deg);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(0deg);
}

/* Dodatkowe style dla lepszej widoczności strzałek */
.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--dark-color);
    text-align: left;
    background-color: var(--gray-100);
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: var(--primary-color);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed)::after {
    color: #ffffff;
}

.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: '\f107';
    background-image: none;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-button:hover {
    z-index: 2;
}

.accordion-button:focus {
    z-index: 3;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Naprawa dla step-number w akordeonach */
.accordion-button .step-number {
    margin-right: 1rem;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Responsywność dla akordeonów */
@media (max-width: 767.98px) {
    .accordion-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-button .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    .accordion-button::after {
        width: 1rem;
        height: 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .accordion-button {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .accordion-button .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
}

/* ===== HERO SECTION BACKGROUNDS ===== */
/* Hero section backgrounds */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../img/uganda-visa-hero-bg.jpg') center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

/* Specific hero backgrounds for different pages */
.hero-section[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}