/* ============================================================
   Jail411.com — Custom Theme Overrides for Blocksy
   Steel Blue (#2563eb) + Deep Ink (#111827) design system
   v4.0.0 — Bloomberg/WSJ professional aesthetic
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- Custom Properties ---- */
:root {
    --j411-navy: #111827;
    --j411-navy-mid: #1f2937;
    --j411-navy-light: #374151;
    --j411-orange: #2563eb;
    --j411-orange-hover: #1d4ed8;
    --j411-orange-light: #3b82f6;
    --j411-text: #1a1a2e;
    --j411-text-muted: #6b7280;
    --j411-bg: #f9fafb;
    --j411-white: #ffffff;
    --j411-border: #e5e7eb;

    /* Extended tokens */
    --j411-text-secondary: #4b5563;
    --j411-surface: #f9fafb;
    --j411-surface-alt: #f3f4f6;
    --j411-border-dark: #d1d5db;
    --j411-font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --j411-font-editorial: 'Georgia', 'Times New Roman', serif;
    --j411-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --j411-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Override Blocksy palette */
    --theme-palette-color-1: #2563eb;
    --theme-palette-color-2: #1d4ed8;
    --theme-palette-color-3: #1a1a2e;
    --theme-palette-color-4: #111827;
    --theme-palette-color-5: #e5e7eb;
    --theme-palette-color-6: #f9fafb;
    --theme-palette-color-7: #f3f4f6;
    --theme-palette-color-8: #ffffff;

    --theme-link-initial-color: var(--j411-orange);
    --theme-link-hover-color: var(--j411-orange-hover);
    --theme-heading-color: var(--j411-navy);
    --theme-button-background-initial-color: var(--j411-orange);
    --theme-button-background-hover-color: var(--j411-orange-hover);
    --theme-button-text-initial-color: #fff;
    --theme-button-text-hover-color: #fff;
    --theme-button-border-radius: 6px;
    --theme-form-field-border-initial-color: var(--j411-border);
    --theme-form-field-border-focus-color: var(--j411-orange);
}

/* ---- Global ---- */
body {
    background: var(--j411-bg);
    color: var(--j411-text);
    font-family: var(--j411-font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--j411-orange);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--j411-orange-hover);
}

/* ---- Header — force deep ink background ---- */
header[data-id="type-1"],
header[data-id="type-1"] .ct-header,
[data-header*="type-1"] .ct-header,
#header.ct-header,
.ct-header {
    background: var(--j411-navy) !important;
    background-color: var(--j411-navy) !important;
    border-bottom: 2px solid var(--j411-orange);
}

header[data-id="type-1"] .ct-header [data-row],
[data-header*="type-1"] .ct-header [data-row],
[data-header*="type-1"] .ct-header [data-row*="middle"],
[data-header*="type-1"] .ct-header [data-row*="bottom"],
#header.ct-header [data-row],
#header.ct-header [data-row="middle"],
#header.ct-header [data-row="bottom"],
.ct-header [data-row] {
    background: var(--j411-navy) !important;
    background-color: var(--j411-navy) !important;
}

/* Site title */
.site-title a,
.ct-header .site-title a,
#header .site-branding .site-title a,
[data-header*="type-1"] .ct-header [data-id="logo"] .site-title a {
    color: #fff !important;
    font-family: var(--j411-font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 28px;
    text-decoration: none !important;
    --theme-link-initial-color: #fff;
}

.ct-header .site-description,
#header .site-branding .site-description {
    color: rgba(255, 255, 255, 0.55) !important;
    font-family: var(--j411-font-body);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---- Navigation ---- */
#header .ct-header-navigation,
#header nav[id*="menu"] {
    background: transparent !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a,
#header .ct-header-navigation > ul > li > a,
#header nav .menu > li > a,
.ct-header .ct-menu-link {
    color: rgba(255, 255, 255, 0.85) !important;
    --theme-link-initial-color: rgba(255, 255, 255, 0.85) !important;
    font-family: var(--j411-font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.6px;
    transition: color 0.2s ease;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current-menu-item > a,
#header .ct-header-navigation > ul > li > a:hover,
#header .ct-header-navigation > ul > li.current-menu-item > a,
#header nav .menu > li > a:hover,
#header nav .menu > li.current-menu-item > a,
.ct-header .ct-menu-link:hover {
    color: #fff !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current-menu-item > a {
    border-bottom: 2px solid var(--j411-orange);
    padding-bottom: 2px;
}

/* Dropdown/submenu */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu,
#header .sub-menu {
    background: var(--j411-white) !important;
    border: 1px solid var(--j411-border) !important;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link,
#header .sub-menu li a {
    color: var(--j411-text) !important;
    --theme-link-initial-color: var(--j411-text) !important;
    font-weight: 400;
    text-transform: none;
    font-size: 14px;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link:hover,
#header .sub-menu li a:hover {
    color: var(--j411-orange) !important;
    background: var(--j411-surface-alt) !important;
}

/* Header search icon */
#header .ct-header-search,
#header [data-id="search"],
[data-header*="type-1"] .ct-header [data-id="search"] {
    color: rgba(255, 255, 255, 0.7) !important;
}
#header [data-id="search"]:hover {
    color: #fff !important;
}

/* Mobile toggle */
.ct-header .ct-toggle,
.ct-header-trigger,
[data-header*="type-1"] [data-id="trigger"] {
    color: #fff !important;
}
.ct-header .ct-toggle:hover {
    color: var(--j411-orange) !important;
}

/* Mobile menu panel */
.ct-panel .ct-menu-link {
    color: var(--j411-text) !important;
    font-family: var(--j411-font-heading);
}
.ct-panel .ct-menu-link:hover {
    color: var(--j411-orange) !important;
}

/* Search modal on dark bg */
[data-header*="type-1"] #search-modal .ct-search-form {
    --theme-form-field-border-initial-color: rgba(255,255,255,0.2);
    --theme-link-initial-color: #fff;
}

