/* =========================================
   0. PALETA KOLORÓW (ZMIENNE)
   ========================================= */
:root {
    --color-primary: #004d88; /* Główny granat */
    --color-accent: #f26442;  /* Ciepły koralowy */
    --color-text: #333333;
    --color-bg: #fcfcfc;
}

/* =========================================
   1. GLOBALNA TYPOGRAFIA I TŁO
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
}

/* =========================================
   2. GÓRNY PASEK Z DANYMI (TOPBAR)
   ========================================= */
.t3-topbar {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    font-size: 12px;
}
.topbar-modern-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 15px; }
.tb-item { color: #555555; }
.tb-item i { color: var(--color-primary); margin-right: 4px; }
.tb-rej-link { font-weight: 600; color: var(--color-primary); text-decoration: none; }
.tb-rej-link:hover { color: var(--color-accent); text-decoration: underline; }
.tb-lang img { height: 16px; width: auto; border-radius: 2px; }
.tb-fb { font-size: 18px; color: #3b5998; transition: transform 0.2s; }
.tb-fb:hover { transform: scale(1.1); }
@media (max-width: 768px) { .t3-topbar { display: none !important; } }

/* =========================================
   3. GŁÓWNY NAGŁÓWEK I LOGOTYPY
   ========================================= */
.t3-mainnav {
    background-color: #ffffff !important;
    padding: 10px 0;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.logo { background: transparent; }
.head-search { float: right; margin-top: 5px; }

/* Powiększenie logo NFZ i CSS-owe wymuszenie granatowego koloru */
.head-search img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(90%) saturate(1915%) hue-rotate(189deg) brightness(96%) contrast(101%) !important;
    max-height: 65px;
    width: auto;
    transition: opacity 0.2s;
}
.head-search img:hover { opacity: 0.8; }

/* =========================================
   4. MENU GŁÓWNE (PASEK I ROZWIJANE)
   ========================================= */
.t3-mainnav .navbar-nav > li > a {
    color: var(--color-primary) !important;
    font-size: 15px;
    font-weight: 500;
    padding-top: 15px;
    padding-bottom: 15px;
    text-transform: none;
    transition: color 0.3s ease;
}

/* LIKWIDACJA "MIGANIA" NA SZARO - Wymuszenie czystej bieli (#ffffff) zamiast transparent */
.t3-mainnav .navbar-nav > li > a:hover,
.t3-mainnav .navbar-nav > li > a:focus,
.t3-mainnav .navbar-nav > li > a:active,
.t3-mainnav .navbar-nav > .open > a,
.t3-mainnav .navbar-nav > .open > a:hover,
.t3-mainnav .navbar-nav > .open > a:focus,
.t3-mainnav .navbar-default .navbar-nav > .open > a,
.t3-mainnav .navbar-default .navbar-nav > .open > a:hover,
.t3-mainnav .navbar-default .navbar-nav > .open > a:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    color: var(--color-accent) !important;
}

/* Submenu (Menu rozwijane) */
.t3-mainnav .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 10px 0;
    margin-top: 0;
}
.t3-mainnav .dropdown-menu > li > a,
.t3-mainnav .t3-mega-menu .mega-nav > li > a,
.t3-mainnav .mega-dropdown-menu .mega-nav > li > a {
    color: var(--color-primary) !important;
    padding: 10px 20px !important;
    font-weight: 500;
    font-size: 14px;
    text-shadow: none !important;
    transition: all 0.2s ease;
    border-bottom: none !important;
}
.t3-mainnav .t3-mega-menu .mega-nav > li,
.t3-mainnav .mega-dropdown-menu .mega-nav > li { border-bottom: none !important; }

