/*
Theme Name: Enrich Media
Version: 6.0.23
Description: Private multi-site publishing theme with bundled GeneratePress rendering, Enrich Media Elements, responsive navigation, sharing, related-content tools and legacy-site migration support. WooCommerce module, Site Library, Font Library and license system are not shipped.
Author: Enrich Media
Requires PHP: 7.4
Requires at least: 6.5
Text Domain: enrich-media
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Update URI: false
*/

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Colors */
	--primary-red: var(--mhd-brand-color, #b3000c);
    --darker-red: #8b0006;
    --text-color-dark: #333;
    --text-color-medium: #555;
    --background-light: #f9f9f9;
    --border-color-light: #ddd;
    
    /* Shadows */
    --shadow-light: rgba(0, 0, 0, 0.06);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 8px;
    --spacing-md: 10px;
    --spacing-lg: 15px;
    --spacing-xl: 20px;
    --spacing-xxl: 30px;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 15px;
    --border-radius-xl: 25px;
    
    /* Layout Heights */
    --main-menu-height: var(--mhd-desktop-nav-height, 76px);
    --scroll-menu-height: var(--mhd-scroll-menu-height, 45px);
}

/* ==========================================
   HEADER / NAVIGATION / CATEGORY BAR
   Structural rules are emitted inline by mhd_output_header_critical_css().
   Keep only non-critical enhancements here so there is one structural owner.
   ========================================== */
#site-navigation .mhd-navigation-title { overflow-wrap: anywhere; }
.custom-scroll-menu ul.menu > li > a { transition: background-color 0.3s ease; }
.custom-scroll-menu ul.menu > li > a:hover,
.custom-scroll-menu ul.menu > li > a:focus { background-color: rgba(255,255,255,.2); }
@media (min-width: 769px) {
    .sidebar.is-right-sidebar > .inside-right-sidebar {
        position: sticky;
        top: var(--mhd-desktop-nav-height, 76px);
    }
}

/* ==========================================
   POST CARDS
   ========================================== */
.inb-post-card {
    background: #fff;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    box-shadow: 0 1px 4px var(--shadow-light);
    display: flex;
    flex-direction: column;
    min-height: 310px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .inb-post-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px var(--shadow-strong);
    }
}

.inb-post-card a {
    text-decoration: none;
    color: var(--text-color-dark);
    display: block;
    padding: var(--spacing-lg);
    height: 100%;
    box-sizing: border-box;
}

.inb-post-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
    aspect-ratio: 5 / 3;
}

.inb-post-card h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-color-dark);
    line-height: 1.5;
    margin: 0 0 var(--spacing-sm);
    padding-right: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inb-post-card p,
.inb-post-card .content-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-color-medium);
    line-height: 1.4;
    margin: 0;
}

/* ==========================================
   SECTIONS
   ========================================== */
.inb-related-posts-container,
.inb-popular-posts,
.inb-recent-posts {
	position: relative;
	z-index: 99;
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius-md);
    margin: var(--spacing-xxl) 0;
    padding: var(--spacing-lg);
    background: var(--background-light);
    box-shadow: 0 2px 5px var(--shadow-light);
}

.inb-section-title,
.inb-rp-title {
    background-color: var(--primary-red);
    color: #fff;
    font-size: 1.1875rem;
    margin: -15px -15px 15px -15px;
    padding: var(--spacing-md) var(--spacing-lg);
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
    font-weight: 600;
}

.inb-related-posts-container ul,
.custom-latest-posts {
    list-style: disc inside;
    padding-left: 0;
    margin: 0;
}

.inb-related-posts-container li {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.inb-related-posts-container li a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.inb-related-posts-container li a:hover,
.inb-related-posts-container li a:focus {
    color: var(--text-color-dark);
    text-decoration: none;
}

/* ==========================================
   GRID LAYOUT
   ========================================== */
.inb-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    align-items: stretch;
}

@media (max-width: 768px) {
    .inb-post-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .inb-post-card {
        min-height: auto;
    }
    
    .inb-post-card img {
        height: 180px;
    }
}

