:root, [data-theme="current"] {
    --primary-color: #004a99;
    --primary-light: #0056b3;
    --primary-blue: #004a99;
    --secondary-color: #7f8c8d;
    --accent-color: #1a252f;
    --footer-bg: #141b22;
    --footer-text: #ffffff;
    --background-color: #f9fafb;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --input-bg: #ffffff;
    --input-border: #dddddd;
    --dropdown-bg: #ffffff;
    --dropdown-header-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --primary-color: #0066cc;
    --primary-light: #268bd2;
    --primary-blue: #0066cc;
    --secondary-color: #64748b;
    --accent-color: #004a99;
    --footer-bg: #eaf1fa;
    --footer-text: #1e293b;
    --background-color: #f0f5fb;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #d7e4f2;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --dropdown-bg: #ffffff;
    --dropdown-header-bg: #e6f0fa;
    --white: #ffffff;
    --shadow: 0 4px 16px rgba(0, 50, 120, 0.08);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #38bdf8;
    --primary-light: #7dd3fc;
    --primary-blue: #38bdf8;
    --secondary-color: #94a3b8;
    --accent-color: #0284c7;
    --footer-bg: #090d16;
    --footer-text: #f1f5f9;
    --background-color: #0b1120;
    --card-bg: #1e293b;
    --header-bg: #0f172a;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --input-bg: #1e293b;
    --input-border: #475569;
    --dropdown-bg: #1e293b;
    --dropdown-header-bg: #0f172a;
    --white: #1e293b;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--header-bg);
    padding: 10px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list > li {
    position: relative;
    padding: 15px 20px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-list a i, .dropdown-header i {
    margin-right: 6px;
}

/* Dropdown Toggle Chevron Spacing & Animation */
.nav-list a .fa-chevron-down {
    margin-left: 9px;
    margin-right: 0;
    font-size: 0.72rem;
    opacity: 0.75;
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: inline-block;
    vertical-align: middle;
}

.nav-list > li.dropdown:hover > a .fa-chevron-down,
.nav-list > li.dropdown.active > a .fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}


.nav-list a:hover {
    color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dropdown-bg);
    box-shadow: var(--shadow);
    display: none;
    list-style: none;
    min-width: 280px;
    padding: 10px 0;
    border-radius: 4px;
    max-height: 500px; /* Increased limit height for scrolling */
    overflow-y: auto; /* Enable scrolling if too long */
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown Gap & Click Fix */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
    pointer-events: auto;
}

.dropdown.open > .dropdown-menu {
    display: block;
}

.dropdown.open > a {
    color: var(--brand-deep);
    background: color-mix(in srgb, var(--primary-color) 9%, transparent);
}

.dropdown.open > a .fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}


.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.dropdown-header {
    padding: 8px 20px;
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--primary-color); /* Use primary color for headers */
    text-transform: uppercase;
    background: var(--dropdown-header-bg);
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

/* Custom Scrollbar for Dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Hero Section / Banners */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-btns { margin-top: 30px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 10px;
    transition: var(--transition);
}
.btn:hover { background: #eee; }

.btn-alt {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-alt:hover { background: var(--white); color: var(--primary-color); }

.btn-main {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-main:hover { background: var(--accent-color); }

.btn-main.disabled {
    background: #ccc;
    cursor: not-allowed !important;
    pointer-events: none;
}

.btn-sm {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-sm:hover { background: var(--accent-color); }

.btn-text {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}

/* Section Titles with darker blue */
section h2, .content-section h1, .content-section h2 {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
}

.card > i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Content Boxes */
.content-box {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 40px 0;
    border: 1px solid var(--border-color);
}

.content-box h2 { margin-bottom: 20px; color: var(--primary-color); }

/* Forms */
.styled-form { max-width: 600px; margin: 0 auto; text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--text-color); }
.form-group input, .form-group textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    border-radius: 4px;
    font-family: inherit;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* UI Improvements Classes */
.full-width-search {
    width: 100%;
    margin: 30px auto;
    text-align: left;
}

.full-width-search form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.full-width-search .field-wrapper {
    flex: 1;
}

.full-width-search input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.full-width-search .btn-main {
    border-radius: 4px;
    padding: 12px 30px;
    white-space: nowrap;
}

.sidebar-title-margin {
    margin-bottom: 20px !important;
}

.checkbox-aligned {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.checkbox-aligned input {
    width: auto !important;
    margin: 0 !important;
}

.checkbox-aligned label {
    font-weight: normal !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.field-wrapper {
    position: relative;
    width: 100%;
}

.field-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ccc;
    display: none;
    transition: var(--transition);
    z-index: 5;
}

.field-clear:hover {
    color: #999;
}

textarea + .field-clear {
    top: 15px;
    transform: none;
}

.form-group input[readonly],
.form-group input:disabled,
.form-group textarea[readonly],
.form-group textarea:disabled,
select:disabled {
    background-color: #f1f5f9;
    color: var(--text-color);
    border-color: var(--input-border);
    cursor: not-allowed;
    opacity: 0.9;
}

[data-theme="dark"] .form-group input[readonly],
[data-theme="dark"] .form-group input:disabled,
[data-theme="dark"] .form-group textarea[readonly],
[data-theme="dark"] .form-group textarea:disabled,
[data-theme="dark"] select:disabled {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
    cursor: not-allowed;
    opacity: 1;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; }
.checkbox-group label { font-weight: normal; font-size: 0.9rem; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}
.modal-content {
    max-width: 400px;
    width: 90%;
    position: relative;
    padding: 40px;
}
.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Portfolio Specifics */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    grid-auto-rows: 1fr;
}
.portfolio-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}
.app-logo { margin-bottom: 15px; height: 140px; width: 140px; margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: center; background: #ffffff; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.app-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; border-radius: 8px; }
.portfolio-card h3 { font-size: 1rem; margin-bottom: 5px; color: var(--primary-color); }
.portfolio-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; }
.card-footer { border-top: 1px solid var(--border-color); padding-top: 10px; }

/* Utilities */
.text-center { text-align: center; }
.margin-v-20 { margin: 20px 0; }

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
    margin-top: 50px;
    transition: var(--transition);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 { margin-bottom: 20px; color: var(--footer-text); }
.footer-links h4 { margin-bottom: 20px; color: var(--footer-text); }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--footer-text); }

