/* ============================================= */
/* NEWEST COLOR MAG - SOLID BLACK BACKGROUND     */
/* Pure #000000 base with clean dark cards       */
/* ============================================= */

#cm-content.cm-content {
    background: #000000 !important;
    color: #e0e0e0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main containers */
#cm-content .cm-container,
#cm-content .cm-row,
#cm-content .cm-primary,
#cm-content .cm-posts,
#cm-content .mzb-section,
#cm-content .mzb-container-fluid {
    background: #000000 !important;
}

/* Post Cards - Slightly lighter solid black for contrast */
#cm-content article.post,
#cm-content .mzb-post {
    background: #0a0a0a !important;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    border: 1px solid #1a1a1a;
}

#cm-content article.post:hover,
#cm-content .mzb-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
    border-color: #333;
}

/* Featured Images */
#cm-content .mzb-featured-image img,
#cm-content .cm-entry-summary img {
    transition: transform 0.4s ease;
}

#cm-content .mzb-post:hover .mzb-featured-image img {
    transform: scale(1.08);
}

/* Titles */
#cm-content h2,
#cm-content h3,
#cm-content .mzb-post-title a,
#cm-content .mzb-heading-text {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#cm-content .mzb-post-title a:hover {
    color: #00ffcc;
}

/* Category Tags - Kept vibrant (Color Mag style) */
#cm-content .mzb-post-categories a,
#cm-content .category-link {
    background: linear-gradient(135deg, #ff00aa, #00ccff);
    color: #fff !important;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-block;
    margin-bottom: 12px;
}

#cm-content .mzb-post-categories a:hover {
    background: linear-gradient(135deg, #00ff9d, #ff00aa);
    transform: scale(1.05);
}

/* Meta (Date, Author) */
#cm-content .mzb-post-meta,
#cm-content .mzb-post-entry-meta,
#cm-content .mzb-post-date,
#cm-content .mzb-post-author {
    color: #999999;
    font-size: 0.85rem;
}

#cm-content .mzb-post-date a,
#cm-content .mzb-post-author a {
    color: #999999;
}

#cm-content .mzb-post-date a:hover,
#cm-content .mzb-post-author a:hover {
    color: #00ffcc;
}

/* Section Headings */
#cm-content .mzb-heading-text {
    position: relative;
    padding-bottom: 14px;
    color: #ffffff;
}

#cm-content .mzb-heading-text:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65px;
    height: 4px;
    background: #00ffcc;
    border-radius: 2px;
}

/* Content Text */
#cm-content .mzb-entry-content,
#cm-content .cm-entry-summary {
    color: #d0d0d0;
    line-height: 1.65;
}

/* First Highlight Post */
#cm-content .mzb-first-post--highlight {
    background: #111111 !important;
    border: 1px solid #222;
}

/* Clean & Solid */
#cm-content .mzb-post-list {
    background: #000000 !important;
}

/* Responsive */
@media (max-width: 768px) {
    #cm-content .mzb-post {
        margin-bottom: 20px;
    }
}



/* Header Media - No stretching */
.header-image img,
.cm-header-media img {
    width: 100% !important;
    height: auto !important;           /* Critical: keeps original proportions */
    max-width: 100% !important;
    max-height: none !important;
    object-fit: none !important;       /* No forcing */
}

/* Container - flexible */
.header-image,
.cm-header-media {
    min-height: auto !important;
    height: auto !important;
    position: relative;
    overflow: hidden;
}

/* Desktop preferred height (optional) */
@media (min-width: 769px) {
    .header-image,
    .cm-header-media {
        min-height: 420px;             /* Change to what you like on desktop */
    }
}

/* Mobile - very gentle */
@media (max-width: 768px) {
    .header-image,
    .cm-header-media {
        min-height: auto !important;
        height: auto !important;
    }
    
    .header-image img,
    .cm-header-media img {
        max-height: 280px;             /* Optional: prevents it from becoming giant */
    }
}

/* Remove overlays */
.cm-header-main-row,
.cm-main-row,
.cm-header-center-col,
#cm-site-branding {
    background: transparent !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}




/* Force native WordPress video blocks to scale down on mobile */
.wp-block-video video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}




/* Custom CSS for ColorMag Theme - Main Article & Page Titles Only */

.cm-entry-title,
.cm-entry-title a,
.single .cm-entry-header .cm-entry-title,
.page .cm-entry-header .cm-entry-title,
.cm-page-header .cm-page-title {
    color: #257BC1 !important;
}

/* Hover state - keep the same color */
.cm-entry-title a:hover,
.single .cm-entry-header .cm-entry-title a:hover {
    color: #257BC1 !important;
}