/* ---- Buttons ---- */
.wp-element-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"],
.ct-button {
    background: var(--j411-orange) !important;
    border-color: var(--j411-orange) !important;
    color: #fff !important;
    font-family: var(--j411-font-heading);
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.ct-button:hover {
    background: var(--j411-orange-hover) !important;
    border-color: var(--j411-orange-hover) !important;
    transform: translateY(-1px);
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--j411-orange) !important;
    border: 2px solid var(--j411-orange) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--j411-orange) !important;
    color: #fff !important;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6,
.entry-title a {
    color: var(--j411-navy);
    font-family: var(--j411-font-heading);
}

.entry-title a:hover {
    color: var(--j411-orange) !important;
}

/* ---- Post Cards / Blog Entries ---- */
.ct-posts-container article,
.entries > article {
    border-radius: 8px;
    overflow: hidden;
}

.entries > article .entry-card {
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.entries > article:hover .entry-card {
    border-bottom-color: var(--j411-orange);
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
}

.ct-posts-container .entry-meta a,
.ct-posts-container .post-categories a {
    color: var(--j411-orange) !important;
}

/* Category labels */
.post-categories a,
.cat-links a {
    background: var(--j411-orange) !important;
    color: #fff !important;
    border-radius: 3px;
    padding: 2px 10px;
    font-family: var(--j411-font-heading);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none !important;
}

/* ---- Sidebar / Widgets ---- */
.ct-sidebar .ct-widget .widget-title,
aside .widget-title {
    color: var(--j411-navy) !important;
    font-family: var(--j411-font-heading);
    font-weight: 700;
    border-bottom: 2px solid var(--j411-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ---- Pagination ---- */
.ct-pagination .page-numbers.current,
nav.navigation .page-numbers.current {
    background: var(--j411-orange) !important;
    border-color: var(--j411-orange) !important;
    color: #fff !important;
}

.ct-pagination .page-numbers:hover,
nav.navigation .page-numbers:hover {
    background: var(--j411-orange-hover) !important;
    color: #fff !important;
}

/* ---- Footer — force deep ink ---- */
footer#footer.ct-footer,
footer.ct-footer,
[data-footer*="type-1"] .ct-footer {
    background: var(--j411-navy) !important;
    background-color: var(--j411-navy) !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

[data-footer*="type-1"] .ct-footer [data-row],
[data-footer*="type-1"] .ct-footer [data-row*="bottom"],
footer.ct-footer [data-row] {
    background: var(--j411-navy) !important;
    background-color: var(--j411-navy) !important;
}

footer.ct-footer a {
    color: rgba(255, 255, 255, 0.55) !important;
    transition: color 0.2s ease;
}

footer.ct-footer a:hover {
    color: var(--j411-orange-light) !important;
}

footer.ct-footer .widget-title {
    color: #fff !important;
    font-family: var(--j411-font-heading);
    font-weight: 700;
    border-bottom-color: var(--j411-orange) !important;
}

/* Copyright bar */
[data-footer*="type-1"] .ct-footer [data-row*="bottom"],
footer.ct-footer [data-row="bottom"],
footer.ct-footer .ct-footer-copyright,
.ct-footer [data-column="copyright"] {
    background: #0a0f1a !important;
    background-color: #0a0f1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35) !important;
}

.ct-footer [data-column="copyright"] a {
    color: var(--j411-orange) !important;
}

/* ---- Tags ---- */
.tagcloud a,
.tag-cloud-link {
    background: var(--j411-surface-alt) !important;
    color: var(--j411-text-secondary) !important;
    border-color: var(--j411-border) !important;
    border-radius: 3px;
    font-family: var(--j411-font-heading);
    font-size: 12px !important;
    font-weight: 500;
}

.tagcloud a:hover,
.tag-cloud-link:hover {
    background: var(--j411-orange) !important;
    border-color: var(--j411-orange) !important;
    color: #fff !important;
}

/* ---- Search ---- */
.ct-search-form button,
.wp-block-search__button {
    background: var(--j411-orange) !important;
    color: #fff !important;
}

/* ---- Back to Top ---- */
.ct-back-to-top {
    background: var(--j411-navy) !important;
    color: #fff !important;
    border: 1px solid var(--j411-navy-light);
}
.ct-back-to-top:hover {
    background: var(--j411-orange) !important;
    border-color: var(--j411-orange);
}

/* ---- Selection ---- */
::selection {
    background: var(--j411-orange);
    color: #fff;
}
::-moz-selection {
    background: var(--j411-orange);
    color: #fff;
}

/* ---- Hide blog elements on directory pages ---- */
.j411-directory-page .ct-posts-container,
.j411-directory-page .ct-archive-description {
    display: none !important;
}

/* ---- Breadcrumb styling ---- */
.ct-breadcrumbs {
    color: var(--j411-text-muted);
    font-family: var(--j411-font-body);
    font-size: 13px;
}
.ct-breadcrumbs a {
    color: var(--j411-orange) !important;
}

/* ---- Ensure directory content fills width ---- */
.j411-directory-page main .ct-container,
.j411-directory-page main .ct-container-fluid {
    max-width: 100%;
}

/* ---- Archive/Blog page heading ---- */
.ct-archive-description .page-title {
    color: var(--j411-navy);
    font-family: var(--j411-font-heading);
}

/* ---- Smooth transitions ---- */
a, button, input, .ct-button, .wp-element-button {
    transition: all 0.2s ease;
}

/* ---- 404 page ---- */
.error-404 .ct-button {
    background: var(--j411-orange) !important;
}

/* ---- Comments ---- */
.ct-comment-respond .form-submit input {
    background: var(--j411-orange) !important;
}

/* ---- Loading spinner ---- */
.ct-ajax-loading svg circle {
    stroke: var(--j411-orange) !important;
}

/* ============================================================
   Homepage-specific Styles
   ============================================================ */

/* Hero section */
.j411-homepage-hero {
    background: linear-gradient(135deg, #0c111d 0%, var(--j411-navy) 40%, var(--j411-navy-mid) 100%);
    padding: 72px 40px 80px;
    text-align: center;
    border-radius: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    overflow-x: hidden;
    position: relative;
}

.j411-homepage-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--j411-orange), transparent);
}

.j411-homepage-hero h1 {
    color: #fff !important;
    font-family: var(--j411-font-editorial);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.j411-homepage-hero .j411-hero-desc {
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--j411-font-body);
    font-size: clamp(15px, 1.8vw, 17px);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.j411-homepage-hero .wp-block-buttons {
    justify-content: center;
    gap: 12px;
}

.j411-homepage-hero .wp-block-button__link {
    padding: 12px 28px;
    font-family: var(--j411-font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.j411-homepage-hero .wp-block-button.is-style-outline .wp-block-button__link {
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: transparent !important;
}
.j411-homepage-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

/* Stats bar */
.j411-stats-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 32px rgba(17, 24, 39, 0.08);
    margin: -44px auto 40px;
    max-width: 800px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid var(--j411-border);
}

.j411-stats-bar > div {
    flex: 1;
    text-align: center;
    padding: 24px 16px;
    border-right: 1px solid var(--j411-border);
}
.j411-stats-bar > div:last-child {
    border-right: none;
}

.j411-stats-bar .j411-stat-num {
    display: block;
    font-family: var(--j411-font-mono);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--j411-orange);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.j411-stats-bar .j411-stat-label {
    display: block;
    font-family: var(--j411-font-heading);
    font-size: 11px;
    color: var(--j411-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* Section headings */
.j411-section-heading {
    text-align: center;
    margin: 48px 0 32px;
}

.j411-section-heading h2 {
    color: var(--j411-navy);
    font-family: var(--j411-font-heading);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.3px;
}

.j411-section-heading h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--j411-orange);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* News grid on homepage */
.j411-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.j411-news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid var(--j411-orange);
    border: 1px solid var(--j411-border);
    border-top: 3px solid var(--j411-orange);
}

.j411-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.1);
}

.j411-news-card-body {
    padding: 20px;
}

.j411-news-card-category {
    display: inline-block;
    background: var(--j411-orange);
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-family: var(--j411-font-heading);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.j411-news-card h3 {
    font-family: var(--j411-font-editorial);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}

.j411-news-card h3 a {
    color: var(--j411-navy);
    text-decoration: none;
}
.j411-news-card h3 a:hover {
    color: var(--j411-orange);
}

.j411-news-card-date {
    font-family: var(--j411-font-heading);
    font-size: 11px;
    color: var(--j411-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    margin-bottom: 8px;
}

.j411-news-card-excerpt {
    font-family: var(--j411-font-body);
    font-size: 14px;
    color: var(--j411-text-secondary);
    line-height: 1.6;
}

/* State directory grid on homepage */
.j411-home-states {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 32px;
}

.j411-home-state-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid var(--j411-orange);
    text-decoration: none;
    color: var(--j411-navy);
    font-family: var(--j411-font-heading);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    border: 1px solid var(--j411-border);
    border-left: 3px solid var(--j411-orange);
}

.j411-home-state-link:hover {
    background: var(--j411-navy);
    color: #fff;
    transform: translateX(3px);
    border-color: var(--j411-navy);
    border-left-color: var(--j411-orange-light);
}

.j411-home-state-link .state-count {
    font-family: var(--j411-font-mono);
    font-weight: 700;
    color: var(--j411-orange);
    font-size: 13px;
}

.j411-home-state-link:hover .state-count {
    color: var(--j411-orange-light);
}

/* Center buttons */
.j411-center-btn {
    text-align: center;
    margin: 24px 0 48px;
}

.j411-center-btn .wp-block-button__link {
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .j411-homepage-hero {
        padding: 48px 20px 56px;
    }
    .j411-stats-bar {
        flex-wrap: wrap;
        margin-top: -30px;
        border-radius: 8px;
    }
    .j411-stats-bar > div {
        flex: 1 1 50%;
        padding: 16px 12px;
    }
    .j411-stats-bar > div:nth-child(2) {
        border-right: none;
    }
    .j411-stats-bar > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--j411-border);
    }
    .j411-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .j411-home-states {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .j411-news-grid {
        grid-template-columns: 1fr;
    }
    .j411-home-states {
        grid-template-columns: 1fr;
    }
}

/* ---- Ad Slot Collapse (site-wide) ---- */
.j411-ad {
    display: none !important;
    overflow: hidden;
}
.j411-ad.j411-ad-filled {
    display: block !important;
}
/* Also collapse unfilled AdSense ins elements */
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* ---- Single Post Cleanup ---- */
.single .entry-header {
    padding-top: 0;
}
.single .ct-container > article {
    padding-top: 20px;
}

/* ---- Featured Image — Single Post ---- */
.single .ct-featured-image .ct-media-container,
.single .hero-section .ct-media-container {
    max-height: 600px;
    overflow: hidden;
}

.single .ct-featured-image .ct-media-container img,
.single .hero-section .ct-media-container img {
    max-height: 600px;
    object-fit: contain;
}

/* ============================================================
   Mega Systems Page
   ============================================================ */
.j411-mega-systems {
    max-width: 100%;
}

/* Hero */
.mega-hero {
    background: linear-gradient(160deg, #060d1a 0%, var(--j411-navy) 40%, var(--j411-navy-mid) 100%);
    margin: -20px calc(50% - 50vw) 0;
    padding: 80px 40px 60px;
    width: 100vw;
    position: relative;
    overflow: hidden;
}
.mega-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.mega-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.mega-hero__tag {
    display: inline-block;
    background: rgba(37,99,235,0.15);
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--j411-orange-light);
    margin-bottom: 20px;
    font-family: var(--j411-font-heading);
}
.mega-hero__title {
    font-family: var(--j411-font-editorial);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    color: #fff !important;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.mega-hero__desc {
    color: rgba(255,255,255,0.6);
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 720px;
    font-family: var(--j411-font-body);
}
.mega-hero__stats {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    max-width: 520px;
}
.mega-hero__stat {
    flex: 1;
    text-align: center;
    padding: 18px 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.mega-hero__stat:last-child { border-right: none; }
.mega-hero__stat-num {
    display: block;
    font-family: var(--j411-font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--j411-orange-light);
    line-height: 1.1;
}
.mega-hero__stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* Content area */
.mega-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 0 60px;
}
.mega-intro {
    margin-bottom: 48px;
}
.mega-intro h2 {
    font-family: var(--j411-font-editorial);
    font-size: 28px;
    color: var(--j411-navy);
    margin: 0 0 16px;
}
.mega-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--j411-text-secondary);
    margin: 0 0 14px;
}