.footer-social h4 { margin-bottom: 20px; color: var(--footer-text); }
.footer-social a {
    margin-right: 15px;
    display: inline-block;
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--footer-text);
    opacity: 0.8;
    transition: var(--transition);
}
.footer-social a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.contact-form {
    text-align: left !important;
}

/* Contact Page Specifics */
.contact-icon-small {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Page Specific Overrides & Components */
.logo-hit { text-align: center; margin-top: 10px; margin-bottom: 40px; }
.lead { font-size: 1.3rem; font-weight: bold; color: var(--primary-color); margin-bottom: 20px; }
.action-box { text-align: center; margin-top: 40px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin: 40px 0;
}
.contact-info { text-align: left; }
.contact-info h2 { margin-bottom: 20px; color: var(--primary-color); }
.contact-info hr { margin: 20px 0; border: none; border-top: 1px solid #eee; }
.contact-icon {
    display: inline-block;
    width: 24px;
    text-align: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    vertical-align: middle;
}
.qr-box { margin-top: 20px; text-align: center; }

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}
.btn-submit:hover { background: var(--accent-color); }

.alert { padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }

.text-left { text-align: left; }

/* Responsive */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 100px); /* Limit height based on viewport */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    .nav-list.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; gap: 0; }
}

.btn-quote {
    background-color: white;
    color: var(--primary-blue);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
}
.btn-quote:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Blog Layout */
.blog-layout {
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.blog-single-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
}

.blog-content ul, .blog-content ol,
.content-box ul, .content-box ol {
    margin-top: 15px;
    margin-bottom: 20px;
    padding-left: 40px;
}

.blog-content li {
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-single-container {
        max-width: 100% !important;
    }
}

/* reCAPTCHA Badge Hide */
.grecaptcha-badge { visibility: hidden !important; }

/* Theme Switcher Styles */
.theme-select-control {
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    width: auto;
    min-width: 140px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.customize-dropdown .dropdown-menu {
    min-width: 180px;
}

.customize-menu li a.active {
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--dropdown-header-bg);
}

.theme-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.theme-menu li a.active {
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--dropdown-header-bg);
}

/* Dark Theme Header Logo Replacement */
[data-theme="dark"] .logo img {
    content: url('../gfx/3sLogo1_dark.png');
}

/* -------------------------------------------------------------------------
   Visual refresh: shared presentation layer.  The existing PHP templates,
   URLs and functional classes deliberately remain unchanged.
   ------------------------------------------------------------------------- */
:root,
[data-theme="current"] {
    --ink-strong: #10233f;
    --brand-deep: #073d78;
    --brand-bright: #0875d1;
    --surface-soft: #f2f7fc;
    --focus-ring: rgba(8, 117, 209, 0.34);
    --shadow-soft: 0 14px 36px rgba(15, 48, 84, 0.10);
    --shadow-lift: 0 20px 44px rgba(7, 61, 120, 0.18);
}

[data-theme="light"] {
    --ink-strong: #072a4d;
    --brand-deep: #0056b3;
    --brand-bright: #0284c7;
    --surface-soft: #eaf2fb;
    --focus-ring: rgba(0, 102, 204, 0.32);
    --shadow-soft: 0 14px 36px rgba(0, 50, 120, 0.08);
    --shadow-lift: 0 20px 44px rgba(0, 50, 120, 0.14);
}