/* === FULL-WIDTH BLACK 3D HEADER - REDUCED HEIGHT === */
.cm-container:has(.cm-top-row) {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f) !important;
    border-bottom: 4px solid #333 !important;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.7),
        inset 0 3px 8px rgba(255,255,255,0.08),
        inset 0 -5px 8px rgba(0,0,0,0.9) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 !important;     /* Reduced height */
    position: relative;
    border-radius: 0 !important;
}

/* Main top row */
.cm-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    gap: 12px !important;
}

/* Date */
.date-in-header {
    color: #bbb !important;
    font-weight: 700 !important;
    background: rgba(0,0,0,0.5) !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    border: 1px solid #444 !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.7) !important;
    font-size: 13.5px !important;
}

/* Logo */
.cm-site-branding img.custom-logo {
    max-height: 52px !important;     /* Reduced logo size */
    width: auto !important;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.8)) 
            brightness(1.1) contrast(1.15) !important;
    transition: transform 0.3s ease !important;
}

.cm-site-branding img.custom-logo:hover {
    transform: translateY(-3px) scale(1.05) !important;
}

/* Social Icons */
.social-icons.header-social-icons a {
    color: #ccc !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
}

.social-icons.header-social-icons a:hover {
    color: #00ddff !important;
    transform: translateY(-3px) scale(1.2) !important;
}

/* Top highlight line */
.cm-container:has(.cm-top-row)::before {
    content: '' !important;
    position: absolute !important;
    top: 0; left: 0; right: 0 !important;
    height: 2px !important;
    background: linear-gradient(to right, transparent, #666, transparent) !important;
}

/* ===================== MOBILE RESPONSIVE ===================== */
@media (max-width: 768px) {
    .cm-container:has(.cm-top-row) {
        padding: 9px 0 !important;
    }
    
    .cm-top-row {
        padding: 0 15px !important;
    }
    
    .cm-site-branding img.custom-logo {
        max-height: 48px !important;
    }
    
    .date-in-header {
        font-size: 12.5px !important;
        padding: 4px 10px !important;
    }
}

@media (max-width: 480px) {
    .cm-top-row {
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 8px 10px !important;
    }
    
    .cm-site-branding img.custom-logo {
        max-height: 45px !important;
    }
}






/* === FULL-WIDTH BLACK 3D FOOTER BOTTOM - SAFE & MOBILE FRIENDLY === */
.cm-footer-bottom-row {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f) !important;
    border-top: 5px solid #333 !important;
    box-shadow: 
        0 -8px 16px rgba(0, 0, 0, 0.6),
        inset 0 4px 10px rgba(255,255,255,0.08),
        inset 0 -4px 8px rgba(0,0,0,0.8) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px 0 !important;
    position: relative;
}

/* Inner container & row */
.cm-footer-bottom-row .cm-container,
.cm-footer-bottom-row .cm-bottom-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Copyright text */
.cm-copyright p {
    color: #aaa !important;
    font-size: 14px !important;
    margin: 0 !important;
    text-align: center !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
}

/* Top highlight line for 3D effect */
.cm-footer-bottom-row::before {
    content: '' !important;
    position: absolute !important;
    top: 0; left: 0; right: 0 !important;
    height: 3px !important;
    background: linear-gradient(to right, transparent, #666, transparent) !important;
}

/* ===================== MOBILE RESPONSIVE ===================== */
@media (max-width: 768px) {
    .cm-footer-bottom-row {
        padding: 16px 0 !important;
    }
    
    .cm-footer-bottom-row .cm-container,
    .cm-footer-bottom-row .cm-bottom-row {
        padding: 0 15px !important;
    }
    
    .cm-copyright p {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .cm-footer-bottom-row {
        padding: 14px 0 !important;
    }
    
    .cm-copyright p {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }
}





.wp-block-image figcaption, 
.wp-caption .wp-caption-text, 
.wp-caption-text {
    color: #add8e6;
}







/* Style the main dropdown box container */
.colormag-footer-dropdown {
    background-color: #222222; /* Matches dark ColorMag footer colors */
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 10px 15px;
    max-width: 100%;
}

/* Style the clickable toggle header title */
.colormag-footer-dropdown summary {
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    outline: none;
    user-select: none;
}

/* Style the actual menu links list when expanded */
.colormag-footer-dropdown ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-top: 10px;
    margin-bottom: 0;
}

.colormag-footer-dropdown ul li {
    padding: 8px 0;
    border-bottom: 1px solid #333333;
}

.colormag-footer-dropdown ul li:last-child {
    border-bottom: none;
}

.colormag-footer-dropdown ul li a {
    color: #b0b0b0;
    text-decoration: none;
    display: block;
}

.colormag-footer-dropdown ul li a:hover {
    color: #207fa2; /* ColorMag primary blue theme accent */
}









/* Full Width Featured Image - Only Single Posts */
body.single .cm-featured-image,
body.single-post .cm-featured-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single .cm-featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Only remove padding on single posts */
body.single #cm-content,
body.single .article-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}