.t3-mainnav .dropdown-menu > li > a:hover,
.t3-mainnav .dropdown-menu > li > a:focus,
.t3-mainnav .dropdown-menu > .active > a,
.t3-mainnav .t3-mega-menu .mega-nav > li > a:hover,
.t3-mainnav .mega-dropdown-menu .mega-nav > li > a:hover {
    background-color: #f8f9fa !important;
    color: var(--color-accent) !important;
    padding-left: 25px !important;
}

/* =========================================
   5. SEKCJA GŁÓWNA (HERO SPLIT LAYOUT)
   ========================================= */
.hero-split-container {
    display: flex;
    flex-wrap: wrap;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 450px; /* Zmniejszona wielkość pustej przestrzeni */
    margin-bottom: 20px; /* Zmniejszony margines pod spodem */
}
.hero-split-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    z-index: 1;
}
.hero-left { flex: 1 1 55%; padding: 40px 5%; display: flex; align-items: center; position: relative; z-index: 2; }
.hero-content { max-width: 600px; }
.hero-title { font-size: 36px !important; font-weight: 700; line-height: 1.2; margin-bottom: 15px; color: var(--color-primary); }
    /* Było 48px, zmniejszono dla elegancji */
.hero-subtitle { font-size: 18px !important; color: #555; margin-bottom: 30px; }
.hero-features { display: flex; gap: 15px; flex-wrap: wrap; }
.feature-badge {
    background-color: #ffffff;
    color: var(--color-primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.hero-right { flex: 1 1 45%; padding: 40px 5%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.hero-action-card { background: #ffffff; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); width: 100%; max-width: 450px; overflow: hidden; }
.action-item { display: flex; align-items: center; padding: 20px 25px; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: var(--color-text); transition: background-color 0.3s; }
.action-item:last-child { border-bottom: none; }
.action-item:hover { background-color: #fcfcfc; text-decoration: none; }

.primary-action { background-color: var(--color-accent); color: #ffffff; }
.primary-action:hover { background-color: #d15638; color: #ffffff; }
.primary-action .action-text strong, .primary-action .action-text span { color: #ffffff; }

.action-icon { font-size: 32px; margin-right: 20px; min-width: 40px; text-align: center; }
.action-text { display: flex; flex-direction: column; }
.action-text strong { font-size: 18px; margin-bottom: 5px; }
.action-text span { font-size: 13px; color: #666; }

@media (max-width: 768px) {
    .hero-split-container::before { background: rgba(255,255,255,0.9); }
    .hero-title { font-size: 30px !important; }
}

/* =========================================
   6. TYPOGRAFIA ARTYKUŁÓW I ODSTĘPY
   ========================================= */
/* Likwidacja nadmiarowej przestrzeni między sekcją Hero a artykułami */
.t3-mainbody { padding-top: 20px !important; }

.article-title, 
.article-header h1, 
.article-header h2,
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    letter-spacing: -0.3px;
    color: var(--color-primary) !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}
.article-title a { color: var(--color-primary); transition: color 0.2s; text-decoration: none; }
.article-title a:hover { color: var(--color-accent); text-decoration: none; }

/* =========================================
   7. NAWIGACJA MOBILNA (KAFELKI/STRZAŁKI)
   ========================================= */
.mobile-nav-container { position: relative; display: flex; align-items: center; width: 100%; }
.nav-arrow { flex-shrink: 0; background: transparent; border: none; font-size: 24px; color: #333; cursor: pointer; padding: 10px 5px; z-index: 10; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s; }
.nav-arrow.hidden { visibility: hidden; opacity: 0; }
.nav-arrow:hover { color: #000; }
.mobile-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 15px; padding: 15px 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth; flex-grow: 1; }
.mobile-nav::-webkit-scrollbar { display: none; }
.nav-item {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    flex: 0 0 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    gap: 12px;
}
.nav-item:hover, .nav-item:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
}
.nav-item img { width: 32px; height: auto; display: block; transition: all 0.3s ease; filter: grayscale(100%) opacity(70%); }
.nav-item:hover img { filter: grayscale(0%) opacity(100%); }