/* Base Styles */
:root {
    --primary-color: #6a8d3f; /* Green from the logo */
    --secondary-color: #ff9e1b; /* Orange from the logo */
    --accent-color: #e74c3c; /* Bright red accent */
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --link-color: #2980b9;
    --footer-color: #2c3e50;
    --gray-light: #e9ecef;
    --transition-speed: 0.3s;
    
    /* Accessibility variables */
    --font-size-base: 16px;
    --font-size-large: 18px;
    --font-size-xl: 20px;
    --contrast-bg: #000;
    --contrast-text: #fff;
    --contrast-link: #ffff00;

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: var(--font-size-base);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Text Size Controls */
body.large-text {
    font-size: 18px;
}

body.extra-large-text {
    font-size: 20px;
}

body.large-text .h1, body.large-text h1 {
    font-size: 2.8rem;
}

body.large-text .h2, body.large-text h2 {
    font-size: 2.4rem;
}

body.extra-large-text .h1, body.extra-large-text h1 {
    font-size: 3rem;
}

body.extra-large-text .h2, body.extra-large-text h2 {
    font-size: 2.6rem;
}

/* High Contrast Mode */
body.high-contrast {
    background-color: #000;
    color: #fff;
}

body.high-contrast a,
body.high-contrast .btn,
body.high-contrast .navbar-dark .navbar-nav .nav-link {
    color: #ffff00 !important;
}

body.high-contrast .card,
body.high-contrast .navbar,
body.high-contrast footer,
body.high-contrast .dropdown-menu {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* Skip Link for Accessibility */
.skip-link {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 10px;
    position: absolute;
    transform: translateY(-200%);
    transition: transform 0.3s;
    z-index: 1070;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header and Navigation */
#header {
    margin-bottom: 30px;
}

.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 800;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: all var(--transition-speed);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.8rem 1rem;
    transition: all var(--transition-speed);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border-radius: 0.25rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--primary-color);
    color: white;
}

.accessibility-toggle {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    transition: all var(--transition-speed);
}

.accessibility-toggle:hover,
.accessibility-toggle:focus {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Hero Banner */
.hero-banner {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.111);
    border-radius: 0.5rem;
    padding: 1.5rem;
    bottom: 2rem;
}

.carousel-caption h0,
.carousel-caption h2 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Main Content */
.section-heading {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all var(--transition-speed);
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--primary-color);
    border-bottom: none;
    color: white;
    font-weight: 700;
}

.card-title {
    font-weight: 700;
    color: var(--primary-color);
}

.card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.card-title a:hover,
.card-title a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all var(--transition-speed);
    border-radius: 0.25rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
}

/* Calendar Events */
.list-group-item {
    transition: all var(--transition-speed);
}

.list-group-item:hover {
    background-color: var(--gray-light);
}

/* Footer */
#footer {
    background-color: var(--footer-color);
    color: white;
    padding: 3rem 0 1rem;
}

#footer h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

#footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background-color: var(--secondary-color);
}

#footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed);
    text-decoration: none;
}

#footer a:hover,
#footer a:focus {
    color: white;
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: all var(--transition-speed);
}

.social-icons a:hover,
.social-icons a:focus {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-consent.show {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .carousel-item {
        height: 300px;
    }
    
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption {
        bottom: 1rem;
        padding: 1rem;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
}

/* High-contrast focus outline for improved accessibility */
a:focus, 
button:focus, 
input:focus, 
select:focus, 
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

body.high-contrast a:focus, 
body.high-contrast button:focus, 
body.high-contrast input:focus, 
body.high-contrast select:focus, 
body.high-contrast textarea:focus {
    outline: 2px solid var(--contrast-link);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar, 
    .cookie-consent, 
    .back-to-top, 
    .social-icons,
    .carousel-control-prev,
    .carousel-control-next,
    .btn {
        display: none !important;
    }
    
    body {
        background-color: white;
        font-size: 12pt;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    #footer {
        background-color: white;
        color: black;
        padding: 1rem 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .card-header {
        background-color: #eee;
        color: black;
    }
}

/* Bip Specials*/
    .bip-header {
        background-color: #f8f9fa;
        border-bottom: 3px solid #6a8d3f;
        padding: 15px 0;
        margin-bottom: 30px;
    }

    .bip-logo {
        max-height: 70px;
        margin-right: 15px;
    }

    .section-container {
        margin-bottom: 2rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .section-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem 1.25rem;
        font-weight: 700;
    }

    .section-content {
        padding: 1.25rem;
    }

    .table-bip th {
        background-color: #f8f9fa;
    }
}

/* temp/assets/css/style.css */

/* Dodaj na końcu pliku lub w odpowiedniej sekcji */

/* Stylizacja tabeli wydarzeń */
.events-table {
    margin-top: 20px;
    /* Odstęp od góry */
    font-size: 0.9rem;
    /* Możesz dostosować rozmiar czcionki w tabeli */
    /* word-break: break-word; */
    /* Opcjonalnie, aby zapobiec rozpychaniu przez długie słowa */
}

.events-table th {
    /* Możesz dostosować styl nagłówków tabeli, jeśli domyślne z Bootstrapa nie pasują */
    /* background-color: var(--primary-color); */
    /* Przykład użycia zmiennej z Twojego CSS */
    /* color: white; */
    font-weight: 600;
    /* Pogrubienie nagłówków */
}

.events-table td {
    vertical-align: middle;
    /* Wyrównanie zawartości komórek w pionie */
}

/* Komunikaty ładowania/błędu/braku wydarzeń (jeśli nie masz już podobnych) */
.events-loading-message,
.no-events-message,
.events-error-message,
.events-initial-message {
    /* Dodano .events-initial-message */
    padding: 20px;
    text-align: center;
    color: #777;
    font-style: italic;
    border: 1px dashed #ddd;
    margin-top: 20px;
    background-color: #f9f9f9;
}

/* Style dla responsywnych etykiet (jeśli zdecydujesz się na CSS-owe przekształcenie tabeli na listę na mobilkach) */
/* To jest bardziej zaawansowane i na razie opcjonalne */
/* @media (max-width: 767px) {
    .events-table thead {
        display: none; 
    }
    .events-table, .events-table tbody, .events-table tr, .events-table td {
        display: block;
        width: 100%;
    }
    .events-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }
    .events-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px dotted #eee;
    }
    .events-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
    }
} */