:root {
    /* Polish Gov Colors (inspired by gov.pl & modern trends) */
    --pl-red: #D4213D; /* Polish Crimson */
    --pl-blue: #0B2347; /* Deep Navy (Gov.pl style) */
    --pl-blue-light: #eef3f8; /* Very light blue background */
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --white: #ffffff;
    --border-color: #e0e0e0;
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 25px rgba(11, 35, 71, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Service Bar (Gov.pl style) */
.service-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.8rem;
}

.service-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.service-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.service-link:hover {
    color: var(--pl-red);
}

/* Main Navbar */
.navbar {
    background-color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--pl-red); /* Polish accent */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--pl-blue);
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--pl-red);
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--pl-blue);
    margin-top: 4px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 10px;
    height: 100%;
}

.nav-links li {
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background-color: var(--pl-blue-light);
    color: var(--pl-blue);
}

.btn-official {
    background-color: var(--pl-red);
    color: var(--white) !important;
    padding: 10px 25px !important;
    border-radius: 50px !important; /* Softer look */
    box-shadow: 0 4px 10px rgba(212, 33, 61, 0.3);
}

.btn-official:hover {
    background-color: #b0152e !important;
    transform: translateY(-1px);
}

/* Hero Section - More "Open" and "Friendly" */
header {
    position: relative;
    height: 75vh; /* Increased slightly for better impact */
    display: flex;
    align-items: center;
    /* Gradient transition: Solid Blue -> Semi-transparent Blue -> Image */
    background: linear-gradient(90deg, 
        var(--pl-blue) 0%, 
        rgba(11, 35, 71, 0.95) 40%, 
        rgba(11, 35, 71, 0.1) 100%),
        url('https://images.unsplash.com/photo-1591530125288-e97fab226413?q=80&w=1073&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* Placeholder: Government Building */
    background-size: cover;
    background-position:center top;
    background-attachment: fixed; /* Parallax effect */
    color: var(--white);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

/* Canvas removed, replaced by CSS background */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #e0e0e0;
    font-weight: 300;
    line-height: 1.8;
}

/* Quick Access Grid (New) */
.quick-access {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--pl-red);
}

.quick-card i {
    font-size: 2rem;
    color: var(--pl-blue);
    margin-bottom: 15px;
}

.quick-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* News Section (New) */
.section-news {
    padding: 80px 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    background-color: #ddd;
    position: relative;
}

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--pl-red);
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-link {
    color: var(--pl-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--pl-blue);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer - Expanded */
footer {
    background-color: var(--pl-blue);
    color: white;
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    opacity: 0.7;
    margin-top: 20px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #b0c4de;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

/* New Sections Styles */

/* Broadcast Section */
.section-broadcast {
    background-color: #111;
    color: white;
    position: relative;
}

.broadcast-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.video-placeholder {
    background-color: #000;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    position: relative;
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--pl-red);
    opacity: 0.8;
}

.live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--pl-red);
    color: white;
    padding: 5px 10px;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.broadcast-list {
    background-color: #222;
    padding: 20px;
    border-radius: 4px;
}

.broadcast-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s;
}

.broadcast-item:hover {
    background-color: #2a2a2a;
}

.broadcast-item:last-child {
    border-bottom: none;
}

.broadcast-time {
    color: var(--pl-red);
    font-weight: 700;
    font-size: 0.9rem;
}

.broadcast-title {
    font-size: 0.9rem;
    color: #ddd;
}

/* MPs Section */
.mps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.mp-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.mp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.mp-image {
    height: 250px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
}

.mp-info {
    padding: 20px;
}

.mp-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--pl-blue);
    margin-bottom: 5px;
}

.mp-party {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: white;
    border: 2px solid var(--pl-blue);
    color: var(--pl-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    transition: all 0.3s;
}

.step-item:hover .step-number {
    background-color: var(--pl-blue);
    color: white;
}

.step-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Subpage Header */
.page-header {
    background-color: var(--pl-blue);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(11, 35, 71, 0.9), rgba(212, 33, 61, 0.1));
    z-index: 1;
}

/* Table Styles for Dziennik/Harmonogram */
.gov-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-card);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
}

.gov-table th {
    background-color: var(--pl-blue);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.gov-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
}

.gov-table tr:last-child td {
    border-bottom: none;
}

.gov-table tr:hover {
    background-color: #f9f9f9;
}

/* Clubs Grid */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.club-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.club-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--pl-blue);
}

.club-logo {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #aaa;
}

/* Helper Classes for Buttons */
.btn-hero-white {
    background: white;
    color: var(--pl-blue);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    margin-right: 15px;
    display: inline-block;
    transition: all 0.2s;
}

.btn-hero-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-hero-outline-white {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.btn-hero-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto;
    }
    
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .broadcast-container {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .process-steps::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--pl-blue);
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--pl-red);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 30px;
    font-size: 1rem;
    color: var(--text-light);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background-color: #f9f9f9;
    border-radius: 0 0 12px 12px;
}


/* --- POLISH & REFINEMENTS (Added by Copilot) --- */

/* 1. Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pl-blue);
}

/* 2. Selection Color */
::selection {
    background: var(--pl-red);
    color: white;
}

/* 3. Global Input Styles */
input[type='text'],
input[type='email'],
input[type='password'],
input[type='date'],
input[type='time'],
input[type='number'],
input[type='search'],
textarea,
select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    background-color: #fff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--pl-blue);
    box-shadow: 0 0 0 3px rgba(11, 35, 71, 0.1);
}

/* 4. Button Polish */
button, .btn, .btn-official {
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 5. Card Hover Effects Polish */
.news-card, .quick-card, .club-card, .mp-card {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover, .quick-card:hover, .club-card:hover, .mp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

