/* ===== MODERN GRID PORTAL SYSTEM 2024 ===== */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Grid system */
    --grid-gap: 1.5rem;
    --container-padding: 2rem;
}

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    margin: 0;
    padding: 0;
    background: #ffffff;
    min-height: 100vh;
}

body.mceContentBody {
    background: #FFF;
}

form, h1, h2, h3, h4, h5, h6 {
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    border: none;
    max-width: 100%;
    height: auto;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ===== MODERN LAYOUT ===== */
#container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
}

/* ===== HEADER ===== */
#header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    padding: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo a {
    display: block;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.header-widgets {
    display: flex;
    align-items: center;
    gap: 20px;
}

#search {
    min-width: 300px;
}

/* ===== NAVIGATION ===== */
.main-navigation {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#section ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

#section ul li {
    list-style: none;
}

#section a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

#section a:hover,
#section a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

/* ===== WIDGETS SECTIONS ===== */
.top-widgets,
.bottom-widgets {
    padding: 30px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    padding: 15px 30px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray-600);
    margin-right: 8px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ===== GRID CONTENT LAYOUT ===== */
.main-content {
    padding: var(--container-padding);
    min-height: 500px;
}

/* Grid container for blocks */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    margin-bottom: var(--grid-gap);
}

/* Block Container System */
.block-container {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    padding: 0; /* Zawsze zerowy padding */
    margin: 0;
}

/* Grid classes dla kontenerów */
.grid_1 { grid-template-columns: 1fr; }
.grid_2 { grid-template-columns: repeat(2, 1fr); }
.grid_3 { grid-template-columns: repeat(3, 1fr); }
.grid_4 { grid-template-columns: repeat(4, 1fr); }

/* Gap classes dla kontenerów */
.gap_none { gap: 0; }
.gap_small { gap: 8px; }
.gap_normal { gap: 16px; }
.gap_large { gap: 24px; }
.gap_xlarge { gap: 32px; }

/* Bloki w kontenerze mają marginesy na zero */
.block-container .module {
    margin: 0 !important;
}

/* Placeholder dla pustego kontenera */
.container-placeholder {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Błędy modułów */
.block-error, .module-error {
    padding: 10px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c00;
    font-size: 12px;
}

/* Legacy panel support - convert to grid */
#panel_left,
#panel_left1,
#panel_left2,
#panel_left3 {
    display: none;
}

#panel_right,
#panel_right1,
#panel_right2,
#panel_right3 {
    display: none;
}

#panel_center,
#panel_center1,
#panel_center2,
#panel_center3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    padding: 0;
}


/* ===== FOOTER ===== */
#footer {
    background: var(--gray-800);
    color: var(--gray-300);
    border-top: 1px solid var(--gray-700);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-widgets {
    flex: 1;
}

.footer-credits {
    font-size: 14px;
    color: var(--gray-400);
}

.footer-credits a {
    color: var(--primary-light);
}

