/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5em;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    font-weight: 400;
}

.date {
    font-size: 1em;
    opacity: 0.8;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* Newsletter Header Specific Styles */
.newsletter-header {
    padding: 25px 40px 45px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    position: relative;
}

.edition-badge {
    position: absolute;
    top: 25px;
    right: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.8s ease-out;
    z-index: 2;
}

.newsletter-title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 35px;
    text-transform: uppercase;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    position: relative;
    z-index: 1;
}

.newsletter-subtitle {
    font-size: 1.6em;
    font-weight: 300;
    margin: 0 auto 20px;
    max-width: 600px;
    line-height: 1.4;
    opacity: 0.95;
    color: white;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.newsletter-date {
    font-size: 1em;
    font-weight: 400;
    opacity: 0.9;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

/* Newsletter Header Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Content Styles */
.content {
    background: white;
    padding: 40px 40px 60px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 20px 20px;
}

/* Hamburger Menu Button */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sidebar-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e9ecef #f8f9fa;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 3px;
}

.sidebar.active {
    transform: translateX(0);
}

/* Overlay for mobile */
.sidebar.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

.sidebar-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: #f0f0f0;
    color: #333;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-link:hover {
    background: #f8f9fa;
    color: #333;
}

.sidebar-link.active {
    background: #f0f4ff;
    color: #667eea;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #667eea;
}

.sidebar-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    color: #999;
    font-weight: 600;
    font-size: 0.85em;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sidebar-link:hover .sidebar-number {
    background: #e9ecef;
    color: #666;
}

.sidebar-link.active .sidebar-number {
    background: #667eea;
    color: white;
}

.sidebar-text {
    flex: 1;
    font-weight: 500;
    font-size: 0.95em;
}

