/*
Theme Name: NetworkUstad Child
Template: astra
Version: 2.0.0
Description: Production-ready NetworkUstad child theme with full-width layout and optimizations
*/

/* ================================
   READING PROGRESS BAR
   ================================ */
.reading-progress-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    z-index: 99999 !important;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
}

/* Ensure progress bar is always on top */
body .reading-progress-bar {
    z-index: 99999 !important;
}

/* Override any theme styles */
#page .reading-progress-bar,
.site .reading-progress-bar {
    position: fixed !important;
    top: 0 !important;
    z-index: 99999 !important;
}

/* CRITICAL: Remove ALL spacing between header and content */
.site-header + #content,
.site-header + .site-content,
header + #content,
header + .site-content,
#masthead + #content,
#masthead + .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-content > *:first-child,
#content > *:first-child {
    margin-top: 0 !important;
}

/* ================================
   VARIABLES & RESET
   ================================ */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

/* ================================
   AGGRESSIVE SPACING RESET & PRODUCTION LAYOUT
   ================================ */
* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body,
body.home,
body.front-page,
.site,
#page,
.ast-container,
.ast-separate-container,
#primary,
#content,
.site-content,
.ast-content,
main {
    margin: 0 !important;
    padding: 0 !important;
}

/* PRODUCTION: Force full-width layout for homepage */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.home,
body.front-page {
    width: 100% !important;
    max-width: none !important;
    overflow-x: hidden !important;
}

body.home .site,
body.front-page .site,
body.home #page,
body.front-page #page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

body.home .site-content,
body.front-page .site-content,
body.home #content,
body.front-page #content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Override Astra theme containers */
body.home .ast-container,
body.front-page .ast-container,
body.home .ast-separate-container,
body.front-page .ast-separate-container,
body.networkustad-homepage .ast-container,
body.full-width-layout .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional production layout fixes */
body.networkustad-homepage,
body.full-width-layout {
    overflow-x: hidden !important;
    width: 100% !important;
}

body.networkustad-homepage .site,
body.full-width-layout .site,
body.networkustad-homepage #page,
body.full-width-layout #page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Force all homepage sections to be full-width - FIXED */
.hero-section,
.trending-section,
.featured-section,
.latest-articles-section,
.newsletter-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    box-sizing: border-box !important;
}

header,
#masthead,
.site-header,
.main-header-bar,
.ast-header-break-point,
.main-header-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove Astra theme default spacing */
.ast-separate-container #primary,
.ast-separate-container #content,
.ast-page-builder-template .site-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional layout fixes to prevent white space issues */
.site-main,
.ast-main-header-wrap,
.main-header-bar-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure no elements cause horizontal overflow */
* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Critical layout fix - prevent any section from causing overflow */
.homepage-section,
.section-wrapper,
.content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Fix any potential container issues */
.wp-site-blocks,
.entry-content,
.wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ================================
   TYPOGRAPHY
   ================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { 
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

h2 { 
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.12);
}

h3 { 
    font-size: 1.75rem;
    text-shadow: 0 0 12px rgba(37, 99, 235, 0.1);
}

