/* Custom CSS for Doernane Network Website */

/* CSS Variables for Theme Management - Doernane Network Brand Colors */
:root {
    /* Doernane Network Brand Colors */
    --primary-color: #1B4A8B;        /* Azul corporativo principal */
    --secondary-color: #2E5FAA;      /* Azul secundário */
    --accent-color: #F39C12;         /* Laranja/dourado para destaques */
    --success-color: #27AE60;        /* Verde para sucesso */
    --info-color: #3498DB;           /* Azul claro para informação */
    --warning-color: #F39C12;        /* Laranja para avisos */
    --danger-color: #E74C3C;         /* Vermelho para perigo */
    --light-color: #F8F9FA;          /* Cinza claro */
    --dark-color: #2C3E50;           /* Azul escuro */
    --white: #ffffff;
    --black: #000000;
    
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --border-color: #E8EAF0;
    --shadow: rgba(27, 74, 139, 0.1);
    
    /* Doernane Network Gradients */
    --gradient-primary: linear-gradient(45deg, #1B4A8B, #2E5FAA);
    --gradient-hero: linear-gradient(135deg, #1B4A8B 0%, #2E5FAA 50%, #F39C12 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-accent: linear-gradient(45deg, #F39C12, #E67E22);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-primary: #0F1419;              /* Azul muito escuro */
    --bg-secondary: #1A2332;            /* Azul escuro secundário */
    --text-primary: #FFFFFF;
    --text-secondary: #A8B2C1;          /* Cinza azulado */
    --border-color: #2C3E50;            /* Bordas em azul escuro */
    --shadow: rgba(243, 156, 18, 0.1);  /* Sombra com accent color */
    --gradient-card: linear-gradient(145deg, #1A2332 0%, #0F1419 100%);
    --gradient-hero: linear-gradient(135deg, #0F1419 0%, #1A2332 50%, #2C3E50 100%);
}

/* Dark theme specific overrides */
[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary) !important;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary) !important;
    margin-bottom: 2rem;
}

/* Ensure all headings use theme colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

/* Ensure all paragraphs and text elements use theme colors */
p, span, div, li {
    color: var(--text-primary);
}

/* Text muted should always use secondary color */
.text-muted {
    color: var(--text-secondary) !important;
}

/* Lead text styling */
.lead {
    color: var(--text-primary);
}

/* Navigation */
#mainNav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#mainNav.navbar-scrolled {
    background: rgba(26, 26, 26, 0.98);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar Logo */
.navbar-logo {
    height: 40px;
    width: auto;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Dark theme logo adjustment */
[data-theme="dark"] .navbar-logo {
    filter: brightness(1.1) contrast(1.1);
}

/* Theme Toggle Button */
#themeToggle {
    border: none !important;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    aspect-ratio: 1 !important;
    padding: 0 !important;
    flex-shrink: 0;
    overflow: hidden;
}

#themeToggle:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(27, 74, 139, 0.3);
}

/* Theme Toggle within navbar menu */
.navbar-nav #themeToggle {
    margin-top: 0;
    align-self: center;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

/* Ensure icon inside button is centered */
#themeToggle i {
    font-size: 1.2rem;
    line-height: 1;
}

/* Override any Bootstrap button styles that might interfere */
.btn#themeToggle {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.btn#themeToggle:focus,
.btn#themeToggle:active {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: 0 0 0 3px rgba(27, 74, 139, 0.3) !important;
    outline: none !important;
}

/* Mobile responsive adjustments for theme toggle in menu */
@media (max-width: 991.98px) {
    .navbar-nav #themeToggle {
        margin: 0.5rem 0;
        margin-left: 1rem !important;
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-illustration {
    position: relative;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(27, 74, 139, 0.3));
    animation: heroFloat 3s ease-in-out infinite;
}

.hero-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Button Styles */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Subsidiary Cards */
.subsidiary-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subsidiary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.subsidiary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px var(--shadow);
}

.subsidiary-card .card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.subsidiary-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.subsidiary-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary) !important;
}

.subsidiary-card h5,
.subsidiary-card h6 {
    color: var(--text-primary) !important;
}

.subsidiary-card p {
    color: var(--text-secondary) !important;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary) !important;
}

/* MVV Cards */
.mvv-card {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.mvv-card h4 {
    color: var(--text-primary) !important;
}

.mvv-card p {
    color: var(--text-secondary) !important;
}

.mvv-icon {
    font-size: 4rem !important;
    color: #1B4A8B !important;
    margin-bottom: 1.5rem !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    line-height: 1 !important;
    font-family: "bootstrap-icons" !important;
}

/* Specific styling for target icon */
.bi-target {
    color: #1B4A8B !important;
    font-size: 4rem !important;
    display: inline-block !important;
}

/* MVV Icon Container */
.mvv-icon-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.values-list {
    margin-top: 1rem;
}

.value-item {
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 120px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -60px;
}

.timeline-content {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow);
}

/* Stats Section */
.stats-section {
    background: var(--gradient-hero);
    color: white;
}