/* Native floating share owns only the historical sticky GP Element ID.
   The author/meta-row #mobileShareFloatingButton remains visible while Share Buttons is ON. */
#mobileShareFloatingButtonmhd {
    display: none !important;
}

body.mhd-share-buttons-disabled #mobileShareFloatingButton,
body.mhd-share-buttons-disabled #wpliteWhatsAppShare,
body.mhd-share-buttons-disabled #wpliteFacebookShare,
body.mhd-share-buttons-disabled #wpliteTwitterShare,
body.mhd-share-buttons-disabled #wpliteLinkedInShare,
body.mhd-share-buttons-disabled #wpliteTelegramShare {
    display: none !important;
}

/* ==========================================
   POST META BAR / TAXONOMY / AUTHOR BOX
   ========================================== */
.mhd-post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 20px .5px;
    padding: 10px;
    background: #f8f8fb;
    border: 1px solid var(--border-color-light);
    border-radius: 10px;
    box-sizing: border-box;
}

.mhd-post-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mhd-post-meta-author,
.mhd-post-meta-date {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 16px;
    line-height: 1.4;
}

.mhd-post-meta-author > a:not(.mhd-verified-badge) {
    color: var(--primary-red);
    font-weight: 500;
    text-decoration: none;
}

.mhd-post-meta-author > a:not(.mhd-verified-badge):hover,
.mhd-post-meta-author > a:not(.mhd-verified-badge):focus {
    color: #044499;
}

.mhd-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #0669cc;
    text-decoration: none;
}

.mhd-verified-badge svg {
    display: block;
    width: 100%;
    height: 100%;
}

.mhd-post-meta-share {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mhd-meta-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 7px;
    box-sizing: border-box;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}

.mhd-meta-share svg {
    display: block;
    width: 18px;
    height: 18px;
}