[data-theme="dark"] {
    --ink-strong: #f8fafc;
    --brand-deep: #38bdf8;
    --brand-bright: #0b3d75;
    --surface-soft: #111c2d;
    --focus-ring: rgba(56, 189, 248, 0.38);
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.24);
    --shadow-lift: 0 20px 44px rgba(0, 0, 0, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(8, 117, 209, 0.07), transparent 30rem),
        var(--background-color);
    letter-spacing: 0.005em;
}

body::selection {
    background: var(--brand-bright);
    color: #fff;
}

.container {
    max-width: 1240px;
}

header {
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 78%, transparent);
    box-shadow: 0 6px 24px rgba(15, 48, 84, 0.07);
}

.logo img {
    display: block;
    height: 54px;
    width: auto;
}

.nav-list {
    align-items: center;
    gap: 2px;
}

.nav-list > li {
    padding: 10px 12px;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    font-size: 0.93rem;
    padding: 7px 8px;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible {
    color: var(--brand-deep);
    background: color-mix(in srgb, var(--primary-color) 9%, transparent);
}

/* Dark Theme Header & Navigation Hover/Active Fixes */
[data-theme="dark"] .nav-list > li > a:hover,
[data-theme="dark"] .nav-list > li > a:focus-visible,
[data-theme="dark"] .dropdown:hover > a,
[data-theme="dark"] .dropdown.open > a {
    color: var(--primary-color) !important;
    background: color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
}

[data-theme="dark"] .dropdown-menu li a:hover,
[data-theme="dark"] .dropdown-menu li a:focus-visible {
    color: var(--primary-color) !important;
    background: color-mix(in srgb, var(--primary-color) 16%, transparent) !important;
}

/* Light Theme Navigation Hover/Active Fixes */
[data-theme="light"] .nav-list > li > a:hover,
[data-theme="light"] .nav-list > li > a:focus-visible,
[data-theme="light"] .dropdown:hover > a,
[data-theme="light"] .dropdown.open > a {
    color: var(--primary-color) !important;
    background: rgba(0, 102, 204, 0.08) !important;
}

[data-theme="light"] .dropdown-menu li a:hover,
[data-theme="light"] .dropdown-menu li a:focus-visible {
    color: var(--primary-color) !important;
    background: rgba(0, 102, 204, 0.08) !important;
}

[data-theme="light"] .card,
[data-theme="light"] .portfolio-card,
[data-theme="light"] .article-card,
[data-theme="light"] .faq-item {
    background: #ffffff !important;
    border: 1px solid #d7e4f2 !important;
    box-shadow: 0 8px 24px rgba(0, 50, 120, 0.06) !important;
}

.dropdown-menu {
    top: calc(100% + 7px);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-lift);
    border-color: color-mix(in srgb, var(--border-color) 88%, transparent);
}

.dropdown-menu li a {
    border-radius: 7px;
    padding: 9px 12px;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
    background: color-mix(in srgb, var(--primary-color) 9%, transparent);
}

.hero-home {
    isolation: isolate;
    overflow: hidden;
    min-height: 300px;
    display: grid;
    align-items: center;
    padding: 46px 0 42px;
    text-align: center;
    background:
        linear-gradient(117deg, var(--brand-deep) 0%, #075aa5 54%, #0a8ed6 100%);
}

.hero-home::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.32;
    background-image: linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to right, #000 0%, transparent 78%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1,
.hero-content p {
    text-align: center;
}

.hero h1 {
    max-width: 1200px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.05rem, 3.35vw, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.042em;
    text-shadow: none;
}

.hero p {
    max-width: 1000px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.04rem, 1.9vw, 1.23rem);
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
    justify-content: center;
    text-align: center;
}

.hero .btn,
.btn-main,
.btn-submit,
.btn-quote {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(4, 37, 74, 0.18);
}

.hero .btn {
    margin: 0;
    padding: 13px 22px;
    background: #fff;
    color: var(--brand-deep);
}

.hero .btn:hover,
.hero .btn:focus-visible {
    transform: translateY(-2px);
    background: #eef7ff;
}

.hero .btn-alt {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
    box-shadow: none;
}

.hero .btn-alt:hover,
.hero .btn-alt:focus-visible {
    background: #fff;
    color: var(--brand-deep);
}

.hero-orb {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 999px;
    filter: blur(1px);
    opacity: 0.56;
}

.hero-orb-one {
    top: -210px;
    right: 7%;
    width: 470px;
    height: 470px;
    background: radial-gradient(circle at 32% 35%, rgba(180, 235, 255, 0.90), rgba(70, 165, 223, 0.14) 64%, transparent 68%);
}

.hero-orb-two {
    right: 25%;
    bottom: -205px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(83, 205, 255, 0.42), transparent 68%);
}