.stat-item {
    padding: 2rem;
}

.stat-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-info {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
    color: white;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    margin-left: 5px;
}

/* Background Light/Dark Theme */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 4rem !important;
        padding-right: 0 !important;
    }
    
    .timeline-marker {
        left: -45px !important;
        right: auto !important;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .hero-logo {
        max-height: 280px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-logo {
        max-height: 200px;
        margin-top: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-icon {
        font-size: 6rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .subsidiary-card {
        padding: 1.5rem;
    }
    
    .mvv-card {
        padding: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .timeline-item {
        padding-left: 3rem !important;
    }
    
    .timeline-marker {
        width: 80px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Utility class for perfect circles */
.circle-icon {
    border-radius: 50% !important;
    aspect-ratio: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure all circular elements maintain perfect circle shape */
.btn-back-to-top,
.social-link,
#themeToggle,
.target-market,
.goal-item,
.metric-box {
    flex-shrink: 0;
}

/* Fix any potential oval shapes in icon containers */
.feature-icon,
.subsidiary-icon,
.mvv-icon,
.stat-icon,
.contact-icon,
.governance-icon,
.differential-icon,
.impact-icon,
.partnership-icon {
    line-height: 1;
    display: inline-block;
}

/* Additional fixes for circular elements */
.principle-item,
.global-kpi-item,
.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ensure buttons maintain circular shape */
.btn-primary,
.btn-outline-primary,
.btn-success,
.btn-info,
.btn-warning {
    white-space: nowrap;
}

/* Fix for any containers that might distort circular elements */
.social-links,
.cta-buttons {
    align-items: center;
}

/* Prevent flex containers from squashing circular elements */
.circle-icon {
    flex-shrink: 0 !important;
    overflow: hidden;
    border-radius: 50% !important;
}

/* Force perfect circles for all circular button elements */
.btn-back-to-top,
.social-link,
#themeToggle {
    border-radius: 50% !important;
    overflow: hidden;
}

/* Additional fixes for perfect circles */
.social-link i,
#themeToggle i,
.btn-back-to-top i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Additional responsive circle fixes */
@media (max-width: 480px) {
    .social-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 0.8rem;
    }
    
    #themeToggle {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 0.8rem;
    }
    
    .btn-back-to-top {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 0.9rem;
    }
}

/* New styles for expanded content */

/* Dropdown Menu */
.dropdown-menu {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.dropdown-item {
    color: var(--text-primary);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}

/* About Section Enhancements */
.about-intro {
    background: var(--gradient-card) !important;
    border: 1px solid var(--border-color);
}

.feature-highlights .d-flex {
    transition: all 0.3s ease;
}

.feature-highlights .d-flex:hover {
    transform: translateX(10px);
}

/* Subsidiary Detail Sections */
.subsidiary-detail h2 {
    color: var(--text-primary);
}

.services-grid .service-item {
    transition: all 0.3s ease;
}

.services-grid .service-item:hover {
    transform: translateX(10px);
}

.product-category,
.editorial-item,
.service-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-category:hover,
.editorial-item:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.target-market {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.target-market:hover {
    transform: scale(1.05);
}

/* Governance Section */
.governance-icon,
.kpi-section-icon,
.differential-icon {
    font-size: 3rem;
}

.governance-level {
    transition: all 0.3s ease;
    background: var(--bg-primary) !important;
}

.governance-level:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.governance-level h4 {
    color: var(--text-primary) !important;
}

.governance-responsibilities li {
    padding: 0.3rem 0;
    color: var(--text-secondary) !important;
}

.principle-icon,
.pillar-icon,
.global-kpi-icon {
    font-size: 2.5rem;
}

.col-md-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Differential Cards */
.differential-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.differential-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

/* KPI Section */
.kpi-section {
    border-left: 4px solid var(--primary-color);
    background: var(--bg-primary) !important;
}

.kpi-section h4 {
    color: var(--text-primary) !important;
}

.kpi-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary) !important;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.kpi-card h6 {
    color: var(--text-primary) !important;
}

.kpi-card p {
    color: var(--text-secondary) !important;
}

.kpi-icon {
    font-size: 2rem;
}

.global-kpi-item {
    padding: 1rem;
}

.global-kpi-item h6,
.global-kpi-item p {
    color: white !important;
}

/* Timeline Enhancements */
.timeline-highlights .badge {
    margin-bottom: 0.5rem;
}

.goal-item {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.goal-item:hover {
    transform: scale(1.05);
    background: white !important;
}

/* Stats Section Enhancements */
.stat-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.mini-stat {
    padding: 1rem;
    transition: all 0.3s ease;
}

.mini-stat:hover {
    transform: translateY(-5px);
}

/* Impact Section */
.impact-card {
    transition: all 0.3s ease;
    background: var(--bg-primary) !important;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.impact-card h5 {
    color: var(--text-primary) !important;
}

.impact-card p {
    color: var(--text-secondary) !important;
}

.impact-icon {
    font-size: 4rem;
}

.metric-box {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary) !important;
}

.metric-box:hover {
    transform: scale(1.05);
    background: var(--primary-color) !important;
    color: white;
}

.metric-box strong {
    color: var(--text-primary) !important;
}

.metric-box small {
    color: var(--text-secondary) !important;
}

.metric-box:hover strong,
.metric-box:hover small {
    color: white !important;
}

/* Additional responsive fixes */
@media (max-width: 768px) {
    .col-md-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .dropdown-menu {
        border-radius: 5px;
    }
    
    .governance-icon,
    .kpi-section-icon,
    .differential-icon,
    .impact-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .col-md-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .kpi-card,
    .product-category,
    .editorial-item,
    .service-card {
        margin-bottom: 1rem;
    }
}

/* Conclusion Section */
.conclusion-content {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary) !important;
}

.conclusion-content p {
    color: var(--text-secondary) !important;
}

.conclusion-content h4 {
    color: var(--text-primary) !important;
}

.conclusion-pillar {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-primary) !important;
}

.conclusion-pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.conclusion-pillar h6 {
    color: var(--text-primary) !important;
}

.blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 2rem 0;
}

.blockquote p {
    color: var(--text-primary) !important;
}

.blockquote-footer {
    color: var(--text-secondary) !important;
}

.cta-buttons .btn {
    margin-bottom: 1rem;
}

/* Partnership Section */
.partnership-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-primary) !important;
}

.partnership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary-color);
}