h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.site-title,
.entry-title {
    font-family: 'Playfair Display', Georgia, serif;
    text-shadow: 0 0 25px rgba(37, 99, 235, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ================================
   LAYOUT & CONTAINER
   ================================ */
.site-content {
    background-color: var(--bg-light);
    padding: 0;
    margin: 0;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-area {
    background-color: transparent;
}

/* ================================
   HERO SECTION - PRODUCTION FULL WIDTH
   ================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    padding: 4rem 0 4rem;
    margin: 0 !important;
    margin-top: 0 !important;
    overflow: hidden;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-section .container-custom {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-title-highlight {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-btn-primary,
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.hero-btn-primary {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    gap: 0.75rem;
}

.hero-btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-item strong {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-stat-item span {
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-featured-post {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hero-featured-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.hero-featured-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.hero-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-featured-post:hover .hero-featured-image img {
    transform: scale(1.05);
}

.hero-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.hero-featured-badge {
    background-color: white;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-featured-content {
    padding: 1.5rem;
}

.hero-featured-category {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.hero-featured-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero-featured-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.hero-featured-title a:hover {
    color: var(--primary-color);
}

.hero-featured-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hero-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.hero-featured-link:hover {
    gap: 0.75rem;
}

/* Hero Responsive */
@media (max-width: 992px) {
    .hero-section .container-custom {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-featured-image {
        height: 220px;
    }
}

/* ================================
   MODERN HEADER STYLES
   ================================ */
.modern-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    display: block;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo & Branding */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

.site-logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.site-logo-text:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu,
#primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu li,
#primary-menu li {
    position: relative;
}

.nav-menu a,
#primary-menu a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
#primary-menu a:hover,
.nav-menu .current-menu-item > a,
#primary-menu .current-menu-item > a {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

/* Dropdown Menus */
.nav-menu .sub-menu,
#primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu,
#primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a,
#primary-menu .sub-menu a {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-toggle,
.mobile-menu-toggle,
.dark-mode-toggle {
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.search-toggle:hover,
.dark-mode-toggle:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

/* Dark Mode Toggle Icons */
.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.dark-mode-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #475569;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: #2563eb;
}

/* Search Form */
.header-search-form {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.header-search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-submit,
.search-close {
    background: #2563eb;
    border: none;
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-close {
    background: #64748b;
}

.search-close:hover {
    background: #475569;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu,
    #primary-menu {
        gap: 0.25rem;
    }
    
    .nav-menu a,
    #primary-menu a {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
        padding: 0 1.5rem;
    }
    
    .site-name {
        font-size: 1.25rem;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu,
    #primary-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-menu a,
    #primary-menu a {
        padding: 1rem;
        width: 100%;
    }
    
    .nav-menu .sub-menu,
    #primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(37, 99, 235, 0.03);
        margin-top: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ================================
   ARTICLE CARDS
   ================================ */
.articles-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 3rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* PRODUCTION FIX: Ensure networking section cards maintain proper styling */
.homepage-section .articles-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.article-card {
    background-color: var(--bg-white) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* PRODUCTION FIX: Networking section specific card styling */
.homepage-section .article-card {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
}

.article-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-xl) !important;
}

/* PRODUCTION FIX: Networking section hover effects */
.homepage-section .article-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.article-card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 240px !important;
    background-color: var(--bg-light) !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* PRODUCTION FIX: Networking section image styling */
.homepage-section .article-card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 240px !important;
    background-color: #f9fafb !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* PRODUCTION FIX: Networking section content styling */
.homepage-section .article-card-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: transparent !important;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-card-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

.article-card-category:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.5);
}

.article-card-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-card-title {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 3.85rem !important; /* Consistent height for 2 lines */
    max-height: 3.85rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-clamp: 2 !important; /* Standard property for compatibility */
    word-wrap: break-word !important;
    hyphens: auto !important;
}

.article-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.08);
}

.article-card-title a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.article-card-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.read-more-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ================================
   SINGLE POST STYLES
   ================================ */
.single-post-header {
    background-color: var(--bg-white);
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.single-post-header .container-custom {
    max-width: 900px;
}

.entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.95rem;
}