.features {
    position: relative;
    z-index: 2;
    margin-top: 28px;
}

.grid {
    gap: 22px;
    padding: 0 0 34px;
}

.card {
    height: 100%;
    padding: 28px 24px;
    border-radius: 15px;
    border-color: color-mix(in srgb, var(--primary-color) 11%, var(--border-color));
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.card:hover {
    transform: translateY(-7px);
    border-color: color-mix(in srgb, var(--primary-color) 42%, var(--border-color));
    box-shadow: var(--shadow-lift);
}

.card > i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 0 18px;
    border-radius: 13px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 15%, transparent), color-mix(in srgb, var(--primary-light) 22%, transparent));
    color: var(--brand-deep);
    font-size: 1.35rem;
}

[data-theme="dark"] .card > i {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.30), rgba(125, 211, 252, 0.18));
    border: 1px solid rgba(125, 211, 252, 0.18);
    color: #bae6fd;
}

.card h3 {
    color: var(--ink-strong);
    font-size: 1.15rem;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.62;
}

.content-box {
    padding: clamp(28px, 5vw, 58px);
    border-radius: 18px;
    border-color: color-mix(in srgb, var(--primary-color) 11%, var(--border-color));
    box-shadow: var(--shadow-soft);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 4%, var(--card-bg)), var(--card-bg) 52%);
}

.content-box h2,
section h2,
.content-section h1,
.content-section h2 {
    color: var(--ink-strong);
    letter-spacing: -0.025em;
}

.content-box p + p {
    margin-top: 17px;
}

.portfolio-card,
.blog-posts .card {
    border-radius: 15px;
}

.app-logo {
    border-radius: 12px;
    box-shadow: none;
}

.form-group input,
.form-group textarea,
select {
    min-height: 46px;
    border-radius: 9px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    min-height: 140px;
}

.form-group input:focus,
.form-group textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-bright);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.btn-main,
.btn-submit {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-bright));
}

.btn-main:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #052e5b, var(--brand-deep));
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

footer {
    margin-top: 78px;
    padding-top: 60px;
}

.footer-bottom {
    border-color: color-mix(in srgb, var(--footer-text) 18%, transparent);
}