.partnership-card h5 {
    color: var(--text-primary) !important;
}

.partnership-card p {
    color: var(--text-secondary) !important;
}

.partnership-icon {
    font-size: 4rem;
}

.partnership-card ul li {
    padding: 0.3rem 0;
    color: var(--text-secondary) !important;
}

/* Enhanced animations for new content */
.services-overview .service-grid .service-card,
.products-showcase .product-category,
.editorial-areas .editorial-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.services-overview .service-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-overview .service-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-overview .service-grid .service-card:nth-child(3) { animation-delay: 0.3s; }

/* Enhanced hover effects */
.tech-features,
.store-advantages,
.news-value-prop,
.savings-benefits {
    transition: all 0.3s ease;
    background: var(--bg-secondary) !important;
}

.tech-features:hover,
.store-advantages:hover,
.news-value-prop:hover,
.savings-benefits:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow);
}

.tech-features h4,
.tech-features h5,
.store-advantages h4,
.store-advantages h5,
.news-value-prop h4,
.news-value-prop h5,
.savings-benefits h4,
.savings-benefits h5 {
    color: var(--text-primary) !important;
}

.tech-features p,
.tech-features li,
.store-advantages p,
.store-advantages li,
.news-value-prop p,
.news-value-prop li,
.savings-benefits p,
.savings-benefits li {
    color: var(--text-secondary) !important;
}

/* Button group for mobile */
@media (max-width: 768px) {
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    aspect-ratio: 1;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    color: white;
}

.btn-back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Dark theme adjustments for back to top button */
[data-theme="dark"] .btn-back-to-top {
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5);
}

[data-theme="dark"] .btn-back-to-top:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
}

/* Mobile adjustments for back to top button */
@media (max-width: 768px) {
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        font-size: 1.1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    #themeToggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
}

@media (max-width: 576px) {
    .btn-back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 0.9rem;
    }
    
    #themeToggle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 0.9rem;
    }
}

/* Dark theme comprehensive fixes */
[data-theme="dark"] .card,
[data-theme="dark"] .card-body,
[data-theme="dark"] .card-header {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .badge {
    background-color: var(--primary-color) !important;
    color: white !important;
}

[data-theme="dark"] .alert {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Fix timeline elements */
[data-theme="dark"] .timeline-content {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .timeline-content h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .timeline-content p {
    color: var(--text-secondary) !important;
}

/* Fix all small elements */
[data-theme="dark"] small,
[data-theme="dark"] .small {
    color: var(--text-secondary) !important;
}

/* Fix table elements if any */
[data-theme="dark"] .table {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    border-color: var(--border-color) !important;
}

/* Fix any remaining elements */
[data-theme="dark"] .feature-highlights li,
[data-theme="dark"] .advantage-item p,
[data-theme="dark"] .value-item p,
[data-theme="dark"] .benefit-item p,
[data-theme="dark"] .audience-item span {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .advantage-item h6,
[data-theme="dark"] .value-item h6,
[data-theme="dark"] .benefit-item h6 {
    color: var(--text-primary) !important;
}

/* Ensure MVV icons are visible in dark theme */
[data-theme="dark"] .mvv-icon,
[data-theme="dark"] .bi-target,
[data-theme="dark"] .bi-eye,
[data-theme="dark"] .bi-heart {
    color: #1B4A8B !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 4rem !important;
    display: inline-block !important;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .social-links,
    .btn-back-to-top {
        display: none !important;
    }
    
    .section-title {
        color: #000 !important;
    }
    
    .text-muted {
        color: #666 !important;
    }
    
    .conclusion-content,
    .partnership-card,
    .impact-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}