.entry-meta > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-image-container {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.0625rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.entry-content a:hover {
    color: var(--primary-dark);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Article Layout with Sidebar */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

.article-main-content {
    min-width: 0;
}

.article-main-content .entry-content {
    margin: 0;
    max-width: none;
}

.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
}

/* Entry Tags */
.entry-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.entry-tags svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.tag-link {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    font-weight: 500;
}

.tag-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.share-section h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-twitter {
    background-color: #1DA1F2;
    color: white;
}

.share-twitter:hover {
    background-color: #1a8cd8;
    transform: translateY(-2px);
}

.share-facebook {
    background-color: #1877F2;
    color: white;
}

.share-facebook:hover {
    background-color: #1564d4;
    transform: translateY(-2px);
}

.share-linkedin {
    background-color: #0A66C2;
    color: white;
}

.share-linkedin:hover {
    background-color: #084d92;
    transform: translateY(-2px);
}

.share-copy {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.share-copy:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Sidebar Widgets */
.widget {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-card img {
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.author-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.author-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.author-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Sidebar Posts */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sidebar-post-thumb:hover img {
    transform: scale(1.1);
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sidebar-post-content h5 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-post-content h5 a:hover {
    color: var(--primary-color);
}

.sidebar-post-content time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Related Articles Section */
.related-articles-section {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 2px solid var(--border-color);
}

.related-articles-section .section-title {
    margin-bottom: 2rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Comments Wrapper */
.comments-wrapper {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
}

/* Meta Item */
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Single Post Responsive */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post-header {
        padding: 2rem 0 1.5rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        padding: 2rem 1.5rem;
    }
    
    .entry-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .comments-wrapper {
        padding: 1.5rem;
    }
}

/* ================================
   ARCHIVE PAGE STYLES
   ================================ */
.archive-header {
    background-color: var(--bg-white);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.archive-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.archive-description {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   FOOTER STYLES
   ================================ */
.site-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    margin-top: 4rem;
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Footer About/Logo Section */
.footer-about {
    padding-right: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-site-title {
    font-size: 1.5rem;
    margin: 0;
}

.footer-site-title a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.footer-site-title a:hover {
    color: var(--primary-color);
}

.footer-description {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Footer Widget Titles */
.footer-widget-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

.footer-menu .post-count {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Newsletter Section */
.footer-newsletter {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-description {
    color: #d1d5db;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-button {
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.newsletter-button svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom-content a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-content a:hover {
    color: #ffffff;
}

.copyright,
.footer-credits {
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* ================================
   SIDEBAR STYLES
   ================================ */
.widget {
    background-color: var(--bg-white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.widget a:hover {
    color: var(--primary-color);
}

/* ================================
   PAGINATION
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        padding: 2rem 1.5rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ================================
   HOMEPAGE SECTIONS
   ================================ */
.homepage-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.15), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title svg {
    color: var(--primary-color);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.view-all-link:hover {
    background-color: var(--bg-light);
    gap: 0.75rem;
}

.no-posts-message {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* ================================
   TRENDING SECTION
   ================================ */
.trending-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 4rem;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.trending-card {
    position: relative;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.trending-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.trending-image {
    position: relative;
    overflow: hidden;
    height: 180px;
    background-color: var(--bg-light);
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.trending-card:hover .trending-image img {
    transform: scale(1.08);
}

.trending-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trending-category {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.trending-category:hover {
    background-color: var(--primary-color);
    color: white;
}

.trending-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.trending-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.06);
}

.trending-title a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

.trending-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8125rem;
    color: var(--text-light);
}

.trending-date,
.trending-views {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.trending-views {
    color: var(--primary-color);
    font-weight: 600;
}

.trending-meta svg {
    flex-shrink: 0;
}

/* Trending Card Excerpt */
.trending-excerpt {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trending Statistics */
.trending-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.trending-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    transition: var(--transition);
    cursor: help;
    flex: 1;
    min-width: 120px;
}

.trending-stat:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.stat-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.stat-value {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-trend {
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.stat-trend-up {
    color: #10b981;
}

.stat-trend-down {
    color: #ef4444;
}

.stat-trend-neutral {
    color: #6b7280;
}

/* ================================
   DARK MODE THEME
   ================================ */
body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .modern-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .site-name {
    color: #f1f5f9;
}

body.dark-mode .nav-menu a,
body.dark-mode #primary-menu a {
    color: #cbd5e1;
}

body.dark-mode .nav-menu a:hover,
body.dark-mode #primary-menu a:hover,
body.dark-mode .nav-menu .current-menu-item > a,
body.dark-mode #primary-menu .current-menu-item > a {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

body.dark-mode .search-toggle,
body.dark-mode .dark-mode-toggle,
body.dark-mode .mobile-menu-toggle {
    color: #cbd5e1;
}

body.dark-mode .search-toggle:hover,
body.dark-mode .dark-mode-toggle:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

body.dark-mode .hamburger-line {
    background: #cbd5e1;
}

body.dark-mode .mobile-menu-toggle:hover .hamburger-line {
    background: #60a5fa;
}

/* Dark Mode - Hero Section */
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

/* Dark Mode - Content Areas */
body.dark-mode .site-content {
    background-color: #0f172a;
}

body.dark-mode .tech-article-wrapper,
body.dark-mode .tech-breadcrumbs {
    background: #0f172a;
}

body.dark-mode .tech-breadcrumbs {
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-breadcrumbs .breadcrumb a {
    color: #60a5fa;
}

body.dark-mode .tech-article-header,
body.dark-mode .tech-article-layout,
body.dark-mode .tech-article-content {
    background: #1e293b;
}

body.dark-mode .tech-article-title,
body.dark-mode h1, body.dark-mode h2, 
body.dark-mode h3, body.dark-mode h4 {
    color: #f1f5f9;
}

body.dark-mode .tech-article-content p,
body.dark-mode .tech-article-content {
    color: #cbd5e1;
}

body.dark-mode .tech-article-content a {
    color: #60a5fa;
}

body.dark-mode .tech-article-content a:hover {
    color: #93c5fd;
}

body.dark-mode .tech-article-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-article-category,
body.dark-mode .tech-category-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

body.dark-mode .tech-article-tags a {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

body.dark-mode .tech-article-tags a:hover {
    background: #2563eb;
    color: white;
}

body.dark-mode .tech-share-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-share-section h4 {
    color: #f1f5f9;
}

/* Dark Mode - Related Articles */
body.dark-mode .tech-related-section {
    background: #1e293b;
}

body.dark-mode .tech-section-title {
    color: #f1f5f9;
}

body.dark-mode .tech-related-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .tech-related-card:hover {
    background: #1e293b;
}

body.dark-mode .tech-related-content h3 a {
    color: #f1f5f9;
}

body.dark-mode .tech-related-content h3 a:hover {
    color: #60a5fa;
}

body.dark-mode .tech-related-meta {
    color: #94a3b8;
}

/* ================================
   PRODUCTION FIXES - ALL HOMEPAGE SECTION CARDS
   ================================ */
/* CRITICAL: Force CSS to override all production conflicts */
/* Force consistent styling across all environments */
.homepage-section .articles-grid .article-card {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.homepage-section .articles-grid .article-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.homepage-section .articles-grid .article-card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 240px !important;
    background-color: #f9fafb !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.homepage-section .articles-grid .article-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.3s ease !important;
}

.homepage-section .articles-grid .article-card:hover .article-card-image img {
    transform: scale(1.05) !important;
}

.homepage-section .articles-grid .article-card-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: transparent !important;
}

/* CRITICAL FIX: Article titles causing layout issues */
.homepage-section .articles-grid .article-card-title {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 3.85rem !important; /* Force consistent height for 2 lines */
    max-height: 3.85rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-clamp: 2 !important; /* Standard property for compatibility */
    word-wrap: break-word !important;
    hyphens: auto !important;
    text-overflow: ellipsis !important;
}

.homepage-section .articles-grid .article-card-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.homepage-section .articles-grid .article-card-title a:hover {
    color: #2563eb !important;
}

/* CRITICAL FIX: Article excerpts causing layout issues */
.homepage-section .articles-grid .article-card-excerpt {
    color: #6b7280 !important;
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
    height: auto !important;
    min-height: 4.8rem !important; /* Force consistent height for 3 lines */
    max-height: 4.8rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    line-clamp: 3 !important;
    word-wrap: break-word !important;
    text-overflow: ellipsis !important;
}

/* CRITICAL FIX: Article meta and footer areas */
.homepage-section .articles-grid .article-card-meta {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    height: 1.5rem !important; /* Fixed height */
}

.homepage-section .articles-grid .article-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e5e7eb !important;
    margin-top: auto !important; /* Push to bottom */
    height: 2.5rem !important; /* Fixed height */
}

/* ================================
   ULTRA-AGGRESSIVE PRODUCTION FIXES
   ================================ */
/* Target ALL possible selectors that could conflict in production */

/* Grid Layout - Maximum Specificity */
body .site-content .homepage-section .articles-grid,
body .ast-container .homepage-section .articles-grid,
body .container .homepage-section .articles-grid,
body .container-custom .homepage-section .articles-grid,
.homepage-section .articles-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    list-style: none !important;
    flex-wrap: nowrap !important;
}

/* Card Structure - Maximum Specificity */
body .site-content .homepage-section .articles-grid .article-card,
body .ast-container .homepage-section .articles-grid .article-card,
body .container .homepage-section .articles-grid .article-card,
body .container-custom .homepage-section .articles-grid .article-card,
.homepage-section .articles-grid .article-card {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
}

/* Card Images - Maximum Specificity */
body .site-content .homepage-section .articles-grid .article-card-image,
body .ast-container .homepage-section .articles-grid .article-card-image,
body .container .homepage-section .articles-grid .article-card-image,
body .container-custom .homepage-section .articles-grid .article-card-image,
.homepage-section .articles-grid .article-card-image {
    position: relative !important;
    overflow: hidden !important;
    height: 240px !important;
    background-color: #f9fafb !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* Card Content - Maximum Specificity */
body .site-content .homepage-section .articles-grid .article-card-content,
body .ast-container .homepage-section .articles-grid .article-card-content,
body .container .homepage-section .articles-grid .article-card-content,
body .container-custom .homepage-section .articles-grid .article-card-content,
.homepage-section .articles-grid .article-card-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: transparent !important;
    height: auto !important;
    min-height: 200px !important;
}

/* ================================
   RESPONSIVE PRODUCTION FIXES
   ================================ */
/* Mobile and Tablet Breakpoints */
@media (max-width: 1200px) {
    body .site-content .homepage-section .articles-grid,
    body .ast-container .homepage-section .articles-grid,
    body .container .homepage-section .articles-grid,
    body .container-custom .homepage-section .articles-grid,
    .homepage-section .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    body .site-content .homepage-section .articles-grid,
    body .ast-container .homepage-section .articles-grid,
    body .container .homepage-section .articles-grid,
    body .container-custom .homepage-section .articles-grid,
    .homepage-section .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    body .site-content .homepage-section .articles-grid .article-card-content,
    body .ast-container .homepage-section .articles-grid .article-card-content,
    body .container .homepage-section .articles-grid .article-card-content,
    body .container-custom .homepage-section .articles-grid .article-card-content,
    .homepage-section .articles-grid .article-card-content {
        padding: 1rem !important;
        min-height: 150px !important;
    }
}

/* Cache Busting - Force Reload */
.homepage-section .articles-grid::before {
    content: "" !important;
    display: none !important;
}

/* Dark Mode - Article Cards */
body.dark-mode .article-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .article-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .article-card-title {
    color: #f1f5f9;
}

body.dark-mode .article-card-excerpt {
    color: #cbd5e1;
}

/* Dark Mode - Search */
body.dark-mode .header-search-form {
    background: #1e293b;
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-field {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .search-field:focus {
    border-color: #60a5fa;
}

body.dark-mode .search-field::placeholder {
    color: #64748b;
}

/* Dark Mode - Trending Section */
body.dark-mode .trending-section {
    background: #1e293b;
}

body.dark-mode .trending-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .trending-title a {
    color: #f1f5f9;
}

body.dark-mode .trending-title a:hover {
    color: #60a5fa;
}

body.dark-mode .trending-excerpt {
    color: #cbd5e1;
}

body.dark-mode .trending-stat {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

body.dark-mode .trending-stat:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .stat-value {
    color: #f1f5f9;
}

body.dark-mode .stat-label {
    color: #94a3b8;
}

/* Dark Mode Transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modern-header,
.tech-article-header,
.tech-article-content,
.tech-related-card,
.article-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Trending Responsive */
@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .trending-section {
        padding: 2rem 1rem;
    }
    
    .trending-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ================================
   UTILITIES
   ================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ================================
   NEWSLETTER POPUP
   ================================ */
.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.newsletter-popup-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.newsletter-popup-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.newsletter-popup-overlay.active .newsletter-popup-modal {
    transform: scale(1) translateY(0);
}

.newsletter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.newsletter-close svg {
    width: 20px;
    height: 20px;
}

.newsletter-popup-content {
    padding: 40px 30px;
    text-align: center;
}

.newsletter-icon {
    margin-bottom: 20px;
    color: #2563eb;
}

.newsletter-icon svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.newsletter-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

.newsletter-form {
    margin-bottom: 20px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.newsletter-submit {
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.newsletter-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.newsletter-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-submit-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.newsletter-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.newsletter-privacy {
    color: #94a3b8;
    margin-bottom: 15px;
}

.newsletter-dont-show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #64748b;
    font-size: 0.9rem;
}

.newsletter-dont-show input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Dark Mode for Newsletter */
body.dark-mode .newsletter-popup-modal {
    background: #1e293b;
}

body.dark-mode .newsletter-title {
    color: #f1f5f9;
}

body.dark-mode .newsletter-description,
body.dark-mode .newsletter-dont-show {
    color: #cbd5e1;
}

body.dark-mode .newsletter-input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .newsletter-input:focus {
    border-color: #60a5fa;
}

body.dark-mode .newsletter-close {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .newsletter-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* ================================
   ENHANCED SOCIAL SHARE
   ================================ */
.enhanced-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.share-btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn-enhanced svg {
    width: 18px;
    height: 18px;
}

.share-btn-enhanced.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.share-btn-enhanced.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.share-btn-enhanced.linkedin {
    background: linear-gradient(135deg, #0a66c2 0%, #084e96 100%);
}

.share-btn-enhanced.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.share-btn-enhanced.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.share-btn-enhanced.reddit {
    background: linear-gradient(135deg, #ff4500 0%, #cc3700 100%);
}

.share-btn-enhanced.email {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.share-btn-enhanced.copy {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.share-btn-enhanced.copy.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Share Counter */
.share-counter {
    display: inline-block;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .newsletter-popup-content {
        padding: 30px 20px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-submit {
        width: 100%;
    }
    
    .enhanced-share-buttons {
        flex-direction: column;
    }
    
    .share-btn-enhanced {
        width: 100%;
        justify-content: center;
    }
}