/* Desktop-specific sidebar behavior */
@media (min-width: 1025px) {
    body {
        display: flex;
        gap: 30px;
        padding: 20px;
        align-items: flex-start;
    }
    
    .sidebar {
        transform: translateX(0);
        position: sticky;
        top: 20px;
        height: calc(100vh - 40px);
        width: 340px;
        border-radius: 12px;
        flex-shrink: 0;
    }
    
    .sidebar::before {
        display: none;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .sidebar-close {
        display: none;
    }
    
    .container {
        flex: 1;
        max-width: 800px;
        margin: 0;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Add scroll padding to account for fixed elements */
.section[id] {
    scroll-margin-top: 20px;
}

.section {
    margin-bottom: 50px;
}

h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

h3 {
    color: #444;
    font-size: 1.5em;
    margin: 30px 0 15px 0;
}

/* Key Metric Styles */
.key-metric {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 5px solid #667eea;
    position: relative;
    overflow: hidden;
}

.key-metric::after {
    content: '📊';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3em;
    opacity: 0.1;
}

.metric-title {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.metric-detail {
    color: #555;
    font-size: 1.1em;
}

/* Chart Container */
.chart-container {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.chart-title {
    font-size: 1.3em;
    color: #444;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Highlight Text */
.highlight {
    background: linear-gradient(120deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Challenge Items */
.challenge-item {
    background: #fff;
    border: 2px solid #f0f0f0;
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 60px;
}

.challenge-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.challenge-number {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.challenge-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Action Items */
.action-item {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
}

.action-title {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 10px;
}

/* Lists */
ul {
    margin-left: 20px;
    margin-top: 10px;
}

li {
    margin: 10px 0;
    color: #555;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta h3 {
    color: white;
    margin-bottom: 15px;
}

/* Links */
.link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.link:hover {
    border-bottom-color: #667eea;
}

/* Persona Insight */
.persona-insight {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.persona-insight strong {
    color: #d97706;
}

/* Chart Styles */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 300px;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.bar {
    flex: 1;
    margin: 0 10px;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 5px 5px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    transition: all 0.3s ease;
}

.bar:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.bar-value {
    position: absolute;
    top: -30px;
    font-weight: 700;
    color: #333;
    font-size: 1.2em;
}

.bar-label {
    margin-top: 10px;
    font-size: 0.9em;
    color: #333;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

.pie-chart {
    width: 300px;
    height: 300px;
    margin: 20px auto;
    position: relative;
}

.pie-slice {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Landing Page Specific Styles */
.newsletter-hub-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.newsletter-hub-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

.newsletter-hub-card h1 {
    font-size: 3em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: white;
}

.newsletter-hub-card p {
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Support Banner Styles */
.support-banner {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 2px solid #e3f2fd;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.support-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.support-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.support-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.support-text {
    flex: 1;
}

.support-text h3 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.support-text p {
    color: #666;
    margin: 0;
    font-size: 1em;
}

.support-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.support-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.support-link::after {
    content: '';
    transition: transform 0.3s ease;
}

.support-link:hover::after {
    transform: translateX(3px);
}

.landing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

.landing-header h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.landing-header p {
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.newsletters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.newsletter-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.newsletter-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    position: relative;
}

.newsletter-card-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5em;
}

.newsletter-card-date {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}

.newsletter-card-content {
    padding: 30px;
}

.newsletter-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #667eea;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.newsletter-card:hover .read-more::after {
    transform: translateX(5px);
}

/* Coming Soon Card */
.newsletter-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Latest Card with Special Badge */
.newsletter-card-latest {
    position: relative;
    box-shadow: 0 5px 25px rgba(255, 138, 0, 0.12), 0 10px 30px rgba(0,0,0,0.08);
}

.newsletter-card-latest:hover {
    box-shadow: 0 8px 35px rgba(255, 138, 0, 0.18), 0 15px 40px rgba(0,0,0,0.12);
}

.latest-badge {
    position: absolute;
    top: -8px;
    right: 20px;
    background: linear-gradient(135deg, #ff8a00 0%, #da1b60 50%, #8e2de2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(255, 138, 0, 0.4);
    border: 2px solid white;
}

.newsletter-card-latest:hover .latest-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.5);
}

/* Testimonial Carousel Styles */
.testimonial-carousel {
    position: relative;
    margin: 25px auto 35px auto;
    max-width: 650px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px 20px;
    overflow: hidden;
}

.testimonial-container {
    position: relative;
    height: 160px;
    overflow: hidden;
    margin: 0 45px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 15px;
    padding: 0;
    height: 100%;
    align-items: center;
}

.testimonial-card {
    width: calc((100% - 15px) / 2);
    min-width: calc((100% - 15px) / 2);
    height: 140px;
    padding: 20px 25px;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #2d3748;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.testimonial-card.positive {
    background: linear-gradient(135deg, #e6fffa 0%, #d4f1e8 100%);
    border: 1px solid #9ae6b4;
}

.testimonial-card.negative {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 40px;
    opacity: 0.15;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 10px;
    font-style: italic;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.testimonial-author {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.85em;
    text-align: right;
    margin-top: auto;
}

/* Navigation Controls */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 10px);
    left: 5px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    font-size: 1.2em;
}

.carousel-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Indicator Dots */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #667eea;
    transform: scale(1.4);
}

.indicator-dot:hover {
    background: #4a5568;
}

/* Auto-pause on hover */
.testimonial-carousel:hover .testimonial-track {
    animation-play-state: paused;
}

/* Timeline Toggle Styles */
.timeline-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 36px;
}

.toggle-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.toggle-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.toggle-icon {
    font-size: 14px;
    line-height: 1;
}

/* Timeline View Styles */
.timeline-view {
    transition: all 0.3s ease;
}

.timeline-view.active {
    display: block;
}

/* Vertical Timeline Styles */
.vertical-timeline-container {
    position: relative;
    padding: 20px 0;
}

.vertical-timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.vertical-timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
}

.vertical-timeline-dot {
    position: absolute;
    left: 12px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 2;
}

.expand-btn {
    background: none;
    border: 1px solid;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
    min-width: 100px;
}

.expand-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Responsive Timeline Toggle */
@media (max-width: 768px) {
    /* Header layout fixes for mobile */
    .timeline-toggle {
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* Auto-switch to vertical on mobile */
    #horizontalTimeline {
        display: none;
    }
    
    #verticalTimeline {
        display: block;
    }
    
    .toggle-btn {
        padding: 8px 12px;
        min-width: 42px;
        min-height: 36px;
        font-size: 14px;
    }
    
    /* Better timeline positioning for mobile */
    .vertical-timeline-container {
        padding: 15px 0;
    }
    
    .vertical-timeline-item {
        margin-bottom: 25px;
        padding-right: 15px;
    }
    
    .vertical-timeline-dot {
        left: 8px;
        width: 16px;
        height: 16px;
    }
    
    .vertical-timeline-line {
        left: 16px;
        width: 2px;
    }
    
    /* Adjust content margins for mobile */
    .vertical-timeline-item > div:last-child {
        margin-left: 45px !important;
    }
    
    .expand-btn {
        font-size: 0.75em;
        padding: 6px 10px;
        min-width: 85px;
    }
}

/* iPhone specific fixes */
@media (max-width: 480px) {
    /* Roadmap header mobile fixes */
    #roadmap-preview > div:first-child {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
    }
    
    #roadmap-preview h2 {
        text-align: left !important;
        flex: none !important;
        margin: 0 !important;
    }
    
    .timeline-toggle {
        align-self: flex-end;
        margin-left: 0;
    }
    
    /* Better timeline spacing for iPhone */
    .vertical-timeline-container {
        padding: 10px 0;
    }
    
    .vertical-timeline-item {
        margin-bottom: 20px;
        padding-right: 10px;
    }
    
    .vertical-timeline-dot {
        left: 6px;
        width: 14px;
        height: 14px;
    }
    
    .vertical-timeline-line {
        left: 13px;
        width: 2px;
    }
    
    /* Reduced content margins for iPhone */
    .vertical-timeline-item > div:last-child {
        margin-left: 35px !important;
    }
    
    /* Card padding optimization */
    .vertical-timeline-item > div:last-child > div {
        padding: 20px !important;
    }
    
    /* Title and content spacing */
    .vertical-timeline-item h4 {
        font-size: 1.1em !important;
    }
    
    .expand-btn {
        font-size: 0.7em;
        padding: 5px 8px;
        min-width: 75px;
    }
}

/* Responsive Styles */

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .header, .landing-header, .newsletter-hub-card {
        padding: 30px 16px;
    }
    
    .newsletter-hub-card h1 {
        font-size: 2em;
        line-height: 1.2;
    }
    
    .newsletter-hub-card p {
        font-size: 1.1em;
    }
    
    /* Newsletter header mobile styles */
    .newsletter-header {
        padding: 35px 20px 30px;
    }
    
    .edition-badge {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 0.7em;
        padding: 5px 12px;
        letter-spacing: 0.5px;
    }
    
    .newsletter-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .newsletter-subtitle {
        font-size: 1.2em;
        margin: 0 auto 15px;
        padding: 0 10px;
    }
    
    .newsletter-date {
        font-size: 0.9em;
    }
    
    h1 {
        font-size: 2.2em;
        line-height: 1.2;
    }
    
    .landing-header h1 {
        font-size: 2em;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .landing-header p {
        font-size: 1.1em;
    }
    
    .content {
        padding: 16px 16px 40px 16px;
        border-radius: 0 0 12px 12px;
    }
    
    .header {
        border-radius: 12px 12px 0 0;
    }
    
    h2 {
        font-size: 1.6em;
        padding-left: 16px;
    }
    
    h2::before {
        width: 4px;
        height: 24px;
    }
    
    h3 {
        font-size: 1.3em;
        margin: 24px 0 12px 0;
    }
    
    .section {
        margin-bottom: 40px;
    }
    
    /* Newsletter grid optimization */
    .newsletters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .newsletter-card-header, .newsletter-card-content {
        padding: 20px;
    }
    
    .newsletter-card-header h3 {
        font-size: 1.3em;
        margin: 0;
    }
    
    /* Support Banner mobile */
    .support-banner {
        padding: 20px 16px;
        margin: 20px 0;
    }
    
    .support-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .support-icon {
        font-size: 2em;
    }
    
    .support-text h3 {
        font-size: 1.2em;
    }
    
    .support-text p {
        font-size: 0.95em;
    }
    
    .support-link {
        padding: 12px 20px;
        font-size: 0.95em;
        align-self: center;
    }
    
    /* Key metrics mobile optimization */
    .key-metric {
        padding: 20px;
        margin: 16px 0;
    }
    
    .key-metric::after {
        font-size: 2.5em;
        right: 16px;
    }
    
    .metric-value {
        font-size: 2em;
    }
    
    /* Chart optimizations */
    .chart-container {
        padding: 16px;
        margin: 24px 0;
    }
    
    .chart-title {
        font-size: 1.1em;
        margin-bottom: 16px;
    }
    
    .bar-chart {
        height: 180px;
        padding: 12px;
    }
    
    .bar {
        margin: 0 4px;
    }
    
    .bar-value {
        font-size: 1em;
        top: -25px;
    }
    
    .bar-label {
        font-size: 0.8em;
        margin-top: 8px;
    }
    
    .pie-chart {
        width: 240px;
        height: 240px;
    }
    
    .legend {
        gap: 12px;
        margin-top: 16px;
    }
    
    .legend-item {
        font-size: 0.9em;
    }
    
    /* Challenge items mobile */
    .challenge-item {
        padding: 16px 16px 16px 48px;
        margin: 16px 0;
    }
    
    .challenge-number {
        left: 12px;
        width: 26px;
        height: 26px;
        font-size: 0.9em;
    }
    
    .challenge-title {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    /* Action items mobile */
    .action-item {
        padding: 16px;
        margin: 12px 0;
    }
    
    .action-title {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    /* CTA mobile */
    .cta {
        padding: 24px 20px;
        margin-top: 32px;
    }
    
    .cta h3 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    /* Testimonial carousel mobile */
    .testimonial-carousel {
        padding: 16px 8px;
        margin: 20px auto 28px auto;
    }
    
    .testimonial-container {
        height: 140px;
        margin: 0 38px;
    }
    
    .testimonial-card {
        min-width: calc(90% - 10px);
        height: 120px;
        padding: 16px 18px;
    }
    
    .testimonial-text {
        font-size: 0.9em;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .testimonial-author {
        font-size: 0.8em;
    }
    
    /* Enhanced touch targets */
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1em;
    }
    
    .indicator-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Lists mobile */
    ul {
        margin-left: 16px;
    }
    
    li {
        margin: 8px 0;
        font-size: 0.95em;
        line-height: 1.5;
    }
    
    /* Links mobile */
    .link {
        font-size: 0.95em;
        line-height: 1.6;
        display: inline-block;
        margin: 4px 0;
    }
    
    /* Persona insight mobile */
    .persona-insight {
        padding: 16px;
        margin: 16px 0;
    }
    
    /* Insights grid mobile */
    .insights-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Table of Contents mobile */
    .toc-section {
        padding: 20px 16px;
        margin-bottom: 30px;
    }
    
    .toc-title {
        font-size: 1.2em;
        margin-bottom: 16px;
    }
    
    .toc-nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .toc-link {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .toc-number {
        width: 30px;
        height: 30px;
        font-size: 0.85em;
    }
    
    .toc-text {
        font-size: 0.9em;
    }
}

/* Medium phones and small tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header, .landing-header, .newsletter-hub-card {
        padding: 50px 24px;
    }
    
    .newsletter-hub-card h1 {
        font-size: 2.4em;
    }
    
    .newsletter-hub-card p {
        font-size: 1.2em;
    }
    
    /* Newsletter header tablet styles */
    .newsletter-header {
        padding: 45px 30px 40px;
    }
    
    .edition-badge {
        right: 30px;
        font-size: 0.8em;
        padding: 6px 16px;
    }
    
    .newsletter-title {
        font-size: 2.5em;
    }
    
    .newsletter-subtitle {
        font-size: 1.4em;
    }
    
    .newsletter-date {
        font-size: 0.95em;
    }
    
    h1 {
        font-size: 2.8em;
        line-height: 1.15;
    }
    
    .landing-header h1 {
        font-size: 2.4em;
    }
    
    .subtitle {
        font-size: 1.4em;
    }
    
    .content {
        padding: 24px;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.4em;
    }
    
    .newsletters-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .bar-chart {
        height: 220px;
        padding: 16px;
    }
    
    .challenge-item {
        padding-left: 56px;
    }
    
    .testimonial-carousel {
        padding: 20px 12px;
    }
    
    .testimonial-card {
        min-width: calc(88% - 10px);
        padding: 18px 22px;
    }
    
    .carousel-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1em;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 20px;
    }
    
    .newsletters-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 26px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Large tablets and small desktops */
@media (min-width: 1025px) and (max-width: 1200px) {
    .newsletters-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Original mobile breakpoint adjustments */
@media (max-width: 768px) {
    /* Global mobile text improvements */
    body {
        line-height: 1.7;
    }
    
    /* Better newsletter grid for smaller screens */
    .newsletters-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    /* Enhanced touch targets for all interactive elements */
    .carousel-btn {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Fix indicator dots layout for mobile */
    .indicator-dot {
        width: 12px;
        height: 12px;
        margin: 0 4px;
        border-radius: 50%;
        background: #cbd5e0;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .indicator-dot.active {
        background: #667eea;
        transform: scale(1.3);
    }
    
    .indicator-dot:hover {
        background: #4a5568;
    }
    
    /* Ensure proper spacing for carousel indicators */
    .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
        padding: 12px 0;
    }
    
    /* Mobile-specific link styling */
    .read-more {
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Improved mobile navigation */
    .newsletter-card {
        touch-action: manipulation;
    }
    
    .newsletter-card:active {
        transform: translateY(-2px);
    }
}
