/* ==========================================================
   HYDROMAX THEME — clean modern plumber site
   Based on hy4.html reference: rounded cards, blue/yellow
   accents, Playfair Display + Inter, subtle shadows
   ========================================================== */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --primary-50: #eff6ff;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #059669;
    --danger: #ef4444;
    --warning: #d97706;
    --info: #0284c7;

    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-faint: #9ca3af;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;

    --footer-bg: #1e2530;
    --footer-text: #94a3b8;
    --footer-border: rgba(255,255,255,0.08);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.05);

    --radius: 12px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 12px;
    --radius-2xl: 20px;

    --grid-gap: 30px;
    --container-padding: 20px;

    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    margin: 0; padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
body.mceContentBody { background: #fff; display: block; }

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: 0.5rem;
    color: var(--text-dark);
}
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h3 { font-family: var(--font-display); }
h4, h5, h6 { font-family: var(--font-body); }

h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

a { text-decoration: none; color: var(--primary); font-weight: 500; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { border: none; max-width: 100%; height: auto; }
p { margin-bottom: 1rem; color: var(--text-gray); line-height: 1.7; }

/* ===== LAYOUT ===== */
#container {
    max-width: 1280px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

/* ===== HEADER ===== */
#header {
    background: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; flex-wrap: wrap; gap: 16px;
}
.logo a { display: block; }
.logo img { max-height: 44px; }
.header-widgets { display: flex; align-items: center; gap: 16px; }
#search { min-width: 260px; }

/* ===== NAV ===== */
.main-navigation { background: var(--white); border-top: 1px solid var(--border); }
#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: 12px 20px;
    color: var(--text-gray); text-decoration: none;
    font-weight: 500; font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
#section a:hover, #section a.active {
    color: var(--primary); border-bottom-color: var(--primary);
    padding-bottom: 10px; text-decoration: none;
}

