/**
 * NoSpace Dashboard Layout (Minimalist)
 */

/* Compact cards */
.module.card {
    padding: 0;
}

/* Visibility Fix for Module Titles */
.module-title, .card-header, h3.title {
    color: var(--text-main) !important;
    margin: 1rem;
}
/* ========================================
   Common Module Styles (Base Card)
   ======================================== */
.module article {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.module article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-accent);
}

.module article h1, 
.module article h2, 
.module article h3, 
.module article h4 {
    margin: 0 0 .25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    overflow-x: clip;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.module article p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 .25rem;
    line-height: 1.4;
}

.module article .readmore a, 
.module article .btn {
    font-size: 0.85rem;
    color: var(--brand-accent);
    background: none;
    padding: 0;
    border: none;
    font-weight: 600;
}

/* ========================================
   Modules Grid Layouts
   ======================================== */
.module.lab-cards ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 0 0 3rem 0;
}
   
.module.lab-cards article img,
.module.lab-cards article figure {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    margin: 0;
}

/* Icons for Sections */
.module.lab-cards .module-title::before,
.module.deep-dives .module-title::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.module.lab-cards .module-title::before { content: "\f0c3"; } /* Flask */
.module.deep-dives .module-title::before { content: "\f121"; } /* Code */

/* Sidebar Overrides (Timeline & Toolbox) */
.module.timeline-widget article,
.module.toolbox-widget article {
    background: transparent; /* No card bg */
    border: none;
    box-shadow: none;
    padding: 0;
}

.module.timeline-widget article:hover,
.module.toolbox-widget article:hover {
    transform: none;
    box-shadow: none;
}

/* Icons for Sections */
.module.lab-cards .card-header::before,
.module.deep-dives .card-header::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.75rem;
    margin-left: -0.75rem;
    display: inline-block; /* Fix per rendering */
}

.module.lab-cards .card-header::before { content: "\f0c3"; } /* Flask */
.module.deep-dives .card-header::before { content: "\f121"; } /* Code */

/* Sidebar Overrides (Timeline & Toolbox) */
.module.timeline-widget article,
.module.toolbox-widget article {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.module.timeline-widget article:hover,
.module.toolbox-widget article:hover {
    transform: none;
    box-shadow: none;
}


/* ========================================
   Hero Section Refinement (Mockup Match)
   ======================================== */
.nospace-hero {
    text-align: left; /* Align left as per mockup (or centered if preferred) */
    padding: 3rem 0.5rem; /* Less padding, let content breathe */
    border: none; /* Remove border if mockup didn't have it, or keep distinct */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-title .mono-highlight {
    font-family: 'Fira Code', 'Roboto Mono', monospace;
    color: var(--text-main);
    display: inline-block; /* Force new line or inline-block based on preference */
    margin-right: 0.5rem;
    padding-right: 0.5rem;
}

.hero-title .subtitle-part {
    font-weight: 300;
    color: var(--text-secondary);
    display: inline-block;
    font-size: 0.7em; /* Smaller relative to main title */
    margin-left: 0.5rem;
    padding-left: 1.50rem;
    border-left: 2px solid var(--text-main);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.hero-btn.primary {
    background: var(--bg-surface); /* Dark grey in dark mode */
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.hero-btn.primary:hover {
    border-color: var(--brand-accent);
}

.hero-btn.accent {
    background: var(--brand-primary);
    color: #fff;
    border: 1px solid var(--brand-primary);
}

.hero-btn.accent:hover {
    filter: brightness(1.1);
}