.mhd-meta-share-facebook { background: #0765ff; }
.mhd-meta-share-x { background: #000; }
.mhd-meta-share-whatsapp { background: #31d14e; }
.mhd-meta-share-telegram { background: #0ca6ff; }
.mhd-meta-share-linkedin { background: #0076b2; }
.mhd-meta-share-share { background: #171e33; }
.mhd-meta-share:hover,
.mhd-meta-share:focus { color: #fff; opacity: .9; }

.mhd-author-box {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2rem;
    max-width: 850px;
    margin: 30px auto;
    padding: 25px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.mhd-author-box:hover {
    transform: translateY(-2px);
    border-color: #d0d0d0;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.mhd-author-photo-wrap {
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    border-radius: 50%;
    box-sizing: border-box;
}

.mhd-author-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mhd-author-content {
    flex: 1 1 auto;
    min-width: 0;
}

.mhd-author-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.mhd-author-by { color: #666; font-size: 16px; }
.mhd-author-name {
    color: var(--primary-red);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}
.mhd-author-name:hover,
.mhd-author-name:focus { color: #044499; }
.mhd-author-bio { font-size: 15px; line-height: 1.6; color: var(--text-color-dark); }
.mhd-author-bio p { margin: 0 0 18px; }

.mhd-author-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mhd-author-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    box-sizing: border-box;
    background: #f5f5f5;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .3s ease, background-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.mhd-author-social svg { display: block; width: 22px; height: 22px; }
.mhd-author-social:hover,
.mhd-author-social:focus {
    transform: translateY(-3px);
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 4px 8px rgba(179,0,12,.3);
}

@media (max-width: 768px) {
    .mhd-post-meta-bar {
        margin-left: 0;
        margin-right: 0;
    }
    .mhd-post-meta-info,
    .mhd-post-meta-share { width: 100%; }
    .mhd-post-meta-share { justify-content: flex-start; }
    .mhd-author-box {
        flex-wrap: wrap;
        gap: 1.5rem;
        margin: 20px;
        padding: 20px;
        text-align: left;
    }
    .mhd-author-photo-wrap { margin: 0 auto 10px; }
    .mhd-author-content { width: 100%; flex-basis: 100%; }
    .mhd-author-socials { justify-content: center; }
}

/* ==========================================
   SOCIAL SHARE
   ========================================== */
.inb-social-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xxl) 0;
    background: var(--background-light);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-left: 4px solid #005a8d;
    border-radius: var(--border-radius-md);
}

.inb-social-share span {
    font-weight: bold;
    color: #222;
    width: 100%;
    margin-bottom: var(--spacing-xs);
}

.inb-social-share a {
    box-sizing: border-box;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.inb-social-share a:hover,
.inb-social-share a:focus {
    opacity: 0.9;
    transform: translateY(-2px);
}

.inb-social-share a.fb { background: #0e3a75; }
.inb-social-share a.x { background: #000; }
.inb-social-share a.wa { background: #117a3d; }

@media (max-width: 768px) {
    .inb-social-share {
        flex-direction: column;
        align-items: stretch;
    }
    
    .inb-social-share a {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   YOUTUBE SUBSCRIBE BOX
   ========================================== */
.inb-youtube-subscribe-box {
    background: #fff;
    border: 2px solid #ff0000;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .inb-youtube-subscribe-box {
        max-width: 800px;
        width: 100%;
        padding: var(--spacing-xxl) 40px;
    }
}

@media (max-width: 768px) {
    .inb-youtube-subscribe-box {
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-lg);
        text-align: center;
    }
}

.inb-subscribe-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-xl);
    max-width: 100%;
}

.inb-subscribe-text {
    width: 100%;
}

.inb-subscribe-text h3,
.inb-subscribe-text p {
    font-size: 1.6rem;
    margin: 0 0 var(--spacing-md);
    color: var(--text-color-dark);
    font-weight: 600;
}

.inb-subscribe-button {
    background-color: var(--primary-red);
    color: #fff;
    padding: 12px 35px;
    font-weight: bold;
    text-decoration: none;
    border-radius: var(--border-radius-xl);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    white-space: nowrap;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.inb-subscribe-button:hover,
.inb-subscribe-button:focus {
    background: var(--darker-red);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.inb-subscribe-button:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 3px;
}

/* ==========================================
   UTILITIES
   ========================================== */
/* Native floating-share structural CSS is inline and cache-safe. */

.rank-math-breadcrumb p {
    background: #e5e8ec;
    color: #000;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    margin: 0;
}

/* GenerateBlocks Free blocks keep their own block-generated layout. */

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */
/* will-change only on hover state to save GPU memory */
@media (hover: hover) and (pointer: fine) {
    .inb-post-card:hover,
    .inb-subscribe-button:hover {
        will-change: transform;
    }
}
/* ==========================================
   ACCESSIBILITY
   ========================================== */
a:focus,
button:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-red);
    color: #fff;
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   CUSTOM SITE CSS
   Migrated from GeneratePress Additional CSS
   ========================================== */
.twitter-tweet a {
    text-decoration: underline;
    color: var(--mhd-link-hover-color, #044499);
}





/* Home/category/archive/search visual layouts are owned by Pages/Elements. */
.mhd-latest-widget{border:1px solid var(--mhd-border-color,#e9e9e9);padding:24px!important}
.mhd-latest-widget .widget-title{font-size:22px;border-bottom:3px solid var(--primary-red);padding-bottom:12px}
.mhd-latest-widget ol{margin:0 0 0 24px}
.mhd-latest-widget li{padding:12px 0;border-bottom:1px solid var(--mhd-border-color,#e9e9e9);font-size:17px}
.mhd-latest-widget li:last-child{border:0}
@media(max-width:768px){
 body.admin-bar #wpadminbar{position:fixed}
}
@media(min-width:769px) and (max-width:1100px){
 .mhd-fixed-news-header #site-navigation .inside-navigation{flex-wrap:wrap!important}
 .mhd-fixed-news-header #site-navigation .main-nav{max-width:100%}
 .mhd-fixed-news-header #site-navigation .main-nav>ul>li>a{padding-left:12px;padding-right:12px}
}

