/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES (Eye Comfort Optimization)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f1115; /* Deep, comforting dark matte base */
    color: #e2e8f0;            /* Soft off-white to eliminate stark dark-mode contrast strain */
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Central Alignment Layout Wrapper */
.mdl-container {
    width: 90%;
    max-width: 1000px;        /* Restricts stretching on large monitors */
    margin: 0 auto;           /* Centers the entire website horizontally */
    padding: 40px 0;
}

/* ==========================================================================
   2. HEADER BLOCK (Energetic Red & Black Theme)
   ========================================================================== */
.show-header {
    text-align: center;       /* Centers all header text elements */
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1f0505 0%, #0d0e12 100%); /* Elegant deep red/black dark gradient */
    padding: 40px 20px;
    border-radius: 8px;
    border: 1px solid #2d1212;
    border-bottom: 4px solid #dc2626; /* Signature Crimson accent stripe */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.main-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.alternative-title {
    color: #94a3b8; /* Muted slate gray for secondary metadata */
    font-size: 1.1rem;
    font-weight: 400;
}

/* ==========================================================================
   3. CONTENT CONTAINER BASE (Charcoal Canvas Cards)
   ========================================================================== */
.card {
    background-color: #151922; /* Charcoal tone to pop above the background body */
    border: 1px solid #222936;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.card h2 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-left: 4px solid #dc2626; /* Crimson vertical branding indicator anchor */
    padding-left: 12px;
}

.format-body p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

/* Subtle accent block for format subsections */
.format-block {
    margin-top: 20px;
    padding: 20px;
    background-color: #1c212c;
    border-radius: 6px;
    border-left: 3px solid #dc2626;
}

.format-block h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight {
    color: #ef4444;
    font-weight: 700;
}

/* ==========================================================================
   4. TWO-COLUMN SECTIONS MATRIX (CSS Grid Media Modules)
   ========================================================================== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Fluid split grid system layout */
    gap: 30px;
}

.module-card {
    background-color: #151922;
    border: 1px solid #222936;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.module-card:hover {
    transform: translateY(-4px); /* Clean upward reaction shift on hover mouse tracking */
    border-color: #dc2626;       /* Shifts outline ring to brand red */
}

/* Dynamic Media Frame Box */
.img-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #0d0e12;
}

.fluid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* Eliminates squeezed or squashed image stretching distortion */
    display: block;
    transition: transform 0.5s ease;
}

.module-card:hover .fluid-img {
    transform: scale(1.03);      /* Micro cinematic magnification tracking response */
}

/* Overlaid UI Badges */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.badge-crimson { background-color: #dc2626; color: #ffffff; }
.badge-amber   { background-color: #d97706; color: #ffffff; }

/* Internal Card Text Spaces */
.module-card .card-body {
    padding: 25px;
    flex-grow: 1;
}

.module-card .card-body h2 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.module-card .card-body .label {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* ==========================================================================
   5. INTERACTIVE CONNECTIONS (SEO Badges & Verification Elements)
   ========================================================================== */
.seo-link {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.seo-link:hover {
    background-color: #b91c1c !important; /* Mutes the solid red block to a crimson shade on hover */
    transform: translateY(-1px);
}

/* ==========================================================================
   6. GLOBAL INTERFACES FOOTER REGION (Centering & Alignment)
   ========================================================================== */
.main-footer {
    text-align: center;        /* Explicit structural centering declaration across metadata blocks */
    padding: 40px 20px;
    background-color: #0b0c10;
    border-top: 1px solid #1a1d24;
    margin-top: 60px;
    color: #64748b;            /* Soft dark gray for low visual emphasis items */
    font-size: 0.95rem;
}

.main-footer p {
    margin-bottom: 8px;
}

.main-footer strong {
    color: #cbd5e1;            /* Pops text visibility slightly */
}

.main-footer a {
    color: #ef4444;            /* Red anchor links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-footer a:hover {
    color: #f87171;            /* Shifts title to a comforting pastel light-red on hover */
    text-decoration: underline;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (Mobile Structural Scaling)
   ========================================================================== */
@media (max-width: 768px) {
    .modules-grid {
        grid-template-columns: 1fr; /* Compresses down into a clean single vertical stack column list */
    }
    .main-title {
        font-size: 2rem;
    }
    .card {
        padding: 20px;
    }
}
