/**
 * Fri Verden Media - Modern Template Styles
 * Version: 2.0
 * A modern, cohesive and attractive design system
 */

/* ========================================
   CSS VARIABLES & DESIGN TOKENS
   ======================================== */
:root {
    /* Brand Colors — Fri Verden Media (navy / blue / cyan) */
    --fvm-primary: var(--primary-color, #1B4F9C);
    --fvm-primary-dark: var(--secondary-color, #0B1B33);
    --fvm-primary-light: var(--accent-color, #00ADEF);
    --fvm-secondary: var(--secondary-color, #0B1B33);
    --fvm-secondary-light: #1B4F9C;
    
    /* Neutral Colors */
    --fvm-text-primary: var(--text-color, #1a1a2e);
    --fvm-text-secondary: #666666;
    --fvm-text-muted: #999999;
    --fvm-bg-light: var(--background-color, #f8f9fa);
    --fvm-bg-white: var(--background-color, #ffffff);
    --fvm-border: var(--border-color, #e0e0e0);
    
    /* Gradients — blue → cyan (logo light direction) */
    --fvm-gradient-primary: var(--gradient-primary, linear-gradient(135deg, #1B4F9C 0%, #00ADEF 100%));
    --fvm-gradient-brand: var(--gradient-primary, linear-gradient(135deg, #1B4F9C 0%, #00ADEF 100%));
    --fvm-gradient-red: var(--gradient-primary, linear-gradient(135deg, #1B4F9C 0%, #00ADEF 100%));
    --fvm-gradient-dark: var(--gradient-secondary, linear-gradient(135deg, #0B1B33 0%, #1B4F9C 100%));
    --fvm-gradient-light: var(--gradient-soft, linear-gradient(145deg, rgba(0, 173, 239, 0.08) 0%, rgba(27, 79, 156, 0.06) 55%, #f8fafc 100%));
    
    /* Shadows (overridable via Appearance --box-shadow) */
    --fvm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --fvm-shadow-sm: var(--box-shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
    --fvm-shadow-md: var(--box-shadow, 0 4px 16px rgba(0, 0, 0, 0.12));
    --fvm-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --fvm-shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.18);
    
    /* Border Radius (overridable via Appearance --border-radius) */
    --fvm-radius-sm: max(4px, calc(var(--border-radius, 8px) * 0.75));
    --fvm-radius-md: var(--border-radius, 8px);
    --fvm-radius-lg: calc(var(--border-radius, 8px) * 1.5);
    --fvm-radius-xl: calc(var(--border-radius, 8px) * 2);
    --fvm-radius-full: 9999px;
    
    /* Transitions (overridable via Appearance --transition-speed) */
    --fvm-transition-fast: var(--transition-speed, 150ms);
    --fvm-transition: var(--transition-speed, 300ms) cubic-bezier(0.4, 0, 0.2, 1);
    --fvm-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --fvm-font-family: var(--body-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    --fvm-font-family-heading: var(--heading-font, 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ========================================
   GLOBAL IMPROVEMENTS
   ======================================== */
body {
    font-family: var(--fvm-font-family);
    color: var(--fvm-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fvm-font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--fvm-text-primary);
}

/* ========================================
   PRESS ETHICS BANNER
   ======================================== */
.fvm-press-ethics-banner {
    position: relative;
    overflow: hidden;
}

.fvm-press-ethics-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 173, 239, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: rotateEthics 30s linear infinite;
}

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

.fvm-ethics-content {
    position: relative;
    z-index: 1;
    transition: var(--fvm-transition);
}

.fvm-ethics-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.fvm-ethics-divider {
    position: relative;
    overflow: hidden;
}

.fvm-ethics-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerDivider 3s ease-in-out infinite;
}

@keyframes shimmerDivider {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ========================================
   HERO SECTION ENHANCEMENTS
   ======================================== */
.fvm-hero-section {
    position: relative;
    background: var(--fvm-gradient-light);
}

.fvm-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 173, 239, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.fvm-hero-section .container {
    position: relative;
    z-index: 1;
}

/* Hero carousel — editorial styles in friverdenmedia.blade.php */
#fvmHeroCarousel {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

#fvmHeroCarousel:hover {
    box-shadow: none;
}

#fvmHeroCarousel .carousel-inner {
    border-radius: 0;
}

#fvmHeroCarousel.fvm-hero-carousel .carousel-control-prev,
#fvmHeroCarousel.fvm-hero-carousel .carousel-control-next {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none !important;
}

#fvmHeroCarousel.fvm-hero-carousel .carousel-control-prev:hover,
#fvmHeroCarousel.fvm-hero-carousel .carousel-control-next:hover {
    background: transparent !important;
    transform: translateY(-50%);
    box-shadow: none !important;
}

#fvmHeroCarousel .fvm-hero-indicators,
#fvmHeroCarousel .carousel-indicators.fvm-hero-indicators {
    margin-bottom: 0.9rem;
    gap: 0.35rem;
}

#fvmHeroCarousel .fvm-hero-indicators button {
    width: 1.5rem !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0;
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: none;
    box-shadow: none !important;
    overflow: visible;
    transform: none !important;
}

#fvmHeroCarousel .fvm-hero-indicators button::before,
#fvmHeroCarousel .fvm-hero-indicators button::after {
    display: none !important;
    animation: none !important;
}

#fvmHeroCarousel .fvm-hero-indicators button:hover {
    background: rgba(255, 255, 255, 0.55) !important;
    transform: none !important;
    box-shadow: none !important;
}

#fvmHeroCarousel .fvm-hero-indicators button.active {
    width: 2.25rem !important;
    background: #00ADEF !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ========================================
   SIDEBAR NEWS CARDS (legacy unused on hero)
   ======================================== */
.fvm-sidebar-news {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: 100%;
}

/* ========================================
   NEWSLETTER BANNER
   ======================================== */
.fvm-newsletter-banner {
    background: var(--fvm-gradient-primary);
    position: relative;
    overflow: hidden;
}

.fvm-newsletter-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.fvm-newsletter-banner .container {
    position: relative;
    z-index: 1;
}

.fvm-newsletter-banner .form-control {
    border: 2px solid transparent;
    transition: var(--fvm-transition);
}

.fvm-newsletter-banner .form-control:focus {
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* ========================================
   CARDS & ARTICLES
   ======================================== */
.fvm-news-card,
.fvm-horizontal-card,
.fvm-featured-card,
.featured-card {
    border-radius: var(--fvm-radius-md);
    overflow: hidden;
    box-shadow: var(--fvm-shadow-sm);
    transition: var(--fvm-transition);
    border: 1px solid var(--fvm-border);
    background: white;
    padding: 10px;
}

.fvm-news-card:hover,
.fvm-horizontal-card:hover,
.fvm-featured-card:hover,
.featured-card:hover {
    box-shadow: var(--fvm-shadow-lg);
    transform: translateY(-5px);
    border-color: rgba(0, 173, 239, 0.2);
}

/* Card Image Effects */
.fvm-card-image,
.fvm-horizontal-image,
.fvm-featured-image,
.featured-card .article-image {
    position: relative;
    overflow: hidden;
    transition: var(--fvm-transition-slow);
}

.fvm-news-card:hover .fvm-card-image,
.fvm-horizontal-card:hover .fvm-horizontal-image,
.fvm-featured-card:hover .fvm-featured-image,
.featured-card:hover .article-image {
    transform: scale(1.05);
}

/* Card Title Hover */
.fvm-card-title a,
.fvm-horizontal-title a,
.fvm-featured-title a,
.featured-card .article-title a {
    color: var(--fvm-text-primary);
    text-decoration: none;
    transition: var(--fvm-transition);
}

.fvm-card-title a:hover,
.fvm-horizontal-title a:hover,
.fvm-featured-title a:hover,
.featured-card .article-title a:hover {
    color: var(--fvm-primary);
}

/* Category Badges */
.fvm-category-badge,
.category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 6px 12px;
    border-radius: var(--fvm-radius-full);
    background: var(--fvm-primary);
    color: white;
    transition: var(--fvm-transition);
}

.fvm-category-badge:hover,
.category-badge:hover {
    background: var(--fvm-primary-dark);
    transform: scale(1.05);
}

/* ========================================
   TRENDING SECTION
   ======================================== */
.fvm-trending-section {
    background: var(--fvm-bg-light);
}

.fvm-trending-card {
    position: relative;
}

.trending-number {
    width: 45px;
    height: 45px;
    background: var(--fvm-gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: var(--fvm-shadow-lg);
    z-index: 10;
    transition: var(--fvm-transition);
}

.fvm-trending-card:hover .trending-number {
    transform: scale(1.15) rotate(5deg);
}

/* ========================================
   CTA SECTION
   ======================================== */
.fvm-cta-section {
    background: var(--fvm-gradient-dark);
    position: relative;
    overflow: hidden;
}

.fvm-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 173, 239, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: rotateCTA 20s linear infinite;
}

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

.fvm-cta-section .container {
    position: relative;
    z-index: 1;
}

.fvm-cta-icon {
    animation: floatIcon 3s ease-in-out infinite;
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    border-radius: var(--fvm-radius-full);
    font-weight: 600;
    transition: var(--fvm-transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--fvm-transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--fvm-shadow-md);
}

.btn-danger,
.btn-outline-danger {
    transition: var(--fvm-transition);
}

.btn-danger:hover,
.btn-outline-danger:hover {
    background: var(--fvm-primary-dark);
    border-color: var(--fvm-primary-dark);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.fvm-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--fvm-gradient-red);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--fvm-shadow-xl);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--fvm-transition);
    font-size: 1.5rem;
}

.fvm-scroll-top {
    background: var(--fvm-gradient-red);
    box-shadow: 0 10px 28px rgba(11, 27, 51, 0.28);
}
.progress-wrap {
    width: 50px;
    height: 50px;
    background: #0B1B33;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(11, 27, 51, 0.22);
}
.progress-wrap svg.progress-circle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.progress-wrap svg.progress-circle .progress-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 3;
}
.progress-wrap svg.progress-circle path {
    stroke: #00ADEF;
    stroke-width: 3;
    stroke-linecap: round;
}
.progress-wrap .top-arrow {
    top: 50%;
    left: 50%;
    z-index: 1;
    line-height: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.progress-wrap .top-arrow i {
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
}
.progress-wrap.active-progress:hover {
    transform: translateY(0);
    background: #0B1B33;
    box-shadow: 0 8px 20px rgba(11, 27, 51, 0.28);
}
.progress-wrap.active-progress:hover .top-arrow i {
    color: #00ADEF;
}
.fvm-scroll-top:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 16px 60px rgba(0, 173, 239, 0.4);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply Animations */
.fvm-hero-section {
    animation: fadeIn 0.8s ease-out;
}

.fvm-latest-articles,
.fvm-trending-section {
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   LOADING STATES
   ======================================== */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Image Skeleton Loading */
.fvm-image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .fvm-hero-section h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 992px) {
    .fvm-hero-section h2 {
        font-size: 1.75rem !important;
    }
    
    .fvm-sidebar-news {
        margin-top: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* Press Ethics Banner Mobile */
    .fvm-ethics-content {
        padding: 20px !important;
    }
    
    .fvm-ethics-content p:first-child {
        font-size: 1rem !important;
    }
    
    .fvm-ethics-content p:last-child {
        font-size: 0.9rem !important;
    }
    
    .fvm-hero-section h2 {
        font-size: 1.5rem !important;
    }
    
    /* Hero carousel mobile handled in layout blade */
    
    .fvm-newsletter-banner .d-flex.gap-2 {
        flex-direction: column !important;
    }
    
    .fvm-newsletter-banner .form-control {
        margin-bottom: 10px;
    }
    
    .fvm-scroll-top,
    .progress-wrap {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .trending-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .fvm-cta-section h2 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 576px) {
    .fvm-hero-section h2 {
        font-size: 1.25rem !important;
    }
    
    .fvm-sidebar-news {
        padding: 16px;
    }
    
    .fvm-cta-section .d-flex.gap-3 {
        flex-direction: column !important;
    }
    
    .fvm-cta-section .btn {
        width: 100%;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
.btn:focus-visible,
.form-control:focus-visible {
    outline: 3px solid var(--fvm-primary);
    outline-offset: 2px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .fvm-news-card,
    .fvm-horizontal-card,
    .fvm-featured-card {
        border: 2px solid currentColor;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .fvm-scroll-top,
    .paginacontainer,
    .fvm-newsletter-banner,
    .fvm-cta-section {
        display: none !important;
    }
    
    .fvm-news-card,
    .fvm-horizontal-card,
    .fvm-featured-card {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
/* Will-change for animated elements */
#fvmHeroCarousel .hero-image,
.fvm-scroll-top,
.fvm-cta-icon {
    will-change: transform;
}

/* GPU Acceleration */
.fvm-news-card,
.fvm-horizontal-card,
.fvm-featured-card,
.btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.fvm-footer {
    background: linear-gradient(135deg, #0B1B33 0%, #1B4F9C 100%);
    color: #fff;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.fvm-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 173, 239, 0.5), transparent);
}

.fvm-footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.fvm-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--fvm-primary) 0%, transparent 100%);
    border-radius: 2px;
}

.fvm-footer-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.fvm-footer-content p {
    margin-bottom: 0.75rem;
}

.fvm-footer-content strong {
    color: #fff;
    font-weight: 600;
}

.fvm-footer-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fvm-footer-content a:hover {
    color: var(--fvm-primary);
}

/* Footer Links */
.fvm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fvm-footer-links li {
    margin-bottom: 0.75rem;
    padding-left: 0;
    position: relative;
}

.fvm-footer-links li::before {
    content: '›';
    position: absolute;
    left: -15px;
    color: var(--fvm-primary);
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.fvm-footer-links li:hover::before {
    opacity: 1;
    left: 0;
}

.fvm-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding-left: 20px;
}

.fvm-footer-links li:hover a {
    color: #fff;
    transform: translateX(5px);
}

/* Footer Newsletter */
.fvm-footer-newsletter-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.fvm-footer-newsletter .input-group {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.25rem;
    background: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.fvm-footer-newsletter .input-group:focus-within {
    border-color: var(--fvm-primary);
    box-shadow: 0 4px 20px rgba(0, 173, 239, 0.2);
}

.fvm-footer-newsletter .form-control {
    flex: 1;
    border: none;
    padding: 16px 20px;
    background: transparent;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0;
}

.fvm-footer-newsletter .form-control:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
    border: none;
}

.fvm-footer-newsletter .form-control::placeholder {
    color: rgba(26, 26, 46, 0.5);
    font-weight: 400;
}

.fvm-footer-newsletter .btn {
    background: linear-gradient(135deg, var(--fvm-primary) 0%, var(--fvm-primary-dark) 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.fvm-footer-newsletter .btn:hover {
    background: linear-gradient(135deg, var(--fvm-primary-dark) 0%, #0B1B33 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 173, 239, 0.4);
}

.fvm-footer-newsletter .btn:active {
    transform: translateY(0);
}

.fvm-footer-newsletter .form-check {
    margin-top: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fvm-footer-newsletter .form-check-input {
    width: 20px;
    height: 20px;
    margin: 10px 0;
    padding: 0 !important;
    /* border: 2px solid rgba(255, 255, 255, 0.4); */
    background: rgb(255, 255, 255);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    flex-shrink: 0;
}

.fvm-footer-newsletter .form-check-input::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 10px;
    /* border: solid white; */
    /* border-width: 0 2px 2px 0; */
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fvm-footer-newsletter .form-check-input:checked {
    background-color: var(--fvm-primary);
    border-color: var(--fvm-primary);
    /* box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.2); */
}

.fvm-footer-newsletter .form-check-input:checked::before {
    opacity: 1;
}

.fvm-footer-newsletter .form-check-input:hover {
    /* border-color: rgba(255, 255, 255, 0.6); */
    background-color: var(--fvm-primary);
}

.fvm-footer-newsletter .form-check-input:focus {
    /* box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.3); */
    outline: none;
}

.fvm-footer-newsletter .form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.fvm-footer-newsletter .form-check-label a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.fvm-footer-newsletter .form-check-label a:hover {
    color: var(--fvm-primary);
    text-decoration: none;
}

/* Footer Social Media */
.fvm-footer-social {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.fvm-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fvm-social-links li {
    margin: 0;
}

.fvm-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fvm-social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.fvm-social-links a i {
    font-size: 1.2rem;
    line-height: 1;
}

/* Specific social media colors on hover */
.fvm-social-links a[title="Facebook"]:hover {
    background: #3b5998;
    border-color: #3b5998;
}

.fvm-social-links a[title="Twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.fvm-social-links a[title="LinkedIn"]:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.fvm-social-links a[title="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

/* Footer Divider */
.fvm-footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding-top: 2.5rem;
}

/* Footer Logo Section */
.fvm-footer-logo {
    margin-bottom: 1.5rem;
}

.fvm-footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.fvm-footer-logo a:hover img {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 173, 239, 0.5));
}

.fvm-footer-tagline {
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Press ethics strip — styles live in layout blade */

/* Footer Bottom Bar */
.fvm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 2rem;
}

.fvm-footer-bottom-links {
    margin-bottom: 1rem;
}

.fvm-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.fvm-footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fvm-primary);
    transition: width 0.3s ease;
}

.fvm-footer-bottom-links a:hover {
    color: #fff;
}

.fvm-footer-bottom-links a:hover::after {
    width: 100%;
}

.fvm-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .fvm-footer {
        padding-top: 40px;
    }
    
    .fvm-footer-title {
        font-size: 1.2rem;
    }
    
    .fvm-footer-divider {
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .fvm-footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .fvm-footer-newsletter .input-group {
        flex-direction: column;
    }
    
    .fvm-footer-newsletter .form-control,
    .fvm-footer-newsletter .btn {
        border-radius: 8px !important;
    }
    
    .fvm-footer-newsletter .btn {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .fvm-footer-bottom-links a {
        margin: 0 10px;
        font-size: 0.85rem;
    }
    
    .fvm-footer-tagline {
        font-size: 1rem;
    }
}

/* ========================================
   HERO CAROUSEL READ MORE BUTTON
   ======================================== */

/* Mobile - Extra compact */
@media (max-width: 575px) {
    .fvm-hero-card .d-inline-flex[href*="blog"] {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.7rem !important;
        border-radius: 5px !important;
    }
    
    .fvm-hero-card .d-inline-flex[href*="blog"] i {
        font-size: 0.75rem !important;
    }
}

/* Tablet - Compact */
@media (min-width: 576px) and (max-width: 991px) {
    .fvm-hero-card .d-inline-flex[href*="blog"] {
        padding: 0.35rem 0.85rem !important;
        font-size: 0.75rem !important;
    }
}

/* Desktop - Normal */
@media (min-width: 992px) {
    .fvm-hero-card .d-inline-flex[href*="blog"] {
        padding: 0.4rem 1rem !important;
        font-size: 0.8rem !important;
        border-radius: 7px !important;
    }
    
    .fvm-hero-card .d-inline-flex[href*="blog"] i {
        font-size: 0.9rem !important;
    }
}

/* ========================================
   Page breadcrumb — same band as articles
   ======================================== */
.fvm-crumb-hero,
.optech-breadcrumb {
    background: #0B1B33 !important;
    background-image: none !important;
    padding: 1.65rem 0 1.75rem !important;
    border-bottom: 0;
    text-align: center;
    position: relative;
}
.fvm-crumb-hero__inner,
.optech-breadcrumb > .container {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}
.optech-breadcrumb > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fvm-crumb-hero__trail,
.optech-breadcrumb .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.optech-breadcrumb .breadcrumbs { order: -1; }
.optech-breadcrumb .breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fvm-crumb-hero__trail a,
.optech-breadcrumb .breadcrumbs a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}
.fvm-crumb-hero__trail a:hover,
.optech-breadcrumb .breadcrumbs a:hover { color: #00ADEF; }
.fvm-crumb-hero__trail [aria-current="page"],
.optech-breadcrumb .breadcrumbs [aria-current="page"] { color: #fff; }
.optech-breadcrumb .breadcrumbs ul li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    line-height: 1.4;
    color: #fff;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}
.optech-breadcrumb .breadcrumbs ul li::before {
    content: "/";
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: rgba(255, 255, 255, 0.45);
}
.optech-breadcrumb .breadcrumbs ul li:first-child::before { content: none; }
.fvm-crumb-hero__cat {
    margin: 0 0 0.55rem;
    color: #00ADEF;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.fvm-crumb-hero__lead {
    margin: 0.85rem auto 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.55;
}
.fvm-crumb-hero__title,
.optech-breadcrumb h1,
.optech-breadcrumb .post__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.fvm-crumb-hero__title::after,
.optech-breadcrumb h1::after {
    content: "";
    display: block;
    width: 2.4rem;
    height: 2px;
    margin: 0.85rem auto 0;
    background: #00ADEF;
}
.fvm-crumb-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin: 0.95rem 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.875rem;
    font-weight: 600;
}
.fvm-crumb-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.fvm-crumb-hero__meta i { color: #00ADEF; }
@media (max-width: 575px) {
    .fvm-crumb-hero,
    .optech-breadcrumb { padding: 1.25rem 0 1.4rem !important; }
    .fvm-crumb-hero__title,
    .optech-breadcrumb h1,
    .optech-breadcrumb .post__title { font-size: 1.45rem; }
}