/* ===== WIDGETS ===== */
.top-widgets, .bottom-widgets { padding: 20px 24px; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.breadcrumb { padding: 12px 24px; background: var(--bg-light); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.breadcrumb a { color: var(--text-faint); margin-right: 8px; }
.breadcrumb a:hover { color: var(--primary); }

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

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

.block-container { display: grid; width: 100%; padding: 0; margin: 0; }
.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_none   { gap: 0; }
.gap_small  { gap: 12px; }
.gap_normal { gap: 20px; }
.gap_large  { gap: 30px; }
.gap_xlarge { gap: 40px; }

/* Dense packing so row-span blocks fill gaps in grid */
.grid { grid-auto-flow: dense !important; }

/* Reduce container top/bottom padding (block_container generates py-8) */
.container.mx-auto.px-4.py-8 { padding-top: 1rem !important; padding-bottom: 0 !important; }
.grid.mb-8 { margin-bottom: 0 !important; }

.block-container .module { margin: 0 !important; }

.container-placeholder {
    grid-column: 1 / -1; padding: 40px; text-align: center;
    background: var(--bg-light); border: 2px dashed var(--border);
    border-radius: var(--radius); color: var(--text-gray);
}
.block-error, .module-error {
    padding: 12px; background: #fef2f2; border: 1px solid #fecaca;
    border-radius: var(--radius-sm); color: #dc2626; font-size: 13px;
}

#panel_left, #panel_left1, #panel_left2, #panel_left3,
#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(--footer-bg);
    color: var(--footer-text);
    border-top: none;
    margin-top: auto;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; padding: 24px; flex-wrap: wrap; gap: 16px; }
.footer-widgets { flex: 1; }
.footer-credits { font-size: 0.85rem; color: #64748b; }
.footer-credits a { color: var(--primary); }
.footer-credits a:hover { color: var(--white); }

/* ===== MESSAGES ===== */
.err { padding: 16px; background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.ok { padding: 16px; background: #f0fdf4; border: 1px solid #86efac; color: #16a34a; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.info { padding: 20px; font-size: 15px; border: 1px solid var(--primary); background: var(--primary-50); color: var(--text-dark); margin: 40px auto; border-radius: var(--radius); max-width: 600px; text-align: center; }
.e404 { padding: 48px; background: var(--white); color: var(--text-gray); margin: 40px auto; border-radius: var(--radius); max-width: 600px; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ==========================================================
   ARTICLES
   ========================================================== */
.articles {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    padding: 28px 32px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
}
.articles::before { display: none; }
.articles:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.articles .title {
    font-family: var(--font-display);
    color: var(--text-dark);
    font-size: 1.4rem; font-weight: 700;
    margin-bottom: 10px; line-height: 1.25;
    transition: color 0.2s; cursor: pointer;
}
.articles .title a { color: inherit; text-decoration: none; }
.articles .title a:hover { color: var(--primary); }

.article { font-size: 15px; line-height: 1.75; color: var(--text-gray); padding: 0; }
.article h1, .article .title {
    font-family: var(--font-display); color: var(--text-dark);
    font-size: 2.25rem; font-weight: 700; margin-bottom: 16px; line-height: 1.1;
}
.article h2 { font-size: 1.5rem; margin-top: 2rem; font-family: var(--font-display); }
.article h3 { font-size: 1.15rem; margin-top: 1.5rem; font-family: var(--font-body); font-weight: 700; }
.article .date {
    margin-bottom: 20px; color: var(--text-faint);
    font-size: 0.8rem; font-weight: 500;
}
.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article th, .article td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.article th { font-weight: 700; color: var(--text-dark); background: var(--bg-light); font-size: 0.85rem; }
.article tr:hover td { background: var(--primary-50); }

/* Read-more links */
.articles a[href*="czytaj"],
.articles a[href*="read"],
.module_content a:last-child {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    color: var(--text-dark); border-bottom: 1px solid var(--text-dark); padding-bottom: 2px;
    text-decoration: none;
}
.articles a[href*="czytaj"]:hover,
.articles a[href*="read"]:hover {
    color: var(--primary); border-color: var(--primary);
}

/* ===== PAGER ===== */
ul.pager { margin: 0; padding: 0; display: flex; gap: 4px; justify-content: flex-end; margin-top: 16px; }
ul.pager li { list-style: none; }
ul.pager li.empty { margin: 8px 4px 0; padding: 0; border: none; float: none; }
ul.pager li a {
    display: block; padding: 6px 12px; text-decoration: none;
    background: var(--white); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-gray);
    border-radius: var(--radius-sm); transition: all 0.15s;
}
ul.pager li a.active, ul.pager li a:hover { color: white; background: var(--primary); border-color: var(--primary); }
ul.pager li.off { color: var(--text-faint); border-color: var(--border); }

/* ===== COMMENTS ===== */
.comment_add { text-align: right; background: var(--bg-light); padding: 8px 12px; border-radius: var(--radius-sm); margin-top: 16px; }
.comments { clear: both; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; }
.comments label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--text-dark); font-size: 14px; float: none; width: auto; text-align: left; padding: 0; }
.comments input { width: 100%; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-family: var(--font-body); }
.comments textarea { width: 100%; height: 120px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-family: var(--font-body); }
.comments .submit { text-align: center; margin-top: 16px; }
.comments_list { border-top: 1px solid var(--border); background: var(--bg-light); margin-top: 12px; padding: 12px 16px; color: var(--text-dark); border-radius: var(--radius-sm); }
.comments_list a { color: var(--primary); }

blockquote { border: none; margin: 1.5rem 0; border-left: 3px solid var(--accent); background: #fffbeb; padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--text-gray); }
blockquote span { display: block; font-size: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.forum_action { text-align: right; }

/* ===== LEGACY MODULES ===== */
.module { }
.module_title { border-bottom: 2px solid var(--text-dark); padding: 8px 0; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 10px; display: inline-block; }
.module_content { }

.loginform { background: var(--primary); border: none; color: #fff; border-radius: var(--radius); }
.loginform a { color: rgba(255,255,255,0.8); font-size: 13px; }
.loginform label { display: block; width: auto; text-align: left; float: none; padding: 0; font-weight: 600; margin-bottom: 4px; }
.loginform input { border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm); }

.contact { padding: 16px; }
.contact label { display: block; float: none; width: auto; text-align: left; padding: 0; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.contact input { width: 100%; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-family: var(--font-body); }
.contact textarea { width: 100%; height: 120px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-family: var(--font-body); }
.contact .submit { text-align: center; margin-top: 16px; }

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

ul.announce_menu { list-style: none; width: 100%; margin: 0; padding: 0; }
ul.announce_menu > li { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; transition: background 0.15s; }
ul.announce_menu > li:hover, ul.announce_menu > li.active { background: var(--primary-50); }
ul.announce_menu > li a { text-decoration: none; color: var(--text-dark); }
ul.announce_menu > ul { padding-left: 20px; }
.announce_title { margin-top: 8px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.announce_item { border: 1px solid var(--border); padding: 12px; margin-bottom: 12px; border-radius: var(--radius); }
.announce_form label { display: block; float: none; width: auto; text-align: left; padding: 0; font-weight: 500; margin-bottom: 6px; }
.announce_form input, .announce_form textarea, .announce_form select { border: 1px solid var(--border); padding: 12px 16px; width: 100%; border-radius: var(--radius-sm); font-family: var(--font-body); }
.announce_form .submit { text-align: center; margin-top: 16px; }
.announce_form .submit input { width: auto; background: var(--primary); color: white; padding: 12px 28px; border-radius: var(--radius-md); border: none; cursor: pointer; font-weight: 600; }

ul.businesscards_menu { list-style: none; width: 100%; margin: 0; padding: 0; }
ul.businesscards_menu > li { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
ul.businesscards_menu > li:hover, ul.businesscards_menu > li.active { background: var(--primary-50); }
ul.businesscards_menu > li a { text-decoration: none; }
.businesscards_form label { display: block; float: none; width: auto; text-align: left; padding: 0; font-weight: 500; margin-bottom: 6px; }
.businesscards_form input, .businesscards_form textarea, .businesscards_form select { border: 1px solid var(--border); padding: 12px 16px; width: 100%; border-radius: var(--radius-sm); font-family: var(--font-body); }
.businesscards_form .submit { text-align: center; margin-top: 16px; }
.businesscards_form .submit input { width: auto; background: var(--primary); color: white; padding: 12px 28px; border: none; border-radius: var(--radius-md); cursor: pointer; }


/* ==========================================================
   BLOCK SYSTEM
   ========================================================== */

.block,
.module {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
    position: relative;
}
.block:hover,
.module:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Grid widths */
.block_col1, .block_1col, .block_quarter       { grid-column: span 1; }
.block_col2, .block_2col, .block_half           { grid-column: span 2; }
.block_col3, .block_3col, .block_three_quarters { grid-column: span 3; }
.block_col4, .block_4col, .block_full           { grid-column: span 4; }

/* Grid heights */
.block_row1 { grid-row: span 1; }
.block_row2 { grid-row: span 2; min-height: 200px; }
.block_row3 { grid-row: span 3; min-height: 300px; }
.block_row4 { grid-row: span 4; min-height: 400px; }
.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; }

/* Variants */
.block_default, .block { border: 1px solid var(--border); }
.block_primary { border: none; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.block_primary h3 { background: rgba(255,255,255,0.1); color: white; border-bottom-color: rgba(255,255,255,0.15); }
.block_primary a { color: rgba(255,255,255,0.9); }
.block_success { border-color: #bbf7d0; background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.block_success h3 { background: var(--success); color: white; border: none; }
.block_warning { border-color: #fde68a; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.block_warning h3 { background: var(--warning); color: white; border: none; }
.block_info { border-color: #bae6fd; background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.block_info h3 { background: var(--info); color: white; border: none; }
.block_danger { border-color: #fecaca; background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.block_danger h3 { background: var(--danger); color: white; border: none; }

div.block_rounded, .block_rounded.block_rounded { border-radius: 20px !important; }
div.block_sharp, .block_sharp.block_sharp { border-radius: 0 !important; }
div.block_shadow, .block_shadow.block_shadow { box-shadow: var(--shadow-lg) !important; }
div.block_shadow:hover, .block_shadow.block_shadow:hover { box-shadow: var(--shadow-lg) !important; transform: translateY(-4px); }
div.block_borderless, .block_borderless.block_borderless { border: none !important; box-shadow: var(--shadow-sm) !important; }
div.block_outlined, .block_outlined.block_outlined { background: transparent !important; border: 2px solid var(--border) !important; }

/* ===== BLOCK HEADERS — section label style ===== */
.block h3,
.module h3 {
    background: var(--white);
    color: var(--text-gray);
    padding: 14px 24px 12px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    margin: 0;
    border: none;
    border-bottom: 2px solid var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== BLOCK CONTENT ===== */
/* Padding is set inline via block_config.padding on the wrapper div.
   .module_content class is not used in this theme's block.tpl. */
.module_content { padding: 0; }

/* Lists in blocks */
.block ul, .module ul { list-style: none; padding: 0; margin: 0; }
.block li, .module li { padding: 10px 0; border-bottom: 1px solid var(--border); transition: all 0.15s; }
.block li:hover, .module li:hover { padding-left: 0; margin: 0; background: none; }
.block li:last-child, .module li:last-child { border-bottom: none; }

/* Links in blocks */
.block a, .module a { color: var(--text-dark); text-decoration: none; font-weight: 500; transition: all 0.2s; }
.block a:hover, .module a:hover { color: var(--primary); text-decoration: none; }

/* Forms in blocks */
.block input, .module input, .block textarea, .module textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-body); margin-bottom: 12px;
    transition: border-color 0.2s; background: var(--white);
}
.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(59,130,246,0.1);
}

/* Login */
.block_login, .loginform { background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; color: white !important; border: none !important; }
.block_login h3, .loginform h3 { background: rgba(255,255,255,0.1) !important; color: white !important; border-bottom: 1px solid rgba(255,255,255,0.15) !important; }
.block_login label, .loginform label { color: white !important; font-weight: 600 !important; display: block !important; width: auto !important; text-align: left !important; float: none !important; padding: 0 !important; }
.block_login input, .loginform input { background: rgba(255,255,255,0.9) !important; border: 1px solid rgba(255,255,255,0.3) !important; color: var(--text-dark) !important; }
.block_login a, .loginform a { color: rgba(255,255,255,0.8) !important; }

/* Modern forms */
.contact, .comments { background: var(--white); padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact label, .comments label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--text-dark); font-size: 14px; }
.contact input, .contact textarea, .comments input, .comments textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 16px; font-family: var(--font-body); transition: border-color 0.2s; }
.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: var(--white); color: var(--text-dark); border: none;
    padding: 14px 28px; border-radius: var(--radius-md); font-weight: 600;
    cursor: pointer; transition: all 0.2s; width: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.contact .submit input:hover, .comments .submit input:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }


/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    :root { --grid-gap: 20px; }
    #container { margin: 0; }
    .grid-container, #panel_center, #panel_center1, #panel_center2, #panel_center3 { grid-template-columns: repeat(3, 1fr); }
    .block_col4, .block_4col, .block_full, .block_col3, .block_3col, .block_three_quarters { grid-column: span 3; }
}

@media (max-width: 768px) {
    :root { --grid-gap: 16px; --container-padding: 12px; }
    #container { margin: 0; }
    .header-content { padding: 12px 16px; }
    #search { min-width: auto; width: 100%; }
    #section ul { flex-direction: column; }
    #section a { border-bottom: 1px solid var(--border); padding: 12px 16px; }
    .main-content { padding: 12px; }
    .grid-container, #panel_center, #panel_center1, #panel_center2, #panel_center3 { grid-template-columns: 1fr; gap: 16px; }
    .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: 20px 16px; }
    .module_content, .block:not(:has(h3)) { padding: 16px; }
    .block h3, .module h3 { padding: 12px 16px 10px; }
    .articles { padding: 20px; }
    .articles .title { font-size: 1.2rem; }
}

@media (min-width: 1400px) {
    :root { --grid-gap: 40px; }
}


/* ===== UTILITIES ===== */
.block-title-custom { color: var(--title-color, var(--text-dark)) !important; }

/* Blocks inside dark containers — no borders/shadows */
[style*="background-color: #1e2530"] .module,
[style*="background-color: #1e2530"] .block,
[style*="background-color: #1f2937"] .module,
[style*="background-color: #1f2937"] .block {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}
[style*="background-color: #1e2530"] .module:hover,
[style*="background-color: #1e2530"] .block:hover,
[style*="background-color: #1f2937"] .module:hover,
[style*="background-color: #1f2937"] .block:hover {
    transform: none !important;
    box-shadow: none !important;
}
[style*="background-color: #1e2530"] .module h3,
[style*="background-color: #1e2530"] .block h3,
[style*="background-color: #1f2937"] .module h3,
[style*="background-color: #1f2937"] .block h3 {
    display: none !important;
}
[style*="background-color: #1e2530"] .module a,
[style*="background-color: #1e2530"] .block a,
[style*="background-color: #1f2937"] .module a,
[style*="background-color: #1f2937"] .block a {
    color: #94a3b8 !important;
}
[style*="background-color: #1e2530"] .module a:hover,
[style*="background-color: #1e2530"] .block a:hover,
[style*="background-color: #1f2937"] .module a:hover,
[style*="background-color: #1f2937"] .block a:hover {
    color: #fff !important;
}
[style*="background-color: #1e2530"] .module li,
[style*="background-color: #1e2530"] .block li,
[style*="background-color: #1f2937"] .module li,
[style*="background-color: #1f2937"] .block li {
    border-bottom-color: rgba(255,255,255,0.08) !important;
    padding: 0 !important;
}
[style*="background-color: #1e2530"] .module p,
[style*="background-color: #1e2530"] .block p,
[style*="background-color: #1f2937"] .module p,
[style*="background-color: #1f2937"] .block p {
    color: #94a3b8 !important;
}

/* Footer sections — matching hy4 reference */
.footer-section h4 {
    color: var(--white) !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-bottom: 12px;
}
/* Blue underline on footer headings */
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background: var(--primary);
}

.footer-section a { color: var(--footer-text) !important; text-decoration: none; transition: all 0.2s; display: block; }
.footer-section a:hover { color: var(--white) !important; transform: translateX(5px); }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li {
    margin: 0; padding: 0 !important;
    border-bottom: 1px solid var(--footer-border) !important;
    background: none !important;
}
.footer-section li:last-child { border-bottom: none !important; }
.footer-section li:hover { padding: 0 !important; margin: 0 !important; background: none !important; }
.footer-section li a { padding: 12px 0 !important; }


/* mobile fix VM57-W v2 */
html,body{max-width:100vw !important;overflow-x:hidden !important;}
@media(max-width:768px){h1{font-size:1rem !important;line-height:1.2 !important;white-space:normal !important;word-break:break-word !important;overflow-wrap:anywhere !important;max-width:100% !important;}.flex-shrink-0{flex-shrink:1 !important;min-width:0 !important;max-width:100% !important;}[class*="flex"]{min-width:0 !important;}}