@media (max-width: 992px) {
    .nav-list > li {
        padding: 3px 10px;
    }

    .nav-list a {
        width: 100%;
        padding: 11px 8px;
    }

    .hero-home {
        min-height: auto;
        padding: 44px 0 42px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 17px;
    }

    .logo img {
        height: 46px;
    }

    .hero-home {
        padding: 40px 0 42px;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero .btn {
        text-align: center;
    }

    .features {
        margin-top: 22px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .card {
        padding: 23px 21px;
    }

    .content-box {
        margin: 25px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Shared treatment for all internal pages. */
.hero:not(.hero-home) {
    position: relative;
    overflow: hidden;
    padding: 58px 0 54px;
    background:
        radial-gradient(circle at 82% 18%, rgba(111, 208, 255, 0.28), transparent 26rem),
        linear-gradient(118deg, var(--brand-deep), var(--brand-bright));
}

.hero:not(.hero-home)::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero:not(.hero-home) .container {
    position: relative;
    z-index: 1;
}

.hero:not(.hero-home) h1 {
    max-width: 1050px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(2rem, 3.5vw, 3.35rem);
}

.hero:not(.hero-home) p {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
}

.content-section,
.portfolio,
.contact-section,
.quote-form-section,
.demo-form-section,
.hit4b-desc,
.details {
    margin-top: 58px;
    margin-bottom: 58px;
}

.portfolio-grid,
.articles-grid {
    gap: 22px !important;
}

.portfolio-card,
.article-card,
.article-content,
.faq-item,
.sidebar .card,
.comment,
.modal-content {
    border: 1px solid color-mix(in srgb, var(--primary-color) 13%, var(--border-color));
    border-radius: 15px !important;
    box-shadow: var(--shadow-soft) !important;
}

.article-card,
.article-content,
.faq-item,
.modal-content {
    background: var(--card-bg) !important;
}

.article-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift) !important;
}

.article-card-content,
.article-card-footer {
    background: transparent;
}

.article-card h2,
.article-card h3,
.article-content h1,
.article-content h2,
.article-content h3,
.blog-single h1,
.blog-single h2,
.faq-category-title {
    color: var(--ink-strong) !important;
}

.article-excerpt,
.article-meta,
.image-caption,
.rodo-text {
    color: var(--text-muted) !important;
}

.faq-category-title {
    border-color: var(--brand-bright) !important;
}

.faq-question {
    padding: 17px 20px !important;
    background: color-mix(in srgb, var(--primary-color) 7%, var(--card-bg)) !important;
    color: var(--ink-strong);
}

.faq-answer {
    background: var(--card-bg);
    color: var(--text-color);
}

.faq-item:has(.faq-answer[style*="max-height"]) {
    border-color: color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
}

.blog-tags,
.add-comment {
    border-color: color-mix(in srgb, var(--primary-color) 15%, var(--border-color)) !important;
}

.badge {
    border-radius: 999px !important;
}

.sidebar .badge,
.blog-tags .badge {
    background: color-mix(in srgb, var(--primary-color) 11%, var(--card-bg)) !important;
    color: var(--ink-strong) !important;
}

.contact-info p + p {
    margin-top: 13px;
}

.contact-info a,
.article-content a,
.blog-content a {
    color: var(--brand-bright);
}

.app-logo {
    background: #fff;
    border-color: color-mix(in srgb, var(--primary-color) 13%, var(--border-color));
}

.btn-main,
.btn-submit,
.btn-sm {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(4, 37, 74, 0.14);
}

.btn-main:hover,
.btn-submit:hover,
.btn-sm:hover {
    transform: translateY(-2px);
}

.styled-form,
.contact-form {
    color: var(--text-color);
}

.alert {
    border: 1px solid transparent;
    border-radius: 10px;
}

.alert-success {
    border-color: rgba(34, 197, 94, 0.28);
}

.alert-danger,
.alert-error {
    border-color: rgba(239, 68, 68, 0.28);
}

.content-box table,
.article-content table,
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.content-box th,
.content-box td,
.article-content th,
.article-content td,
.blog-content th,
.blog-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.content-box th,
.article-content th,
.blog-content th {
    color: var(--ink-strong);
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
}

[data-theme="dark"] .article-card,
[data-theme="dark"] .article-content,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .modal-content {
    background: var(--card-bg) !important;
}

@media (max-width: 640px) {
    .hero:not(.hero-home) {
        padding: 42px 0 40px;
    }

    .content-section,
    .portfolio,
    .contact-section,
    .quote-form-section,
    .demo-form-section,
    .hit4b-desc,
    .details {
        margin-top: 34px;
        margin-bottom: 34px;
    }

    .portfolio-grid,
    .articles-grid {
        gap: 16px !important;
    }

    .article-content {
        padding: 24px !important;
    }

    .content-box th,
    .content-box td,
    .article-content th,
    .article-content td,
    .blog-content th,
    .blog-content td {
        padding: 10px;
    }
}





/* ==========================================================================
   MODERN DESIGN ENHANCEMENTS: HERO, MOCKUP & FEATURE CARDS
   ========================================================================== */

/* Keyframe animations */
@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Modern Hero Section Layout */
.hero-home {
    isolation: isolate;
    overflow: visible;
    position: relative;
    padding: 60px 0 70px;
    background: linear-gradient(135deg, #022b5c 0%, #004a99 50%, #0070d2 100%);
    color: #ffffff;
}

[data-theme="dark"] .hero-home,
[data-theme="dark"] .hero:not(.hero-home),
[data-theme="dark"] .page-header.hero,
[data-theme="dark"] .page-header,
[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.08), transparent 26rem),
        linear-gradient(135deg, #051429 0%, #082954 50%, #0b3d75 100%) !important;
}

/* Light Theme (Motyw Jasny) - Luminous & Fresh Hero */
[data-theme="light"] .hero-home,
[data-theme="light"] .hero:not(.hero-home),
[data-theme="light"] .page-header.hero,
[data-theme="light"] .page-header,
[data-theme="light"] .hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(0, 102, 204, 0.09), transparent 28rem),
        linear-gradient(135deg, #f0f6fc 0%, #e2eefa 52%, #ebf4fc 100%) !important;
    border-bottom: 1px solid #d4e3f2;
    color: #0b223d !important;
}

[data-theme="light"] .hero h1,
[data-theme="light"] .hero-home h1,
[data-theme="light"] .hero:not(.hero-home) h1,
[data-theme="light"] .page-header h1 {
    color: #072a4d !important;
}

[data-theme="light"] .hero p,
[data-theme="light"] .hero-home .hero-lead,
[data-theme="light"] .hero:not(.hero-home) p,
[data-theme="light"] .hero-lead {
    color: #2c4a6f !important;
}

[data-theme="light"] .hero-title-icon {
    background: #ffffff !important;
    color: #0066cc !important;
    border: 1px solid #c8dcf0 !important;
    box-shadow: 0 8px 24px rgba(0, 80, 160, 0.12) !important;
}

[data-theme="light"] .hero-gradient-text {
    background: linear-gradient(90deg, #0056b3 0%, #0084ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .hero-pill-badge {
    background: #ffffff !important;
    border-color: #c8dcf0 !important;
    color: #0056b3 !important;
    box-shadow: 0 4px 12px rgba(0, 60, 140, 0.06) !important;
}

[data-theme="light"] .hero-home .hero-btns .btn,
[data-theme="light"] .hero .btn-main {
    background: #0066cc !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(0, 102, 204, 0.28) !important;
}

[data-theme="light"] .hero-home .hero-btns .btn:hover,
[data-theme="light"] .hero .btn-main:hover {
    background: #004a99 !important;
    color: #ffffff !important;
}

[data-theme="light"] .hero .btn-alt {
    background: #ffffff !important;
    border: 1px solid #b8d4f0 !important;
    color: #072a4d !important;
    box-shadow: 0 4px 12px rgba(0, 40, 100, 0.06) !important;
}

[data-theme="light"] .hero .btn-alt:hover {
    background: #f0f7ff !important;
    color: #0056b3 !important;
    border-color: #0066cc !important;
}

[data-theme="light"] .hero-trust-badges {
    color: #3b577a !important;
}

[data-theme="light"] .hero-mockup-window {
    background: #ffffff !important;
    border: 1px solid #cddde9 !important;
    box-shadow: 0 24px 56px -12px rgba(10, 40, 90, 0.14) !important;
    color: #1e293b !important;
}

[data-theme="light"] .mockup-header {
    background: #f1f6fc !important;
    border-bottom: 1px solid #dce7f3 !important;
}

[data-theme="light"] .mockup-address-bar {
    background: #ffffff !important;
    border: 1px solid #cbdde9 !important;
    color: #334e68 !important;
}

[data-theme="light"] .mockup-status {
    color: #059669 !important;
}

[data-theme="light"] .metric-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .metric-icon {
    background: rgba(0, 102, 204, 0.12) !important;
    color: #0066cc !important;
}

[data-theme="light"] .metric-label {
    color: #64748b !important;
}

[data-theme="light"] .metric-val {
    color: #0f172a !important;
}

[data-theme="light"] .mockup-modules-preview {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .preview-header {
    color: #0f172a !important;
}

[data-theme="light"] .badge-mini {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="light"] .chip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .chip-active {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .mockup-ai-banner {
    background: linear-gradient(90deg, #eef2ff 0%, #f3e8ff 100%) !important;
    border: 1px solid #d8b4fe !important;
}

[data-theme="light"] .ai-banner-icon {
    background: linear-gradient(135deg, #6366f1, #9333ea) !important;
    color: #ffffff !important;
}

[data-theme="light"] .ai-banner-text {
    color: #4b5563 !important;
}

[data-theme="light"] .ai-banner-text strong {
    color: #4338ca !important;
}

[data-theme="light"] .floating-badge {
    background: linear-gradient(135deg, #0284c7, #0056b3) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 12px 28px rgba(0, 80, 160, 0.35) !important;
}

[data-theme="dark"] .btn-main,
[data-theme="dark"] .btn-submit,
[data-theme="dark"] .btn-sm,
[data-theme="dark"] .btn-quote,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .card-footer .btn-sm {
    background: linear-gradient(135deg, #082954 0%, #0056b3 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .btn-main:hover,
[data-theme="dark"] .btn-submit:hover,
[data-theme="dark"] .btn-sm:hover,
[data-theme="dark"] .btn-quote:hover,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .card-footer .btn-sm:hover {
    background: linear-gradient(135deg, #0b3d75 0%, #0066cc 100%) !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 6px 20px rgba(0, 20, 60, 0.5) !important;
    transform: translateY(-2px);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.hero-text-col {
    text-align: left;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    animation: pulseGreen 2s infinite;
}

.hero-home h1 {
    font-size: clamp(2.3rem, 3.8vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: left;
}

.hero-gradient-text {
    background: linear-gradient(90deg, #60a5fa 0%, #93c5fd 50%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-home .hero-lead,
.hero-text-col .hero-lead,
.hero-lead {
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0 !important;
    max-width: 640px;
    text-align: left !important;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 32px;
}

.hero-btns .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 26px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-primary-hero {
    background: #ffffff !important;
    color: #004a99 !important;
    box-shadow: 0 10px 25px rgba(0, 20, 50, 0.28);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    background: #f0f7ff !important;
    box-shadow: 0 14px 32px rgba(0, 20, 50, 0.38);
    color: #003366 !important;
}

.hero-btns .btn-alt {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
}

.hero-btns .btn-alt:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
    color: #ffffff !important;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-badge i {
    color: #38bdf8;
    font-size: 1rem;
}

/* Hero Visual Mockup Window */
.hero-visual-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup-window {
    position: relative;
    width: 100%;
    max-width: 530px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 30px 70px -15px rgba(2, 14, 34, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    color: #f8fafc;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mockup-window * {
    text-decoration: none;
}

.hero-mockup-window:hover {
    transform: translateY(-7px) scale(1.012);
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 36px 85px -12px rgba(2, 25, 70, 0.65), 0 0 0 2px rgba(56, 189, 248, 0.4);
}

.hero-mockup-window:hover .mockup-address-bar {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.hero-mockup-window:hover .mockup-ext-icon {
    opacity: 1;
    transform: translate(2px, -2px);
    color: #38bdf8;
}

.hero-mockup-window:hover .floating-badge {
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.65);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 0 0;
}

.mockup-dots {
    display: flex;
    gap: 7px;
}

.mockup-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-address-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 270px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #34d399;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulseGreen 2s infinite;
}

.mockup-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mockup-top-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.metric-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.mockup-modules-preview {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    text-align: left;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.badge-mini {
    font-size: 0.68rem;
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.module-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.chip-active {
    background: rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.55);
    color: #bae6fd;
    font-weight: 600;
}

.mockup-ai-banner {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.28), rgba(147, 51, 234, 0.22));
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.ai-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.ai-banner-text {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.ai-banner-text strong {
    color: #e0e7ff;
    display: block;
    margin-bottom: 2px;
    font-size: 0.82rem;
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: floatSlow 4s ease-in-out infinite;
    z-index: 5;
}

/* Section Title Wrap */
.section-title-wrap {
    text-align: center;
    max-width: 760px;
    margin: 50px auto 40px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.section-title-wrap h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-color);
    margin-bottom: 12px;
}

.section-title-wrap p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Modernized Feature Cards */
.card-feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 14%, transparent), color-mix(in srgb, var(--primary-light) 22%, transparent));
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.card-feature:hover .card-icon-wrap {
    transform: scale(1.08) rotate(3deg);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    color: var(--primary-color);
}

.card-action-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.85;
    transition: all 0.25s ease;
}

.card-feature:hover .card-action-hint {
    opacity: 1;
}

.card-feature:hover .card-action-hint i {
    transform: translateX(5px);
}

.card-action-hint i {
    transition: transform 0.25s ease;
    font-size: 0.8rem;
}

/* Responsive Styles for Modern Hero */
@media (max-width: 992px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text-col {
        text-align: center;
    }

    .hero-home h1,
    .hero-lead {
        text-align: center;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .floating-badge {
        right: 10px;
        bottom: -12px;
    }
}

@media (max-width: 640px) {
    .hero-home {
        padding: 40px 0 50px;
    }

    .hero-split-grid {
        gap: 32px;
    }

    .hero-home h1 {
        font-size: 2.1rem;
    }

    .mockup-top-metrics {
        grid-template-columns: 1fr;
    }

    .floating-badge {
        position: static;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
        border-radius: 10px;
    }
}



/* ==========================================================================
   STATS BAR, SHOWCASE MODULES, COMPARISON & CTA BANNER
   ========================================================================== */

/* 1. Stats Bar Section */
.stats-bar-section {
    position: relative;
    z-index: 10;
    margin-top: -30px;
    padding: 0 20px;
}

.stats-grid {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 28px 34px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    align-items: center;
}

[data-theme="dark"] .stats-grid {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    background: var(--card-bg);
    border-color: var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--border-color);
    padding-right: 18px;
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-number {
    font-size: clamp(2.1rem, 3.2vw, 2.75rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -0.035em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex-shrink: 0;
}

[data-theme="dark"] .stat-number {
    color: var(--primary-light);
}

.stat-label {
    display: flex;
    flex-direction: column;
}

.stat-label strong {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-label span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* 2. Showcase Modules Section */
.showcase-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.showcase-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: color-mix(in srgb, var(--primary-color) 45%, var(--border-color));
}

.showcase-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.showcase-logo {
    max-height: 44px;
    max-width: 140px;
    object-fit: contain;
}

.showcase-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 11px;
    border-radius: 999px;
}

.badge-prod {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.badge-safety {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.badge-hr {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.badge-maintenance {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.28);
}

.showcase-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

.showcase-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: color-mix(in srgb, var(--primary-color) 4%, var(--card-bg));
    border-radius: 12px;
    font-size: 0.84rem;
    color: var(--text-color);
}

.showcase-features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-features i {
    color: #10b981;
    font-size: 0.76rem;
}

.showcase-footer {
    margin-top: auto;
}

.btn-showcase {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color) 8%, var(--card-bg));
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
    transition: all 0.25s ease;
}

.btn-showcase:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.btn-showcase i {
    transition: transform 0.25s ease;
}

.btn-showcase:hover i {
    transform: translateX(4px);
}

.showcase-cta-bar {
    background: color-mix(in srgb, var(--primary-color) 6%, var(--card-bg));
    border: 1px dashed color-mix(in srgb, var(--primary-color) 35%, transparent);
    border-radius: 16px;
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.showcase-cta-bar p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* 3. Comparison Section */
.comparison-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 24px;
}

.comparison-col {
    border-radius: 20px;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
}

.col-desktop {
    background: color-mix(in srgb, #ef4444 3%, var(--card-bg));
    border: 1px solid color-mix(in srgb, #ef4444 20%, var(--border-color));
}

.col-weblikacje {
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 8%, var(--card-bg)), color-mix(in srgb, #0ea5e9 9%, var(--card-bg)));
    border: 2px solid color-mix(in srgb, var(--primary-color) 45%, transparent);
    box-shadow: 0 16px 36px rgba(0, 74, 153, 0.12);
}

[data-theme="dark"] .col-weblikacje {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.comparison-col-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.col-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.icon-bad {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.icon-good {
    background: rgba(14, 165, 233, 0.16);
    color: #0284c7;
}

[data-theme="dark"] .icon-good {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
}

.comparison-col-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.comparison-col-header span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.comparison-list i {
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.comparison-list .fa-times-circle {
    color: #ef4444;
}

.comparison-list .fa-check-circle {
    color: #10b981;
}

.comparison-list strong {
    display: block;
    font-size: 0.96rem;
    color: var(--text-color);
    margin-bottom: 3px;
}

.comparison-list p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.52;
    margin: 0;
}

/* 4. CTA Banner Section */
.cta-banner-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.cta-card {
    background: linear-gradient(135deg, #022b5c 0%, #004a99 50%, #0070d2 100%);
    border-radius: 24px;
    padding: 56px 42px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px -10px rgba(0, 40, 100, 0.35);
}

[data-theme="dark"] .cta-card {
    background: linear-gradient(135deg, #051429 0%, #082954 50%, #0b3d75 100%);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .cta-card {
    background: linear-gradient(135deg, #0284c7 0%, #0066cc 55%, #004a99 100%);
    box-shadow: 0 25px 60px -10px rgba(0, 102, 204, 0.30);
}

.cta-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
}

.cta-card h2 {
    font-size: clamp(2rem, 3.2vw, 2.65rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.025em;
}

.cta-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    margin-bottom: 34px;
}

.cta-btns {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: #ffffff !important;
    color: #004a99 !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 15px 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 20, 50, 0.28);
    transition: all 0.25s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    background: #f0f7ff !important;
    box-shadow: 0 14px 32px rgba(0, 20, 50, 0.38);
    color: #003366 !important;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 15px 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-3px);
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stats-bar-section {
        margin-top: -20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        padding: 22px 20px;
        gap: 18px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 16px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 38px 20px;
    }

    .cta-btns {
        flex-direction: column;
    }

    .cta-btns .btn {
        width: 100%;
        justify-content: center;
    }
}


.showcase-rotate-info {
    margin-top: 14px;
}

.rotate-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--primary-color) 6%, transparent);
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.rotate-hint i {
    color: var(--primary-color);
    font-size: 0.78rem;
    transition: transform 0.4s ease;
}

.showcase-section:hover .rotate-hint i {
    transform: rotate(180deg);
}


/* ==========================================================================
   COMPACT HORIZONTAL BLOG POST CARDS
   ========================================================================== */
.blog-layout {
    align-items: start !important;
}

.blog-posts {
    display: flex;
    flex-direction: column;
}

.blog-post-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    padding: 12px 18px !important;
    gap: 20px !important;
    overflow: hidden;
    margin-bottom: 18px !important;
    border-radius: 14px;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border-color));
}

.blog-thumb-wrap {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    height: 135px !important;
    border-radius: 10px !important;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    position: relative;
    background: #0b1727;
}

.blog-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.35s ease;
}

.blog-post-card:hover .blog-thumb-img {
    transform: scale(1.06);
}

.blog-post-content {
    padding: 4px 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.blog-meta-dot {
    color: var(--border-color);
}

.blog-cat-badge {
    background: color-mix(in srgb, var(--primary-color) 9%, var(--card-bg));
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.74rem;
}

.blog-post-title {
    font-size: 1.08rem !important;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.015em;
}

.blog-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.48;
    margin: 0 0 10px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-footer {
    margin-top: 0 !important;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-read-more i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.blog-post-card:hover .blog-read-more i {
    transform: translateX(4px);
}

/* Responsive: under 720px stack vertically */
@media (max-width: 720px) {
    .blog-post-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 14px !important;
    }

    .blog-thumb-wrap {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
    }
}


/* ==========================================================================
   PAGE BANNER HERO TITLE ICONS
   ========================================================================== */
.hero:not(.hero-home) h1,
.page-header h1 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.hero-title-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff !important;
    font-size: 1.65rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero:not(.hero-home):hover .hero-title-icon,
.page-header:hover .hero-title-icon {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 640px) {
    .hero:not(.hero-home) h1,
    .page-header h1 {
        gap: 12px;
    }

    .hero-title-icon {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
        border-radius: 12px;
    }
}