/* Card grid */
.mega-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 64px;
}

.mega-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--j411-border);
    border-radius: 12px;
    padding: 28px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.mega-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: rgba(37,99,235,0.3);
}
.mega-card--featured {
    background: linear-gradient(135deg, #f8faff 0%, #fff 100%);
    border-color: rgba(37,99,235,0.2);
    border-width: 2px;
}

.mega-card__rank {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--j411-navy);
    color: #fff;
    border-radius: 10px;
    font-family: var(--j411-font-mono);
    font-size: 15px;
    font-weight: 700;
}
.mega-card--featured .mega-card__rank {
    background: var(--j411-orange);
}

.mega-card__body {
    flex: 1;
    min-width: 0;
}
.mega-card__title {
    font-family: var(--j411-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--j411-navy) !important;
    margin: 0 0 4px;
    line-height: 1.3;
}
.mega-card__location {
    font-size: 13px;
    color: var(--j411-text-secondary);
    margin: 0 0 10px;
    font-weight: 500;
}
.mega-card__stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
}
.mega-card__stat {
    font-size: 13px;
    color: var(--j411-text-secondary);
}
.mega-card__stat strong {
    font-family: var(--j411-font-mono);
    font-weight: 700;
    color: var(--j411-orange);
    font-size: 14px;
}
.mega-card__desc {
    font-size: 14px;
    color: var(--j411-text-secondary);
    line-height: 1.65;
    margin: 0 0 12px;
}
.mega-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--j411-orange) !important;
    letter-spacing: 0.02em;
}
.mega-card:hover .mega-card__cta {
    color: var(--j411-orange-hover) !important;
}