/* ===== MESSAGES & ALERTS ===== */
.err {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.ok {
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.info {
    padding: 20px;
    font-size: 16px;
    border: 2px solid var(--primary);
    background: #eff6ff;
    color: var(--gray-700);
    margin: 40px auto;
    text-align: center;
    border-radius: var(--border-radius-lg);
    max-width: 600px;
}

.e404 {
    padding: 30px;
    font-size: 16px;
    border: 1px solid var(--gray-300);
    background: var(--gray-50);
    color: var(--gray-700);
    margin: 40px auto;
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    text-align: center;
}

/* ===== ARTICLES ===== */
.articles {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
}

.articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.articles:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.articles .title {
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.articles .title a {
    color: inherit;
    text-decoration: none;
}

.articles .title a:hover {
    color: var(--primary);
}

.article {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
}

.article h1,
.article .title {
    color: var(--gray-900);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article .date {
    margin-bottom: 15px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
}

/********************** pager *************************************************/
ul.pager { margin: 0; padding: 0; float:right; margin-top:8px; }

ul.pager li {
	margin: 0px 3px 0px 0px;
	padding: 0px;
	list-style: none;
	list-style-image: none;
	float: left;
	border: 1px solid #444;
}

ul.pager li.empty {
	margin: 10px 3px 0px 10px;
	padding: 0;
	float: left;
	border: 0;
}


ul.pager li a {
	display: block;
	padding: 1px 5px;
	text-decoration: none;
        background:#ccc;
        font-size:10px;
        font-weight:bold;
	color: #444;
}

ul.pager li a.active,
ul.pager li a:hover {
	color: #fff;
	background: #555;
}

ul.pager li.off {
	color: #888;
	border-color: #888;
}   

/*********************** komentarze  ******************************************/
.comment_add {text-align:right;background:#eee;padding:2px;border:1px solid #ccc; margin-top:10px;}
.comment_add span {text-align:left;}
.comments {  clear:both; border-top:1px solid #E0E0E0; padding-top:10px; }
.comments label { float:left; padding-right:10px; width:150px; text-align:right; display:block; font-size:11px; }
.comments input { width:300px; background-color:#fff; border:1px solid #cccccc; }
.comments textarea { width:300px; height:100px; background-color:#fff; border:1px solid #cccccc; }
.comments .submit { text-align:center; }
.comments_list { border-top:1px solid #CCCCCC; background-color:#f5f5f5; margin-top:6px; padding:4px; color:#444;}
.comments_list a {color:#666; }




.forum_action {text-align:right; }
blockquote {border:1px dotted #ddd; margin: 5px 20px 20px;border-left:2px solid #999;background:#eee; padding:3px; font-size:11px;}
blockquote span {display:block; border-bottom:1px solid #aaa; font-size:10px; }


/*********************** moduły  **********************************************/
.module { }
.module_title { border-bottom:1px solid #999; padding:3px 0px; font-weight:bold; font-size:12px; margin-top:10px; }
.module_content {  }

.loginform { background:#2B6FB6; border:2px solid #8AB7E3; color:#fff;}
.loginform a {color:#fff; font-size:10px;}
.loginform label {display:block;width:60px; text-align:right; float:left;padding-right:10px; font-weight:bold}
.loginform input {border:1px solid #000;}

/*********************** kontakt  ***********************************************/
.contact { padding-top:10px; }
.contact label { float:left; padding-right:10px; width:150px; text-align:right; display:block; font-size:11px; }
.contact input { width:300px; background-color:#fff; border:1px solid #cccccc; }
.contact textarea { width:300px; height:100px; background-color:#fff; border:1px solid #cccccc; }
.contact .submit { text-align:center; }


/*********************** bloki  ***********************************************/
.block {clear: both; margin-bottom:5px;}
.block_half { width:48%; float:left; padding: 3px; margin-right:5px; margin-bottom:5px;}

/*********************** ogloszenia, katalog  ***********************************/
ul.announce_menu { list-style: url(img/ann_bullet.gif) inside; width:99%; margin:0;padding:0;margin-bottom:10px; margin-top:5px; padding-left:5px;}
ul.announce_menu > li { padding:3px;border-bottom:1px solid #eee; cursor:pointer; font-size:13px; padding-left:15px;}
ul.announce_menu > li:hover,
ul.announce_menu > li.active { background:#eee;}
ul.announce_menu > li a { text-decoration: none; }

ul.announce_menu > ul { padding-left:20px; margin-left:10px;}


.announce_title {margin-top:5px;border-bottom:2px solid #ccc; padding-bottom:5px; }
.announce_item {height:80px;width:690px;float:left;border:1px solid #ccc; padding:6px; margin-bottom:10px;}

.announce_form label {display:block; float:left; width:150px; text-align: right; padding-right:10px;}
.announce_form input,
.announce_form textarea,
.announce_form select {border:1px solid #ccc; padding:1px; width:500px;}
.announce_form .submit {text-align:center;}
.announce_form .submit input {width:200px; border:1px solid #235B94; color:#fff; padding:1px; text-align:center; background:#4A8FD5;}


/*********************** wizytowki  ***********************************************/
ul.businesscards_menu { list-style: none; width:99%; margin:0;padding:0;margin-bottom:10px; margin-top:5px; padding-left:5px;}
ul.businesscards_menu > li { padding:3px;border-bottom:1px solid #eee; cursor:pointer; font-size:13px; padding-left:15px;}
ul.businesscards_menu > li:hover,
ul.businesscards_menu > li.active { background:#eee;}
ul.businesscards_menu > li a { text-decoration: none; }

.businesscards_form label {display:block; float:left; width:200px; text-align: right; padding-right:10px;}
.businesscards_form input,
.businesscards_form textarea,
.businesscards_form select {border:1px solid #ccc; padding:1px; width:450px;}
.businesscards_form .submit {text-align:center;}
.businesscards_form .submit input {width:200px; border:1px solid #235B94; color:#fff; padding:1px; text-align:center; background:#4A8FD5;}

/* ===== MODERN GRID BLOCKS SYSTEM ===== */

/* Base block styles */
.block,
.module {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 0; /* Remove margin for grid */
    position: relative;
}

.block:hover,
.module:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ===== GRID WIDTH CLASSES ===== */
/* 1 column width (25%) */
.block_col1,
.block_1col,
.block_quarter {
    grid-column: span 1;
}

/* 2 columns width (50%) */
.block_col2,
.block_2col,
.block_half {
    grid-column: span 2;
}

/* 3 columns width (75%) */
.block_col3,
.block_3col,
.block_three_quarters {
    grid-column: span 3;
}

/* 4 columns width (100%) */
.block_col4,
.block_4col,
.block_full {
    grid-column: span 4;
}

/* ===== GRID HEIGHT CLASSES ===== */
/* 1 row height (auto) - default */
.block_row1 {
    grid-row: span 1;
}

/* 2 rows height */
.block_row2 {
    grid-row: span 2;
    min-height: 200px;
}

/* 3 rows height */
.block_row3 {
    grid-row: span 3;
    min-height: 300px;
}

/* 4 rows height */
.block_row4 {
    grid-row: span 4;
    min-height: 400px;
}

/* Full height */
.block_full_height {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.block_full_height .module_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== BLOCK STYLE VARIANTS ===== */

/* Default block */
.block_default,
.block {
    border: 1px solid var(--gray-200);
}

/* Primary colored block */
.block_primary {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.block_primary h3 {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.block_primary a {
    color: rgba(255, 255, 255, 0.9);
}

.block_primary a:hover {
    color: white;
}

/* Success colored block */
.block_success {
    border: 2px solid var(--success);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.block_success h3 {
    background: var(--success);
    color: white;
}

/* Warning colored block */
.block_warning {
    border: 2px solid var(--warning);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.block_warning h3 {
    background: var(--warning);
    color: white;
}

/* Info colored block */
.block_info {
    border: 2px solid var(--info);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.block_info h3 {
    background: var(--info);
    color: white;
}

/* Danger colored block */
.block_danger {
    border: 2px solid var(--danger);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.block_danger h3 {
    background: var(--danger);
    color: white;
}

/* ===== BORDER STYLE VARIANTS ===== */

/* Rounded borders - bardzo wysoka specyficzność */
div.block_rounded,
.block_rounded.block_rounded {
    border-radius: 2rem !important;
}

/* Sharp borders - bardzo wysoka specyficzność */
div.block_sharp,
.block_sharp.block_sharp {
    border-radius: 0 !important;
}

/* Extra shadow - bardzo wysoka specyficzność */
div.block_shadow,
.block_shadow.block_shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

div.block_shadow:hover,
.block_shadow.block_shadow:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-4px);
}

/* No border - bardzo wysoka specyficzność */
div.block_borderless,
.block_borderless.block_borderless {
    border: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Outlined style - bardzo wysoka specyficzność */
div.block_outlined,
.block_outlined.block_outlined {
    background: transparent !important;
    border: 2px solid #d1d5db !important;
}

/* ===== BLOCK HEADERS ===== */
.block h3,
.module h3 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* ===== BLOCK CONTENT ===== */
.module_content,
.block:not(:has(h3)) {
    padding: 1.5rem;
}

.block:has(h3) .module_content {
    padding: 1.5rem;
}

/* ===== BLOCK LISTS ===== */
.block ul,
.module ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.block li,
.module li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.block li:hover,
.module li:hover {
    background: var(--gray-50);
    padding-left: 1rem;
    margin: 0 -1.5rem;
    padding-right: 1.5rem;
}

.block li:last-child,
.module li:last-child {
    border-bottom: none;
}

/* ===== BLOCK LINKS ===== */
.block a,
.module a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.block a:hover,
.module a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== BLOCK FORMS ===== */
.block input,
.module input,
.block textarea,
.module textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.block input:focus,
.module input:focus,
.block textarea:focus,
.module textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===== SPECIAL BLOCKS ===== */

/* Login form block */
.block_login,
.loginform {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    border: none !important;
}

.block_login h3,
.loginform h3 {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.block_login label,
.loginform label {
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    width: auto !important;
    text-align: left !important;
    float: none !important;
    padding-right: 0 !important;
}

.block_login input,
.loginform input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--gray-800) !important;
}

.block_login input:focus,
.loginform input:focus {
    background: white !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.block_login a,
.loginform a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.block_login a:hover,
.loginform a:hover {
    color: white !important;
}

/* ===== FORMS ===== */
.contact,
.comments {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.contact label,
.comments label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.contact input,
.contact textarea,
.comments input,
.comments textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.contact input:focus,
.contact textarea:focus,
.comments input:focus,
.comments textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact .submit,
.comments .submit {
    text-align: center;
    margin-top: 20px;
}

.contact .submit input,
.comments .submit input {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.contact .submit input:hover,
.comments .submit input:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE GRID SYSTEM ===== */

/* Tablet breakpoint */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --grid-gap: 1rem;
    }

    #container {
        margin: 0;
    }

    .grid-container,
    #panel_center,
    #panel_center1,
    #panel_center2,
    #panel_center3 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Adjust grid spans for tablet */
    .block_col4,
    .block_4col,
    .block_full {
        grid-column: span 3;
    }

    .block_col3,
    .block_3col,
    .block_three_quarters {
        grid-column: span 3;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --grid-gap: 1rem;
    }

    #container {
        margin: 0;
        box-shadow: none;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    #search {
        min-width: auto;
        width: 100%;
    }

    #section ul {
        flex-direction: column;
    }

    #section a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .grid-container,
    #panel_center,
    #panel_center1,
    #panel_center2,
    #panel_center3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* All blocks full width on mobile */
    .block_col1,
    .block_1col,
    .block_quarter,
    .block_col2,
    .block_2col,
    .block_half,
    .block_col3,
    .block_3col,
    .block_three_quarters,
    .block_col4,
    .block_4col,
    .block_full {
        grid-column: span 1;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    /* Adjust block padding on mobile */
    .module_content,
    .block:not(:has(h3)) {
        padding: 1rem;
    }

    .block h3,
    .module h3 {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Large screens optimization */
@media (min-width: 1400px) {
    :root {
        --container-padding: 3rem;
        --grid-gap: 2rem;
    }
}

/* Dynamic Articles Module - używa Tailwind CSS */

/* ===== STYLE BLOKÓW - KOLOR TYTUŁU ===== */
.block-title-custom {
    color: var(--title-color, #333) !important;
}

/* ===== STYLE STOPKI DLA MENU ===== */
.footer-section h4 { color:#fff !important; }
.footer-section a { color:#cccccc !important; text-decoration:none; }
.footer-section a:hover { color:#fff !important; text-decoration:underline; }
.footer-section ul { list-style:none; padding:0; margin:0; }
.footer-section li { margin:2px 0; }

/* ===== STYLE STOPKI DLA MENU ===== */
.footer-section h4 { color:#fff !important; }
.footer-section a { color:#cccccc !important; text-decoration:none; }
.footer-section a:hover { color:#fff !important; text-decoration:underline; }
.footer-section ul { list-style:none; padding:0; margin:0; }
.footer-section li { margin:2px 0; }
