<style>
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .content-tabs {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .tab-nav {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .tab-btn {
        padding: 10px 20px;
        background: #f0f0f0;
        border-radius: 5px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
        white-space: nowrap;
        font-size: 0.9rem;
        border: none;
        cursor: pointer;
        min-width: fit-content;
    }
    
    .tab-btn:hover, .tab-btn.active {
        background: #ff0000;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
    }
    
    .content-sections-container {
        display: flex;
        gap: 30px;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .content-section {
        flex: 1;
        min-width: 280px;
        display: flex;
        flex-direction: column;
        padding: 20px;
        background: #f9f9f9; /* Light gray background for section */
        border-radius: 8px;
        border-left: 4px solid #ff0000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .content-section:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }
    
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .section-header h2 {
        margin: 0;
        font-size: 1.3rem;
        color: #333; /* Dark text for readability */
        flex: 1;
        min-width: fit-content;
    }
    
    .view-all {
        color: #ff0000;
        text-decoration: none;
        font-size: 0.9rem;
        padding: 5px 10px;
        border-radius: 4px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .view-all:hover {
        background: rgba(255, 0, 0, 0.1);
        color: #cc0000;
    }
    
    .section-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
        flex: 1;
    }
    
    .content-item {
        padding: 15px;
        background: white; /* White background for items */
        border-radius: 5px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .content-item:hover {
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }
    
    .content-item h3 {
        margin: 0 0 10px 0;
        font-size: 1rem;
        color: #222; /* Dark text */
        line-height: 1.4;
    }
    
    .content-item p {
        margin: 0;
        color: #666; /* Gray text for description */
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .content-item img {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
        border-radius: 4px;
        object-fit: cover;
        max-height: 150px;
    }
    
    /* Tablet styles */
    @media (max-width: 1024px) {
        .main-content {
            padding: 15px;
            gap: 30px;
        }
        
        .content-sections-container {
            gap: 20px;
        }
        
        .content-section {
            min-width: 250px;
            padding: 15px;
        }
        
        .section-header h2 {
            font-size: 1.2rem;
        }
        
        .tab-nav {
            gap: 10px;
        }
        
        .tab-btn {
            padding: 8px 16px;
            font-size: 0.85rem;
        }
    }
    
    /* Mobile styles */
    @media (max-width: 768px) {
        .main-content {
            padding: 10px;
            gap: 20px;
        }
        
        .content-sections-container {
            flex-direction: column;
            gap: 20px;
        }
        
        .content-section {
            min-width: 100%;
            width: 100%;
            padding: 15px;
        }
        
        .section-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
        
        .section-header h2 {
            font-size: 1.1rem;
            width: 100%;
        }
        
        .view-all {
            align-self: flex-end;
            font-size: 0.8rem;
        }
        
        .tab-nav {
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-start;
        }
        
        .tab-btn {
            padding: 8px 12px;
            font-size: 0.8rem;
            flex: 0 0 auto;
        }
        
        .content-item {
            padding: 12px;
        }
        
        .content-item h3 {
            font-size: 0.95rem;
        }
        
        .content-item p {
            font-size: 0.85rem;
        }
        
        .content-item img {
            max-height: 120px;
        }
    }
    
    /* Small mobile styles */
    @media (max-width: 480px) {
        .main-content {
            padding: 8px;
            gap: 15px;
        }
        
        .content-section {
            padding: 12px;
            border-left-width: 3px;
        }
        
        .section-header h2 {
            font-size: 1rem;
        }
        
        .tab-btn {
            padding: 6px 10px;
            font-size: 0.75rem;
            min-width: auto;
        }
        
        .content-item {
            padding: 10px;
        }
        
        .content-item h3 {
            font-size: 0.9rem;
            margin-bottom: 8px;
        }
        
        .content-item p {
            font-size: 0.8rem;
        }
        
        .content-item img {
            max-height: 100px;
            margin-bottom: 8px;
        }
        
        .view-all {
            font-size: 0.75rem;
            padding: 4px 8px;
        }
    }
    
    /* Very small screens */
    @media (max-width: 320px) {
        .main-content {
            padding: 5px;
        }
        
        .content-section {
            padding: 10px;
        }
        
        .tab-nav {
            gap: 5px;
        }
        
        .tab-btn {
            padding: 5px 8px;
            font-size: 0.7rem;
        }
        
        .section-header h2 {
            font-size: 0.9rem;
        }
        
        .content-item h3 {
            font-size: 0.85rem;
        }
        
        .content-item p {
            font-size: 0.75rem;
        }
    }
    
    /* Landscape orientation on mobile */
    @media (max-width: 768px) and (orientation: landscape) {
        .content-sections-container {
            flex-direction: row;
            flex-wrap: wrap;
        }
        
        .content-section {
            min-width: calc(50% - 10px);
            width: calc(50% - 10px);
        }
    }
    
    /* Print styles */
    @media print {
        .main-content {
            padding: 0;
            gap: 20px;
        }
        
        .content-sections-container {
            flex-direction: column;
        }
        
        .content-section {
            break-inside: avoid;
            box-shadow: none;
            border: 1px solid #ccc;
        }
        
        .tab-nav {
            display: none;
        }
    }

    /* Accessibility improvements */
    @media (prefers-reduced-motion: reduce) {
        .content-section,
        .content-item,
        .tab-btn,
        .view-all {
            transition: none;
        }
        
        .content-section:hover,
        .content-item:hover {
            transform: none;
        }
    }
    
    /* High contrast mode */
    @media (prefers-contrast: high) {
        .content-section {
            border-left-width: 6px;
            border-left-color: #ff0000;
        }
        
        .content-item {
            border: 2px solid #000;
        }
        
        .tab-btn.active {
            border: 2px solid #000;
        }
    }
</style>