.mega-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(37,99,235,0.1);
    color: var(--j411-orange);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* How it works section */
.mega-how-it-works {
    margin-bottom: 64px;
}
.mega-how-it-works h2 {
    font-family: var(--j411-font-editorial);
    font-size: 28px;
    color: var(--j411-navy);
    margin: 0 0 12px;
}
.mega-how-it-works > p {
    font-size: 16px;
    color: var(--j411-text-secondary);
    margin: 0 0 32px;
    line-height: 1.75;
}

.mega-process {
    position: relative;
    padding-left: 36px;
}
.mega-process::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--j411-orange), var(--j411-navy), rgba(17,24,39,0.15));
    border-radius: 2px;
}
.mega-process__step {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    position: relative;
}
.mega-process__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--j411-navy);
    color: #fff;
    border-radius: 50%;
    font-family: var(--j411-font-mono);
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--j411-border);
    margin-left: -36px;
}
.mega-process__step:hover .mega-process__num {
    background: var(--j411-orange);
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--j411-orange);
    transition: all 0.3s ease;
}
.mega-process__info {
    padding-top: 4px;
}
.mega-process__info h3 {
    font-family: var(--j411-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--j411-navy);
    margin: 0 0 6px;
}
.mega-process__info p {
    font-size: 14px;
    color: var(--j411-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* CTA box */
.mega-cta-box {
    background: var(--j411-surface-alt);
    border: 1px solid var(--j411-border);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
}
.mega-cta-box h2 {
    font-family: var(--j411-font-editorial);
    font-size: 26px;
    color: var(--j411-navy);
    margin: 0 0 12px;
}
.mega-cta-box p {
    font-size: 16px;
    color: var(--j411-text-secondary);
    margin: 0 0 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.mega-cta-btn {
    display: inline-block;
    background: var(--j411-orange);
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 8px;
    font-family: var(--j411-font-heading);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.mega-cta-btn:hover {
    background: var(--j411-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .mega-hero { padding: 48px 24px 40px; }
    .mega-hero__stats { flex-direction: column; max-width: 100%; }
    .mega-hero__stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
    .mega-hero__stat:last-child { border-bottom: none; }
    .mega-card { flex-direction: column; gap: 12px; }
    .mega-card__stats-row { gap: 10px; }
    .mega-cta-box { padding: 32px 20px; }
    .mega-process { padding-left: 28px; }
    .mega-process__num { margin-left: -28px; width: 32px; height: 32px; font-size: 12px; }
}

/* End of jail411-custom.css */
